/* 自托管数字字体（原 miaoda 字体 CDN 会阻塞首屏解析，改为本地 woff2） */
@font-face{font-family:"Chakra Petch";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/chakra-petch-400.woff2") format("woff2")}
@font-face{font-family:"Chakra Petch";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/chakra-petch-500.woff2") format("woff2")}
@font-face{font-family:"Chakra Petch";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/chakra-petch-600.woff2") format("woff2")}
@font-face{font-family:"Chakra Petch";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/chakra-petch-700.woff2") format("woff2")}
/* =========================================================
   账户分析 H5 · 视觉系统
   基调：深空蓝 + 青蓝光晕，数字用等宽科技字体，面板用发丝描边
   区域：变量 → 基础 → 顶栏 → 区间条 → 曲线主卡 → 指标 → 资产
        → 月度热力 → 品种 → 结论 → 页脚/分享
   ========================================================= */

:root {
  --bg: #060a16;
  --bg-2: #081022;
  --panel: rgba(13, 26, 48, 0.72);
  --panel-solid: #0b1730;
  --line: rgba(86, 145, 235, 0.16);
  --line-strong: rgba(96, 165, 250, 0.28);
  --text: #e9f1ff;
  --muted: #8399bb;
  --dim: #56688a;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --up: #ff5d6c;
  --up-soft: rgba(255, 93, 108, 0.12);
  --down: #16c79a;
  --down-soft: rgba(22, 199, 154, 0.12);
  --warn: #f5b544;
  --radius: 14px;
  --radius-sm: 10px;
  --num: "Chakra Petch", "SF Mono", "Roboto Mono", monospace;
  --sans: "Noto Sans SC", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* 背景：三层光晕 + 细网格，营造"终端屏幕"的纵深，不做成装饰图 */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 600px at 50% -12%, rgba(37, 99, 235, 0.22), transparent 62%),
    radial-gradient(620px 480px at 92% 8%, rgba(34, 211, 238, 0.10), transparent 68%),
    radial-gradient(760px 520px at 6% 108%, rgba(59, 130, 246, 0.10), transparent 70%),
    var(--bg);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(86, 145, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 145, 235, 0.05) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  mask-image: radial-gradient(circle at 50% 18%, rgba(0, 0, 0, 0.85), transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 18%, rgba(0, 0, 0, 0.85), transparent 78%);
  z-index: -1;
  pointer-events: none;
}

.app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

@media (min-width: 520px) {
  .app { max-width: 520px; }
}

/* ============ 顶栏 ============ */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 0 12px;
  background: linear-gradient(180deg, rgba(6, 10, 22, 0.96) 62%, rgba(6, 10, 22, 0));
  backdrop-filter: blur(6px);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.22), rgba(34, 211, 238, 0.10));
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.18);
}
.mark svg { width: 19px; height: 19px; stroke: #9ecbff; }

.brand-txt { min-width: 0; }
.brand-title { font-size: 15px; font-weight: 700; letter-spacing: 0.5px; }
.brand-sub {
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--down); box-shadow: 0 0 8px var(--down); flex: none; }

.btn-share {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-family: var(--sans); font-size: 12px; color: #cfe4ff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.30), rgba(34, 211, 238, 0.16));
  border: 1px solid var(--line-strong); border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-share:active { transform: scale(0.96); }
.btn-share svg { width: 13px; height: 13px; stroke: #bcdeff; }

/* ============ 区间条 ============ */
.rangebar {
  display: flex; gap: 5px; flex-wrap: wrap;
  overflow: visible;
  padding: 2px 0 10px;
  margin: 0 -16px; padding-left: 16px; padding-right: 16px;
}
.rangebar::-webkit-scrollbar { display: none; }

.chip {
  /* 按文字宽度自适应（不再等分撑满），好让右下的「截至 …」能挤在同一行 */
  flex: 0 0 auto; min-width: 0; text-align: center; white-space: nowrap;
  padding: 6px 9px;
  font-size: 11.5px; color: var(--muted);
  background: rgba(13, 26, 48, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.chip.on {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.65);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.42), rgba(34, 211, 238, 0.16));
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.25);
}
.chip:active { transform: scale(0.97); }

.chip-end {
  /* 靠右跟在 chip 同一行；真放不下时才自动换行并右对齐 */
  flex: 0 0 auto; margin-left: auto;
  text-align: right; padding: 0 2px;
  font-size: 10.5px; color: var(--dim); white-space: nowrap;
  align-self: center;
}

