/* ========== CSS Variables - 浅色股票风格 ========== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f3f8;
  --bg-alt: #f5f7fa;
  --bg-hero: linear-gradient(180deg, #eef2f9 0%, #ffffff 100%);
  --border: #e4e8ee;
  --border-light: #d0d6e0;
  --text-primary: #1a2332;
  --text-secondary: #5a6a7e;
  --text-muted: #8c97a8;
  --red: #e74c3c;
  --red-bg: rgba(231,76,60,0.08);
  --red-light: #ff6b6b;
  --green: #27ae60;
  --green-bg: rgba(39,174,96,0.08);
  --green-light: #2ecc71;
  --blue: #2e86de;
  --blue-bg: rgba(46,134,222,0.08);
  --amber: #f39c12;
  --amber-bg: rgba(243,156,18,0.08);
  --purple: #8e44ad;
  --purple-bg: rgba(142,68,173,0.08);
  --cyan: #0097e6;
  --nav-bg: #ffffff;
  --nav-border: #e4e8ee;
  --table-head-bg: #f0f3f8;
  --table-hover: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --max-width: 1200px;
  --nav-height: 60px;
  --radius: 8px;
  --radius-lg: 12px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.font-num { font-variant-numeric: tabular-nums; font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace; }

/* ========== Progress Bar ========== */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--red), var(--amber));
  width: 0; transition: width 0.1s;
}

/* ========== Navigation ========== */
nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; z-index: 1000;
}
.nav-logo {
  font-weight: 900; font-size: 17px; color: var(--text-primary);
  text-decoration: none; display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.nav-logo .logo-icon { color: var(--red); }
.nav-logo span { color: var(--text-muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  padding: 6px 12px; border-radius: 6px; transition: all 0.2s;
  text-decoration: none; white-space: nowrap;
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-alt); text-decoration: none; }
.nav-cta {
  background: var(--red) !important; color: #fff !important;
  padding: 7px 16px !important; border-radius: 6px !important;
  font-weight: 700 !important; font-size: 13px !important;
}
.nav-cta:hover { background: #c0392b !important; }
.hamburger {
  display: none; background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text-primary); padding: 6px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ========== Section Commons ========== */
.section { max-width: var(--max-width); margin: 0 auto; padding: 60px 24px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px; margin-bottom: 12px;
}
.label-red { color: var(--red); background: var(--red-bg); }
.label-blue { color: var(--blue); background: var(--blue-bg); }
.label-amber { color: var(--amber); background: var(--amber-bg); }
.label-purple { color: var(--purple); background: var(--purple-bg); }
.section-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 12px; line-height: 1.3; color: var(--text-primary); }
.section-desc { font-size: 15px; color: var(--text-secondary); max-width: 720px; margin: 0 auto; line-height: 1.7; }

/* ========== Hero ========== */
.hero {
  padding-top: calc(var(--nav-height) + 20px); padding-bottom: 20px;
  background: var(--bg-hero);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(231,76,60,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 30px;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero h1 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 900;
  line-height: 1.2; margin-bottom: 16px;
  text-align: center;
}
.hero h1 .red { color: var(--red); }
.hero-sub {
  font-size: 16px; color: var(--text-secondary); line-height: 1.7;
  max-width: 680px; margin-bottom: 24px;
  text-align: center;
}

/* Ticker Bar */
.ticker-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 28px 0 24px; max-width: 860px; width: 100%;
}
.ticker-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.ticker-item:hover { border-color: var(--border-light); box-shadow: var(--shadow-md); }
.ticker-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.ticker-value { font-size: 22px; font-weight: 800; }
.ticker-change { font-size: 13px; margin-top: 4px; }
.up { color: var(--red); }
.down { color: var(--green); }
.ticker-note { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; justify-content: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; padding: 5px 14px;
  border-radius: 20px; background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text-secondary);
}
.hero-tag .tag-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-red { background: var(--red); }
.dot-amber { background: var(--amber); }
.dot-blue { background: var(--blue); }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff; font-weight: 700;
  font-size: 15px; padding: 12px 28px; border-radius: var(--radius);
  text-decoration: none; transition: background 0.2s;
}
.btn-primary:hover { background: #c0392b; text-decoration: none; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-light); font-weight: 600;
  font-size: 15px; padding: 11px 24px; border-radius: var(--radius);
  text-decoration: none; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--text-muted); background: var(--bg-alt); text-decoration: none; }

/* ========== Mini K-Line SVG ========== */
.mini-chart {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  margin: 24px 0 0; max-width: 860px; width: 100%;
  box-shadow: var(--shadow-sm);
}
.mini-chart-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.mini-chart-title { font-size: 14px; font-weight: 700; color: var(--text-secondary); }
.mini-chart-badge {
  font-size: 11px; color: var(--text-muted);
  background: var(--bg-alt); padding: 3px 10px; border-radius: 4px;
}
.mini-chart svg { width: 100%; height: 120px; }
.mini-chart-disclaimer { font-size: 11px; color: var(--text-muted); margin-top: 8px; text-align: center; }

