/* ═══════════════════════════════════════════════════════════
   中央汇金振兴扶贫资金 · 用户端样式
   红金政务金融主题 · 移动优先 · 适老化可切换
   ═══════════════════════════════════════════════════════════ */
:root {
  --red-900: #4A0508;
  --red-800: #7A0A10;
  --red-700: #9E0D16;
  --red-600: #C8102E;
  --red-500: #E01E37;
  --gold-600: #B8860B;
  --gold-500: #D4AF37;
  --gold-400: #E5C670;
  --gold-300: #F3DCA0;
  --gold-100: #FBF1D8;
  --ink-900: #0D0708;
  --ink-800: #170C0E;
  --ink-700: #201114;
  --card: rgba(255, 246, 235, 0.045);
  --card-solid: #1D1113;
  --line: rgba(212, 175, 55, 0.16);
  --line-strong: rgba(212, 175, 55, 0.34);
  --text: #F2E7DA;
  --text-dim: #B7A491;
  --text-mute: #8A7768;
  --green: #3FCF8E;
  --blue: #56A8F5;
  --warn: #F0A33C;
  --danger: #F2545B;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --num: "DIN Alternate", "SF Pro Display", "Bahnschrift", var(--font);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(200, 16, 46, 0.28), transparent 65%),
    radial-gradient(900px 500px at 100% 10%, rgba(212, 175, 55, 0.10), transparent 60%),
    linear-gradient(180deg, #150A0C 0%, #0D0708 45%, #0A0506 100%);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(212,175,55,0.022) 0 2px, transparent 2px 9px);
  pointer-events: none; z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-400); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.25); border-radius: 3px; }
.hidden { display: none !important; }

/* ── 外壳 ─────────────────────────────────────── */
#app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; min-height: 100vh; }
.screen { min-height: 100vh; display: flex; flex-direction: column; }
@media (min-width: 900px) {
  #app { box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(0,0,0,0.6); border-radius: 0 0 24px 24px; }
}