/* ============ 面板基类 ============ */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.35), transparent);
  opacity: 0.5;
}

.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.panel-title { font-size: 13px; font-weight: 700; letter-spacing: 0.4px; color: #cfe0f7; }
.panel-title small { font-weight: 400; color: var(--dim); font-size: 11px; margin-left: 6px; letter-spacing: 0; }
.panel-extra { font-size: 11px; color: var(--muted); }
.link { color: #7fb2ff; text-decoration: none; font-size: 11px; }

/* ============ 曲线主卡（首页第一屏） ============ */
.hero { padding: 16px 16px 12px; }

.hero-top { display: block; }
.hero-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.hero-label { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; }

.hero-num {
  font-family: var(--num);
  font-size: 38px; font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  line-height: 1.15;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(255, 93, 108, 0.22);
}
.hero-num.up { color: var(--up); }
.hero-num.down { color: var(--down); }

.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.hero-rate { font-family: var(--num); font-weight: 500; }
.hero-rate.up { color: var(--up); }
.hero-rate.down { color: var(--down); }
.hero-range { font-family: var(--num); color: var(--dim); font-size: 11px; }

.hero-tabs { display: flex; flex: none; gap: 3px; background: rgba(8, 16, 34, 0.7); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.hero-tabs button {
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 9px; border-radius: 999px;
  font-family: var(--sans); font-size: 11px; color: var(--muted);
  white-space: nowrap; flex: none;
  transition: color 0.15s, background 0.15s;
}
.hero-tabs button.on { color: #e6f2ff; background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(34, 211, 238, 0.25)); }

.chart { width: 100%; height: 232px; margin: 8px -4px 0; }

.chart-foot {
  display: flex; justify-content: space-between; gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 10px; margin-top: 4px;
  font-size: 11px; color: var(--dim);
}
.chart-foot span { display: flex; flex-direction: column; gap: 2px; }
.chart-foot b { font-family: var(--num); font-weight: 500; color: #b7cbe8; font-size: 12px; }
.chart-foot b.up { color: var(--up); }
.chart-foot b.down { color: var(--down); }

/* ============ 四指标 ============ */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0 -2px;
}
.metrics-grid > div {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 18, 36, 0.45);
}
.m-label { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.m-val { font-family: var(--num); font-size: 25px; font-weight: 600; line-height: 1.3; margin-top: 2px; font-variant-numeric: tabular-nums; }
.m-sub { font-size: 10px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-val.up { color: var(--up); }
.m-val.down { color: var(--down); }
.m-val.warn { color: var(--warn); }

.tip {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid rgba(126, 160, 210, 0.5);
  color: #7e9fc8; font-size: 9px; line-height: 11px; text-align: center;
  cursor: help; flex: none; font-family: var(--num);
}

/* ============ 资产区 ============ */
.assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.asset { background: rgba(9, 18, 36, 0.6); padding: 11px 10px; }
.asset .k { font-size: 10px; color: var(--dim); }
.asset .v { font-family: var(--num); font-size: 15px; font-weight: 500; margin-top: 3px; color: #d6e6ff; font-variant-numeric: tabular-nums; }

.risk-row { margin-top: 12px; }
.risk-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.risk-top b { font-family: var(--num); font-weight: 500; color: #cbdffa; }
.risk-track { height: 5px; border-radius: 99px; background: rgba(38, 66, 112, 0.6); overflow: hidden; }
.risk-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22d3ee, #3b82f6); transition: width 0.5s ease; }
.risk-fill.warn { background: linear-gradient(90deg, #f5b544, #f59e0b); }
.risk-fill.danger { background: linear-gradient(90deg, #ff5d6c, #e11d48); }

.today-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted);
}
.today-row b { font-family: var(--num); font-size: 17px; font-weight: 500; }
.today-row b.up { color: var(--up); }
.today-row b.down { color: var(--down); }
.today-row .tag { font-size: 10px; color: var(--dim); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; margin-left: 6px; }

/* 手续费（估算） */
.cost-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 9px; font-size: 11px; color: var(--muted);
}
.cost-row b { font-family: var(--num); font-size: 13px; font-weight: 500; color: #9fb6d4; font-variant-numeric: tabular-nums; }
.cost-row .tag { font-size: 10px; color: var(--dim); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; margin-left: 6px; }

/* 较初始资金：把账户整体口径摆在明面上 */
.init-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 10px; padding: 8px 10px; font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(11, 23, 44, 0.5);
}
.init-row b { font-family: var(--num); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.init-row b.up { color: var(--up); }
.init-row b.down { color: var(--down); }

/* ============ 月度热力 ============ */
.heat-head { display: flex; align-items: center; gap: 8px; }
.year-switch { display: flex; align-items: center; gap: 2px; }
.year-btn { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: rgba(12, 24, 46, 0.8); color: var(--muted); font-size: 12px; line-height: 1; cursor: pointer; }
.year-btn:disabled { opacity: 0.35; cursor: default; }
.year-txt { font-family: var(--num); font-size: 13px; color: #cfe0f7; padding: 0 4px; }

.heat-mode { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.heat-mode button { border: 0; background: transparent; color: var(--muted); font-size: 11px; padding: 4px 9px; cursor: pointer; font-family: var(--sans); }
.heat-mode button.on { background: rgba(59, 130, 246, 0.28); color: #e2efff; }

.heat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.heat-cell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 4px;
  min-height: 46px;
  background: rgba(8, 16, 34, 0.55);
  overflow: hidden;
}
.heat-cell .hm { font-size: 9px; color: var(--dim); letter-spacing: -0.2px; white-space: nowrap; }
.heat-cell .hv { font-family: var(--num); font-size: 11px; font-weight: 500; margin-top: 3px; font-variant-numeric: tabular-nums; letter-spacing: -0.3px; white-space: nowrap; }
.heat-cell .hv.na { color: #3d4c66; }
.heat-cell.up { background: rgba(255, 93, 108, 0.10); border-color: rgba(255, 93, 108, 0.22); }
.heat-cell.up .hv { color: var(--up); }
.heat-cell.up.h1 { background: rgba(255, 93, 108, 0.26); }
.heat-cell.up.h2 { background: rgba(255, 93, 108, 0.17); }
.heat-cell.down { background: rgba(22, 199, 154, 0.10); border-color: rgba(22, 199, 154, 0.22); }
.heat-cell.down .hv { color: var(--down); }
.heat-cell.down.h1 { background: rgba(22, 199, 154, 0.26); }
.heat-cell.down.h2 { background: rgba(22, 199, 154, 0.17); }

.heat-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.heat-total b { font-family: var(--num); font-size: 18px; font-weight: 600; }
.heat-total b.up { color: var(--up); }
.heat-total b.down { color: var(--down); }

/* ============ 品种 ============ */
.prod-top { display: flex; gap: 12px; align-items: flex-start; }
.donut { width: 46%; height: 148px; flex: none; }
.legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding-top: 2px; }
.legend-row { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.legend-name { color: #b6cbe8; flex: none; }
.legend-share { margin-left: auto; font-family: var(--num); color: var(--muted); font-size: 11px; }

.prod-bars { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 54px 1fr 72px; align-items: center; gap: 8px; font-size: 11px; }
.bar-name { color: #b6cbe8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { position: relative; height: 8px; background: rgba(30, 52, 88, 0.55); border-radius: 99px; overflow: hidden; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.bar-fill.up { background: linear-gradient(90deg, rgba(255, 93, 108, 0.45), var(--up)); }
.bar-fill.down { background: linear-gradient(90deg, rgba(22, 199, 154, 0.45), var(--down)); }
.bar-val { text-align: right; font-family: var(--num); font-size: 12px; }
.bar-val.up { color: var(--up); }
.bar-val.down { color: var(--down); }

/* ============ 结论条 ============ */
.conclusion { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; }
.quote-mark { font-family: var(--num); font-size: 26px; line-height: 1; color: rgba(96, 165, 250, 0.5); flex: none; margin-top: -2px; }
.conclusion-txt { font-size: 12.5px; color: #c6d8f2; line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag-pill { font-size: 10px; color: #9ec3ff; border: 1px solid rgba(96, 165, 250, 0.3); background: rgba(59, 130, 246, 0.10); padding: 2px 7px; border-radius: 4px; }

/* ============ 页脚 / 分享 ============ */
.foot { margin-top: 18px; }
.share-cta {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.24), rgba(34, 211, 238, 0.10));
  border: 1px solid rgba(96, 165, 250, 0.32);
  cursor: pointer;
}
.share-cta-txt { flex: 1; min-width: 0; }
.share-cta-txt h3 { font-size: 13px; font-weight: 700; color: #e2efff; }
.share-cta-txt p { font-size: 11px; color: #94b6de; margin-top: 2px; line-height: 1.5; }
.share-cta-arrow { flex: none; color: #9ecbff; font-size: 16px; }

.disclaimer { margin-top: 14px; font-size: 10px; color: #52678a; line-height: 1.7; }
.foot-meta { margin-top: 10px; display: flex; gap: 10px; font-size: 10px; color: #3f5373; }
.foot-meta span { font-family: var(--num); }

/* ============ 分享面板（底部弹层） ============ */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(3, 7, 16, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity 0.22s ease;
  z-index: 50;
}
.sheet-mask.on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: 480px; margin: 0 auto;
  background: linear-gradient(180deg, #0d1c34, #08101f);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(102%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 51;
}
.sheet.on { transform: translateY(0); }
.sheet h3 { font-size: 15px; margin-bottom: 4px; }
.sheet p.sheet-sub { font-size: 11px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.sheet-actions { display: flex; gap: 10px; }
.sheet-btn {
  flex: 1; padding: 12px 0; border-radius: 11px; border: 1px solid var(--line-strong);
  background: rgba(59, 130, 246, 0.16); color: #dbeafe;
  font-family: var(--sans); font-size: 13px; cursor: pointer;
}
.sheet-btn.primary { background: linear-gradient(135deg, #2563eb, #0891b2); border-color: transparent; font-weight: 600; }
.sheet-note { margin-top: 12px; font-size: 10px; color: #52678a; line-height: 1.7; }
.sheet-close { position: absolute; right: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }

.poster-wrap { display: none; }
.poster-wrap.on { display: block; margin-top: 12px; }
.poster-img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }

/* ============ 登录 / 注册 ============ */
.auth-mask {
  position: fixed; inset: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(4, 8, 18, 0.78);
  backdrop-filter: blur(7px);
}
.auth-mask.show { display: flex; }
.auth-card {
  position: relative;
  width: 100%; max-width: 350px;
  padding: 18px 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.32);
  background: linear-gradient(180deg, #0c1a31, #08111f);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}
.auth-close {
  position: absolute; right: 10px; top: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer;
}
.auth-tabs { display: flex; gap: 4px; margin: 0 0 12px; padding-right: 26px; }
.auth-tabs button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px; border-radius: 8px;
  font-family: var(--sans); font-size: 13px; color: var(--muted);
}
.auth-tabs button.on { color: #e6f2ff; background: rgba(59, 130, 246, 0.22); font-weight: 600; }
.auth-msg { font-size: 11.5px; color: #9fb6d4; margin-bottom: 12px; line-height: 1.6; }
.auth-msg.warn { color: #ffb0b8; }
.auth-field { display: block; margin-bottom: 10px; }
.auth-field span { display: block; font-size: 10.5px; color: var(--dim); margin-bottom: 5px; }
.auth-field input {
  width: 100%; padding: 10px 11px;
  border-radius: 9px; border: 1px solid var(--line);
  background: rgba(8, 16, 34, 0.85);
  color: #e9f1ff; font-size: 13px; font-family: var(--num);
  outline: none;
}
.auth-field input:focus { border-color: rgba(96, 165, 250, 0.6); }
.auth-err { min-height: 15px; font-size: 11px; color: #ff8b98; margin: 2px 0 8px; }
.auth-submit {
  width: 100%; padding: 11px 0; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #f2f8ff; font-family: var(--sans); font-size: 13px; font-weight: 600; cursor: pointer;
}
.auth-submit:disabled { opacity: 0.6; cursor: default; }
.auth-hint { margin-top: 10px; font-size: 10px; color: #52678a; line-height: 1.6; }

/* 页面级登录引导卡（详情页未登录时盖住数据） */
.gate {
  margin: 18px 0;
  padding: 22px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}
.gate h3 { font-size: 14px; margin-bottom: 6px; }
.gate p { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.gate button {
  padding: 9px 22px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #f2f8ff; font-family: var(--sans); font-size: 12.5px; font-weight: 600; cursor: pointer;
}

/* ============ 窄屏（多数手机 360~400px）============ */
@media (max-width: 400px) {
  .panel { padding: 14px 12px; }
  .hero { padding: 14px 12px 10px; }
  .hero-num { font-size: 32px; letter-spacing: 0.2px; }
  .hero-tabs button { padding: 4px 8px; font-size: 10.5px; }
  .chart { height: 206px; margin-top: 6px; }
  .chip { font-size: 10.5px; padding: 5px 6px; }
  .chart-foot { gap: 8px; }
}

/* ============ 手势/动画 ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.rise { animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.skeleton { position: relative; overflow: hidden; background: rgba(30, 52, 88, 0.35); border-radius: 4px; color: transparent !important; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(120, 170, 240, 0.16), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