/* ========== Data Dashboard ========== */
.data-dashboard {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.data-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.data-card:hover { border-color: var(--border-light); background: var(--bg-card-hover); box-shadow: var(--shadow-md); }
.data-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.data-value { font-size: 20px; font-weight: 800; }
.data-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ========== Comparison Table ========== */
.comp-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.comp-table thead { background: var(--table-head-bg); }
.comp-table th {
  padding: 14px 18px; text-align: left; font-weight: 700;
  color: var(--text-secondary); font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.comp-table td {
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: var(--table-hover); }
.comp-table .val-up { color: var(--red); font-weight: 700; }
.comp-table .val-down { color: var(--green); font-weight: 700; }

/* ========== Hub Grid ========== */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hub-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  text-decoration: none; transition: all 0.25s; position: relative;
  box-shadow: var(--shadow-sm);
}
.hub-card:hover {
  border-color: var(--border-light); background: var(--bg-card-hover);
  transform: translateY(-2px); text-decoration: none;
  box-shadow: var(--shadow-lg);
}
.hub-icon { font-size: 28px; margin-bottom: 12px; }
.hub-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.4; }
.hub-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.hub-link { font-size: 13px; font-weight: 700; color: var(--red); }

/* ========== Demo Section ========== */
.demo-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; max-width: 900px; margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.demo-img { width: 100%; display: block; border-bottom: 1px solid var(--border); }
.demo-caption { padding: 16px 20px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* ========== FAQ ========== */
.faq-accordion { max-width: 860px; margin: 0 auto; }
.faq-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px;
  overflow: hidden; transition: border-color 0.2s;
  box-shadow: var(--shadow-sm);
}
.faq-card:hover { border-color: var(--border-light); }
.faq-card.open { border-color: var(--red); }
.faq-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; cursor: pointer; user-select: none;
}
.faq-card-num { font-size: 13px; font-weight: 800; color: var(--red); min-width: 28px; }
.faq-card-q { font-size: 15px; font-weight: 600; flex: 1; color: var(--text-primary); }
.faq-card-arrow { width: 20px; height: 20px; position: relative; transition: transform 0.3s; }
.faq-card-arrow::after { content: '▸'; font-size: 16px; color: var(--text-muted); }
.faq-card.open .faq-card-arrow { transform: rotate(90deg); }
.faq-card-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-card.open .faq-card-body { max-height: 500px; }
.faq-card-a { padding: 0 20px 18px 60px; font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* ========== Final CTA ========== */
.final-cta {
  text-align: center; padding: 60px 24px;
  background: var(--bg-hero);
  border-top: 1px solid var(--border);
}
.final-cta-title { font-size: clamp(20px, 3vw, 28px); font-weight: 800; margin-bottom: 12px; color: var(--text-primary); }
.btn-big {
  display: inline-block; background: var(--red); color: #fff;
  font-size: 17px; font-weight: 800; padding: 14px 36px;
  border-radius: var(--radius); text-decoration: none;
  transition: background 0.2s; margin-top: 20px;
}
.btn-big:hover { background: #c0392b; text-decoration: none; }

/* ========== Disclaimer ========== */
.disclaimer-box {
  background: var(--amber-bg); border: 1px solid rgba(243,156,18,0.25);
  border-radius: var(--radius); padding: 16px 20px;
  font-size: 13px; color: var(--text-secondary); line-height: 1.8;
}
.disclaimer-box strong { color: var(--amber); }

/* ========== Footer ========== */
footer {
  text-align: center; padding: 40px 24px 30px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted); line-height: 2;
  background: var(--bg-secondary);
}
footer a { color: var(--text-secondary); margin: 0 8px; }

/* ========== Section Alternating ========== */
.section-alt { background: var(--bg-alt); }
.section-gray { background: var(--bg-secondary); }

/* ========== Scroll Reveal ========== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .ticker-bar { grid-template-columns: repeat(2, 1fr); }
  .data-dashboard { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    padding: 12px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .hamburger { display: block; }
  .hub-grid { grid-template-columns: 1fr; }
  .ticker-bar { grid-template-columns: repeat(2, 1fr); }
  .data-dashboard { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 24px; }
}
@media (max-width: 480px) {
  .ticker-bar { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ticker-value { font-size: 18px; }
  .data-dashboard { grid-template-columns: 1fr 1fr; }
  .data-value { font-size: 16px; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* ========== Decision Guide ========== */
.decision-tabs { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:24px; }
.decision-tab {
  flex:1; min-width:200px; padding:16px 20px; border:2px solid var(--border);
  border-radius:var(--radius-lg); cursor:pointer; background:var(--bg-card);
  text-align:left; transition:all 0.2s; font-size:14px; font-weight:600;
  color:var(--text-secondary);
}
.decision-tab:hover { border-color:var(--red); color:var(--text-primary); }
.decision-tab.active { border-color:var(--red); background:var(--red-bg); color:var(--red); }
.decision-tab .tab-icon { font-size:20px; display:block; margin-bottom:6px; }
.decision-result { display:none; padding:20px; background:var(--bg-alt);
  border-radius:var(--radius-lg); border:1px solid var(--border); }
.decision-result.active { display:block; }
.decision-result h4 { font-size:15px; font-weight:700; margin-bottom:12px; color:var(--text-primary); }
.decision-links { display:flex; flex-direction:column; gap:8px; }
.decision-link {
  display:flex; align-items:center; gap:10px; padding:12px 16px;
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius);
  text-decoration:none; color:var(--text-primary); transition:all 0.2s; font-size:14px;
}
.decision-link:hover { border-color:var(--red); background:var(--red-bg); text-decoration:none; }
.decision-link .dl-icon { font-size:18px; }
.decision-link .dl-text { flex:1; }
.decision-link .dl-title { font-weight:700; display:block; }
.decision-link .dl-desc { font-size:12px; color:var(--text-muted); }