/* ── 品牌 ─────────────────────────────────────── */
.brand-mark {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(145deg, #C8102E, #6E0810 70%);
  border: 1px solid rgba(243, 220, 160, 0.45);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(200,16,46,0.4), inset 0 1px 0 rgba(255,255,255,0.18);
  font-weight: 800; color: var(--gold-300); font-size: 22px; letter-spacing: -1px;
  flex: 0 0 auto;
}
.brand-text h1 {
  margin: 0; font-size: 19px; font-weight: 800; letter-spacing: 1.5px;
  background: linear-gradient(100deg, #FBF1D8 0%, #E5C670 40%, #D4AF37 70%, #FBF1D8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text p { margin: 3px 0 0; font-size: 11px; color: var(--text-mute); letter-spacing: 2.4px; }

/* ── 登录页 ───────────────────────────────────── */
#auth { justify-content: center; padding: 34px 22px 40px; }
.auth-hero { text-align: center; margin-bottom: 26px; }
.auth-hero .brand-mark { width: 72px; height: 72px; margin: 0 auto 18px; font-size: 28px; border-radius: 22px; }
.auth-hero h1 {
  font-size: 25px; margin: 0 0 8px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(100deg, #FBF1D8, #E5C670 45%, #D4AF37 75%, #FBF1D8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-hero p { margin: 0; color: var(--text-mute); font-size: 12px; letter-spacing: 3px; }
.auth-card {
  width: 100%; min-width: 0;
  background: linear-gradient(160deg, rgba(255,246,235,0.07), rgba(255,246,235,0.028));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.auth-tabs { display: flex; gap: 6px; background: rgba(0,0,0,0.3); padding: 4px; border-radius: 12px; margin-bottom: 20px; }
.auth-tabs button {
  flex: 1; padding: 10px; border: 0; background: transparent; color: var(--text-dim);
  border-radius: 9px; font-weight: 600; cursor: pointer; transition: .22s;
}
.auth-tabs button.on { background: linear-gradient(135deg, #C8102E, #8B0000); color: #FFF3DC; box-shadow: 0 4px 14px rgba(200,16,46,0.4); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--text-mute); margin-bottom: 7px; letter-spacing: .6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.32);
  color: var(--text); outline: none; transition: .2s;
}
.field input::placeholder { color: #6C5B4E; }
.field input:focus, .field textarea:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212,175,55,0.12); }
.field .hint { font-size: 11.5px; color: var(--text-mute); margin-top: 6px; line-height: 1.5; }
.field-row { display: flex; gap: 10px; }
.field-row > * { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 12px; border: 0; cursor: pointer;
  font-weight: 700; letter-spacing: .5px; transition: transform .16s, box-shadow .22s, opacity .2s;
  width: 100%; font-size: 15px;
}
.btn:active { transform: scale(.975); }
.btn-primary {
  background: linear-gradient(135deg, #E5C670 0%, #D4AF37 45%, #B8860B 100%);
  color: #3A1206; box-shadow: 0 8px 26px rgba(212,175,55,0.32);
}
.btn-red {
  background: linear-gradient(135deg, #E01E37, #9E0D16);
  color: #FFF3DC; box-shadow: 0 8px 26px rgba(200,16,46,0.38);
}
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--line); }
.btn-sm { padding: 8px 14px; font-size: 13px; width: auto; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

.auth-foot { text-align: center; margin-top: 18px; font-size: 12px; color: var(--text-mute); line-height: 1.9; }
.auth-foot b { color: var(--gold-400); font-weight: 600; }

/* ── 顶栏 ─────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px 12px;
  background: linear-gradient(180deg, rgba(21,10,12,0.96), rgba(21,10,12,0.82) 70%, transparent);
  backdrop-filter: blur(10px);
}
.topbar .brand-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 16px; }
.topbar .brand-text h1 { font-size: 15px; letter-spacing: .8px; }
.topbar .brand-text p { font-size: 9.5px; letter-spacing: 1.6px; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--gold-300);
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn:active { transform: scale(.94); }

/* ── 视图容器 ─────────────────────────────────── */
.view { padding: 4px 16px 110px; animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── 资产主卡 ─────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(243,220,160,0.22), transparent 55%),
    linear-gradient(140deg, #8E0C17 0%, #6E0810 45%, #3E0407 100%);
  border: 1px solid rgba(243,220,160,0.28);
  box-shadow: 0 18px 44px rgba(120,8,16,0.42), inset 0 1px 0 rgba(255,255,255,0.14);
  margin-bottom: 16px;
}
.hero::after {
  content: ''; position: absolute; right: -40px; top: -50px; width: 200px; height: 200px;
  border-radius: 50%; border: 1px solid rgba(243,220,160,0.2);
  box-shadow: 0 0 0 26px rgba(243,220,160,0.045), 0 0 0 52px rgba(243,220,160,0.028);
}
.hero-label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255,240,215,0.78); letter-spacing: 1.4px; }
.hero-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 10px var(--gold-400); }
.hero-balance {
  display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px;
  font-family: var(--num); position: relative; z-index: 1;
}
.hero-balance .num { font-size: 40px; font-weight: 800; letter-spacing: -1px; color: #FFF6E6; text-shadow: 0 2px 18px rgba(255,220,150,0.35); }
.hero-balance .unit { font-size: 14px; color: rgba(255,240,215,0.75); font-weight: 600; }
.hero-sub { display: flex; gap: 18px; font-size: 12px; color: rgba(255,240,215,0.62); margin-top: 6px; }
.hero-sub b { color: var(--gold-300); font-family: var(--num); font-weight: 700; }
.hero-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.hero-actions button {
  min-width: 0;
  border: 1px solid rgba(243,220,160,0.28); background: rgba(255,255,255,0.08);
  color: #FFF3DC; border-radius: 12px; padding: 10px 4px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px;
  transition: .2s; font-weight: 600;
}
.hero-actions button:active { background: rgba(243,220,160,0.24); transform: scale(.96); }
.hero-actions svg { width: 19px; height: 19px; stroke: var(--gold-300); }

/* ── 通用卡片 ─────────────────────────────────── */
.card {
  background: linear-gradient(160deg, rgba(255,246,235,0.06), rgba(255,246,235,0.024));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; letter-spacing: .6px; display: flex; align-items: center; gap: 8px; }
.card-head h3::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--gold-400), var(--red-600)); }
.card-head .more { font-size: 12px; color: var(--text-mute); cursor: pointer; }
.section-title { font-size: 14px; font-weight: 700; letter-spacing: .8px; margin: 20px 2px 12px; display: flex; align-items: center; gap: 9px; }
.section-title::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, var(--gold-400), var(--red-600)); }

