/* ==========================================================================
   首页 · 资料与洞察（新闻板块 2.0）
   标签页在本页切换内容；仅首页引用，类名统一 nw- 前缀
   ========================================================================== */

.nw-head { margin-bottom: 26px; }
.nw-head h2 { margin-bottom: 10px; }
.nw-head h2:last-child { margin-bottom: 0; }
.nw-head .hv-sub { max-width: 760px; }

/* 板块本身可作锚点（导航「新闻中心」下拉的 8 个分类指向 #nw-t-xxx），
   预留吸顶高度，避免标题栏压住标签 */
.nw { scroll-margin-top: 96px; }
.nw-tab { scroll-margin-top: 96px; }

/* —— 标签栏 —— */
.nw-tabs {
  display: flex;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid #E5E7EA;
  margin-bottom: 24px;
}
.nw-tab {
  position: relative;
  padding: 13px 1px 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #60656D;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s;
}
.nw-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  transition: background .2s;
}
.nw-tab:hover { color: #14161A; }
.nw-tab[aria-selected="true"] { color: #14161A; }
.nw-tab[aria-selected="true"]::after { background: var(--brand, #F2F224); }
.nw-tab:focus-visible { outline: 2px solid #14161A; outline-offset: 3px; }

.nw-tabs__out {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 7px 12px;
  border: 1px solid #E1E3E6;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: #6B7078;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s, border-color .18s;
}
.nw-tabs__out:hover { color: #14161A; border-color: #C9CCD1; }

/* —— 版式 —— */
.nw-body {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}
.nw-main { min-width: 0; }
.nw-panel[hidden] { display: none; }

/* —— 主文章 —— */
.nw-feat {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid #E7E8EA;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .22s, box-shadow .22s;
}
.nw-feat:hover { border-color: #D2CE5A; box-shadow: 0 14px 34px rgba(24, 30, 40, .07); }
.nw-feat__fig {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 744 / 592;   /* 与产品图同比例，图不被裁 */
  background: #fff;
}
.nw-feat__fig img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.nw-feat:hover .nw-feat__fig img { transform: scale(1.035); }
.nw-feat__tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 2px;
  background: rgba(20, 22, 26, .82);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
}
.nw-feat__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 30px 26px;
  min-width: 0;
}
.nw-feat__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: #6B7178;
}
.nw-feat__meta i {
  width: 14px;
  height: 1px;
  background: #D8DBDF;
}
.nw-feat h3 {
  margin: 0 0 12px;
  font-size: 19.5px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -.012em;
  color: #14161A;
  text-wrap: balance;
}
.nw-nb { white-space: nowrap; }
.nw-feat__txt {
  margin: 0 0 20px;
  font-size: 13.4px;
  line-height: 1.85;
  color: #5B6068;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nw-feat__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #2C3037;
  transition: color .2s;
}
.nw-feat__go svg {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 50%;
  background: var(--brand, #F2F224);
  color: #17181A;
  box-sizing: border-box;
}
.nw-feat:hover .nw-feat__go { color: #7A7600; }

/* —— 文章列表 —— */
.nw-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 34px;
}
.nw-list li { border-bottom: 1px solid #EDEFF1; }
.nw-list li:nth-last-child(-n+2) { border-bottom: 0; }
.nw-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 12.5px 0;
  text-decoration: none;
}
.nw-list a span {
  min-width: 0;
  font-size: 13.4px;
  line-height: 1.6;
  color: #2C3037;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .18s;
}
.nw-list a time,
.nw-list a em {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11.5px;
  font-style: normal;
  letter-spacing: .04em;
  color: #6B7178;
  white-space: nowrap;
  text-align: right;
}
.nw-list a:hover span {
  color: #7A7600;
  text-decoration: underline;
  text-decoration-color: var(--brand, #F2F224);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.nw-list__more { display: flex; align-items: center; border-bottom: 0 !important; }
.nw-list__more a {
  display: inline-flex;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #14161A;
  padding: 12.5px 0;
}
.nw-list__more a svg { color: #7A7600; }
.nw-list__more a:hover { color: #7A7600; }

/* —— 右侧栏 —— */
.nw-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nw-rail__box {
  background: #fff;
  border: 1px solid #E7E8EA;
  border-radius: 4px;
  overflow: hidden;
}
.nw-rail__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid #EDEFF1;
  background: #FBFBFC;
}
.nw-rail__hd b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: #14161A;
}
.nw-rail__hd b::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--brand, #F2F224);
}
.nw-rail__hd a {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .1em;
  color: #6B7178;
  text-decoration: none;
}
.nw-rail__hd a:hover { color: #7A7600; }
/* —— 右侧常见问题（details 折叠，无需脚本） —— */
.nw-faq { display: flex; flex: 1; flex-direction: column; }
.nw-faq__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0 6px;
}
.nw-faq__item { border-bottom: 1px solid #EDEFF1; }
.nw-faq__item:last-child { border-bottom: 0; }
.nw-faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 13.2px;
  font-weight: 600;
  line-height: 1.55;
  color: #2C3037;
  cursor: pointer;
  list-style: none;
  transition: color .18s, background .18s;
}
.nw-faq__item summary::-webkit-details-marker { display: none; }
.nw-faq__item summary:hover { color: #7A7600; background: #FEFEF9; }
.nw-faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 14px;
  line-height: 1.4;
  color: #B9B961;
  transition: color .18s;
}
.nw-faq__item[open] summary { color: #14161A; font-weight: 700; }
.nw-faq__item[open] summary::after { content: "\2212"; color: #7A7600; }
.nw-faq__item p {
  margin: -4px 18px 14px;
  padding-left: 10px;
  border-left: 2px solid #F3F0CF;
  font-size: 12.4px;
  line-height: 1.8;
  color: #5B6068;
}

/* —— 自适应 —— */
@media (max-width: 1180px) {
  .nw-tabs { gap: 22px; }
  .nw-tab { font-size: 14.5px; }
}
@media (max-width: 1100px) {
  .nw-body { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .nw-rail__box { flex: 0 0 auto; }
  .nw-faq__body { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .nw-feat { grid-template-columns: minmax(0, 1fr); }
  .nw-feat__fig { min-height: 0; aspect-ratio: 16 / 9; }
  .nw-feat__body { padding: 22px 22px 20px; }
  .nw-feat h3 { font-size: 18px; }
}
@media (max-width: 940px) {
  .nw-tabs { flex-wrap: wrap; gap: 0 20px; }
  .nw-tab { padding: 11px 0 12px; font-size: 14px; }
  .nw-tabs__out {
    margin-left: 0;
    padding: 9px 0;
    border: 0;
    border-radius: 0;
    font-size: 13px;
  }
}
@media (max-width: 720px) {
  .nw-tabs { gap: 0 16px; }
  .nw-tab { font-size: 13.4px; }
  .nw-list { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .nw-list li { border-bottom: 1px solid #EDEFF1; }
  .nw-list li:nth-last-child(-n+2) { border-bottom: 1px solid #EDEFF1; }
  .nw-list li:last-child { border-bottom: 0; }
}
