/* WickHunt — 浅色、细线分组、等宽数字。颜色只给有含义的东西用。 */

:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --paper: #ffffff;
  --sunk: #f0eee8;
  --line: #e6e3db;
  --line-2: #d9d5cb;
  --ink: #16150f;
  --ink-2: #57544b;
  --ink-3: #8f8b80;
  --ink-4: #b6b2a7;
  --brand: #e8590c;

  --up: #0d8a57;
  --down: #d03b2f;
  --up-tint: rgba(13, 138, 87, 0.09);
  --down-tint: rgba(208, 59, 47, 0.08);
  --amber: #b97700;
  --amber-tint: rgba(201, 133, 0, 0.1);
  --blue: #2a66d0;
  --blue-tint: rgba(42, 102, 208, 0.08);

  /* 风险等级：正常 / 关注 / 警惕 / 危险 */
  --lv0: #b9c9bf;
  --lv1: #d9b44a;
  --lv2: #e0803a;
  --lv3: #d03b2f;

  /* 图表 */
  --grid: #efede7;
  --s1: #2a66d0;
  --s2: #e0692b;
  --s3: #16a07a;
  --seq-1: #c9dbf6;
  --seq-2: #86ade9;
  --seq-3: #3f7bd8;
  --seq-4: #1c4e9e;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, 'PingFang SC', monospace;
  --r: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 13.5px/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
dl, dd, ol, ul, p, h2, h3 { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(232, 89, 12, 0.18); }

.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.muted { color: var(--ink-3); font-weight: 400; }
.small { font-size: 12px; }
.up { color: var(--up); }
.down { color: var(--down); }
.amber { color: var(--amber); }
small.u { font-size: 0.78em; color: var(--ink-3); margin-left: 1px; font-weight: 400; }

.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 顶栏 ---------- */
.conn {
  position: fixed; inset: 0 0 auto; z-index: 60; text-align: center; font-size: 12px; padding: 5px;
  background: var(--amber-tint); color: var(--amber); backdrop-filter: blur(8px);
}
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  height: 60px; padding: 0 28px;
  background: rgba(246, 245, 241, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 650; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
.pair { display: flex; flex-direction: column; gap: 1px; padding-left: 28px; border-left: 1px solid var(--line); }
.pair-name { font-size: 14px; }
.pair-name b { font-weight: 650; }
.pair-name span { color: var(--ink-3); font-size: 12px; margin-left: 2px; }
.ca { display: inline-flex; align-items: center; gap: 4px; font: 11px var(--mono); color: var(--ink-3); transition: color 0.15s ease; }
.ca .ic { width: 12px; height: 12px; }
.ca.done { color: var(--up); }
.quote { display: flex; align-items: baseline; gap: 10px; min-width: 170px; }
.px { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; transition: color 0.6s ease; }
.px.tick-up { color: var(--up); transition: none; }
.px.tick-down { color: var(--down); transition: none; }
.chg { font-size: 13px; font-weight: 500; }
.hstats { display: flex; gap: 22px; }
.hstats div { display: flex; flex-direction: column; }
.hstats dt { font-size: 11px; color: var(--ink-3); }
.hstats dd { font-size: 12.5px; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 6px; position: relative; }

.btn {
  height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background-color 0.15s ease, transform 0.16s var(--ease-out), border-color 0.15s ease;
}
.btn:active, .icon-btn:active, .status:active { transform: scale(0.97); }
.btn.ghost { border: 1px solid var(--line-2); background: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); transition: background-color 0.15s ease, transform 0.16s var(--ease-out); }
.icon-btn .mute { opacity: 0; transition: opacity 0.15s ease; }
.icon-btn.off { color: var(--ink-4); }
.icon-btn.off .mute { opacity: 1; }
.status {
  height: 32px; padding: 0 11px; border-radius: 8px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--paper);
  transition: transform 0.16s var(--ease-out), border-color 0.15s ease;
}
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); position: relative; }
.live.ok { background: var(--up); }
.live.ok::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: var(--up); opacity: 0.25; animation: breathe 2.4s ease-in-out infinite; }
.live.warn { background: var(--amber); }
.live.bad { background: var(--down); }
@keyframes breathe { 0%, 100% { opacity: 0; } 50% { opacity: 0.3; } }

