/* 火天 HuoTian Exchange · 暗色交易所主题 */
:root {
  --bg: #0b0e11;
  --bg2: #10141a;
  --panel: #161b22;
  --panel2: #1c232d;
  --line: #232b36;
  --text: #eaecef;
  --muted: #848e9c;
  --dim: #5e6673;
  --up: #0ecb81;
  --down: #f6465d;
  --accent: #f0b90b;
  --fire1: #f6465d;
  --fire2: #ffb03a;
  --grad: linear-gradient(135deg, #f6465d, #ff8a3c, #ffb03a);
  --radius: 10px;
  font-size: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2a3340; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

.sim-badge {
  position: fixed; top: 12px; right: -34px; z-index: 300;
  background: rgba(240, 185, 11, 0.14); border: 1px solid rgba(240, 185, 11, 0.5);
  color: var(--accent); font-size: 11px; letter-spacing: 2px;
  padding: 4px 40px; transform: rotate(45deg);
  pointer-events: none; /* 斜角丝带不拦截下方按钮点击 */
}

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(11, 14, 17, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1440px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff; font-family: "STKaiti", "KaiTi", serif;
  box-shadow: 0 2px 12px rgba(246, 70, 93, 0.35);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 17px; letter-spacing: 1px; }
.logo-text i { font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: 0.5px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; transition: 0.15s; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.active { color: var(--fire2); background: rgba(255, 176, 58, 0.08); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; cursor: pointer; }
.user-chip .eq { color: var(--accent); font-weight: 700; }
.user-chip .who { color: var(--muted); font-size: 12px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(14, 203, 129, 0.12); color: var(--up); }
.provider-tag.guest { background: rgba(132, 142, 156, 0.15); color: var(--muted); }

/* ---------- 滚动行情条 ---------- */
.ticker-strip { border-top: 1px solid var(--line); background: var(--bg2); overflow: hidden; white-space: nowrap; }
.ticker-strip .row { display: inline-flex; gap: 34px; padding: 7px 0 7px 20px; animation: marquee 40s linear infinite; }
.ticker-strip:hover .row { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
/* v140：马灯两端渐隐 + 行情数值平滑过渡 */
.ticker-strip { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tick-item .p, .tick-item .c { transition: color .35s ease; }
.tick-item { font-size: 12px; display: inline-flex; gap: 8px; align-items: baseline; cursor: pointer; }
.tick-item .s { color: var(--muted); font-weight: 600; }
.tick-item .p { font-weight: 600; font-variant-numeric: tabular-nums; }
.tick-item .p.up { color: var(--up); } .tick-item .p.down { color: var(--down); }
.tick-item .c { font-size: 11px; font-variant-numeric: tabular-nums; }
.tick-item .c.up { color: var(--up); } .tick-item .c.down { color: var(--down); }

/* ---------- 通用 ---------- */
main { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 20px; }
.btn { border: none; cursor: pointer; border-radius: 8px; font-size: 14px; font-weight: 600; padding: 10px 18px; transition: 0.15s; font-family: inherit; }
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { filter: brightness(1.1); box-shadow: 0 4px 18px rgba(246, 70, 93, 0.4); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-green { background: var(--up); color: #04281b; }
.btn-red { background: var(--down); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.up { color: var(--up); } .down { color: var(--down); }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.num { font-variant-numeric: tabular-nums; }
.page-title { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 18px; }
.page-title h2 { font-size: 22px; }
.page-title .sub { color: var(--muted); font-size: 13px; }
table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.tbl td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
table.tbl tr:hover td { background: rgba(255, 255, 255, 0.015); }
table.tbl tr.clickable { cursor: pointer; }
.empty { text-align: center; color: var(--dim); padding: 40px 0; font-size: 13px; }

/* ---------- 首页 ---------- */
.hero { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(1200px 500px at 80% -10%, rgba(246, 70, 93, 0.16), transparent), radial-gradient(800px 400px at 10% 110%, rgba(255, 176, 58, 0.10), transparent), var(--panel); padding: 64px 48px; }
.hero h1 { font-size: 44px; line-height: 1.25; margin-bottom: 16px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 16px; max-width: 620px; line-height: 1.8; }
.hero .gua { margin-top: 18px; color: var(--fire2); font-size: 13px; letter-spacing: 1px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .hs { display: flex; flex-direction: column; gap: 4px; }
.hero-stats .hs b { font-size: 24px; }
.hero-stats .hs span { color: var(--muted); font-size: 12px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 20px; }
.mover { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: 0.15s; }
.mover:hover { border-color: #33405280; transform: translateY(-2px); }
.mover .sym { font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.mover .price { font-size: 20px; font-weight: 700; margin: 6px 0 4px; }
.mover .chg { font-size: 13px; font-weight: 600; }
.coin-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; margin-right: 8px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 20px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ic { font-size: 26px; margin-bottom: 10px; }
.feature h3 { font-size: 15px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.section-h { margin: 34px 0 4px; font-size: 18px; }

/* ---------- 交易页 ---------- */
.trade-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.trade-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pair-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; }
.pair-head .big { font-size: 26px; font-weight: 800; }
.pair-head .meta { display: flex; gap: 22px; flex-wrap: wrap; }
.pair-head .meta .m { display: flex; flex-direction: column; gap: 2px; }
.pair-head .meta .m span { font-size: 11px; color: var(--muted); }
.pair-head .meta .m b { font-size: 13.5px; font-weight: 600; }
.tf-bar { display: flex; gap: 4px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tf-bar button { background: transparent; border: none; color: var(--muted); padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; font-family: inherit; }
.tf-bar button.active { color: var(--fire2); background: rgba(255, 176, 58, 0.1); }
.tf-bar .src { margin-left: auto; font-size: 11px; color: var(--dim); }
.chart-wrap { position: relative; width: 100%; }
.chart-wrap canvas { display: block; width: 100%; }
.trade-side { display: flex; flex-direction: column; gap: 14px; }
.book { padding: 12px 14px; }
.book-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding: 4px 0 8px; }
.book-mid { text-align: center; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0; }
.book-mid .bp { font-size: 20px; font-weight: 800; }
.book-mid .be { font-size: 11px; color: var(--dim); }
.book-rows { font-size: 12px; font-variant-numeric: tabular-nums; }
.book-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 2.5px 4px; cursor: pointer; }
.book-row .bar { position: absolute; top: 1px; bottom: 1px; right: 0; border-radius: 3px; opacity: 0.12; }
.book-row.asks .bar { background: var(--down); }
.book-row.bids .bar { background: var(--up); }
.book-row .px { position: relative; z-index: 1; }
.book-row .sz { position: relative; z-index: 1; text-align: right; color: var(--muted); }
.book-row.asks .px { color: var(--down); }
.book-row.bids .px { color: var(--up); }
.trade-form { padding: 14px; }
.form-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.form-tabs button { flex: 1; padding: 8px; border-radius: 8px; border: none; cursor: pointer; font-weight: 700; font-size: 14px; font-family: inherit; background: transparent; }
.form-tabs button.buy.active { background: rgba(14, 203, 129, 0.14); color: var(--up); }
.form-tabs button.sell.active { background: rgba(246, 70, 93, 0.14); color: var(--down); }
.type-tabs { display: flex; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.type-tabs button { background: none; border: none; color: var(--muted); cursor: pointer; padding: 2px 0; font-family: inherit; border-bottom: 2px solid transparent; }
.type-tabs button.active { color: var(--text); border-color: var(--fire2); }
.f-row { margin-bottom: 10px; }
.f-row label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.f-row label .link { color: var(--fire2); cursor: pointer; }
.f-row input { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 10px 12px; font-size: 14px; font-family: inherit; outline: none; }
.f-row input:focus { border-color: #3a4558; }
.f-row .suffix { position: relative; }
.f-row .suffix input { padding-right: 52px; }
.f-row .suffix::after { content: attr(data-unit); position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 12px; }
.pct-slider { display: flex; gap: 6px; margin: 4px 0 12px; }
.pct-slider button { flex: 1; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 5px 0; font-size: 11px; cursor: pointer; font-family: inherit; }
.pct-slider button:hover { color: var(--text); }
.form-total { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 8px 0 12px; }
.form-total b { color: var(--text); }
.order-submit { width: 100%; padding: 12px; font-size: 15px; }
.avail-line { font-size: 12px; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.orders-panel { padding: 0; }
.orders-tabs { display: flex; border-bottom: 1px solid var(--line); }
.orders-tabs button { background: none; border: none; color: var(--muted); padding: 12px 16px; cursor: pointer; font-size: 13px; font-family: inherit; border-bottom: 2px solid transparent; }
.orders-tabs button.active { color: var(--text); border-color: var(--fire2); }
.tape { font-size: 12px; font-variant-numeric: tabular-nums; padding: 8px 14px 12px; max-height: 260px; overflow: auto; }
.tape-row { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 3px 4px; }
.tape-row .p { text-align: left; } .tape-row .a { text-align: right; color: var(--muted); } .tape-row .t { text-align: right; color: var(--dim); font-size: 11px; }

/* ---------- 资产/排行/管理 ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-card .k { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.stat-card .v { font-size: 24px; font-weight: 800; }
.stat-card .v.small { font-size: 17px; }
.crown { font-size: 15px; }
.rank-1 { background: rgba(240, 185, 11, 0.07); }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-mask[hidden] { display: none; }
.tos-list { list-style: none; margin: 6px 0 4px; }
.tos-list li { padding: 11px 13px; margin-bottom: 9px; border-radius: 10px; font-size: 13.5px; line-height: 1.75;
  background: color-mix(in srgb, var(--bg2) 55%, transparent); border: 1px solid var(--line); border-left: 3px solid var(--fire2); }
.tos-list b { color: var(--fire2); }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: 400px; max-width: 100%; padding: 26px; max-height: 90vh; overflow: auto; }
.modal h3 { margin-bottom: 4px; font-size: 19px; }
.modal .modal-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 18px; line-height: 1.6; }
.modal .close-x { float: right; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.login-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.login-tabs button { flex: 1; background: none; border: none; color: var(--muted); padding: 10px; cursor: pointer; font-size: 14px; font-family: inherit; border-bottom: 2px solid transparent; font-weight: 600; }
.login-tabs button.active { color: var(--text); border-color: var(--fire2); }
.zb-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--up); background: rgba(14, 203, 129, 0.1); padding: 3px 8px; border-radius: 5px; margin-bottom: 12px; }
.form-err { color: var(--down); font-size: 12px; min-height: 16px; margin: 6px 0; }
.form-note { color: var(--dim); font-size: 11.5px; line-height: 1.6; margin-top: 10px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 11px; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Toast ---------- */
.toasts { position: fixed; top: 76px; right: 18px; z-index: 400; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 11px 16px; border-radius: 8px; font-size: 13px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4); animation: slidein 0.25s ease; max-width: 320px; }
.toast.ok { border-left-color: var(--up); }
.toast.err { border-left-color: var(--down); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 行情页可排序列头 */
th.clickable { cursor: pointer; user-select: none; white-space: nowrap; }
th.clickable:hover { color: var(--fire2); }

/* ---------- v130 视觉升级：火天大有主题动效 ---------- */
/* 首页 Hero：升腾余烬画布 + 极光底色流动 */
#hero-fire { position: relative; overflow: hidden; }
#fire-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
#hero-fire > *:not(#fire-canvas) { position: relative; z-index: 1; }
#hero-fire::before {
  content: ''; position: absolute; inset: -40%;
  background:
    radial-gradient(38% 44% at 22% 78%, rgba(246,70,93,.16), transparent 70%),
    radial-gradient(34% 40% at 76% 30%, rgba(255,176,58,.13), transparent 72%),
    radial-gradient(26% 34% at 52% 58%, rgba(139,92,246,.10), transparent 75%);
  animation: htaurora 14s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
@keyframes htaurora {
  0%   { transform: translate3d(-4%, -2%, 0) scale(1); opacity: .85; }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.06); opacity: 1; }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.02); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  #hero-fire::before { animation: none; }
}
/* 币种卡片：悬停抬升 + 描边点火 */
.mover { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.mover:hover {
  transform: translateY(-4px);
  border-color: rgba(255,176,58,.55);
  box-shadow: 0 10px 28px -12px rgba(255,140,40,.35);
}
/* v148：行情卡迷你走势线 */
.mover .mv-spark { width: 100%; height: 30px; display: block; margin-top: 8px; opacity: .9; }
/* v132：价格闪色（头部大价与盘口中线） */
@keyframes pxup { 0% { color: #2ebd85; text-shadow: 0 0 16px rgba(46,189,133,.7); } 100% { } }
@keyframes pxdn { 0% { color: #f6465d; text-shadow: 0 0 16px rgba(246,70,93,.7); } 100% { } }
.px-up { animation: pxup .7s ease-out; }
.px-dn { animation: pxdn .7s ease-out; }
/* v132：实时成交行入场 */
@keyframes tapein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.tape-row { animation: tapein .35s ease-out; }
/* v133：排行榜奖牌与三强氛围 */
.crown.md { font-size: 19px; filter: drop-shadow(0 0 8px rgba(240,185,11,.55)); }
tr.rank-1 td { background: linear-gradient(90deg, rgba(240,185,11,.10), transparent 65%); }
tr.rank-2 td { background: linear-gradient(90deg, rgba(200,210,225,.07), transparent 60%); }
tr.rank-3 td { background: linear-gradient(90deg, rgba(205,127,50,.08), transparent 60%); }
tr.rank-1 td:first-child { border-left: 2px solid rgba(240,185,11,.6); }
/* v133：充值引导卡金色流光描边（离钱最近处） */
@keyframes goldsweep { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.zb-glow { position: relative; border: 1px solid transparent !important; background:
  linear-gradient(var(--panel), var(--panel)) padding-box,
  linear-gradient(110deg, rgba(240,185,11,.65), rgba(139,92,246,.45), rgba(240,185,11,.65)) border-box;
  background-size: auto, 200% 100%; animation: goldsweep 3.2s linear infinite; }
/* v138：教学页卡片入场（弹性上浮，逐卡延迟） */
.fx-reveal .feature { animation: fxup .55s ease-out both; }
.fx-reveal .feature:nth-child(2) { animation-delay: .07s; }
.fx-reveal .feature:nth-child(3) { animation-delay: .14s; }
.fx-reveal .feature:nth-child(4) { animation-delay: .21s; }
@keyframes fxup { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fx-reveal .feature { animation: none; } }
/* v139：排行榜立体领奖台 */
.podium { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; }
.pod { flex: 1; border-radius: 14px; padding: 16px 12px 13px; text-align: center; border: 1px solid var(--line); background: var(--panel); }
.pod .pm { font-size: 24px; line-height: 1.2; }
.pod .pn { font-weight: 700; font-size: 13.5px; margin-top: 4px; }
.pod .pe { font-size: 17px; font-weight: 800; margin-top: 3px; }
.pod .pd { color: var(--muted); font-size: 10.5px; margin-top: 4px; }
.pod.p1 { order: 2; padding-top: 26px; padding-bottom: 20px; border-color: rgba(240,185,11,.55);
  background: linear-gradient(180deg, rgba(240,185,11,.16), rgba(240,185,11,.03));
  box-shadow: 0 12px 34px -14px rgba(240,185,11,.45); }
.pod.p1 .pe { color: #ffd86b; font-size: 20px; }
.pod.p2 { order: 1; padding-bottom: 24px; border-color: rgba(200,210,225,.35); }
.pod.p3 { order: 3; padding-bottom: 24px; border-color: rgba(205,127,50,.4); }
.pod.p1 { animation: p1in .5s ease-out both; }
.pod.p2, .pod.p3 { animation: fxup .5s ease-out both; }
.pod.p3 { animation-delay: .08s; }
@keyframes p1in { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }
/* v139：盘口深度条渐变 */
.book-row.asks .bar { background: linear-gradient(90deg, rgba(246,70,93,.05), rgba(246,70,93,.42)); }
.book-row.bids .bar { background: linear-gradient(90deg, rgba(14,203,129,.05), rgba(14,203,129,.42)); }
/* v145：交易台快速切换器（watchlist chips） */
.pair-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 2px; scrollbar-width: none; }
.pair-chips::-webkit-scrollbar { display: none; }
.pchip { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2,#12161c);
  cursor: pointer; transition: border-color .15s, background .15s; }
.pchip:hover { border-color: rgba(255,176,58,.5); }
.pchip.active { border-color: var(--fire2); background: rgba(255,176,58,.08); }
.pchip .pc-s { font-size: 11px; font-weight: 700; color: var(--text); }
.pchip .pc-p { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pchip .pc-c { font-size: 10.5px; font-variant-numeric: tabular-nums; }
/* v146：买卖力量比条 */
.press-wrap { padding: 10px 12px 0; }
.press-legend { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-bottom: 5px; }
.press-legend .pb b { color: var(--up); } .press-legend .pa b { color: var(--down); }
.press { display: flex; height: 7px; border-radius: 4px; overflow: hidden; background: rgba(132,142,156,.15); }
.press i { display: block; height: 100%; transition: width .45s ease; }
.press .b { background: linear-gradient(90deg, rgba(14,203,129,.5), #0ecb81); }
.press .a { background: linear-gradient(90deg, #f6465d, rgba(246,70,93,.5)); }
/* v155：K线全屏专注模式 */
.fs-btn { margin-left: auto; padding: 4px 10px; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.fs-btn:hover { color: var(--fire2); border-color: rgba(255,176,58,.5); }
.chart-wrap:fullscreen { background: var(--bg, #0b0e11); padding: 10px; }
.chart-wrap:fullscreen canvas { height: calc(100vh - 20px) !important; }
.chart-wrap.fs-fallback { position: fixed; inset: 0; z-index: 800; background: var(--bg, #0b0e11); padding: 10px; }
.chart-wrap.fs-fallback canvas { height: calc(100vh - 20px) !important; }
/* v159：弥勒币大事记时间轴 */
.milestone { position: relative; padding-left: 22px; }
.milestone::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, rgba(240,185,11,.5), rgba(139,92,246,.35)); border-radius: 2px; }
.ms-item { position: relative; padding: 6px 0 14px; }
.ms-item:last-child { padding-bottom: 2px; }
.ms-dot { position: absolute; left: -22px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); border: 2px solid var(--bg, #0b0e11); }
.ms-dot.gold { background: #f0b90b; box-shadow: 0 0 10px rgba(240,185,11,.6); }
.ms-dot.pulse { background: #2ebd85; box-shadow: 0 0 12px rgba(46,189,133,.7); animation: mspulse 2s ease-in-out infinite; }
@keyframes mspulse { 0%,100% { box-shadow: 0 0 6px rgba(46,189,133,.5); } 50% { box-shadow: 0 0 16px rgba(46,189,133,.95); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .trade-layout { grid-template-columns: 1fr; }
  .hero { padding: 40px 24px; }
  .hero h1 { font-size: 32px; }
}

/* ---------- 移动端底部标签栏（≤760px 替代顶部导航） ---------- */
.tabbar { display: none; }
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0 5px; color: var(--muted); font-size: 10.5px; font-weight: 500;
  text-decoration: none; border-radius: 10px; transition: 0.15s;
}
.tabbar a .tb-ic { font-size: 19px; line-height: 1; }
.tabbar a.active { color: var(--fire2); }

@media (max-width: 760px) {
  .nav { display: none; }
  .topbar-inner { gap: 12px; }
  main { padding: 12px; }
  .pair-head .big { font-size: 20px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
    background: rgba(14, 17, 21, 0.97); border-top: 1px solid var(--line);
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom, 0px));
    backdrop-filter: blur(12px);
  }
  body { padding-bottom: 62px; }
  .footer { padding-bottom: 76px; }
}
