/* ============================================================
   news.css —— 新闻资讯页（列表 + 文章详情页）
   列表部分为 styles.css 中 .news-section 的局部覆盖（仅作用于 .news-page）
   ============================================================ */

/* ============ 1. 列表页：Tab ============ */
.news-page .news-tabs {
  gap: 56px;
  margin-bottom: 44px;
  border-bottom: 1px solid #ececec;
}
.news-page .news-tab {
  padding: 16px 6px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: #8a8a8a;
  letter-spacing: 2px;
}
.news-page .news-tab::after {
  height: 2px;
  background: #0a0a0a;
}
.news-page .news-tab.active {
  color: #0a0a0a;
  font-weight: 600;
}
.news-page .news-tab.active::after {
  width: 100%;
}

/* ============ 2. 列表页：卡片 ============ */
.news-page .news-grid {
  gap: 26px;
}
/* ---- 首页新闻模块：只展示一行（最多 4 张），切换分类换一批内容 ----
   默认全部隐藏，由 script.js 给命中的卡片加 .is-shown；
   这样首屏不会先闪出 12 张再收起。新闻资讯页（无 #news）不受影响。 */
#news .news-card {
  display: none;
}
#news .news-card.is-shown {
  display: block;
}
.news-page .news-card {
  display: block;
  border: 1px solid #ececec;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
/* 关掉首页那套斜向扫光，列表页保持干净 */
.news-page .news-card::before {
  display: none;
}
.news-page .news-card:hover {
  transform: translateY(-5px);
  border-color: #dddddd;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
}
/* 顶部品牌字标带 */
.news-brand {
  height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: #f1f1f1;
  border-bottom: 1px solid #ececec;
  padding: 0 10px;
}
.news-brand-name {
  font-family: 'Times New Roman', var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: #1a1a1a;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
}
.news-brand-name.cn {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 4px;
}
.news-brand-sub {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #7a7a7a;
  text-transform: uppercase;
  line-height: 1;
}
.news-page .news-thumb {
  aspect-ratio: 8 / 7;
  background: #ffffff;
}
.news-page .news-img {
  background-color: #ffffff;
  transition: transform 0.6s ease;
}
.news-page .news-card:hover .news-img {
  transform: scale(1.05);
}
.news-page .news-body {
  padding: 18px 18px 14px;
}
.news-page .news-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.5px;
  color: #0a0a0a;
  margin-bottom: 18px;
  min-height: 50px;
}
.news-page .news-card:hover .news-title {
  color: #0a0a0a;
}
.news-page .news-footer {
  padding-top: 13px;
  border-top: 1px solid #efefef;
}
.news-page .news-date {
  font-size: 12px;
  color: #9a9a9a;
  letter-spacing: 0.5px;
}
.news-page .news-arrow {
  font-size: 15px;
  color: #0a0a0a;
  opacity: 0.75;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.news-page .news-card:hover .news-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}
/* ---- 列表页：翻页器（每页 16 条，4 × 4 对齐） ---- */
.news-page .news-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 52px;
}
.news-page .news-pager[hidden] {
  display: none;
}
.news-page .news-pager-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
  background: #ffffff;
  color: #555555;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.news-page .news-pager-btn:hover:not(:disabled):not(.is-active) {
  border-color: #0a0a0a;
  color: #0a0a0a;
}
.news-page .news-pager-btn.is-active {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #ffffff;
  font-weight: 600;
}
.news-page .news-pager-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.news-page .news-pager-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
.news-page .news-pager-nav {
  padding: 0 16px;
}
.news-page .news-pager-arrow {
  font-size: 17px;
  line-height: 1;
  position: relative;
  top: -1px;
}
.news-page .news-pager-gap {
  min-width: 22px;
  text-align: center;
  color: #b8b8b8;
  font-size: 14px;
  user-select: none;
}
.news-page .news-pager-count {
  margin-left: 14px;
  font-size: 12px;
  color: #9a9a9a;
  letter-spacing: 1px;
}
/* 翻页器下方的主按钮收紧一点，避免两段留白叠加 */
.news-page .news-pager + .news-more {
  margin-top: 34px;
}
.news-page .news-more {
  margin-top: 54px;
}
/* 相关阅读：3 列 */
.related-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* 空分组占位 */
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 0;
  color: #999;
  font-size: 14px;
  letter-spacing: 1px;
}

/* ============================================================
   3. 文章详情页
   ============================================================ */
.article-page {
  background: #ffffff;
}
/* 文章头部 */
.article-hero {
  background: #0a0a0a;
  padding: 128px 0 62px;
  position: relative;
  overflow: hidden;
}
.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 380px at 78% 0%, rgba(201, 169, 110, 0.16), transparent 70%),
    radial-gradient(700px 320px at 8% 100%, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
}
.article-hero .container {
  position: relative;
  z-index: 1;
  max-width: 860px;
}
.article-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 26px;
}
.article-crumb a:hover {
  color: var(--color-gold);
}
.article-crumb .sep {
  opacity: 0.5;
}
.article-crumb .cur {
  color: rgba(255, 255, 255, 0.85);
}
.article-cat {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--color-gold);
  border: 1px solid rgba(201, 169, 110, 0.5);
  border-radius: 2px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 26px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.5px;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.article-meta i {
  font-style: normal;
  color: rgba(201, 169, 110, 0.9);
}