@media (hover: hover) and (pointer: fine) {
  .btn.ghost:hover, .status:hover { border-color: var(--ink-4); }
  .btn.primary:hover { background: #2a2820; }
  .icon-btn:hover { background: var(--sunk); }
  .ca:hover { color: var(--ink); }
  .tbl tbody tr:hover td { background: #faf9f6; }
}

/* 弹出层：从触发点展开 */
.pop {
  position: absolute; top: 40px; left: 0; z-index: 40; width: 300px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(22, 21, 15, 0.04), 0 12px 32px rgba(22, 21, 15, 0.1);
  padding: 8px; transform-origin: 40px top;
  opacity: 0; transform: scale(0.97) translateY(-4px); pointer-events: none;
  transition: opacity 0.15s ease, transform 0.18s var(--ease-out);
}
.pop.open { opacity: 1; transform: none; pointer-events: auto; }
.pop .src { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 12.5px; }
.pop .src i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.pop .src i.warn { background: var(--amber); }
.pop .src i.bad { background: var(--down); }
.pop .src em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.pop .src .err { grid-column: 2 / -1; font-size: 11px; color: var(--down); margin-top: -2px; }

/* ---------- 页面骨架 ---------- */
.page { max-width: 1680px; margin: 0 auto; padding: 22px 28px 40px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; }
.eyebrow .idx { font: 500 10.5px var(--mono); color: var(--ink-4); }
.mod-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 30px; }
.mod-tools { display: flex; align-items: center; gap: 14px; }
.h3 { font-size: 12.5px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.h3 .muted { font-weight: 400; margin-left: 4px; }
.h3-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.h3-row .h3 { margin: 0; }
.note { font-size: 12px; color: var(--ink-3); margin-top: 12px; line-height: 1.6; }

/* ---------- 01-03 判定 ---------- */
.verdict {
  display: grid; grid-template-columns: 1fr 1.15fr 0.95fr;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
}
.verdict > div { padding: 20px 24px 22px; min-width: 0; }
.verdict > div + div { border-left: 1px solid var(--line); }
.phase-name {
  font-size: 30px; font-weight: 650; letter-spacing: -0.02em; margin: 10px 0 2px; line-height: 1.15;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.phase-name.swap { opacity: 0.2; filter: blur(3px); }
.phase-name[data-k='ACCUM'] { color: var(--blue); }
.phase-name[data-k='MARKUP'] { color: var(--up); }
.phase-name[data-k='DISTRIB'] { color: var(--amber); }
.phase-name[data-k='DUMP'] { color: var(--down); }
.phase-sub { font-size: 12.5px; color: var(--ink-3); }
.meter { display: grid; gap: 7px; margin: 16px 0 14px; }
.meter .row { display: grid; grid-template-columns: 64px 1fr 26px; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-2); }
.meter .track { position: relative; height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.meter .fill { position: absolute; inset: 0; transform-origin: left; border-radius: 3px; transition: transform 0.5s var(--ease-out); }
.meter .th { position: absolute; top: -3px; bottom: -3px; left: 45%; width: 1px; background: var(--ink-4); }
.meter b { font: 500 12px var(--mono); text-align: right; color: var(--ink); }
.meter .row.top { color: var(--ink); font-weight: 600; }
.evidence { display: grid; gap: 6px; counter-reset: ev; }
.evidence li { position: relative; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; counter-increment: ev; }
.evidence li::before { content: counter(ev); position: absolute; left: 0; top: 1px; font: 500 10px var(--mono); color: var(--ink-4); }
.evidence .w { font: 11px var(--mono); color: var(--ink-4); margin-left: 4px; }

.score { margin-left: auto; font-size: 13px; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: var(--sunk); color: var(--ink); }
.score.s3 { background: var(--down-tint); color: var(--down); }
.score.s2 { background: rgba(224, 128, 58, 0.12); color: #b9581a; }
.score.s1 { background: var(--amber-tint); color: var(--amber); }
.risk-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; margin-top: 12px; }
.risk-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 34px; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); cursor: default; }
.risk-item:nth-last-child(-n + 2) { border-bottom: 0; }
.risk-item .k { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.risk-item .v { font: 500 13px var(--mono); text-align: right; }
.risk-item .lv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; align-items: end; height: 12px; }
.risk-item .lv i { border-radius: 1px; background: var(--sunk); transition: background-color 0.3s ease; }
.risk-item .lv i:nth-child(1) { height: 4px; } .risk-item .lv i:nth-child(2) { height: 7px; } .risk-item .lv i:nth-child(3) { height: 10px; } .risk-item .lv i:nth-child(4) { height: 12px; }
.risk-item[data-lv='0'] .lv i:nth-child(-n + 1) { background: var(--lv0); }
.risk-item[data-lv='1'] .lv i:nth-child(-n + 2) { background: var(--lv1); }
.risk-item[data-lv='2'] .lv i:nth-child(-n + 3) { background: var(--lv2); }
.risk-item[data-lv='3'] .lv i { background: var(--lv3); }
.risk-item[data-lv='3'] .v { color: var(--down); }

.omen-count { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.omen-count.hot { color: var(--down); }
.omen-note { font-size: 12px; color: var(--ink-3); margin: 6px 0 12px; }
.omen li { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-2); }
.omen li:last-child { border-bottom: 0; }
.omen li b { font: 500 12.5px var(--mono); color: var(--ink); }
.omen .dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-4); transition: background-color 0.3s ease, border-color 0.3s ease; }
.omen li.on .dot { background: var(--down); border-color: var(--down); box-shadow: 0 0 0 3px var(--down-tint); }
.omen li.on { color: var(--ink); }
.omen li.on b { color: var(--down); }

