/* =========================================================
   Far · Gold Intelligence — design system
   Vault ink + refined gold. Serif for the price, mono for data.
   ========================================================= */
:root {
  --vault: #0B0D0C;
  --panel: #111412;
  --panel-2: #161A17;
  --raise: #1C211D;
  --line: #242A25;
  --grid: rgba(236, 229, 211, 0.055);
  --text: #ECE5D3;
  --muted: #9A968A;
  --dim: #66665E;
  --gold: #E2B65E;
  --gold-hi: #F3D598;
  --gold-lo: #8C6A2A;
  --up: #4DB58B;
  --down: #E2634E;
  --c2: #7FA7D9;   /* New York / 次序列 */
  --c3: #C98BD1;   /* Shanghai / 第三序列 */
  --c4: #8FC7B8;
  --c5: #D9A07F;

  --f-display: 'Instrument Serif', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --f-body: 'Geist', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --f-mono: 'Geist Mono', 'SF Mono', ui-monospace, Menlo, monospace;

  --r: 6px;
  --gap: 14px;
  --maxw: 1520px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--vault); color: var(--text); }
body {
  font: 400 14px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 78% -180px, rgba(226, 182, 94, 0.07), transparent 70%),
    var(--vault);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "zero" 0; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
.muted { color: var(--muted); } .dim { color: var(--dim); } .gold { color: var(--gold); }

