/* ============================================================
   华泰地产 · 数据看板  样式
   设计：浅色为主，深色可切换；细线分隔 + 等宽数字 + 克制的品牌红
   ============================================================ */
:root {
  --bg0: #E7ECF3;
  --bg1: #F4F7FB;
  --panel: #FFFFFF;
  --panel2: #F7F9FC;
  --line: #DCE4EE;
  --line2: #C6D2E0;
  --ink: #14243C;
  --ink2: #46586F;
  --ink3: #6E8099;
  --ink4: #9AAABF;
  --brand: #C3271B;
  --brand-soft: rgba(195, 39, 27, .08);
  --rise: #CE3B45;
  --fall: #0C8F63;
  --flat: #8A98AA;
  --amber: #B87400;
  --cyan: #0E7F95;
  --shadow: 0 1px 2px rgba(20, 36, 60, .05), 0 10px 30px rgba(20, 36, 60, .06);
  --shadow-lg: 0 2px 4px rgba(20, 36, 60, .06), 0 18px 48px rgba(20, 36, 60, .10);
  --r: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --nav-h: 58px;
  --ticker-h: 54px;
}

[data-theme="dark"] {
  --bg0: #070D18;
  --bg1: #0B1424;
  --panel: #111C2E;
  --panel2: #16233A;
  --line: #1E2E48;
  --line2: #2C4060;
  --ink: #E9EFF8;
  --ink2: #AABBD2;
  --ink3: #7A8DA8;
  --ink4: #5A6C85;
  --brand: #FF6A5E;
  --brand-soft: rgba(255, 106, 94, .10);
  --rise: #FF7A7A;
  --fall: #3ECF8E;
  --flat: #6E7F96;
  --amber: #FFB454;
  --cyan: #4FD8EB;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 34px rgba(0, 0, 0, .38);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 22px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(195, 39, 27, .05), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(14, 127, 149, .05), transparent 55%),
    var(--bg1);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 26px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; flex: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #7a1109));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .5px;
  box-shadow: 0 4px 12px var(--brand-soft);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt b { font-size: 14.5px; letter-spacing: .01em; }
.brand-txt span { font-size: 10px; color: var(--ink4); letter-spacing: .16em; font-family: var(--mono); }

.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%); }
.nav.fade-l { -webkit-mask-image: linear-gradient(270deg, #000 0, #000 calc(100% - 26px), transparent 100%); mask-image: linear-gradient(270deg, #000 0, #000 calc(100% - 26px), transparent 100%); }
.nav.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%); }
.nav a {
  flex: none; padding: 6px 10px; border-radius: 7px; font-size: 12.5px;
  color: var(--ink3); text-decoration: none; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { background: var(--panel2); color: var(--ink); }
.nav a.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.topbar-right { display: flex; align-items: center; gap: 14px; flex: none; }
.live { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink3); font-family: var(--mono); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fall); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fall) 18%, transparent); }
.dot.pulse { animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; color: var(--ink3);
  transition: color .18s, border-color .18s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line2); }