/* 拉盘启动 */
.v-launch { position: relative; }
.v-launch::before { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background-color 0.3s ease; }
.v-launch[data-stage='setup']::before { background: var(--lv1); }
.v-launch[data-stage='ignite']::before, .v-launch[data-stage='confirm']::before { background: var(--up); }
.v-launch[data-stage='failed']::before { background: var(--down); }
.stage-badge { margin-left: auto; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 6px; background: var(--sunk); color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; transition: background-color 0.2s ease, color 0.2s ease; }
.stage-badge[data-s='setup'] { background: var(--amber-tint); color: var(--amber); }
.stage-badge[data-s='ignite'], .stage-badge[data-s='confirm'] { background: var(--up-tint); color: var(--up); }
.stage-badge[data-s='failed'] { background: var(--down-tint); color: var(--down); }
.stage-badge[data-s='ignite']::before, .stage-badge[data-s='confirm']::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.stage-badge[data-s='ignite']::before { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.stage-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 14px 0 4px; }
.stage-track i { height: 5px; border-radius: 3px; background: var(--sunk); transition: background-color 0.3s ease; }
.stage-track i.on[data-s='setup'] { background: var(--lv1); }
.stage-track i.on[data-s='ignite'], .stage-track i.on[data-s='confirm'] { background: var(--up); }
.stage-track.failed i.on { background: var(--down); }
.stage-labels { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 11px; color: var(--ink-3); }
.launch-sub { font-size: 12.5px; color: var(--ink-2); margin: 10px 0 8px; line-height: 1.55; min-height: 20px; }
.launch-groups { display: grid; gap: 8px; }
.lg-h { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin: 4px 0 1px; }
.lg-h b { font: 500 11px var(--mono); color: var(--ink-3); }
.lg-h b.full { color: var(--up); }
.lg-row { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; color: var(--ink-3); cursor: default; }
.lg-row .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-4); transition: background-color 0.25s ease, border-color 0.25s ease; }
.lg-row.on { color: var(--ink); }
.lg-row.on .dot { background: var(--up); border-color: var(--up); }
.lg-row.on.setup .dot { background: var(--lv1); border-color: var(--lv1); }
.lg-row b { font: 400 12px var(--mono); color: var(--ink-3); text-align: right; }
.lg-row.on b { color: var(--ink); }
.lg-row em { font-style: normal; font-size: 10.5px; color: var(--ink-4); margin-left: 4px; }

/* 结构风险行 */
.risk-row { margin-top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px 10px; }
.risk-row .risk-note { font-weight: 400; font-size: 11.5px; margin-left: 4px; }
.risk-row .score { margin-left: 4px; }
.risk-row .risk-list { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 28px; margin-top: 6px; }
.risk-row .risk-item:nth-last-child(-n + 5) { border-bottom: 0; }

