:root {
  color-scheme: light;
  --ink: #1d2433;
  --muted: #647084;
  --line: #dfe5ee;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --navy: #18345a;
  --red: #c53b31;
  --green: #16875d;
  --blue: #2468b2;
  --gold: #aa7a18;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f7f9fc;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.site-header, main, .site-footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { padding: 20px 0 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; width: 180px; flex: 0 0 auto; }
.brand img { display: block; width: 180px; height: 60px; object-fit: contain; }
.search { display: flex; width: min(460px, 100%); border: 1px solid var(--line); background: var(--paper); border-radius: 8px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font-size: 14px; outline: none; }
.search button { border: 0; background: var(--navy); color: #fff; padding: 0 20px; font-weight: 700; cursor: pointer; }
.site-nav, .subnav { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.site-nav a, .subnav a { flex: 0 0 auto; padding: 8px 12px; border-radius: 8px; color: #324057; font-weight: 700; font-size: 14px; }
.site-nav a.is-active, .subnav a.is-active { background: var(--ink); color: #fff; }
.subnav { border-top: 1px solid var(--line); padding-top: 10px; }
.subnav a { background: #fff; border: 1px solid var(--line); font-weight: 600; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; padding: 44px 0 24px; }
.hero-copy { padding: 30px 0; }
.eyebrow { margin: 0 0 8px; color: var(--red); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: 16px; max-width: 760px; font-size: clamp(36px, 7vw, 64px); line-height: 1.05; letter-spacing: 0; }
.hero p { max-width: 760px; color: #475468; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-actions a, .section-head > a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 800; }
.hero-actions a + a, .section-head > a { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.hero-board { background: #101926; color: #fff; border-radius: 8px; padding: 22px; min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 36px rgba(20, 32, 48, .18); }
.board-header, .board-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #b7c2d4; }
.board-header strong { color: #fff; font-size: 54px; line-height: 1; }
.heatmap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.heat { min-height: 34px; border-radius: 6px; background: #223047; }
.h0, .h4 { background: #b93632; } .h1 { background: #236e52; } .h2 { background: #325f96; } .h3 { background: #9d721d; } .h5 { background: #42516a; }
.market-panel, .category-band, .page-title, .category-insight, .market-method, .deep-dive, .watchlist-tool { margin: 24px 0; }
.market-panel, .category-band, .page-title, .category-insight, .market-method, .deep-dive, .watchlist-tool { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-head h2, .page-title h1 { margin-bottom: 0; font-size: 28px; line-height: 1.2; }
.market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.market-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: #fff; min-width: 0; }
.market-title { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; }
.market-title span { color: var(--muted); font-size: 12px; }
.market-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.market-status.is-live { color: var(--green); font-weight: 800; }
.market-status.is-error { color: var(--red); font-weight: 800; }
.spark { width: 100%; height: 88px; margin: 14px 0; }
.spark polyline { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.red { color: var(--red); } .green { color: var(--green); } .blue { color: var(--blue); } .gold { color: var(--gold); }
table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--ink); }
th, td { padding: 7px 0; border-top: 1px solid #edf1f6; text-align: right; white-space: nowrap; }
th { text-align: left; font-weight: 700; color: #344054; }
.up { color: var(--red); font-weight: 800; } .down { color: var(--green); font-weight: 800; } .flat { color: var(--muted); font-weight: 800; }
.market-method, .category-insight { display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); gap: 22px; align-items: start; }
.market-method h2, .category-insight h2 { margin-bottom: 10px; font-size: 28px; line-height: 1.2; }
.market-method p, .insight-copy p { color: var(--muted); margin-bottom: 0; }
.method-grid, .focus-list { display: flex; flex-wrap: wrap; gap: 10px; }
.method-grid span, .focus-list span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); color: #314058; font-weight: 800; font-size: 14px; }
.focus-list { margin-top: 18px; }
.quote-panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 16px; }
.quote-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
.quote-head h3 { margin-bottom: 0; font-size: 20px; }
.quote-panel thead th, .quote-panel thead td { color: var(--muted); font-weight: 800; font-size: 12px; }
.watchlist-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 12px; }
.watchlist-form input { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 15px; outline: none; }
.watchlist-form button, .watchlist-shortcuts button, .watchlist-remove { border: 0; border-radius: 8px; background: var(--navy); color: #fff; padding: 0 14px; min-height: 42px; font-weight: 800; cursor: pointer; }
.watchlist-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.watchlist-shortcuts button { background: var(--soft); color: #314058; border: 1px solid var(--line); min-height: 34px; }
.watchlist-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.watchlist-table { min-width: 920px; background: #fff; }
.watchlist-table thead th, .watchlist-table thead td { color: var(--muted); font-size: 12px; font-weight: 800; }
.watchlist-empty th { text-align: center; color: var(--muted); padding: 22px; }
.watchlist-remove { min-height: 30px; padding: 0 10px; background: #eef2f7; color: #475468; }
.deep-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.deep-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: #fff; min-width: 0; }
.deep-card span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 28px; border-radius: 6px; background: var(--soft); color: var(--navy); font-weight: 900; font-size: 12px; }
.deep-card h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.25; }
.deep-card p { margin: 0; color: var(--muted); font-size: 14px; }
.deep-card.is-primary { background: #101926; color: #fff; }
.deep-card.is-primary span { background: rgba(255,255,255,.12); color: #fff; }
.deep-card.is-primary p { color: #c9d3e3; }
.deep-dive-0 .deep-card.is-primary { grid-column: span 2; grid-row: span 2; }
.deep-dive-1 .deep-grid { grid-template-columns: 1.1fr .9fr .9fr; }
.deep-dive-1 .deep-card.is-primary { grid-column: span 3; }
.deep-dive-2 .deep-grid { grid-template-columns: repeat(5, 1fr); }
.deep-dive-2 .deep-card.is-primary { grid-column: span 2; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: #fff; }
.category-card h3 { margin-bottom: 8px; font-size: 20px; }
.category-card p { color: var(--muted); font-size: 14px; }
.category-card div { display: flex; flex-wrap: wrap; gap: 8px; }
.category-card div a { padding: 4px 8px; border-radius: 6px; background: var(--soft); color: #3b4659; font-size: 13px; font-weight: 700; }
.page-title { padding: 28px 22px; }
.page-title p:last-child { max-width: 760px; margin-bottom: 0; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 36px; color: var(--muted); }
.site-footer strong, .site-footer span { display: block; }
.site-footer p { margin: 0; }
@media (max-width: 920px) {
  .topbar, .hero, .market-method, .category-insight { grid-template-columns: 1fr; }
  .topbar { display: grid; }
  .search { width: 100%; }
  .market-grid, .category-grid, .deep-grid, .deep-dive-1 .deep-grid, .deep-dive-2 .deep-grid { grid-template-columns: repeat(2, 1fr); }
  .deep-dive-0 .deep-card.is-primary, .deep-dive-1 .deep-card.is-primary, .deep-dive-2 .deep-card.is-primary { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 620px) {
  .site-header, main, .site-footer { width: min(100% - 20px, 1180px); }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 38px; }
  .hero-board { min-height: 300px; }
  .market-grid, .category-grid, .deep-grid, .deep-dive-1 .deep-grid, .deep-dive-2 .deep-grid { grid-template-columns: 1fr; }
  .deep-dive-0 .deep-card.is-primary, .deep-dive-1 .deep-card.is-primary, .deep-dive-2 .deep-card.is-primary { grid-column: span 1; }
  .section-head, .site-footer { display: block; }
  .section-head > a { margin-top: 12px; }
  .watchlist-form { grid-template-columns: 1fr; }
}