/* ---------------- 版心 ---------------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 26px; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 326px; gap: 18px; align-items: start; }
.dashboard-main { min-width: 0; }
.news-rail { position: sticky; top: calc(var(--nav-h) + var(--ticker-h) + 12px); max-height: calc(100vh - var(--nav-h) - var(--ticker-h) - 24px); overflow: auto; padding: 16px 0 0 16px; border-left: 1px solid var(--line2); border-top: 2px solid var(--brand); border-bottom: 1px solid var(--line); }
.news-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-kicker { color: var(--brand); font: 10px var(--mono); }
.news-head h2 { margin: 5px 0 0; font-size: 17px; }
.news-refresh { flex: none; border: 1px solid var(--line2); border-radius: 6px; background: var(--panel); color: var(--ink2); padding: 7px 10px; font: inherit; font-size: 11px; cursor: pointer; }
.news-refresh:hover { border-color: var(--brand); color: var(--brand); }
.news-refresh:disabled { opacity: .6; cursor: wait; }
.news-source, .news-status { margin-top: 10px; color: var(--ink4); font-size: 10.5px; line-height: 1.6; }
.news-list { margin: 8px -1px 0 0; }
/* 日期分组头 */
.news-day { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 2px; }
.news-day:first-child { margin-top: 6px; }
.news-day b { font-size: 11.5px; font-weight: 700; color: var(--ink2); letter-spacing: .02em; }
.news-day b::before { content: ""; display: inline-block; width: 3px; height: 11px; margin-right: 6px; border-radius: 1.5px; background: var(--brand); vertical-align: -1px; }
.news-day span { color: var(--ink4); font: 10px var(--mono); }
/* 新闻条目：去盒化分隔线列表，左缘红条悬停 */
.news-item {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 4px 12px;
  margin: 0 -10px; padding: 11px 10px; border-radius: 8px;
  transition: background-color .16s ease;
}
.news-item::before {
  content: ""; position: absolute; left: 2px; top: 12px; bottom: 12px; width: 2px; border-radius: 1px;
  background: var(--brand); transform: scaleY(0); transform-origin: top center;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1);
}
.news-item:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.news-item:hover::before { transform: scaleY(1); }
.news-item + .news-item::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 1px;
  background: var(--line); transition: opacity .16s ease;
}
.news-item:hover + .news-item::after, .news-item:hover::after { opacity: 0; }
.news-thumb { grid-column: 2; grid-row: 1 / span 3; width: 56px; height: 40px; object-fit: cover; border-radius: 4px; background: var(--panel2); align-self: start; margin-top: 2px; }
.news-body { grid-column: 1; grid-row: 1; min-width: 0; }
.news-item a { color: var(--ink); font-size: 12.5px; line-height: 1.45; font-weight: 600; text-decoration: none; transition: color .16s ease; }
.news-item a:hover { color: var(--brand); }
.news-item p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; color: var(--ink3); font-size: 11px; line-height: 1.5; }
.news-meta { display: flex; justify-content: flex-end; margin-top: 4px; color: var(--ink4); font: 10px var(--mono); }
.news-item:hover .news-meta { color: var(--ink3); }
/* 无图条目让时间行占满宽度 */
.news-item:not(:has(.news-thumb)) { grid-template-columns: minmax(0, 1fr); }

/* ---------------- 首屏 ---------------- */
.hero { padding: 0; position: relative; }
.hero-gallery { position: relative; min-height: 450px; overflow: hidden; border-bottom: 1px solid var(--line); padding-top: 76px; }
.gallery-head { position: absolute; top: 30px; left: 0; z-index: 60; display: flex; gap: 12px; align-items: baseline; color: var(--ink3); font-size: 12px; }
.gallery-stage { height: 350px; position: relative; overflow: hidden; touch-action: pan-y; }
.gallery-track { position: relative; width: 100%; height: 270px; transform-style: preserve-3d; perspective: 1300px; }
.gallery-card { position: absolute; left: 50%; top: 0; width: min(430px, 62%); height: 260px; padding: 14px 15px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); transform: translateX(calc(-50% + var(--offset) * 340px)) rotateY(calc(var(--offset) * -24deg)) translateZ(calc(var(--offset) * -45px)) scale(calc(1 - min(abs(var(--offset)), 2) * .12)); opacity: calc(1 - min(abs(var(--offset)), 3) * .26); transition: transform .7s var(--ease), opacity .7s var(--ease), filter .7s var(--ease); cursor: pointer; overflow: hidden; }
.gallery-depth-0 { z-index: 40; }
.gallery-depth-1 { z-index: 30; }
.gallery-depth-2 { z-index: 20; }
.gallery-depth-3 { z-index: 10; }
.gallery-card.is-active { transform: translateX(-50%) translateZ(0) rotateY(0) scale(1); opacity: 1; filter: none; z-index: 50; }
.gallery-card:not(.is-active) { filter: saturate(.72); }
.gallery-card:not(.is-active)::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--panel) 62%, transparent); pointer-events: none; }
.gallery-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.gallery-card-head b { font-size: 13px; }
.gallery-card-head span { color: var(--ink4); font: 10px var(--mono); white-space: nowrap; }
.gallery-chart { height: 190px; margin-top: 6px; }
.gallery-controls { position: absolute; right: 0; bottom: 24px; display: flex; align-items: center; gap: 9px; color: var(--ink4); font: 10px var(--mono); }
.gallery-controls button { width: 25px; height: 25px; border: 1px solid var(--line2); border-radius: 50%; background: var(--panel); color: var(--ink2); cursor: pointer; font-size: 18px; line-height: 1; }
.gallery-controls button:hover { color: var(--brand); border-color: var(--brand); }
.orbit-kicker { color: var(--brand); font: 10px var(--mono); letter-spacing: .18em; }
.orbit-stage { width: min(100%, 720px); height: 330px; position: relative; display: grid; place-items: center; perspective: 1100px; cursor: grab; touch-action: none; }
.orbit-stage::before, .orbit-stage::after { content: ""; position: absolute; border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); border-radius: 50%; transform: rotateX(68deg); pointer-events: none; }
.orbit-stage::before { width: 430px; height: 150px; box-shadow: 0 0 50px color-mix(in srgb, var(--brand) 12%, transparent); }
.orbit-stage::after { width: 300px; height: 105px; border-color: color-mix(in srgb, var(--cyan) 24%, transparent); }
.orbit-stage.is-dragging { cursor: grabbing; }
.orbit-ring { --orbit-rotation: 0deg; width: 1px; height: 1px; position: absolute; transform-style: preserve-3d; animation: orbit-spin 34s linear infinite; transform: rotateX(-10deg) rotateY(var(--orbit-rotation)); }
.orbit-stage:hover .orbit-ring, .orbit-stage.is-dragging .orbit-ring { animation-play-state: paused; }
.orbit-card { position: absolute; width: 148px; min-height: 82px; padding: 12px 13px; transform: rotateY(var(--angle)) translateZ(238px) rotateY(calc(var(--angle) * -1)); transform-style: preserve-3d; background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line2); border-top: 2px solid var(--brand); border-radius: 9px; box-shadow: var(--shadow); }
.orbit-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink3); font-size: 10.5px; }
.orbit-card b { display: block; margin-top: 7px; color: var(--ink); font: 600 20px var(--mono); letter-spacing: -.04em; }
.orbit-card i { display: block; margin-top: 3px; color: var(--ink4); font-size: 10px; font-style: normal; }
.orbit-core { position: relative; z-index: 2; width: 116px; height: 116px; display: grid; place-content: center; text-align: center; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: 50%; background: color-mix(in srgb, var(--panel) 90%, transparent); box-shadow: 0 0 0 12px color-mix(in srgb, var(--brand) 5%, transparent), 0 0 50px color-mix(in srgb, var(--brand) 14%, transparent); }
.orbit-core b { font-size: 22px; letter-spacing: .08em; }
.orbit-core span { margin-top: 7px; color: var(--ink4); font: 9px var(--mono); }
.orbit-hint { position: absolute; right: 0; bottom: 28px; color: var(--ink4); font-size: 10px; }
@keyframes orbit-spin { from { transform: rotateX(-10deg) rotateY(var(--orbit-rotation)); } to { transform: rotateX(-10deg) rotateY(calc(var(--orbit-rotation) + 360deg)); } }
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--brand);
  text-transform: uppercase; margin-bottom: 18px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--brand); }