/* 封面 + 正文容器 */
.article-main {
  padding: 54px 0 90px;
}
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
/* 图文并排：左图右导语（保持图片原始清晰度） */
.article-top {
  display: grid;
  grid-template-columns: 336px 1fr;
  gap: 36px;
  align-items: start;
}
.article-figure {
  margin: 0;
}
.article-figure-img {
  border-radius: 6px;
  overflow: hidden;
  background: #f2f2f2;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}
.article-figure-img img {
  width: 100%;
  height: auto;
  display: block;
}
.article-figure-cap {
  font-size: 12px;
  color: #8f8f8f;
  line-height: 1.75;
  margin-top: 10px;
  letter-spacing: 0.3px;
}

/* 导语 */
.article-lead {
  padding: 22px 26px;
  border-left: 3px solid var(--color-gold);
  background: #faf8f4;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.95;
  color: #333333;
  letter-spacing: 0.4px;
}

/* 正文 */
.article-body {
  margin-top: 46px;
}
.article-body p {
  font-size: 15px;
  line-height: 2.05;
  color: #3a3a3a;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #0a0a0a;
  margin: 46px 0 18px;
  padding-left: 14px;
  border-left: 3px solid #0a0a0a;
  line-height: 1.5;
}
.article-body h2:first-child {
  margin-top: 0;
}
.article-body strong {
  color: #0a0a0a;
  font-weight: 600;
}

/* 数据条 */
.article-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #ececec;
  border: 1px solid #ececec;
  border-radius: 4px;
  overflow: hidden;
  margin: 34px 0 40px;
}
.article-stat {
  background: #ffffff;
  padding: 22px 18px;
  text-align: center;
}
.article-stat .num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
.article-stat .num em {
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  margin-left: 2px;
}
.article-stat .lbl {
  font-size: 12px;
  color: #8f8f8f;
  letter-spacing: 1px;
  margin-top: 6px;
}

/* 要点清单 */
.article-points {
  background: #f9f9f9;
  border: 1px solid #efefef;
  border-radius: 5px;
  padding: 26px 28px;
  margin: 34px 0;
}
.article-points h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #0a0a0a;
  margin-bottom: 16px;
}
.article-points ul {
  display: grid;
  gap: 12px;
}
.article-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.85;
  color: #444444;
}
.article-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* 行情表 */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0 40px;
  font-size: 14px;
}
.article-table th,
.article-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid #eeeeee;
}
.article-table th {
  background: #f7f7f7;
  font-weight: 600;
  color: #0a0a0a;
  letter-spacing: 0.5px;
  font-size: 13px;
}
.article-table td {
  color: #4a4a4a;
}
.article-table tr:hover td {
  background: #fcfcfc;
}
.article-table td:last-child {
  color: #0a0a0a;
  font-weight: 500;
}
.article-note {
  font-size: 12px;
  color: #9a9a9a;
  line-height: 1.8;
  margin: -24px 0 34px;
}

/* 文章内 CTA */
.article-cta {
  margin: 54px 0 0;
  background: #0a0a0a;
  border-radius: 6px;
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.article-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 260px at 88% 10%, rgba(201, 169, 110, 0.2), transparent 70%);
  pointer-events: none;
}
.article-cta-txt {
  position: relative;
  z-index: 1;
}
.article-cta-txt h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 8px;
}
.article-cta-txt p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}
.article-cta-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.article-cta .btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  background: var(--color-gold);
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 2px;
  transition: var(--transition);
}
.article-cta .btn-gold:hover {
  background: var(--color-gold-light);
}
.article-cta .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 1px;
  border-radius: 2px;
  transition: var(--transition);
}
.article-cta .btn-ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* 相关阅读 */
.article-related {
  background: #f7f7f7;
  padding: 76px 0 84px;
}
.article-related .container {
  max-width: 1200px;
}
.article-related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 20px;
  flex-wrap: wrap;
}
.article-related-head h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #0a0a0a;
}
.article-related-head a {
  font-size: 13px;
  color: #666;
  letter-spacing: 1px;
}
.article-related-head a:hover {
  color: #0a0a0a;
}

/* ============ 4. 响应式 ============ */
@media (max-width: 1024px) {
  .article-title { font-size: 30px; }
  .article-hero { padding: 112px 0 54px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .news-page .news-tabs { gap: 30px; }
  .news-page .news-tab { font-size: 15px; letter-spacing: 1px; padding: 14px 2px; }
  .news-page .news-pager { margin-top: 40px; gap: 6px; }
  .news-page .news-pager-btn { min-width: 38px; height: 38px; font-size: 13px; padding: 0 10px; }
  .news-page .news-pager-nav { padding: 0 12px; }
  .news-page .news-pager-txt { display: none; }
  .news-page .news-pager-count { width: 100%; margin: 10px 0 0; text-align: center; }
  .news-page .news-pager + .news-more { margin-top: 28px; }
  .article-title { font-size: 25px; }
  .article-hero { padding: 104px 0 48px; }
  .article-top { grid-template-columns: 1fr; gap: 26px; }
  .article-figure { max-width: 320px; }
  .article-stats { grid-template-columns: 1fr; }
  .article-cta { padding: 32px 24px; }
  .article-cta-btns { width: 100%; }
  .article-cta .btn-gold,
  .article-cta .btn-ghost { flex: 1; }
  .article-related { padding: 56px 0 62px; }
}
@media (max-width: 480px) {
  .news-page .news-tabs { gap: 18px; flex-wrap: wrap; }
  .news-page .news-tab { font-size: 14px; }
  .news-page .news-pager { gap: 5px; margin-top: 34px; }
  .news-page .news-pager-btn { min-width: 34px; height: 34px; font-size: 12px; padding: 0 8px; }
  .news-page .news-pager-nav { padding: 0 10px; }
  .news-page .news-pager-gap { min-width: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-body p { font-size: 14px; }
  .article-body h2 { font-size: 19px; }
  .article-points { padding: 20px 18px; }
  .article-table { font-size: 13px; }
  .article-table th, .article-table td { padding: 10px 8px; }
}