/* ---------- 指标条 ---------- */
.metrics {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  margin: 16px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.mt { padding: 14px 16px 12px; min-width: 0; position: relative; cursor: default; }
.mt + .mt { border-left: 1px solid var(--line); }
.mt .k { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt .v { font: 500 19px var(--mono); letter-spacing: -0.03em; margin: 3px 0 1px; white-space: nowrap; transition: color 0.6s ease; }
.mt .v.tick-up { color: var(--up); transition: none; }
.mt .v.tick-down { color: var(--down); transition: none; }
.mt .s { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt svg.spark { display: block; width: 100%; height: 26px; margin-top: 8px; overflow: visible; }
.mt svg.spark path { fill: none; stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mt svg.spark .area { stroke: none; opacity: 0.09; }
.mt svg.spark line { stroke: var(--line-2); stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.mt.flag::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand); }

/* ---------- 盘面 ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.chart-mod, .feed-mod, .detail { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.feed-mod { position: sticky; top: 76px; display: flex; flex-direction: column; max-height: calc(100vh - 92px); }

.seg { position: relative; display: inline-flex; padding: 2px; background: var(--sunk); border-radius: 8px; }
.seg button { position: relative; z-index: 1; height: 26px; padding: 0 11px; font-size: 12px; font-weight: 500; color: var(--ink-3); border-radius: 6px; transition: color 0.15s ease; white-space: nowrap; }
.seg button.on { color: var(--ink); }
.seg button em { font: normal 10.5px var(--mono); color: var(--ink-4); margin-left: 2px; }
.seg button.on em { color: var(--ink-3); }
.seg-ind { position: absolute; z-index: 0; top: 2px; bottom: 2px; left: 0; border-radius: 6px; background: var(--paper); box-shadow: 0 1px 2px rgba(22, 21, 15, 0.08), 0 0 0 0.5px rgba(22, 21, 15, 0.05); transition: transform 0.22s var(--ease-out), width 0.22s var(--ease-out); }
.seg-sm { display: flex; margin-bottom: 10px; }
.seg-sm button { flex: 1; padding: 0 6px; }
.seg-xs button { height: 22px; padding: 0 8px; font-size: 11.5px; }

.toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { width: 26px; height: 16px; border-radius: 8px; background: var(--line-2); position: relative; transition: background-color 0.18s ease; }
.toggle span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.2s var(--ease-out); }
.toggle input:checked + span { background: var(--ink); }
.toggle input:checked + span::after { transform: translateX(10px); }
.toggle input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 图表 */
.charts { display: grid; }
.charts.fading { opacity: 0.5; transition: opacity 0.12s ease; }
.chart-panel { position: relative; }
.chart-panel + .chart-panel { border-top: 1px solid var(--line); }
.chart-head { display: flex; gap: 12px; align-items: baseline; font-size: 11.5px; padding: 8px 0 2px; min-height: 26px; flex-wrap: wrap; }
.chart-title { color: var(--ink); font-weight: 600; }
.chart-legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--ink-3); }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 8px; height: 2px; border-radius: 1px; display: inline-block; }
.chart-legend b { color: var(--ink); font: 500 11.5px var(--mono); }
.chart-legend .t { font-family: var(--mono); color: var(--ink-2); }
.chart-legend .mk { color: var(--ink); }
.chart-panel canvas { width: 100%; display: block; cursor: crosshair; touch-action: pan-y; }

