/* ============================================================
   美股导航站 · 设计系统
   色彩：深空导航蓝紫 + 金色强调 + 青色数据色
   字体：思源宋体(标题·仪式感) + 思源黑体(正文) + 等宽字体(行情数字)
   ============================================================ */

:root {
  /* 色彩 token */
  --navy-950: #05060f;
  --navy-900: #0a0e22;
  --navy-800: #121937;
  --navy-700: #1a2248;
  --line: rgba(240, 216, 120, 0.14);

  --gold: #f0d878;
  --gold-dim: #c9a961;
  --cyan: #4dd8e6;
  --magenta: #c85fd0;

  --up: #ef5b5b;      /* 中国习惯：红涨 */
  --down: #3fbf6f;    /* 绿跌 */

  --text-primary: #f3f1e7;
  --text-muted: #9aa1c4;
  --text-faint: #6b7295;

  /* 字体 token */
  --font-display: "Source Han Serif SC", "Noto Serif SC", "STSong", serif;
  --font-body: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "DIN Alternate", "Roboto Mono", "Consolas", monospace;

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-900);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(200, 95, 208, 0.10), transparent 60%),
    radial-gradient(ellipse 900px 600px at 100% 0%, rgba(77, 216, 230, 0.08), transparent 55%);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部行情跑马灯（签名元素） ---------- */
.ticker-bar {
  background: var(--navy-950);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 7px 0;
}
.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-scroll 38s linear infinite;
}
.ticker-track span { margin-right: 40px; color: var(--text-muted); }
.ticker-track b { color: var(--text-primary); font-weight: 600; margin: 0 6px; }
.ticker-track .up { color: var(--up); }
.ticker-track .down { color: var(--down); }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- 顶部导航 ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 34, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; letter-spacing: 0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-950); font-weight: 800; font-size: 15px; font-family: var(--font-mono);
}
nav.main-nav { display: flex; gap: 28px; font-size: 15px; color: var(--text-muted); }
nav.main-nav a:hover { color: var(--gold); }
.btn-cs {
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, color .2s;
  background: transparent;
}
.btn-cs:hover { background: var(--gold); color: var(--navy-950); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--cyan); display: inline-block; }
.hero h1 {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.35;
  margin: 0 0 22px;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { color: var(--text-muted); font-size: 16px; max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 40px; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy-950);
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
}
.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text-primary);
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px;
  background: transparent;
  cursor: pointer;
}
.hero-stats { display: flex; gap: 34px; }
.hero-stats div b { display: block; font-family: var(--font-mono); font-size: 22px; color: var(--gold); }
.hero-stats div span { font-size: 13px; color: var(--text-faint); }

.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,6,15,0.88) 100%);
}
.market-clock {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2;
  background: rgba(10, 14, 34, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-mono);
}
.market-clock .label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.market-clock .value { font-size: 20px; color: var(--gold); font-weight: 700; }
.market-clock .value small { font-size: 12px; color: var(--text-faint); font-weight: 400; margin-left: 6px; }

/* ---------- 通用 section ---------- */
section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; }
.section-head h2 { font-family: var(--font-display); font-size: 28px; margin: 0 0 6px; }
.section-head p { color: var(--text-muted); margin: 0; font-size: 14.5px; }
.section-head a.more { font-size: 14px; color: var(--gold-dim); white-space: nowrap; }

/* ---------- 六大栏目卡片 ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  transition: transform .2s, border-color .2s;
}
.pillar-card:hover { transform: translateY(-3px); border-color: var(--gold-dim); }
.pillar-card .idx { font-family: var(--font-mono); color: var(--text-faint); font-size: 12px; }
.pillar-card h3 { font-size: 18px; margin: 10px 0 8px; font-family: var(--font-display); }
.pillar-card p { color: var(--text-muted); font-size: 13.5px; margin: 0 0 14px; }
.pillar-card .go { font-size: 13px; color: var(--cyan); }

/* ---------- 热门中概股速览 ---------- */
.stock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stock-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.stock-card .top { display: flex; justify-content: space-between; align-items: center; }
.stock-card .name { font-size: 14.5px; font-weight: 600; }
.stock-card .code { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.stock-card .price { font-family: var(--font-mono); font-size: 19px; font-weight: 700; }
.stock-card .chg { font-family: var(--font-mono); font-size: 12.5px; }
.stock-card .chg.up { color: var(--up); }
.stock-card .chg.down { color: var(--down); }

/* ---------- 文章列表 ---------- */
.article-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.article-row {
  display: flex; gap: 16px; align-items: center;
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.article-row img { width: 88px; height: 62px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.article-row .tag { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); margin-bottom: 4px; display: block; }
.article-row h4 { font-size: 14.5px; margin: 0 0 4px; font-weight: 600; line-height: 1.5; }
.article-row .meta { font-size: 12px; color: var(--text-faint); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--navy-800); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 20px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--text-muted); font-size: 14px; margin: 12px 0 0; }

/* ---------- 免责声明条 ---------- */
.disclaimer {
  background: var(--navy-950);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */
footer { background: var(--navy-950); padding: 50px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
.footer-grid h5 { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; font-weight: 500; letter-spacing: .04em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { font-size: 13.5px; color: var(--text-faint); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; color: var(--text-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- 内页通用（栏目页/文章页） ---------- */
.page-hero { padding: 52px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-family: var(--font-display); font-size: 32px; margin: 0 0 12px; }
.page-hero p { color: var(--text-muted); max-width: 62ch; }
.breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.placeholder-note {
  background: var(--navy-800);
  border: 1px dashed var(--gold-dim);
  border-radius: 12px;
  padding: 20px 22px;
  color: var(--text-muted);
  font-size: 14px;
  margin: 32px 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  nav.main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .stock-grid { grid-template-columns: repeat(2, 1fr); }
  .article-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .stock-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 百度落地页体验白皮书优化：防止图片加载导致的布局抖动(CLS) ---------- */
.article-body img, section img:not(.no-ratio) {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--line, rgba(0,0,0,0.04));
}

/* ---------- 移动端汉堡菜单（百度落地页体验：移动端需保留完整导航入口） ---------- */
.hamburger-btn {
  display: none;
  width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.hamburger-btn span { display: block; width: 18px; height: 2px; background: var(--text-primary); }
.mobile-nav-panel {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--navy-950); z-index: 60;
  padding: 20px 24px; overflow-y: auto;
}
.mobile-nav-panel.open { display: block; }
.mobile-nav-panel a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  font-size: 16px; color: var(--text-primary);
}
.mobile-nav-panel .mn-cs {
  margin-top: 20px; width: 100%; padding: 14px; text-align: center;
  background: var(--gold); color: var(--navy-950); border-radius: 8px; font-weight: 700; border: none;
}
@media (max-width: 960px) {
  .hamburger-btn { display: flex; }
}