/* ── 数据网格 ─────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-box {
  background: rgba(0,0,0,0.24); border: 1px solid var(--line);
  border-radius: 13px; padding: 13px 10px; text-align: center;
}
.stat-box .v { font-family: var(--num); font-size: 18px; font-weight: 800; color: var(--gold-300); letter-spacing: -.4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-box .k { font-size: 11px; color: var(--text-mute); margin-top: 4px; letter-spacing: .4px; }
.stat-box.green .v { color: var(--green); }
.stat-box.blue .v { color: var(--blue); }

/* ── 收益日历 ─────────────────────────────────── */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal .d {
  aspect-ratio: 1; border-radius: 9px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 10px;
  background: rgba(255,255,255,0.035); border: 1px solid transparent; color: var(--text-mute);
}
.cal .d.has { background: rgba(63,207,142,0.13); border-color: rgba(63,207,142,0.3); color: #A9F0CD; }
.cal .d.has .amt { font-size: 9px; font-family: var(--num); color: var(--green); margin-top: 1px; }
.cal .d.head { color: var(--text-mute); font-size: 10px; background: transparent; }
.cal .d.today { border-color: var(--gold-500); box-shadow: 0 0 0 2px rgba(212,175,55,0.15); }

/* ── 计划卡 ───────────────────────────────────── */
.plan {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 16px 16px 15px;
  background: linear-gradient(150deg, rgba(255,246,235,0.07), rgba(255,246,235,0.02));
  border: 1px solid var(--line); margin-bottom: 13px;
}
.plan::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--red-600)); }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plan-name { font-size: 15.5px; font-weight: 800; letter-spacing: .5px; margin: 0; }
.plan-sub { font-size: 11.5px; color: var(--text-mute); margin: 4px 0 0; }
.plan-tag {
  font-size: 10.5px; padding: 3px 9px; border-radius: 20px; font-weight: 700; letter-spacing: .5px;
  background: rgba(212,175,55,0.14); color: var(--gold-400); border: 1px solid rgba(212,175,55,0.3);
  white-space: nowrap;
}
.plan-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 12px; }
.plan-metrics .m { text-align: center; }
.plan-metrics .m .v { font-family: var(--num); font-size: 19px; font-weight: 800; color: var(--gold-300); }
.plan-metrics .m .v small { font-size: 11px; font-weight: 600; margin-left: 1px; }
.plan-metrics .m .k { font-size: 10.5px; color: var(--text-mute); margin-top: 2px; }
.plan-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.07); overflow: hidden; margin-bottom: 10px; }
.plan-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-500), var(--red-500)); transition: width .6s; }
.plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-foot .left { font-size: 11.5px; color: var(--text-mute); }
.plan-foot .left b { color: var(--text-dim); font-family: var(--num); }