/* 信号流 */
.lv-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line-2); transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease; }
.lv-toggle.on { color: var(--ink); border-color: var(--ink); }
.pips { display: inline-flex; gap: 2px; }
.pips i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.pips i.off { opacity: 0.25; }
.feed { overflow-y: auto; margin: 0 -18px; padding: 0 18px; min-height: 240px; overscroll-behavior: contain; }
.feed .day { position: sticky; top: 0; z-index: 1; background: var(--paper); font: 500 10.5px var(--mono); color: var(--ink-4); padding: 8px 0 4px; }
.sig { position: relative; padding: 10px 0 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.sig::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 1px; background: var(--ink-4); }
.sig.long::before { background: var(--up); }
.sig.short::before { background: var(--down); }
.sig.watch::before { background: var(--lv1); }
.sig .r1 { display: flex; align-items: center; gap: 8px; }
.sig .lbl { font-size: 13px; font-weight: 600; }
.sig.long .lbl { color: var(--up); }
.sig.short .lbl { color: var(--down); }
.sig .pips { color: var(--ink-2); }
.sig .tm { margin-left: auto; font: 11px var(--mono); color: var(--ink-3); }
.sig .tx { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.55; }
.sig .meta { display: flex; gap: 10px; font: 11px var(--mono); color: var(--ink-4); margin-top: 4px; }
.sig .meta a { color: var(--ink-3); text-decoration: none; }
.sig .loc { margin-left: auto; font-family: var(--sans); color: var(--ink-3); opacity: 0; transition: opacity 0.15s ease; }
.sig.init { opacity: 0.62; }
.sig.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { from { background: rgba(232, 89, 12, 0.07); } to { background: transparent; } }
@media (hover: hover) and (pointer: fine) {
  .sig:hover .loc { opacity: 1; }
  .sig:hover { background: #fbfaf7; }
}
.empty { color: var(--ink-3); text-align: center; padding: 36px 12px; font-size: 12.5px; line-height: 1.7; }

/* ---------- 细节页签 ---------- */
.detail { margin-top: 16px; }
.tabs { position: relative; display: flex; gap: 22px; border-bottom: 1px solid var(--line); flex: 1; }
.tabs button { height: 34px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); transition: color 0.15s ease; white-space: nowrap; }
.tabs button.on { color: var(--ink); }
.tab-ind { position: absolute; bottom: -1px; left: 0; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 0.24s var(--ease-out), width 0.24s var(--ease-out); }
.tab-panel { animation: panelIn 0.22s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.chain-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; }
.chain-grid + .chain-grid { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }

/* 表格 */
.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.tbl th { text-align: right; font-weight: 500; font-size: 11.5px; color: var(--ink-3); padding: 0 10px 8px; border-bottom: 1px solid var(--line); user-select: none; }
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: var(--ink); }
.tbl th.sorted { color: var(--ink); }
.tbl th.sorted::after { content: ' ↓'; font-size: 10px; }
.tbl th.sorted.asc::after { content: ' ↑'; }
.tbl td { text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; transition: background-color 0.6s ease; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; font-family: var(--sans); }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.group td { font-family: var(--sans); color: var(--ink-3); font-size: 11.5px; padding-top: 18px; border-bottom: 1px solid var(--line); }
.tbl td.hl-up { background: var(--up-tint); transition: none; }
.tbl td.hl-down { background: var(--down-tint); transition: none; }
.tbl td.max { color: var(--down); font-weight: 600; }
.tbl-sm td { padding: 7px 8px; font-size: 12px; }
.tbl-sm th { padding: 0 8px 6px; }
.vn { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.vn i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.vn i.bad { background: var(--down); }
.vn .tag { font-weight: 400; }
.share { display: inline-block; width: 52px; height: 4px; border-radius: 2px; background: var(--sunk); margin-left: 8px; vertical-align: middle; overflow: hidden; }
.share i { display: block; height: 100%; background: var(--ink-2); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.tag { display: inline-block; font: 500 10.5px var(--sans); padding: 0 6px; border-radius: 4px; background: var(--sunk); color: var(--ink-2); margin-left: 6px; line-height: 18px; vertical-align: 1px; }
.tag.cex { background: var(--amber-tint); color: var(--amber); }
.tag.dex { background: var(--blue-tint); color: var(--blue); }

/* 盘口 */
.dband { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 4px; align-items: center; font: 11.5px var(--mono); margin-bottom: 5px; }
.dband .l { color: var(--ink-3); font-family: var(--sans); font-size: 11.5px; }
.dband .bar { position: relative; height: 22px; background: var(--sunk); border-radius: 4px; overflow: hidden; }
.dband .bar i { position: absolute; top: 0; bottom: 0; transition: transform 0.5s var(--ease-out); }
.dband .bid i { right: 0; left: 0; transform-origin: right; background: var(--up-tint); border-right: 2px solid var(--up); }
.dband .ask i { left: 0; right: 0; transform-origin: left; background: var(--down-tint); border-left: 2px solid var(--down); }
.dband .bar span { position: relative; z-index: 1; line-height: 22px; padding: 0 7px; }
.dband .bid span { float: right; }
.dband.head { font-family: var(--sans); color: var(--ink-3); }
.dband.head span:nth-child(2) { text-align: right; padding-right: 6px; }
.walls { display: grid; }
.wall { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); font: 12px var(--mono); }
.wall:last-child { border-bottom: 0; }
.wall .src { font: 11px var(--sans); color: var(--ink-3); }
.wall .d { color: var(--ink-3); font-size: 11px; margin-left: 4px; }

/* 流水 */
.tape-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.tape-sum div { background: var(--paper); padding: 7px 10px; font-size: 11px; color: var(--ink-3); }
.tape-sum b { display: block; font: 500 13.5px var(--mono); color: var(--ink); margin-top: 1px; }
.tape { max-height: 330px; overflow-y: auto; overscroll-behavior: contain; }
.tape.tall { max-height: 420px; }
.tr { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.tr .t { font: 11px var(--mono); color: var(--ink-3); }
.tr .d { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.tr b { font: 500 12.5px var(--mono); }
.tr b a { text-decoration: none; }
.tr.fresh { animation: fresh 2s ease-out; }
.addr { font: 11.5px var(--mono); color: var(--ink-2); text-decoration: none; }
.addr:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* 链上 */
.conc { display: flex; height: 26px; gap: 2px; border-radius: 6px; overflow: hidden; }
.conc div { display: flex; align-items: center; justify-content: center; font: 500 11px var(--mono); color: #fff; min-width: 3px; transition: flex-grow 0.5s var(--ease-out); }
.conc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 16px; font-size: 11.5px; color: var(--ink-2); }
.conc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.conc-legend i { width: 8px; height: 8px; border-radius: 2px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 18px; margin: 4px 0 20px; }
.facts div { min-width: 0; }
.facts dt { font-size: 11.5px; color: var(--ink-3); }
.facts dd { font: 500 15px var(--mono); margin-top: 1px; }
.facts dd em { display: block; font: normal 11px var(--sans); color: var(--ink-3); margin-top: 1px; }

/* 指数与规则 */
.fund-bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-bottom: 18px; border-bottom: 1px solid var(--line); position: relative; }
.fund-bars .fb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; cursor: default; }
.fund-bars .fb i { display: block; border-radius: 2px 2px 0 0; transform-origin: bottom; transition: transform 0.4s var(--ease-out); }
.fund-bars .fb span { position: absolute; bottom: -17px; left: -4px; right: -4px; text-align: center; font: 10px var(--mono); color: var(--ink-4); }
.fund-bars .base { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--ink-4); }
.rules { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 16px; font-size: 12px; }
.rules dt { color: var(--ink-3); padding: 6px 0; border-bottom: 1px dashed var(--line); white-space: nowrap; }
.rules dd { font: 12px var(--mono); text-align: right; padding: 6px 0; border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; }
.rules dd.chg { color: var(--brand); font-weight: 600; }
.rule-log { margin-top: 12px; font-size: 12px; color: var(--brand); }