h1 {
  font-size: clamp(30px, 4.2vw, 46px); line-height: 1.14; margin: 0 0 14px;
  letter-spacing: -.02em; font-weight: 700;
}
h1 em { font-style: normal; color: var(--brand); }
.lede { max-width: 720px; font-size: 14.5px; line-height: 1.75; color: var(--ink2); margin: 0 0 30px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--panel); padding: 18px 20px; }
.stat b { display: block; white-space: nowrap; font-family: var(--mono); font-size: 25px; letter-spacing: -.02em; line-height: 1.1; }
.stat b small { font-size: 12px; color: var(--ink3); margin-left: 3px; font-family: var(--sans); }
.stat span { display: block; margin-top: 7px; font-size: 11.5px; color: var(--ink3); letter-spacing: .04em; }

/* ---------------- 关键指标卡 ---------------- */
.kpi-head { display: flex; align-items: baseline; gap: 12px; margin: 44px 0 14px; }
.kpi-head h2 { font-size: 15px; margin: 0; letter-spacing: .02em; }
.kpi-head span { font-size: 11.5px; color: var(--ink4); font-family: var(--mono); letter-spacing: .1em; }

.ticker-shell { position: sticky; top: var(--nav-h); z-index: 49; height: var(--ticker-h); display: flex; align-items: center; gap: 14px; padding: 0 26px; overflow: hidden; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: saturate(1.5) blur(12px); }
.ticker-label { flex: none; color: var(--ink3); font-size: 11px; font-weight: 600; }
.ticker-viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.ticker-viewport::before, .ticker-viewport::after { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; width: 24px; pointer-events: none; }
.ticker-viewport::before { left: 0; background: linear-gradient(90deg, var(--panel), transparent); }
.ticker-viewport::after { right: 0; background: linear-gradient(270deg, var(--panel), transparent); }
.kpis { display: flex; width: max-content; }
.ticker-group { display: flex; align-items: stretch; flex: none; animation: ticker-scroll 48s linear infinite; }
.ticker-shell:hover .ticker-group, .ticker-shell:focus-within .ticker-group { animation-play-state: paused; }
.ticker-static .ticker-group { animation: none; }
.ticker-item { display: grid; grid-template-columns: minmax(150px, auto) auto auto auto; align-items: center; gap: 10px; min-height: 58px; padding: 10px 22px; border-right: 1px solid var(--line); white-space: nowrap; }
.ticker-name { max-width: 280px; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); font-size: 12px; }
.ticker-value { color: var(--ink); font-family: var(--mono); font-size: 14px; font-weight: 600; }
.ticker-value i { margin-left: 4px; color: var(--ink4); font-family: var(--sans); font-size: 10px; font-style: normal; font-weight: 400; }
.ticker-change { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; }
.ticker-change > i { font-size: 9px; font-style: normal; }
.ticker-change.up { color: var(--rise); }
.ticker-change.down { color: var(--fall); }
.ticker-change.flat { color: var(--flat); }
.ticker-period { color: var(--ink4); font-family: var(--mono); font-size: 10px; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
html { scroll-padding-top: calc(var(--nav-h) + var(--ticker-h) + 16px); }

/* ---------------- 章节 ---------------- */
.chapter { padding: 62px 0 8px; scroll-margin-top: calc(var(--nav-h) + var(--ticker-h) + 10px); }
.ch-head { display: grid; grid-template-columns: 62px 1fr auto; align-items: end; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line2); margin-bottom: 22px; }
.ch-no { font-family: var(--mono); font-size: 26px; color: var(--line2); line-height: 1; letter-spacing: -.03em; }
.ch-title h2 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.ch-title p { margin: 7px 0 0; font-size: 12.5px; color: var(--ink3); line-height: 1.6; max-width: 760px; }
.ch-en { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--ink4); text-transform: uppercase; text-align: right; }