/* ── 列表 ─────────────────────────────────────── */
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(212,175,55,0.08);
}
.list-item:last-child { border-bottom: 0; }
.list-item .ic {
  width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 15px;
  background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.16); color: var(--gold-300);
}
.list-item .body { flex: 1; min-width: 0; }
.list-item .t { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .s { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.list-item .right { text-align: right; flex: 0 0 auto; }
.list-item .amt { font-family: var(--num); font-size: 15px; font-weight: 800; }
.list-item .amt.plus { color: var(--green); }
.list-item .amt.minus { color: var(--danger); }
.list-item .st { font-size: 10.5px; margin-top: 2px; color: var(--text-mute); }

.pill { display: inline-block; font-size: 10.5px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.pill.ok { background: rgba(63,207,142,0.14); color: var(--green); }
.pill.wait { background: rgba(240,163,60,0.14); color: var(--warn); }
.pill.no { background: rgba(242,84,91,0.14); color: var(--danger); }
.pill.info { background: rgba(86,168,245,0.14); color: var(--blue); }

/* ── 邀请 ─────────────────────────────────────── */
.invite-card {
  background: linear-gradient(150deg, #7A0A10, #4A0508);
  border: 1px solid rgba(243,220,160,0.3); border-radius: var(--radius-lg);
  padding: 20px; text-align: center; margin-bottom: 14px; position: relative; overflow: hidden;
}
.invite-card::after {
  content: ''; position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(243,220,160,0.09), transparent 40%);
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.invite-card > * { position: relative; z-index: 1; }
.invite-code {
  font-family: var(--num); font-size: 30px; font-weight: 800; letter-spacing: 5px;
  color: var(--gold-300); margin: 8px 0 4px; text-shadow: 0 2px 16px rgba(243,220,160,0.35);
}
.invite-hint { font-size: 11.5px; color: rgba(255,240,215,0.6); }
.qr-wrap { display: inline-block; padding: 10px; background: #FFF8EC; border-radius: 14px; margin: 12px 0 8px; }
.qr-wrap canvas, .qr-wrap img { width: 132px; height: 132px; display: block; }

/* ── 底部导航 ─────────────────────────────────── */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(13,7,8,0.55), rgba(13,7,8,0.97) 45%);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(212,175,55,0.14);
}
.tabbar button {
  border: 0; background: transparent; color: var(--text-mute);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 0; cursor: pointer; font-size: 10.5px; font-weight: 600; transition: .2s;
  position: relative;
}
.tabbar svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tabbar button.on { color: var(--gold-400); }
.tabbar button.on::after {
  content: ''; position: absolute; top: -8px; width: 22px; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

/* ── 弹层 ─────────────────────────────────────── */
#sheet-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.62); backdrop-filter: blur(3px);
  z-index: 100; opacity: 0; pointer-events: none; transition: opacity .25s;
}
#sheet-mask.on { opacity: 1; pointer-events: auto; }
#sheet {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%);
  width: 100%; max-width: 520px; z-index: 101;
  background: linear-gradient(180deg, #22131 6, #170C0E);
  background: linear-gradient(180deg, #241417, #150A0C);
  border-top: 1px solid var(--line-strong); border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
  max-height: 88vh; overflow-y: auto;
}
#sheet.on { transform: translate(-50%, 0); }
#sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
#sheet .sheet-head h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .5px; }
#sheet .sheet-head .close { border: 0; background: rgba(255,255,255,0.07); color: var(--text-dim); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 16px; }

/* ── Toast ────────────────────────────────────── */
#toast {
  position: fixed; left: 50%; top: 22px; transform: translate(-50%, -22px);
  z-index: 300; padding: 11px 20px; border-radius: 12px;
  background: rgba(28,16,18,0.97); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: .28s; max-width: 86vw; text-align: center;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.err { border-color: rgba(242,84,91,0.5); color: #FFC9CC; }
#toast.ok { border-color: rgba(63,207,142,0.45); color: #B9F7DA; }

/* ── 进度步条 ─────────────────────────────────── */
.steps { display: flex; align-items: center; gap: 0; margin: 4px 0 18px; }
.steps .step { flex: 1; text-align: center; position: relative; font-size: 11px; color: var(--text-mute); }
.steps .step .n {
  width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 6px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--text-mute);
}
.steps .step.done .n { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #3A1206; border-color: transparent; }
.steps .step.done { color: var(--gold-300); }
.steps .step::after {
  content: ''; position: absolute; top: 13px; left: 50%; width: 100%; height: 1px;
  background: var(--line); z-index: -1;
}
.steps .step:last-child::after { display: none; }

/* ── 空态 ─────────────────────────────────────── */
.empty { text-align: center; padding: 34px 16px; color: var(--text-mute); font-size: 13px; }
.empty .em { font-size: 34px; opacity: .5; margin-bottom: 10px; }

/* ── 分段控件 ─────────────────────────────────── */
.seg { display: flex; gap: 5px; background: rgba(0,0,0,0.28); padding: 4px; border-radius: 11px; margin-bottom: 14px; overflow-x: auto; }
.seg button {
  flex: 1; min-width: fit-content; padding: 8px 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-mute); font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: .2s;
}
.seg button.on { background: rgba(212,175,55,0.16); color: var(--gold-300); }

/* ── 适老化 ───────────────────────────────────── */
body.big-font { font-size: 17.5px; }
body.big-font .hero-balance .num { font-size: 46px; }
body.big-font .stat-box .v { font-size: 22px; }
body.big-font .stat-box .k, body.big-font .list-item .s { font-size: 13px; }
body.big-font .list-item .t { font-size: 16px; }
body.big-font .plan-name { font-size: 18px; }
body.big-font .card-head h3, body.big-font .section-title { font-size: 17px; }
body.big-font .tabbar button { font-size: 12.5px; }
body.big-font .tabbar svg { width: 25px; height: 25px; }

/* ── 细节 ─────────────────────────────────────── */
.copy-row {
  display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.3);
  border: 1px dashed var(--line-strong); border-radius: 11px; padding: 10px 12px;
  font-size: 12.5px; font-family: var(--num); color: var(--gold-300); word-break: break-all;
}
.copy-row .txt { flex: 1; }
.copy-row button { border: 0; background: rgba(212,175,55,0.16); color: var(--gold-300); padding: 6px 11px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; flex: 0 0 auto; }

.notice-bar {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  background: rgba(212,175,55,0.07); border: 1px solid rgba(212,175,55,0.16);
  border-radius: 11px; font-size: 12px; color: var(--gold-300); margin-bottom: 14px;
  overflow: hidden; cursor: pointer;
}
.notice-bar .marquee {
  flex: 1; min-width: 0; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
}
.notice-bar .marquee span { display: inline; }

.dividend-flash {
  display: flex; align-items: baseline; gap: 6px; font-family: var(--num);
}
.badge-new {
  font-size: 9.5px; padding: 1px 6px; border-radius: 6px; background: var(--red-600);
  color: #fff; font-weight: 700; vertical-align: middle; margin-left: 5px; letter-spacing: .5px;
}
.warn-text { font-size: 11.5px; color: var(--warn); line-height: 1.6; margin-top: 8px; }
.muted { color: var(--text-mute); }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb0 { margin-bottom: 0; }
.mono { font-family: var(--num); }
.right { text-align: right; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; }
.small { font-size: 11.5px; }
.nowrap { white-space: nowrap; }

/* 开关 */
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; border-radius: 20px; background: rgba(255,255,255,0.1);
  transition: .25s; cursor: pointer; border: 1px solid var(--line);
}
.switch i::after {
  content: ''; position: absolute; left: 3px; top: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #9C8B7C; transition: .25s;
}
.switch input:checked + i { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); border-color: transparent; }
.switch input:checked + i::after { transform: translateX(19px); background: #4A2306; }

.setting-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid rgba(212,175,55,0.08);
}
.setting-row:last-child { border-bottom: 0; }
.setting-row .lbl { font-size: 14px; }
.setting-row .desc { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

/* 骨架屏 */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: shine 1.4s infinite; border-radius: 8px; }
@keyframes shine { to { background-position: -200% 0; } }

@media (max-width: 360px) {
  .hero-balance .num { font-size: 33px; }
  .tabbar button { font-size: 9.5px; }
}