/* ---------- 提示 / toast / 抽屉 ---------- */
.tip {
  position: fixed; z-index: 70; max-width: 280px; padding: 7px 10px; border-radius: 7px;
  background: var(--ink); color: #f3f1ea; font-size: 12px; line-height: 1.5; pointer-events: none;
  opacity: 0; transform: translateY(2px) scale(0.98); transform-origin: var(--o, top center);
  transition: opacity 0.12s ease, transform 0.14s var(--ease-out);
}
.tip.show { opacity: 1; transform: none; }
.tip.instant { transition: none; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: flex; flex-direction: column-reverse; gap: 8px; width: 344px; pointer-events: none; }
.toast {
  pointer-events: auto; position: relative; overflow: hidden; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px 12px 16px;
  box-shadow: 0 1px 2px rgba(22, 21, 15, 0.05), 0 14px 34px rgba(22, 21, 15, 0.12);
  transition: transform 0.32s var(--ease-out), opacity 0.32s var(--ease-out);
}
@starting-style { .toast { opacity: 0; transform: translateY(10px) scale(0.98); } }
.toast.out { opacity: 0; transform: translateX(16px); transition-duration: 0.18s; }
.toast::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lv1); }
.toast.long::before { background: var(--up); }
.toast.short::before { background: var(--down); }
.toast b { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.toast p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.toast .bar-t { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sunk); }
.toast .bar-t i { position: absolute; inset: 0; background: var(--ink-4); transform-origin: left; animation: drain linear forwards; }
.toast:hover .bar-t i { animation-play-state: paused; }
@keyframes drain { to { transform: scaleX(0); } }