/* ---------------- 顶栏 ---------------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  height: 58px; padding: 0 24px;
  background: rgba(11, 13, 12, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand svg { width: 26px; height: 26px; }
.brand b { font: 400 30px/1 var(--f-display); letter-spacing: -0.01em; color: var(--text); }
.brand em { font: 500 9.5px/1.15 var(--f-mono); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative; padding: 8px 13px; border-radius: 5px; white-space: nowrap;
  font-size: 13.5px; color: var(--muted); transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.on { color: var(--text); }
.nav a.on::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: -12px; height: 2px; background: var(--gold); }
.top-right { display: flex; align-items: center; gap: 14px; flex: none; font-size: 12px; }
.live { display: inline-flex; align-items: center; gap: 7px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .12em; color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.live.on i { background: var(--up); box-shadow: 0 0 0 0 rgba(77,181,139,.6); animation: pulse 2s infinite; }
.live.on { color: var(--up); }
.live.stale i { background: var(--gold); } .live.stale { color: var(--gold); }
.live.off i { background: var(--down); } .live.off { color: var(--down); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(77,181,139,.55); } 70% { box-shadow: 0 0 0 7px rgba(77,181,139,0); } 100% { box-shadow: 0 0 0 0 rgba(77,181,139,0); } }
.clock { color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 5px 10px; font: 500 11.5px/1 var(--f-mono); color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--raise); color: var(--gold); }
.seg button:hover:not(.on) { color: var(--text); }

/* ---------------- 滚动行情带 ---------------- */
.tape { height: 36px; border-bottom: 1px solid var(--line); overflow: hidden; position: relative; background: #0D100E; }
.tape::before, .tape::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.tape::before { left: 0; background: linear-gradient(90deg, #0D100E, transparent); }
.tape::after { right: 0; background: linear-gradient(-90deg, #0D100E, transparent); }
.tape-track { display: flex; width: max-content; animation: tape 70s linear infinite; height: 100%; }
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
.tk { display: flex; align-items: center; gap: 9px; padding: 0 22px; height: 100%; border-right: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.tk b { font: 600 11px/1 var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.tk .p { font-family: var(--f-mono); color: var(--text); }
.tk .c { font-family: var(--f-mono); font-size: 11.5px; }

/* ---------------- 主体 ---------------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 22px 24px 40px; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 6px 0 18px; flex-wrap: wrap; }
.view-head h1 { font: 400 40px/1 var(--f-display); margin: 0; letter-spacing: -0.01em; }
.view-head h1 small { display: block; font: 500 10.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.view-head p { margin: 8px 0 0; color: var(--muted); max-width: 640px; font-size: 13.5px; }

.grid { display: grid; gap: var(--gap); }
.g-hero { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); }
.g-main { grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-term { grid-template-columns: minmax(0, 1fr) 300px; }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.mt { margin-top: var(--gap); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; position: relative; }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); min-height: 48px; flex-wrap: wrap; }
.ph h3 { margin: 0; font: 600 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.ph h3 span { color: var(--dim); font-weight: 500; letter-spacing: .06em; margin-left: 8px; text-transform: none; font-family: var(--f-body); font-size: 12px; }
.ph .meta { font: 400 11px/1 var(--f-mono); color: var(--dim); }
.pb { padding: 16px; }
.pfoot { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim); }

/* ---------------- Hero ---------------- */
.hero { padding: 26px 28px 0; overflow: hidden; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.hero-eyebrow .pill { border: 1px solid var(--gold-lo); color: var(--gold); padding: 4px 7px; border-radius: 3px; letter-spacing: .1em; }
.hero-price { display: flex; align-items: baseline; gap: 18px; margin: 18px 0 6px; flex-wrap: wrap; }
.hero-price .big {
  font: 400 clamp(64px, 8.6vw, 118px)/0.9 var(--f-display); letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, #B98C3C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: filter .5s;
}
.hero-price .big.flash-up { filter: drop-shadow(0 0 18px rgba(77,181,139,.45)); }
.hero-price .big.flash-down { filter: drop-shadow(0 0 18px rgba(226,99,78,.45)); }
.hero-price .cur { font: 500 13px/1 var(--f-mono); color: var(--muted); letter-spacing: .08em; }
.hero-chg { display: flex; gap: 16px; align-items: center; font: 500 17px/1 var(--f-mono); flex-wrap: wrap; }
.hero-chg .tag { font: 500 10.5px/1 var(--f-mono); color: var(--dim); letter-spacing: .06em; }
.hero-alt { display: flex; gap: 22px; margin-top: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.hero-alt b { font: 500 14px/1 var(--f-mono); color: var(--text); margin-right: 4px; }
.hero-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 24px -28px 0; border-top: 1px solid var(--line); }
.hs { padding: 14px 14px 16px; border-right: 1px solid var(--line); min-width: 0; }
.hs:last-child { border-right: 0; }
.hs label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs .v { font: 500 14px/1.15 var(--f-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs .s { font: 400 11px/1.3 var(--f-mono); color: var(--dim); margin-top: 4px; white-space: nowrap; }
.rangebar { position: relative; height: 3px; background: var(--raise); border-radius: 2px; margin: 9px 0 5px; }
.rangebar i { position: absolute; top: -4px; width: 2px; height: 11px; background: var(--gold); border-radius: 1px; }
.rangebar span { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); border-radius: 2px; opacity: .55; }

/* ---------------- 交易时段表盘（签名元素） ---------------- */
.dial-wrap { display: grid; grid-template-columns: 210px 1fr; gap: 18px; align-items: center; padding: 18px 18px 18px 14px; }
.dial { width: 210px; height: 210px; }
.dial text { font-family: var(--f-mono); }
.sess { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sess-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: start; }
.sess-row .dot { width: 8px; height: 8px; border-radius: 2px; margin-top: 5px; }
.sess-row .n { font-size: 13px; font-weight: 500; }
.sess-row .n small { display: block; font: 400 11px/1.4 var(--f-mono); color: var(--dim); margin-top: 2px; }
.sess-row .st { font: 600 10px/1 var(--f-mono); letter-spacing: .1em; padding: 4px 6px; border-radius: 3px; border: 1px solid var(--line); color: var(--dim); white-space: nowrap; }
.sess-row .st.open { color: var(--up); border-color: rgba(77,181,139,.35); background: rgba(77,181,139,.07); }
.nextfix { margin-top: 2px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.nextfix b { color: var(--gold); font-family: var(--f-mono); font-weight: 500; }

/* ---------------- 图表容器 ---------------- */
.farchart { position: relative; width: 100%; user-select: none; touch-action: pan-y; }
.farchart canvas { display: block; cursor: crosshair; }
.farchart canvas.grabbing { cursor: grabbing; }
.chart-sm { height: 340px; }
.panel.flexcol { display: flex; flex-direction: column; }
.panel.flexcol .chart-sm { flex: 1; min-height: 340px; }
.chart-md { height: 300px; }
.chart-lg { height: max(540px, calc(100vh - 290px)); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 16px 0; font: 400 11.5px/1.4 var(--f-mono); color: var(--muted); min-height: 30px; }
.legend b { font-weight: 500; color: var(--text); }
.legend .sw { display: inline-block; width: 10px; height: 2px; vertical-align: middle; margin-right: 6px; }

/* ---------------- 控件 ---------------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip { background: none; border: 1px solid var(--line); border-radius: 4px; padding: 5px 9px; font: 500 11.5px/1 var(--f-mono); color: var(--muted); cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--text); border-color: #3a413b; }
.chip.on { color: var(--vault); background: var(--gold); border-color: var(--gold); }
.chip.ind.on { background: transparent; color: var(--text); border-color: currentColor; }
.chip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.sep { width: 1px; height: 20px; background: var(--line); }
select, input[type=number], input[type=text] {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 4px;
  padding: 8px 10px; font: 500 13px/1.2 var(--f-mono); min-width: 0; width: 100%;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
select.inline { width: auto; padding: 5px 26px 5px 9px; font-size: 12px; }
input:focus, select:focus { border-color: var(--gold-lo); outline: none; }
.field label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }

/* ---------------- 表格 ---------------- */
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: right; font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th:first-child, table.t td:first-child { text-align: left; }
table.t td { text-align: right; padding: 10px 14px; border-bottom: 1px solid var(--line-soft, #1A1E1B); font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t td:first-child { font-family: var(--f-body); }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: rgba(236,229,211,.025); }
table.t .an { display: flex; flex-direction: column; }
table.t .an small { color: var(--dim); font-size: 11px; font-family: var(--f-mono); }
.tbl-scroll { overflow-x: auto; }
canvas.spark { width: 96px; height: 26px; display: block; margin-left: auto; }
.sig { display: inline-block; font: 600 10.5px/1 var(--f-mono); letter-spacing: .06em; padding: 4px 7px; border-radius: 3px; min-width: 52px; text-align: center; }
.sig.up { background: rgba(77,181,139,.11); }
.sig.down { background: rgba(226,99,78,.11); }
.sig.flat { background: rgba(154,150,138,.1); }

/* ---------------- 评级仪表 ---------------- */
.gauge { display: flex; flex-direction: column; align-items: center; padding: 6px 0 2px; }
.gauge svg { width: 100%; max-width: 240px; overflow: visible; }
.gauge .gl { font: 400 26px/1 var(--f-display); margin-top: -4px; }
.gauge .gs { font: 400 11px/1 var(--f-mono); color: var(--dim); margin-top: 8px; }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-top: 14px; border-top: 1px solid var(--line); }
.tally div { padding: 10px 0 2px; }
.tally div + div { border-left: 1px solid var(--line); }
.tally label { display: block; font-size: 11px; color: var(--muted); }
.tally b { font: 500 18px/1.4 var(--f-mono); }

/* ---------------- 情绪 ---------------- */
.sent-big { display: flex; align-items: baseline; gap: 14px; }
.sent-big .n { font: 400 96px/0.9 var(--f-display); color: var(--gold); }
.sent-big .z { font: 400 30px/1 var(--f-display); }
.sent-scale { display: grid; grid-template-columns: 25fr 20fr 10fr 20fr 25fr; height: 8px; border-radius: 4px; overflow: hidden; margin: 22px 0 6px; position: relative; }
.sent-scale span:nth-child(1) { background: #8E3B2E; } .sent-scale span:nth-child(2) { background: #B5634C; }
.sent-scale span:nth-child(3) { background: #5E5D55; } .sent-scale span:nth-child(4) { background: #3E8C6B; } .sent-scale span:nth-child(5) { background: #2E6E54; }
.sent-scale-wrap { position: relative; }
.sent-marker { position: absolute; top: 14px; width: 2px; height: 22px; background: var(--text); transform: translateX(-1px); }
.sent-marker::after { content: ''; position: absolute; top: -5px; left: -4px; border: 5px solid transparent; border-top-color: var(--text); }
.sent-ticks { display: flex; justify-content: space-between; font: 400 10.5px/1 var(--f-mono); color: var(--dim); }
.hist-cmp { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 18px; }
.hist-cmp div { padding: 12px 0 0; }
.hist-cmp div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.hist-cmp label { font-size: 11.5px; color: var(--muted); display: block; }
.hist-cmp b { font: 500 20px/1.3 var(--f-mono); }
.hist-cmp small { display: block; font-size: 11px; }
.factor { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) 54px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #1A1E1B; }
.factor:last-child { border-bottom: 0; }
.factor .fn { font-size: 13px; font-weight: 500; }
.factor .fn small { display: block; color: var(--dim); font-size: 11.5px; font-weight: 400; margin-top: 2px; }
.fbar { height: 6px; background: var(--raise); border-radius: 3px; position: relative; }
.fbar::before { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--dim); }
.fbar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.factor .fs { font: 500 15px/1 var(--f-mono); text-align: right; }
.factor .fr { font: 400 11px/1 var(--f-mono); color: var(--dim); margin-top: 6px; }

/* ---------------- 热力图 ---------------- */
.heat { display: grid; gap: 2px; font: 500 11.5px/1 var(--f-mono); }
.heat .hc { padding: 9px 4px; text-align: center; border-radius: 2px; font-variant-numeric: tabular-nums; }
.heat .hh { color: var(--dim); font-size: 10.5px; letter-spacing: .06em; text-align: center; padding: 6px 2px; }
.heat .hl { color: var(--muted); text-align: left; padding: 9px 6px 9px 0; }
.heat .avg { border-top: 1px solid var(--line); }

/* ---------------- 价格阶梯 ---------------- */
.ladder { position: relative; height: 380px; margin: 8px 8px 8px 0; }
.lv { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 10px; transform: translateY(-50%); font: 500 12px/1 var(--f-mono); }
.lv .lk { width: 30px; color: var(--muted); }
.lv .ll { flex: 1; height: 1px; background: currentColor; opacity: .35; }
.lv.r { color: var(--down); } .lv.s { color: var(--up); } .lv.p { color: var(--gold); }
.lv .lp { color: var(--text); min-width: 76px; text-align: right; }
.lv.now { color: var(--text); z-index: 2; background: var(--panel); padding: 4px 0; }
.lv.now .ll { opacity: 1; height: 2px; background: var(--text); }
.lv.now .lp { background: var(--text); color: var(--vault); padding: 4px 6px; border-radius: 3px; }

/* ---------------- KPI 小块 ---------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.kpi b { font: 500 18px/1.2 var(--f-mono); }
.kpi small { display: block; font: 400 11px/1.4 var(--f-mono); color: var(--dim); margin-top: 3px; }

/* ---------------- 报价侧栏 ---------------- */
.qrows { padding: 4px 16px 10px; }
.qr { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #1A1E1B; font-size: 12.5px; }
.qr:last-child { border-bottom: 0; }
.qr span { color: var(--muted); }
.qr b { font: 500 12.5px/1.3 var(--f-mono); }
.qprice { padding: 16px 16px 4px; }
.qprice .p { font: 400 44px/1 var(--f-display); }
.qprice .c { font: 500 13px/1 var(--f-mono); margin-top: 8px; }

/* ---------------- 换算器 ---------------- */
.conv-out { padding: 22px 20px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(226,182,94,.05), transparent); }
.conv-out .lab { font-size: 12px; color: var(--muted); }
.conv-out .res { font: 400 54px/1.05 var(--f-display); color: var(--gold); margin: 6px 0 4px; word-break: break-all; }
.conv-out .sub { font: 400 12px/1.5 var(--f-mono); color: var(--dim); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 16px; }
.fgrid .full { grid-column: 1 / -1; }

/* ---------------- 页脚 ---------------- */
footer { border-top: 1px solid var(--line); margin-top: 20px; }
.foot { max-width: var(--maxw); margin: 0 auto; padding: 26px 24px 34px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 30px; font-size: 12px; color: var(--dim); }
.foot .brand b { font-size: 26px; }
.foot p { margin: 10px 0 0; line-height: 1.6; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; }
.foot li b { color: var(--muted); font-weight: 500; }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--raise); border: 1px solid var(--line); padding: 10px 16px; border-radius: 5px; font-size: 13px; opacity: 0; transition: all .25s; pointer-events: none; z-index: 50; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 入场 */
.reveal { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.reveal:nth-child(2) { animation-delay: .05s; } .reveal:nth-child(3) { animation-delay: .1s; } .reveal:nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  .g-hero, .g-main, .g-term { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hs:nth-child(3) { border-right: 0; }
  .hs:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .g-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .top { gap: 12px; padding: 0 14px; flex-wrap: wrap; height: auto; padding-top: 10px; }
  .brand em, .clock { display: none; }
  .nav { order: 3; flex-basis: 100%; padding-bottom: 6px; }
  .nav a.on::after { bottom: 0; }
  .top-right { margin-left: auto; }
  main { padding: 16px 12px 30px; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .hero { padding: 20px 18px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin: 20px -18px 0; }
  .hs { border-bottom: 1px solid var(--line); }
  .hs:nth-child(3) { border-right: 1px solid var(--line); }
  .hs:nth-child(2n) { border-right: 0; }
  .dial-wrap { grid-template-columns: 1fr; justify-items: center; }
  .sess { width: 100%; }
  .view-head h1 { font-size: 32px; }
  .chart-lg { height: 460px; }
  .factor { grid-template-columns: 1fr 70px; }
  .factor .fbar { grid-column: 1 / -1; grid-row: 2; }
  .hist-cmp { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .hist-cmp div:nth-child(3) { padding-left: 0; border-left: 0; }
  .foot { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
}

/* =========================================================
   v2 · 视觉与交互增强
   ========================================================= */
/* 页面切换：各区块依次浮入 */
#view.enter > * { animation: rise .42s cubic-bezier(.2,.7,.2,1) both; }
#view.enter > *:nth-child(2) { animation-delay: .04s; } #view.enter > *:nth-child(3) { animation-delay: .08s; }
#view.enter > *:nth-child(4) { animation-delay: .12s; } #view.enter > *:nth-child(5) { animation-delay: .16s; } #view.enter > *:nth-child(6) { animation-delay: .2s; }

/* 面板：金属内高光 + 可点击卡片悬停 */
.panel { box-shadow: inset 0 1px 0 rgba(236,229,211,.035); transition: border-color .2s, box-shadow .2s, transform .2s; }
a.panel:hover { border-color: #3a4038; box-shadow: inset 0 1px 0 rgba(236,229,211,.05), 0 12px 30px -18px rgba(0,0,0,.85); transform: translateY(-1px); }
a.panel .ph .meta { transition: transform .2s, color .2s; }
a.panel:hover .ph .meta { transform: translateX(3px); color: var(--gold); }
.hero { background: radial-gradient(720px 280px at 16% 32%, rgba(226,182,94,.08), transparent 70%), var(--panel); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(226,182,94,.6), transparent); }

/* 价格逐位滚动（只动变化的数字） */
.hero-price .big { cursor: copy; }
.hero-price .big .dg { display: inline-block; background: inherit; -webkit-background-clip: text; background-clip: text; }
.roll-up { animation: rollUp .5s cubic-bezier(.2,.8,.2,1); }
.roll-down { animation: rollDown .5s cubic-bezier(.2,.8,.2,1); }
@keyframes rollUp { from { transform: translateY(.32em); opacity: 0; } }
@keyframes rollDown { from { transform: translateY(-.32em); opacity: 0; } }

/* 仪表指针 / 因子条 / 情绪标记入场 */
.gauge .needle { animation: needle 1s cubic-bezier(.3,1.35,.5,1) both .1s; }
@keyframes needle { from { transform: rotate(var(--from)); } }
.fbar i { animation: grow .8s cubic-bezier(.2,.7,.2,1) both .15s; }
@keyframes grow { from { transform: scaleX(0); } }
.sent-marker { animation: slideIn .9s cubic-bezier(.2,.7,.2,1) both .1s; }
@keyframes slideIn { from { left: 50%; opacity: 0; } }

/* 图表：最新点呼吸光点、键盘聚焦态 */
.farchart .lastdot { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; display: none; }
.farchart .lastdot::before, .farchart .lastdot::after { content: ''; position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.farchart .lastdot::after { animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(3.2); opacity: 0; } }
.farchart canvas:focus-visible { outline: 1px solid var(--gold-lo); outline-offset: -1px; border-radius: 0; }

/* 控件手感 */
.chip, .seg button, .nav a { transition: color .15s, background .15s, border-color .15s, transform .1s; }
.chip:active, .seg button:active { transform: scale(.96); }
.chip svg { vertical-align: -1px; margin-right: 5px; }
.nav a.on::after { animation: navbar .3s cubic-bezier(.2,.7,.2,1); }
@keyframes navbar { from { transform: scaleX(.2); opacity: 0; } }
table.t th.sortable { cursor: pointer; user-select: none; }
table.t th.sortable:hover { color: var(--muted); }
table.t th.sortable::after { content: '↕'; opacity: 0; margin-left: 4px; font-size: 9px; }
table.t th.sortable:hover::after { opacity: .5; }
table.t th[data-dir=desc]::after { content: '↓'; opacity: 1; color: var(--gold); }
table.t th[data-dir=asc]::after { content: '↑'; opacity: 1; color: var(--gold); }
table.t tbody tr td { transition: background .12s; }
table.t tbody tr:hover td { background: rgba(226,182,94,.035); }
.heat .hc { transition: transform .12s, box-shadow .12s; }
.heat .hc:hover { transform: scale(1.08); box-shadow: 0 0 0 1px var(--text); position: relative; z-index: 1; }
::selection { background: rgba(226,182,94,.35); color: var(--text); }
* { scrollbar-width: thin; scrollbar-color: #2a302b transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; } ::-webkit-scrollbar-thumb { background: #2a302b; border-radius: 5px; border: 2px solid var(--vault); }

/* 全屏终端 */
.panel:fullscreen { border-radius: 0; display: flex; flex-direction: column; background: var(--panel); }
.panel:fullscreen .chart-lg { flex: 1; height: auto; }

/* 搜索按钮 + 命令面板 */
.palbtn { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 7px 0 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; color: var(--muted); cursor: pointer; font-size: 12px; transition: border-color .15s, color .15s; }
.palbtn:hover { color: var(--text); border-color: #3a413b; }
kbd { font: 500 10px/1 var(--f-mono); color: var(--muted); background: var(--raise); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; padding: 3px 5px; white-space: nowrap; }
.pal-mask { position: fixed; inset: 0; z-index: 60; background: rgba(5,6,5,.62); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 14vh 16px 0; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.pal { width: 100%; max-width: 580px; background: var(--panel); border: 1px solid #343a33; border-radius: 9px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(236,229,211,.05); overflow: hidden; animation: pop .18s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { transform: translateY(-6px) scale(.985); opacity: 0; } }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-in input, .pal-in input:focus { flex: 1; background: none; border: 0; padding: 16px 0; font: 400 15px/1 var(--f-body); color: var(--text); }
.pal-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.pal-g { font: 600 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 12px 10px 6px; }
.pal-i { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 5px; cursor: pointer; font-size: 13.5px; color: var(--muted); }
.pal-i.on { background: var(--raise); color: var(--text); box-shadow: inset 2px 0 0 var(--gold); }
.pal-empty { padding: 26px 12px; text-align: center; color: var(--dim); font-size: 13px; }
.pal-foot { display: flex; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--dim); }
.pal-foot kbd { margin-right: 3px; }
@media (max-width: 760px) { .palbtn .lbl, .palbtn kbd { display: none; } .palbtn { padding: 0 9px; } }

/* =========================================================
   v3 · 首页 3D 黄金时钟
   ========================================================= */
.clock-stage { position: relative; height: min(84vh, 820px); min-height: 440px; margin: -22px -24px 10px; opacity: 0; transition: opacity 1.2s ease; scroll-margin-top: 94px; }
.clock-stage.ready { opacity: 1; }
.clock-stage.nogl { display: none; }
.clock-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: pan-y; }
.clock-stage canvas:active { cursor: grabbing; }
.clock-cue { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(11,13,12,.5); cursor: pointer; display: grid; place-items: center; transition: border-color .2s; }
.clock-cue:hover { border-color: var(--gold-lo); }
.clock-cue span { width: 8px; height: 8px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-2px) rotate(45deg); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(2px) rotate(45deg); } }
@media (max-width: 760px) { .clock-stage { margin: -16px -12px 8px; height: 72vh; min-height: 360px; } }

