/* news-v2 */
.nw-page { background: #f3f6fc; }
.nw-page .neiermenu { display: none; }

/* 新闻列表禁止滚动渐现（主内容首屏即见） */
.nw-page .news-section.home-reveal,
.nw-page .news-section .home-reveal-item {
  opacity: 1 !important;
  transform: none !important;
}

/* 分类 Tab 选中态统一品牌红描边（见 filter-v2.css） */

.nw-page .news-filter-bar .search-pill .search-clear {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.nw-page .news-filter-bar .search-pill .search-clear:hover {
  background: #cbd5e1;
  color: #282323;
}
.nw-page .news-filter-bar .search-pill.has-value .search-clear {
  display: inline-flex;
}
.nw-page .custom-select {
  position: relative;
  display: inline-block;
  min-width: 132px;
}
.nw-page .custom-select-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 34px 0 14px;
  font-size: 13px;
  color: #404040;
  font-weight: 400;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: left;
  position: relative;
  font-family: inherit;
  box-sizing: border-box;
}
.nw-page .custom-select-trigger::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M0 1l1-1 4 4 4-4 1 1-5 5z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  transition: transform 0.2s ease;
}
.nw-page .custom-select.open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}
.nw-page .custom-select.open .custom-select-trigger,
.nw-page .custom-select-trigger:hover {
  background: #fff;
  border-color: rgba(195, 13, 35, 0.35);
}
.nw-page .custom-select.open .custom-select-trigger {
  box-shadow: 0 0 0 3px rgba(195, 13, 35, 0.08);
}
.nw-page .custom-select-trigger:focus-visible {
  outline: 2px solid #c30d23;
  outline-offset: 1px;
}
.nw-page .custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 6px;
  display: none;
  z-index: 120;
}
.nw-page .custom-select.open .custom-select-options {
  display: block;
}
.nw-page .custom-option {
  font-size: 13px;
  color: #404040;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.nw-page .custom-option:hover {
  background: #f8fafc;
}
.nw-page .custom-option.selected {
  color: #c30d23;
  font-weight: 500;
  background: rgba(195, 13, 35, 0.06);
}
.nw-page .news-section { max-width: var(--site-maxw); margin: 0 auto; padding: 28px 0 80px; }
.nw-page .news-list { list-style: none; padding: 0; margin: 0; max-width: 100%; }
.nw-page .news-item { position: relative; display: flex; gap: 28px; align-items: center; min-height: 0; height: auto; max-width: 100%; overflow: hidden; text-decoration: none; color: inherit; background: #fff; border: 1px solid rgba(15,23,42,0.08); border-radius: 4px; padding: 18px; margin-bottom: 30px; transition: all 0.25s; box-sizing: border-box; }
.nw-page .news-item:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(15,23,42,0.10); border-color: rgba(195,13,35,0.25); }
.nw-page .news-item .thumb { flex: 0 0 38%; width: 38%; max-width: 420px; aspect-ratio: 16 / 9; height: auto; border-radius: 4px; overflow: hidden; position: relative; background: #f0f2f6; }
.nw-page .news-item .thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: #f0f2f6; }
.nw-page .news-item .thumb .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 700; }
.nw-page .news-item .content { flex: 1; min-width: 0; max-width: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-bottom: 28px; box-sizing: border-box; }
.nw-page .news-item .cat-tag { align-self: flex-start; font-size: var(--av-fs-caption, 13px); font-weight: 700; color: #a3000f; background: rgba(195,13,35,0.08); padding: 3px 11px; border-radius: 4px; margin-bottom: 10px; max-width: min(160px, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
.nw-page .news-item[data-cat="企业动态"] .cat-tag { color: #a3000f; background: rgba(195,13,35,0.08); }
.nw-page .news-item[data-cat="技术创新"] .cat-tag { color: #0369a1; background: rgba(14,165,233,0.08); }
.nw-page .news-item[data-cat="行业应用"] .cat-tag { color: #047857; background: rgba(16,185,129,0.08); }
.nw-page .news-item[data-cat="待开发"] .cat-tag { color: #555555; background: #f1f5f9; }
.nw-page .news-item .date { order: 3; font-size: var(--av-fs-caption, 13px); color: #555555; margin-top: 10px; margin-bottom: 0; }
.nw-page .news-item .title { order: 1; /* card title via type-v2 */  line-height: 1.45; margin: 0 0 10px; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; overflow-wrap: anywhere; }
.nw-page .news-item .desc { order: 2; font-size: var(--av-fs-caption, 13px); color: #555555; line-height: 1.7; margin: 0; min-width: 0; max-width: 100%; overflow: hidden; }
.nw-page .news-item .desc span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-page .news-item .more { position: absolute; right: 18px; bottom: 18px; /* chip 样式见 cards-v2 */ }
.nw-page .news-item:hover .more { /* chip hover 见 cards-v2 */ }
.nw-page .g-company { background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 55%, #b91c1c 100%); }
.nw-page .g-tech { background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 55%, #0ea5e9 100%); }
.nw-page .g-industry { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%); }
.nw-page .g-pending { background: linear-gradient(135deg, #404040 0%, #404040 100%); }
.nw-page .load-more { text-align: center; margin: 36px 0 12px; }
.nw-page .load-more button { font-size: 14px; color: #404040; background: #fff; border: 1px solid rgba(15,23,42,0.12); padding: 12px 42px; border-radius: 24px; cursor: pointer; font-weight: 400; transition: all 0.2s; font-family: inherit; }
.nw-page .load-more button:hover { border-color: #c30d23; color: #c30d23; }
.nw-page .load-more button.hidden { display: none; }
.nw-page .news-empty { list-style: none; padding: 60px 20px; text-align: center; color: #555555; font-size: 14px; }
.nw-detail { background: #fff; }
.nw-detail .detail-wrap { max-width: var(--site-maxw); margin: 0 auto; padding: 48px 0 80px; }
.nw-detail .detail-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: var(--av-fs-caption, 13px); color: #555555; margin: 0 0 28px; }
.nw-detail .detail-cat { display: inline-flex; align-items: center; font-size: var(--av-fs-caption, 13px); font-weight: 700; padding: 3px 11px; border-radius: 12px; color: #a3000f; background: rgba(195,13,35,0.08); max-width: min(160px, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
.nw-detail .detail-cat.cat-tech { color: #0369a1; background: rgba(14,165,233,0.08); }
.nw-detail .detail-cat.cat-industry { color: #047857; background: rgba(16,185,129,0.08); }
.nw-detail .detail-cat.cat-pending { color: #555555; background: #f1f5f9; }
.nw-detail h1.article-title { font-size: 32px; font-weight: 400; color: #282323; line-height: 1.35; margin: 0 0 16px; }
.nw-detail .detail-intro { font-size: 16px; color: #555555; line-height: 1.75; margin: 0 0 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(15,23,42,0.08); }
.nw-detail .detail-cover { width: 100%; border-radius: 4px; overflow: hidden; margin: 0 0 32px; background: #f1f5f9; aspect-ratio: 16/9; }
.nw-detail .detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-detail .detail-cover .ph { width: 100%; height: 100%; min-height: 220px; display: flex; align-items: center; justify-content: center; color: #555555; font-size: 14px; }
.nw-detail .article-body { font-size: 16px; color: #404040; line-height: 1.9; }
.nw-detail .article-body img { max-width: 100%; height: auto; display: block; margin: 20px auto; border-radius: 6px; }
.nw-detail .article-body p { margin: 0 0 1.1em; }
.nw-detail .article-body.is-pending { min-height: 160px; display: flex; align-items: center; justify-content: center; background: #f8fafc; border: 1px dashed rgba(15,23,42,0.12); border-radius: 8px; color: #555555; }
.nw-detail .social-share { margin-top: 36px; }
.nw-detail .detail-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(15,23,42,0.08); }
.nw-detail .page-ctrl { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.nw-detail .page-ctrl a { font-size: 14px; color: #404040; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-detail .page-ctrl a:hover { color: #c30d23; }
.nw-detail .page-ctrl .muted { font-size: 14px; color: #555555; }
.nw-detail a.return { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 8px; background: #f1f5f9; color: #404040; text-decoration: none; font-size: 14px; font-weight: 700; transition: all 0.2s; }
.nw-detail a.return:hover { background: #e2e8f0; color: #282323; }
.nw-detail .related-section { margin-top: 56px; }
.nw-detail .related-section h2 { /* section/card via type-v2 */  margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.nw-detail .related-section h2 .bar { width: 4px; height: 18px; background: #c30d23; border-radius: 2px; }
.nw-detail .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nw-detail .related-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid rgba(15,23,42,0.08); border-radius: 4px; overflow: hidden; transition: all 0.2s; }
.nw-detail .related-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,23,42,0.08); border-color: rgba(195,13,35,0.2); }
.nw-detail .related-card .img { height: 120px; background: #e2e8f0; background-size: cover; background-position: center; }
.nw-detail .related-card .img.ph { display: flex; align-items: center; justify-content: center; color: #555555; font-size: var(--av-fs-caption, 13px); }
.nw-detail .related-card h3 { font-size: 14px; font-weight: 700; color: #282323; line-height: 1.45; margin: 0; padding: 14px 14px 16px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; text-overflow: ellipsis; word-break: break-word; overflow-wrap: anywhere; max-height: 4.2em; }
.nw-detail .related-card.is-pending { cursor: default; pointer-events: none; }
.nw-detail .related-card.is-pending h3 { color: #555555; font-weight: 400; }
@media (max-width: 768px) {
  .nw-page .news-section { padding: 30px 16px 48px; overflow-x: hidden; }
  .nw-page .news-item { flex-direction: column; gap: 14px; padding: 14px; height: auto; width: 100%; }
  .nw-page .news-item .thumb { flex: none; width: 100%; max-width: none; aspect-ratio: 16 / 9; height: auto; }
  .nw-page .news-item .content { width: 100%; padding-bottom: 24px; padding-right: 0; }
  .nw-page .news-item .title { -webkit-line-clamp: 3; }
  .nw-detail .detail-wrap { padding: 28px 16px 56px; }
  .nw-detail h1.article-title { font-size: 24px; }
  .nw-detail .related-grid { grid-template-columns: 1fr; }
}

/* ===== Overflow / ellipsis (list + detail) ===== */
.nw-page .page-hero .breadcrumb,
.nw-detail .page-hero .breadcrumb {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nw-page .page-hero .crumb-current {
  display: inline-block;
  max-width: min(480px, 55vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.nw-page .page-hero h1,
.nw-detail .page-hero h1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 2.5em;
  max-width: min(900px, 100%);
}
.nw-page .page-hero h1.hero-title--gradient,
.nw-detail .page-hero h1.hero-title--gradient {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  width: auto !important;
  max-width: min(900px, 100%) !important;
  overflow: hidden !important;
  white-space: normal;
}
.nw-page .page-hero .sub,
.nw-detail .page-hero .sub {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 5.25em;
}