.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(22, 21, 15, 0.22); opacity: 0; transition: opacity 0.24s ease; }
.scrim.open { opacity: 1; }
.sheet {
  position: fixed; top: 8px; right: 8px; bottom: 8px; z-index: 90; width: min(460px, calc(100vw - 16px));
  display: flex; flex-direction: column; background: var(--paper); border-radius: 16px;
  box-shadow: 0 24px 64px rgba(22, 21, 15, 0.2); transform: translateX(calc(100% + 16px));
  transition: transform 0.36s var(--ease-drawer);
}
.sheet.wide { width: min(760px, calc(100vw - 16px)); }
.sheet.open { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 12px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 16px; font-weight: 650; }
.sheet-body { flex: 1; overflow-y: auto; padding: 18px 22px; overscroll-behavior: contain; }
.sheet-foot { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 12px 22px; border-top: 1px solid var(--line); }
.sheet-foot .muted { margin-right: auto; }
.form-group + .form-group { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: grid; gap: 5px; font-size: 12px; color: var(--ink-2); }
.field.wide { grid-column: 1 / -1; }
.field span em { font-style: normal; color: var(--ink-4); margin-left: 4px; }
.field input, .field select {
  height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper);
  font: 13px var(--mono); color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px rgba(22, 21, 15, 0.06); }
.switch-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-bottom: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { display: block; width: 34px; height: 20px; border-radius: 10px; background: var(--line-2); position: relative; transition: background-color 0.18s ease; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.2s var(--ease-out); }
.switch input:checked + i { background: var(--up); }
.switch input:checked + i::after { transform: translateX(14px); }
.tg-test { display: flex; align-items: center; gap: 10px; margin-top: 12px; }

.guide { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.guide h3 { font-size: 15px; color: var(--ink); margin: 26px 0 8px; font-weight: 650; }
.guide h3:first-child { margin-top: 0; }
.guide ul { list-style: disc; padding-left: 20px; margin: 6px 0; }
.guide ul ul { margin: 2px 0; }
.guide li { margin: 3px 0; }
.guide b { color: var(--ink); font-weight: 600; }
.guide p { margin: 8px 0; }
.guide table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 8px 0 12px; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.guide th { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.guide code { font: 12px var(--mono); background: var(--sunk); padding: 1px 5px; border-radius: 4px; }
.guide a { color: var(--blue); text-underline-offset: 2px; }
.guide .muted { font-size: 12px; margin-top: 18px; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; font-size: 11.5px; color: var(--ink-4); }

/* ---------- 响应式 ---------- */
@media (max-width: 1440px) {
  .hstats div:nth-child(2) { display: none; }
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mt:nth-child(5) { border-left: 0; }
  .mt:nth-child(n + 5) { border-top: 1px solid var(--line); }
}
@media (max-width: 1240px) {
  .hstats { display: none; }
  .verdict { grid-template-columns: 1fr 1fr; }
  .v-omen { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); }
  .risk-row .risk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .risk-row .risk-item:nth-last-child(-n + 5) { border-bottom: 1px dashed var(--line); }
  .risk-row .risk-item:nth-last-child(-n + 2) { border-bottom: 0; }
  .board { grid-template-columns: 1fr; }
  .feed-mod { position: static; max-height: 520px; }
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .chain-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .bar { height: auto; flex-wrap: wrap; gap: 8px 14px; padding: 10px 16px; }
  .brand span, .pair .ca { display: none; }
  .pair { padding-left: 14px; }
  .quote { min-width: 0; }
  .px { font-size: 20px; }
  .tools { margin-left: auto; }
  .tools .btn { display: none; }
  .page { padding: 14px 16px 30px; }
  .verdict { grid-template-columns: 1fr; }
  .verdict > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .v-omen { grid-column: auto; }
  .risk-row { padding: 14px 16px 8px; }
  .risk-row .risk-note { display: none; }
  .risk-row .risk-list { grid-template-columns: 1fr; }
  .risk-row .risk-item:nth-last-child(2) { border-bottom: 1px dashed var(--line); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .mt:nth-child(odd) { border-left: 0; }
  .mt:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .mt:nth-child(5) { border-left: 0; }
  .chart-mod, .feed-mod, .detail { padding: 14px; border-radius: 12px; }
  .mod-head { flex-wrap: wrap; }
  .tabs { overflow-x: auto; gap: 18px; }
  .cols-3 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr; }
  .toasts { left: 16px; right: 16px; width: auto; bottom: 16px; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .sheet, .pop, .toast, .seg-ind, .tab-ind, .meter .fill, .share i, .dband .bar i { transition-property: opacity !important; }
}