/* ---------------- 图表卡 ---------------- */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chart-grid.one { grid-template-columns: 1fr; }
.trend-tools { position: relative; max-width: 760px; margin-bottom: 14px; }
.trend-tools .search { width: 100%; }
.trend-results { display: grid; gap: 1px; margin-top: 6px; border: 1px solid var(--line); background: var(--line); border-radius: var(--r); overflow: hidden; }
.trend-result { display: flex; align-items: baseline; gap: 12px; padding: 10px 13px; border: 0; background: var(--panel); color: var(--ink); text-align: left; cursor: pointer; }
.trend-result:hover { background: var(--panel2); }
.trend-result b { font-size: 12px; font-weight: 600; }
.trend-result span { color: var(--ink4); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-card { max-width: none; }
.trend-source { color: var(--ink4); font-size: 11px; margin: 2px 0 4px; }
.trend-back { border: 0; background: transparent; color: var(--brand); padding: 7px 0; cursor: pointer; font-size: 11px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 15px 10px; min-width: 0;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--line2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.card-head h3 { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: .005em; }
.card-head .unit { font-size: 10.5px; color: var(--ink4); font-family: var(--mono); white-space: nowrap; padding-top: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 2px 0 6px; }
.series-dot { width: 8px; height: 8px; flex: none; margin-top: 4px; border-radius: 50%; background: var(--brand); }
.dot-073B78 { background: #073B78; } .dot-08A7DF { background: #08A7DF; } .dot-6E91B6 { background: #6E91B6; } .dot-C98218 { background: #C98218; } .dot-3A7D6B { background: #3A7D6B; } .dot-7156A5 { background: #7156A5; } .dot-B6534A { background: #B6534A; } .dot-52657D { background: #52657D; }
.hover-guide { opacity: 0; } .hover-guide.visible { opacity: .9; }
.bar[data-width="0.0"] { width: 0; } .bar[data-width="10.0"] { width: calc(10% - 8px); } .bar[data-width="20.0"] { width: calc(20% - 8px); } .bar[data-width="30.0"] { width: calc(30% - 8px); } .bar[data-width="40.0"] { width: calc(40% - 8px); } .bar[data-width="50.0"] { width: calc(50% - 8px); } .bar[data-width="60.0"] { width: calc(60% - 8px); } .bar[data-width="70.0"] { width: calc(70% - 8px); } .bar[data-width="80.0"] { width: calc(80% - 8px); } .bar[data-width="90.0"] { width: calc(90% - 8px); } .bar[data-width="100.0"] { width: calc(100% - 8px); }
.bar[data-width] { width: calc(attr(data-width percentage) - 8px); }
.reveal-delay-0 { animation-delay: 0ms; } .reveal-delay-1 { animation-delay: 70ms; } .reveal-delay-2 { animation-delay: 140ms; } .reveal-delay-3 { animation-delay: 210ms; } .reveal-delay-4 { animation-delay: 280ms; } .reveal-delay-5 { animation-delay: 350ms; } .reveal-delay-6 { animation-delay: 420ms; } .reveal-delay-7 { animation-delay: 490ms; } .reveal-delay-8 { animation-delay: 560ms; }
.table-grid-tight { gap: 10px; }
.table-note-rise { margin: 0 0 6px; color: var(--rise); }
.table-note-fall { margin: 0 0 6px; color: var(--fall); }
.bar[data-width] { width: calc(var(--bar-width) - 8px); }
.bar[data-width="0.0"] { --bar-width: 0%; }
.lg { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; color: var(--ink2); cursor: default; min-width: 0; }
.lg i { width: 9px; height: 3px; border-radius: 2px; display: block; }
.lg span { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.lg b { font-family: var(--mono); font-weight: 600; color: var(--ink); white-space: nowrap; }

.chart-box { position: relative; }
.chart-box svg { display: block; width: 100%; height: auto; overflow: visible; }
/* 懒渲染占位：按图表真实宽高比预留空间，避免渲染时跳动 */
.chart-box.chart-loading { aspect-ratio: 660 / 236; }
.chart-skeleton {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink4); font-size: 11px; letter-spacing: .1em;
  animation: chart-skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes chart-skeleton-pulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
/* 渲染进度提示 */
#render-progress {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 500;
  display: flex; align-items: center; gap: 10px; padding: 8px 16px;
  border-radius: 20px; background: var(--ink); color: var(--panel);
  font-size: 12px; box-shadow: var(--shadow-lg); white-space: nowrap;
}
#render-progress[hidden] { display: none; }
#render-progress .render-progress-bar { width: 110px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--panel) 28%, transparent); overflow: hidden; }
#render-progress .render-progress-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--panel); transition: width .18s var(--ease); }
.chart-box .gl { stroke: #D7E0EA; }
.chart-box .gl.zero { stroke: #687B95; stroke-dasharray: none; stroke-width: 1.35; }
.chart-box .ax { fill: #687B95; }
.card { border-radius: 5px; box-shadow: 0 5px 18px rgba(22, 48, 83, .045); }
.card:hover { border-color: #AABBD0; box-shadow: 0 8px 24px rgba(22, 48, 83, .08); transform: translateY(-2px); }

/* ---------------- 01 数据唤醒：卡片依次弹性浮现 ---------------- */
@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  60% { transform: translateY(-3px) scale(1.008); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.reveal { opacity: 0; }
.reveal.in { animation: card-in .6s var(--ease) forwards; }

/* ---------------- 04 滑动高亮块：导航指示条 ---------------- */
.nav { position: relative; }
.nav-glider {
  position: absolute; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--brand); pointer-events: none; z-index: 1;
  transition: left .32s var(--ease), width .32s var(--ease), opacity .2s;
  opacity: 0;
}
.nav-glider.on { opacity: 1; }

/* ---------------- 03 卡片 3D 悬浮 ---------------- */
.chart-grid { perspective: 1400px; }
.card-3d { transform-style: preserve-3d; will-change: transform; transition: transform .18s ease-out; }

[data-theme="dark"] .chart-box .gl { stroke: #2C4060; }
[data-theme="dark"] .chart-box .gl.zero { stroke: #AABBD2; }
[data-theme="dark"] .chart-box .ax { fill: #9EADC1; }
.chart-grid .card { display: flex; flex-direction: column; }
.chart-grid .chart-box { margin-top: 8px; }
.reference-chart-grid { margin-top: 14px; }
.chart-reference-card { background: color-mix(in srgb, var(--panel) 88%, var(--brand-soft)); }
.reference-chart-disclosure { margin-top: 16px; border-top: 1px solid var(--line); }
.reference-chart-disclosure > summary { padding: 14px 0; cursor: pointer; color: var(--ink2); font-size: 12px; font-weight: 600; }
.reference-chart-disclosure > summary span { margin-left: 10px; color: var(--ink4); font-weight: 400; }
.reference-chart-grid > .more-btn { grid-column: 1 / -1; justify-self: center; }
.reference-chart-grid [hidden] { display: none !important; }
.ax { font-family: var(--mono); font-size: 9.5px; fill: var(--ink4); }
.gl { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.gl.zero { stroke: var(--line2); stroke-dasharray: 3 3; }
.tip {
  position: absolute; pointer-events: none; opacity: 0; transform: translate(-50%, -100%);
  background: var(--panel); border: 1px solid var(--line2); border-radius: 8px;
  box-shadow: var(--shadow-lg); padding: 8px 10px; font-size: 11px; white-space: nowrap;
  transition: opacity .12s; z-index: 5;
}
.tip.on { opacity: 1; }
.tip .d { font-family: var(--mono); color: var(--ink3); margin-bottom: 4px; font-size: 10px; }
.tip .r { display: flex; align-items: center; gap: 7px; line-height: 1.6; }
.tip .r i { width: 6px; height: 6px; border-radius: 50%; }
.tip .r b { margin-left: auto; font-family: var(--mono); }

/* ---------------- 指标条 ---------------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 14px; }
.metric { background: var(--panel); padding: 13px 16px; }
.metric span { display: block; font-size: 11.5px; color: var(--ink3); }
.metric b { display: block; font-family: var(--mono); font-size: 19px; letter-spacing: -.02em; margin-top: 5px; }
.metric b i { font-style: normal; font-size: 10.5px; color: var(--ink3); font-family: var(--sans); margin-left: 3px; }
.metric em { font-style: normal; font-size: 11px; color: var(--ink4); font-family: var(--mono); }

/* ---------------- 表格 ---------------- */
.table-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.table-grid.one { grid-template-columns: 1fr; }
.tbl-wrap { overflow: auto; max-height: 460px; border-radius: 8px; }
.tbl-wrap.tall { max-height: 560px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
thead th {
  position: sticky; top: 0; z-index: 2; background: var(--panel);
  text-align: left; font-weight: 600; color: var(--ink3); font-size: 11px; letter-spacing: .03em;
  padding: 7px 9px; border-bottom: 1px solid var(--line2); white-space: nowrap;
}
tbody td { padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
tbody tr:hover td { background: var(--panel2); }
tbody tr:last-child td { border-bottom: 0; }
td.n { text-align: right; font-family: var(--mono); white-space: nowrap; }
th.n { text-align: right; }
td.barcell { position: relative; }
td.barcell .bar { position: absolute; inset: 4px auto 4px 4px; background: var(--brand-soft); border-radius: 3px; z-index: 0; }
td.barcell span { position: relative; z-index: 1; }
.rank { color: var(--ink4); font-family: var(--mono); font-size: 11px; }
.txt-cell { max-width: 420px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.clamp.open { -webkit-line-clamp: unset; }
.tbl-note { font-size: 10.5px; color: var(--ink4); margin: 8px 0 0; line-height: 1.5; }

/* ---------------- 信号/矩阵 ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.chip {
  padding: 5px 11px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--panel); font-size: 11.5px; color: var(--ink2); cursor: pointer;
  transition: all .16s var(--ease); font-family: var(--sans);
}
.chip:hover { border-color: var(--line2); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.search {
  flex: 1; min-width: 180px; max-width: 320px; padding: 7px 12px; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink);
  font-family: var(--sans); outline: none; transition: border-color .18s;
}
.search:focus { border-color: var(--ink3); }
.matrix { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.matrix .tbl-wrap { max-height: 720px; }
.matrix th:first-child, .matrix td:first-child { padding-left: 18px; }
.matrix td { font-size: 11.5px; }
.matrix .src { color: var(--ink4); font-size: 10.5px; }
.more-row { text-align: center; padding: 14px; }
.more-btn {
  padding: 7px 20px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2);
  color: var(--ink2); font-size: 12px; cursor: pointer; font-family: var(--sans);
}
.more-btn:hover { border-color: var(--line2); color: var(--ink); }

/* Matrix filters: one labeled dimension per row. */
.matrix-filters { display: grid; gap: 9px; margin: 0 0 18px; }
.filter-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.filter-search { align-items: center; }
.filter-label { padding-top: 7px; color: var(--ink3); font-size: 11px; font-weight: 600; }
.filter-search .filter-label { padding-top: 0; }
.filter-search .search { width: min(100%, 420px); max-width: none; }
.filter-options { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.filter-options .chip { max-width: 100%; text-align: left; overflow-wrap: anywhere; }
.filter-options .chip-count { margin-left: 7px; color: var(--ink4); font-family: var(--mono); font-size: 10px; }
.filter-options .chip.on .chip-count { color: inherit; opacity: .7; }

/* Policy tables: keep original text, give meeting statements and cycles room. */
.policy-timeline { display: grid; gap: 0; }
.policy-entry { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.policy-entry:last-child { border-bottom: 0; }
.policy-date { color: var(--brand); font-family: var(--mono); font-size: 12px; font-weight: 600; padding-top: 2px; }
.policy-entry-body { min-width: 0; }
.policy-entry-body h4 { margin: 0 0 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
.policy-entry-body > p { margin: 0; color: var(--ink2); font-size: 12.5px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.policy-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.policy-context > div { padding: 10px 12px; background: var(--panel2); border-left: 2px solid var(--line2); color: var(--ink3); font-size: 11.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.policy-context span { display: block; margin-bottom: 3px; color: var(--ink4); font-size: 10px; }
.policy-cycle-wrap { max-height: 620px; overflow: auto; }
.policy-cycle { min-width: 940px; table-layout: fixed; }
.policy-cycle th:first-child, .policy-cycle td:first-child { position: sticky; left: 0; z-index: 1; width: 150px; background: var(--panel); }
.policy-cycle thead th:first-child { z-index: 3; }
.policy-cycle th:not(:first-child) { white-space: normal; text-align: center; }
.policy-cycle td.policy-tool { position: sticky; left: 0; z-index: 1; color: var(--ink); font-weight: 600; }
.policy-cycle td.policy-cell { color: var(--ink2); font-size: 11px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.policy-cycle thead th:not(:first-child) { color: var(--brand); font-size: 11px; }
.policy-cycle tbody tr:nth-child(even) td { background: var(--panel2); }
.policy-cycle td.policy-tool { border-right: 2px solid var(--brand); }
/* ---------------- 数据源 ---------------- */
.src-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: start; }
.src-list { display: flex; flex-direction: column; }
.src-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.src-row:last-child { border-bottom: 0; }
.src-row .fname { font-size: 12px; color: var(--ink); line-height: 1.45; word-break: break-all; }
.src-row .fmeta { font-family: var(--mono); font-size: 10.5px; color: var(--ink4); white-space: nowrap; }
.notes { font-size: 12.5px; color: var(--ink2); line-height: 1.85; }
.notes h4 { margin: 0 0 8px; font-size: 12px; color: var(--ink); letter-spacing: .02em; }
.notes ol { margin: 0; padding-left: 18px; }
.notes li { margin-bottom: 7px; }
.notes code { font-family: var(--mono); font-size: 11px; background: var(--panel2); padding: 1px 5px; border-radius: 4px; }

/* ---------------- 页脚 ---------------- */
footer { margin-top: 70px; border-top: 1px solid var(--line); padding: 26px 0 60px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink4); line-height: 1.8; }
.foot b { color: var(--ink3); font-weight: 600; }

/* ---------------- 提示 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--panel); padding: 9px 18px; border-radius: 30px;
  font-size: 12.5px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: all .3s var(--ease); z-index: 99;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.loading { padding: 120px 0; text-align: center; color: var(--ink4); font-size: 13px; font-family: var(--mono); }
.err { margin: 40px auto; max-width: 620px; padding: 20px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--panel); font-size: 13px; line-height: 1.8; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .dashboard-layout { grid-template-columns: minmax(0, 1fr) 286px; gap: 14px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .src-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-gallery { min-height: 390px; padding-top: 62px; }
  .gallery-head { top: 22px; }
  .gallery-stage { height: 300px; }
  .gallery-card { width: 78%; transform: translateX(calc(-50% + var(--offset) * 245px)) rotateY(calc(var(--offset) * -18deg)) translateZ(calc(var(--offset) * -30px)) scale(calc(1 - min(abs(var(--offset)), 2) * .12)); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .news-rail { position: static; max-height: none; overflow: visible; margin-top: 30px; padding-left: 0; border-left: 0; }
  .wrap { padding: 0 16px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .ticker-shell { padding: 0 14px; gap: 8px; }
  .ticker-item { padding-inline: 12px; }
  .brand-txt span { display: none; }
  .brand-txt b { font-size: 12px; }
  .nav a { padding: 5px 7px; font-size: 12px; }
  .chart-grid, .table-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ch-head { grid-template-columns: 40px 1fr; }
  .ch-en { display: none; }
  h1 { font-size: 28px; }
  .filter-row { grid-template-columns: 56px minmax(0, 1fr); gap: 8px; }
  .policy-entry { grid-template-columns: 1fr; gap: 6px; }
  .policy-context { grid-template-columns: 1fr; }
  .ticker-item { grid-template-columns: minmax(130px, auto) auto auto; padding-inline: 12px; }
  .ticker-period { display: none; }
}

@media (max-width: 520px) {
  :root { --nav-h: 54px; --ticker-h: 48px; }
  .ticker-label { font-size: 10px; }
  .ticker-item { grid-template-columns: minmax(120px, auto) auto auto; gap: 7px; }
  .ticker-name { max-width: 180px; font-size: 11px; }
  .ticker-value { font-size: 12px; }
  .ticker-change { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-group { animation: none; }
  .reveal { opacity: 1; }
  .reveal.in { animation: none; }
  .nav-glider { transition: none; }
  .card-3d { transition: none; }
}

@media print {
  body { background: #fff; }
  .topbar, .toast { display: none; }
  .card, .kpi, .matrix { break-inside: avoid; }
}

/* ================= 长屏章节 ================= */
.view-loading { padding: 64px 0; color: var(--ink4); font-size: 12.5px; letter-spacing: .04em; }

/* 总览：板块入口卡（只放客观指标） */
.ov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 8px; }
.ov-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  font-family: var(--sans); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.ov-card:hover { border-color: var(--line2); box-shadow: var(--shadow); transform: translateY(-2px); }
.ov-top { display: flex; align-items: center; justify-content: space-between; }
.ov-no { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--brand); }
.ov-count { font-family: var(--mono); font-size: 10.5px; color: var(--ink4); }
.ov-card > b { font-size: 14px; font-weight: 600; color: var(--ink); }
.ov-card > em { font-style: normal; font-size: 11.5px; line-height: 1.6; color: var(--ink3); }
.ov-metrics { display: grid; gap: 5px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.ov-metrics span { display: flex; align-items: baseline; gap: 6px; font-size: 11px; color: var(--ink3); }
.ov-metrics b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.ov-metrics i { font-style: normal; font-size: 10.5px; color: var(--ink4); }

/* 启动遮罩：数据没读到时给出明确原因 */
#boot { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: var(--bg1); }
#boot[hidden] { display: none; }
.boot-box { display: flex; flex-direction: column; gap: 8px; max-width: 560px; padding: 24px; text-align: center; color: var(--ink2); font-size: 13px; line-height: 1.7; }
.boot-box b { font-size: 15px; color: var(--ink); }
.boot-box code { padding: 1px 5px; border-radius: 4px; background: var(--panel2); font-family: var(--mono); }
.boot-error { border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow-lg); }

@media (max-width: 1000px) { .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ov-grid { grid-template-columns: 1fr; } }

/* 新闻列表：自动加载骨架屏 + 入场动效 */
@keyframes news-shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } }
.news-skel { display: flex; flex-direction: column; gap: 7px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-skel-img, .news-skel-line { height: 11px; border-radius: 4px; background: linear-gradient(90deg, var(--panel2) 25%, color-mix(in srgb, var(--ink) 7%, var(--panel2)) 50%, var(--panel2) 75%); background-size: 200px 100%; animation: news-shimmer 1.2s linear infinite; }
.news-skel-img { width: 74px; height: 52px; }
.news-skel-line.short { width: 45%; }
.news-item { animation: news-in .45s cubic-bezier(.22, 1, .36, 1) both; }
.news-item:nth-child(1) { animation-delay: .02s; }
.news-item:nth-child(2) { animation-delay: .07s; }
.news-item:nth-child(3) { animation-delay: .12s; }
.news-item:nth-child(4) { animation-delay: .17s; }
.news-item:nth-child(n+5) { animation-delay: .22s; }
@keyframes news-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.news-day { animation: news-in .4s cubic-bezier(.22, 1, .36, 1) both; }
/* 刷新按钮：图标旋转 */
.news-refresh { display: inline-flex; align-items: center; gap: 5px; }
.news-ico { display: inline-block; font-size: 12px; line-height: 1; transition: transform .3s ease; }
.news-refresh:not(:disabled):hover .news-ico { transform: rotate(180deg); }
.news-refresh.loading .news-ico { animation: news-spin .8s linear infinite; }
@keyframes news-spin { to { transform: rotate(360deg); } }
