:root{
  --bg:#f5f6f8; --panel:#fff; --line:#e3e6eb; --ink:#1f2430; --muted:#6b7385;
  --up:#c0392b; --down:#1e8449; --bar:#e8862e; --idx:#1f5fa8; --warn:#b7791f;
}
*{box-sizing:border-box}
[hidden]{display:none!important}   /* 保证 hidden 属性优先于 .reward-inline/.contact 的 display 声明 */
body{margin:0;background:var(--bg);color:var(--ink);
  font-family:"Microsoft YaHei","PingFang SC","Hiragino Sans GB",Arial,sans-serif;font-size:13px}
.wrap{max-width:1180px;margin:0 auto;padding:14px 16px 40px}
.top{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:flex-end;
  border-bottom:1px solid var(--line);padding-bottom:10px}
.brand h1{margin:0;font-size:20px;letter-spacing:.5px}
.brand .sub{color:var(--muted);font-size:12px;margin-top:4px}
.brand .anchor-link{color:#8a94a6;font-size:12px;text-decoration:none;border-bottom:1px dotted #c3ccd8}
.brand .anchor-link:hover{color:#1f5fa8;border-bottom-color:#1f5fa8}
.brand-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:5px}
.contact{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:13px;color:var(--muted)}
.contact b{color:#394154;font-weight:600}
.contact .sep{color:#c3ccd8}
.wechat{font:inherit;font-size:13px;padding:0 1px;border:none;border-bottom:1px dashed #9db8d8;
  background:none;color:var(--idx);cursor:pointer}
.wechat:hover{background:none;color:#17406f;border-bottom-style:solid}
.copied{font-size:12px;color:var(--down);opacity:0;transition:opacity .25s}
.copied.show{opacity:1}
.mini-copy{font:inherit;font-size:11.5px;padding:1px 8px;border-radius:9px;border:1px solid var(--line);
  background:#fff;color:var(--idx)}
.mini-copy:hover{background:#eef4fb}
.reward-inline{display:inline-flex;align-items:center;gap:8px;margin-left:6px}
.reward-thumb{width:72px;height:72px;object-fit:contain;background:#fff;border:1px solid var(--line);
  border-radius:6px;padding:3px;cursor:zoom-in;display:block}
.reward-thumb:hover{border-color:var(--idx)}
.reward-cap{font-size:11.5px;color:var(--muted);line-height:1.45}
.reward-empty{font-size:11.5px;color:#8a5a10;background:#fff8ec;border:1px dashed #f0d9a8;
  border-radius:6px;padding:4px 9px}
.status{display:flex;flex-wrap:wrap;gap:6px}
.chip{background:#eef1f5;border:1px solid var(--line);border-radius:12px;padding:3px 10px;
  font-size:12px;color:#394154;white-space:nowrap}
.chip.live{background:#eaf6ee;border-color:#bfe3cb;color:#17663a}
.chip.stale{background:#fdf3e3;border-color:#f0d3a2;color:#8a5a10}
.chip.mock{background:#fdecec;border-color:#f3c6c6;color:#a12626}
.chip.link{color:#1f5fa8;text-decoration:none}
.chip.link:hover{background:#e7eef8}
.toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0 6px}
button{border:1px solid var(--line);background:#fff;border-radius:6px;padding:5px 12px;
  font-size:12px;cursor:pointer;color:#2c3444}
button:hover{background:#eef1f5}
.countdown{color:var(--muted);font-size:12px}
.warn{color:var(--warn);font-size:12px;margin-left:auto}
.notes{margin:10px 0 12px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 14px}
.notes summary{cursor:pointer;font-weight:600;font-size:13px}
.notes ul{margin:8px 0 2px 18px;line-height:1.75;color:#394154}
.notes li{margin-bottom:2px}
.notes i{font-style:normal;color:#17663a}
.notes u{text-decoration:none;border-bottom:1px dashed #c0392b;color:#a12626}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:6px 0 14px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:10px 12px}
.card .k{color:var(--muted);font-size:12px}
.card .v{font-size:20px;font-weight:700;margin:4px 0 2px;font-variant-numeric:tabular-nums}
.card .n{color:var(--muted);font-size:11px}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin-bottom:14px}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.panel-head h2{margin:0;font-size:15px}
.tag{font-size:11px;color:#4a5468;background:#f0f3f7;border:1px solid var(--line);
  border-radius:10px;padding:2px 9px}
.tag.warn-tag{background:#fdf3e3;border-color:#f0d3a2;color:#8a5a10}
.tag.stale-tag{background:#fdecea;border-color:#f0b3ab;color:#b23a2e;font-weight:600}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.seg-btn{border:0;background:#f0f3f7;color:#4a5468;font-size:11px;padding:3px 10px;cursor:pointer}
.seg-btn+.seg-btn{border-left:1px solid var(--line)}
.seg-btn.active{background:#e8f0fb;color:#1f5fa8;font-weight:600}
.chart-box{position:relative;margin-top:8px}
/* ③ 历史窗口滑块：原生 HTML/CSS/pointer 事件实现，等价 ECharts dataZoom 的 slider */
.zoombar{margin:10px 2px 2px}
.zoombar-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;
  font-size:11px;color:var(--muted);margin-bottom:5px}
#zoomRange{color:#2c3444;font-weight:600;font-variant-numeric:tabular-nums}
.zoombar-hint{color:#8a91a2}
.zoombar-track{position:relative;height:24px;background:#eef1f5;border:1px solid var(--line);
  border-radius:6px;touch-action:none}
.zoombar-fill{position:absolute;top:0;bottom:0;background:#dbe8f8;border-radius:4px;
  cursor:grab;touch-action:none}
.zoombar-fill.dragging{cursor:grabbing}
.zoombar-handle{position:absolute;top:-5px;bottom:-5px;width:16px;margin-left:-8px;z-index:2;
  background:#fff;border:1px solid #9db8d8;border-radius:5px;cursor:ew-resize;touch-action:none;
  box-shadow:0 1px 3px rgba(15,23,42,.18)}
.zoombar-handle::after{content:"";position:absolute;left:5px;top:7px;bottom:7px;width:4px;
  border-left:1px solid #c3ccd8;border-right:1px solid #c3ccd8}
.zoombar-handle:focus{outline:none;border-color:var(--idx);box-shadow:0 0 0 2px #cfe0f5}
.chart-tip{position:fixed;z-index:70;pointer-events:none;background:rgba(23,32,48,.94);color:#fff;
  font-size:11.5px;line-height:1.6;padding:6px 9px;border-radius:6px;max-width:280px;
  box-shadow:0 6px 18px rgba(15,23,42,.25);white-space:nowrap}
.chart-tip b{font-weight:600;color:#ffd8a8}
.chart-tip .tip-sub{color:#c3ccd8}
svg{width:100%;height:auto;display:block;background:#fff}
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-top:4px}
.legend span{display:inline-flex;align-items:center;gap:5px}
.legend i{width:10px;height:10px;border-radius:2px;display:inline-block}
.table-wrap{overflow-x:auto;margin-top:10px}
table{width:100%;border-collapse:collapse;font-size:12px}
thead th{background:#f3f5f8;color:#3a4356;font-weight:600;padding:7px 8px;text-align:left;
  white-space:nowrap;border-bottom:1px solid var(--line)}
thead th.num{text-align:right}
tbody td{padding:6px 8px;border-bottom:1px solid #f0f2f5;white-space:nowrap}
tbody td.num{text-align:right;font-variant-numeric:tabular-nums}
tbody tr:hover{background:#fafbfd}
td.empty{text-align:center;color:var(--muted);padding:18px}

/* ④ 净流入热力表：首列冻结、合计列加边框、横向可滚动 */
.heat{min-width:960px}
.heat th,.heat td{min-width:58px;padding:6px 7px;transition:background .15s}
.heat .sticky-col{position:sticky;left:0;z-index:1;background:#fff;font-weight:600;
  box-shadow:1px 0 0 var(--line)}
.heat thead .sticky-col{background:#f3f5f8;z-index:2}
.heat .total-col{font-weight:700;border-left:2px solid var(--line);border-right:2px solid var(--line)}
.heat tbody tr:hover td.sticky-col{background:#fafbfd}
.heat .num{font-variant-numeric:tabular-nums}
@media(max-width:760px){
  .heat th,.heat td{min-width:52px;padding:5px 6px;font-size:11.5px}
  .heat .sticky-col{min-width:84px}
}

.amt-cell{position:relative}
.bar-bg{position:absolute;left:0;top:2px;bottom:2px;background:#fbe6cd;border-radius:2px;z-index:0}
.cell-val{position:relative;z-index:1}
.up{color:var(--up)} .down{color:var(--down)}
.badge{font-size:11px;padding:1px 7px;border-radius:8px;background:#eaf6ee;color:#17663a}
.badge.miss{background:#f5f6f8;color:#8a91a2}
.badge.stale{background:#fdf3e3;color:#8a5a10}
.foot{color:var(--muted);font-size:11px;line-height:1.7;margin-top:8px}
.bottom{border-top:1px solid var(--line);margin-top:18px;padding-top:10px;color:var(--muted);font-size:11px;line-height:1.7}
@media(max-width:760px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .status{width:100%}
  .brand-row{gap:6px}
  .contact{font-size:12.5px}
  .zoombar-track{height:30px}
  .zoombar-handle{width:22px;margin-left:-11px;top:-4px;bottom:-4px}
  .zoombar-head{font-size:11.5px}
}
@media(max-width:480px){
  .brand-row{gap:4px}
  .contact{font-size:12.5px;row-gap:6px}
  .reward-inline{width:100%;margin-left:0;margin-top:2px}
  .reward-thumb{width:56px;height:56px}
}
/* 打赏弹层：微信个人收款无网页支付唤起链接，只能展示赞赏码 + 复制微信号 */
.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:16px}
.modal[hidden]{display:none!important}
.modal-mask{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(15,23,42,.45)}
.modal-box{position:relative;width:min(340px,100%);background:#fff;border-radius:12px;
  padding:22px 18px 18px;box-shadow:0 18px 48px rgba(15,23,42,.28);text-align:center}
.modal-title{font-size:15px;font-weight:600;color:#1f3a5f;margin-bottom:12px}
.modal-close{position:absolute;top:4px;right:8px;border:none;background:none;font-size:24px;
  line-height:1;color:#98a2b3;padding:0 4px}
.modal-close:hover{background:none;color:#475467}
.modal-body img{width:220px;max-width:82%;height:auto;border-radius:8px;display:block;margin:0 auto 10px}
.modal-body .zoom{width:260px;max-width:88%;height:260px;object-fit:contain;background:#fff;
  border:1px solid var(--line);border-radius:8px;padding:6px}
.modal-note{font-size:13px;color:#475467;margin-bottom:8px}
.modal-tip{font-size:12.5px;color:var(--muted);line-height:1.75}
.modal-tip code{background:#f3f4f6;border-radius:4px;padding:1px 5px;color:#111827}
.modal-empty{font-size:12.5px;color:#8a5a10;background:#fff8ec;border:1px solid #f0d9a8;
  border-radius:8px;padding:10px 12px;line-height:1.75;text-align:left;word-break:break-all}
.modal-copy{margin-top:12px;font:inherit;font-size:13px;padding:6px 14px;border-radius:6px;
  border:1px solid var(--idx);background:#fff;color:var(--idx)}
.modal-copy:hover{background:#eef4fb}