/* ========== Calculators ========== */
.calc-wrap { max-width:780px; margin:0 auto; }
.calc-fields { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:20px; }
.calc-field label { display:block; font-size:12px; font-weight:700; color:var(--text-muted); margin-bottom:6px; }
.calc-field input {
  width:100%; padding:10px 14px; border:1px solid var(--border);
  border-radius:var(--radius); font-size:15px; font-weight:600;
  background:var(--bg-card); color:var(--text-primary); outline:none;
  transition:border-color 0.2s;
}
.calc-field input:focus { border-color:var(--red); }
.calc-btn {
  display:inline-block; background:var(--red); color:#fff;
  font-size:14px; font-weight:700; padding:10px 28px;
  border-radius:var(--radius); border:none; cursor:pointer;
  transition:background 0.2s;
}
.calc-btn:hover { background:#c0392b; }
.calc-result {
  display:none; margin-top:20px; padding:20px 24px;
  background:var(--bg-alt); border-radius:var(--radius-lg);
  border:1px solid var(--border);
}
.calc-result.show { display:block; }
.calc-result-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:12px; }
.calc-result-item .cr-label { font-size:12px; color:var(--text-muted); margin-bottom:4px; }
.calc-result-item .cr-value { font-size:22px; font-weight:800; }
.calc-disclaimer { font-size:11px; color:var(--text-muted); margin-top:14px; }

/* ========== Content Map ========== */
.cmap-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.cmap-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:20px; box-shadow:var(--shadow-sm);
}
.cmap-card-header { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.cmap-icon { font-size:22px; }
.cmap-title { font-size:15px; font-weight:700; color:var(--text-primary); }
.cmap-links { list-style:none; display:flex; flex-direction:column; gap:4px; }
.cmap-links li a {
  font-size:13px; color:var(--text-secondary); text-decoration:none;
  padding:4px 0; display:block; transition:color 0.2s;
}
.cmap-links li a:hover { color:var(--red); text-decoration:none; }

/* ========== Update Schedule ========== */
.update-table { width:100%; border-collapse:collapse; font-size:14px;
  background:var(--bg-card); border-radius:var(--radius-lg);
  overflow:hidden; border:1px solid var(--border); box-shadow:var(--shadow-sm); }
.update-table thead { background:var(--table-head-bg); }
.update-table th { padding:13px 18px; text-align:left; font-weight:700;
  color:var(--text-secondary); font-size:13px; border-bottom:1px solid var(--border); }
.update-table td { padding:12px 18px; border-bottom:1px solid var(--border); color:var(--text-primary); }
.update-table tr:last-child td { border-bottom:none; }
.update-table tr:hover td { background:var(--table-hover); }
.badge-green { display:inline-block; padding:2px 10px; border-radius:20px;
  font-size:11px; font-weight:700; background:var(--green-bg); color:var(--green); }
.badge-blue { display:inline-block; padding:2px 10px; border-radius:20px;
  font-size:11px; font-weight:700; background:var(--blue-bg); color:var(--blue); }
.badge-amber { display:inline-block; padding:2px 10px; border-radius:20px;
  font-size:11px; font-weight:700; background:var(--amber-bg); color:var(--amber); }

@media(max-width:768px){
  .calc-fields { grid-template-columns:1fr; }
  .calc-result-grid { grid-template-columns:1fr 1fr; }
  .cmap-grid { grid-template-columns:1fr; }
  .decision-tabs { flex-direction:column; }
}