/* DG logo 蓝 #2196F3 为主色；深浅两套，跟随系统 */
:root {
  --dg: #2196F3;
  --dg-strong: #1676d2;
  --dg-soft: #e6f2fe;
  --bg: #f3f7fc;
  --card: #ffffff;
  --ink: #0d1b2e;
  --muted: #4f6079;
  --dim: #8a99ae;
  --line: #e3eaf3;
  --bar: #2196F3;
  --cum: #0fb5a6;
  --warn: #b46a00;
  --warn-soft: #fff3df;
  --shadow: 0 1px 2px rgba(13, 27, 46, .04), 0 4px 16px rgba(33, 150, 243, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --dg-strong: #4fb0ff;
    --dg-soft: rgba(33, 150, 243, .16);
    --bg: #07111f;
    --card: #0d1b2e;
    --ink: #e7eef8;
    --muted: #9fb0c7;
    --dim: #6a7d97;
    --line: #1b2c44;
    --bar: #2f9df5;
    --cum: #2fd4c2;
    --warn: #ffb547;
    --warn-soft: rgba(255, 181, 71, .14);
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 20px; }
.mono, .tnum, td, .tile-v { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* 顶栏 */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px);
}
.top-in { display: flex; align-items: center; gap: 10px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--dg); }
.tag { font-size: 11px; font-weight: 600; color: var(--dg-strong); background: var(--dg-soft); padding: 2px 8px; border-radius: 99px; }
.top-r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  font: inherit; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 99px; cursor: pointer;
}
.chip:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--dg); color: #fff; font-weight: 600; border-radius: 12px; padding: 10px 18px;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--dg-strong); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { font-size: 12.5px; padding: 6px 14px; border-radius: 99px; }
.btn-lg { width: 100%; font-size: 15px; padding: 13px 18px; }

/* 头图区 */
.hero { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: center; padding-block: 36px 24px; }
.hero h1 { font-size: 34px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 15px; margin: 0 0 14px; max-width: 640px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--dim); }
.meta a { color: var(--muted); font-weight: 600; }
.meta .copy { margin-left: 2px; }

.trade {
  background: linear-gradient(155deg, #2196F3 0%, #1565c0 100%); color: #fff;
  border-radius: 20px; padding: 20px; display: grid; gap: 14px;
  box-shadow: 0 10px 30px rgba(33, 150, 243, .28);
}
.px { background: rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px 14px; }
.px-l { display: flex; justify-content: space-between; font-size: 12px; opacity: .85; }
.px-l a { opacity: .9; }
.px-v { font-size: 28px; font-weight: 700; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.px-s { font-size: 12px; opacity: .85; margin-top: 2px; font-variant-numeric: tabular-nums; min-height: 18px; }
.trade .btn { background: #fff; color: #1565c0; }
.trade .btn:hover { background: #eaf4ff; }
.trade-f { display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: .9; }
.trade-f a { font-size: 12px; }
.trade .copy { color: #fff; }

.copy { border: 0; background: none; color: var(--dim); cursor: pointer; padding: 0 2px; font-size: 13px; }
.copy:hover { color: var(--dg); }
.copy.ok { color: var(--cum); }

/* 卡片 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.empty { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 20px; color: var(--muted); }
.spin { width: 14px; height: 14px; border: 2px solid var(--dg-soft); border-top-color: var(--dg); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); overflow: hidden; margin-bottom: 16px; }
.tile { padding: 18px 20px; background: var(--card); }
.tile-l { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.tile-v { font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.tile:first-child .tile-v { color: var(--dg); }
.tile-s { font-size: 11.5px; color: var(--dim); margin-top: 6px; }

.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.chart-card { padding: 18px 18px 12px; min-width: 0; }
.ch-t { font-size: 15px; font-weight: 650; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 6px 0 8px; }
.legend span { margin-right: 8px; }
.lg-bar { width: 10px; height: 10px; border-radius: 3px; background: var(--bar); }
.lg-line { width: 14px; height: 2px; border-radius: 2px; background: var(--cum); }
.lg-line1 { background: var(--dg); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis { fill: var(--dim); font-size: 10px; }
.chart .grid { stroke: var(--line); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hl { fill: var(--dg); opacity: .07; }

.tip {
  position: fixed; z-index: 20; pointer-events: none; min-width: 160px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14); font-size: 12px;
}
.tip b { display: block; margin-bottom: 4px; font-size: 12.5px; }
.tip div { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); }
.tip div span:last-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.table-card { overflow: hidden; margin-bottom: 8px; }
.tb-h { display: flex; align-items: baseline; gap: 10px; padding: 16px 20px 6px; }
.tb-h b { font-size: 15px; }
.tb-scroll { overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 8px 12px; white-space: nowrap; }
td { padding: 9px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
.r { text-align: right; }
.dim { color: var(--dim); }
.mut { color: var(--muted); }
.b { font-weight: 650; }
td a { color: var(--dg-strong); }
tfoot td { font-weight: 650; border-top: 1px solid var(--dim); }
.badge { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px 36px; font-size: 12px; color: var(--dim); }
.foot a { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.foot-links a { display: inline-flex; align-items: center; gap: 5px; }
.foot-links img { border-radius: 50%; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .charts { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 27px; }
  .tag { display: none; }
  .tile-v { font-size: 20px; }
}
