:root {
  /* --primary 由 #0B8F7A 加深：白字压主色的对比度 4.02 → 4.73（过 WCAG AA 正文 4.5） */
  --primary: #0A8271;
  --primary-dark: #0A7566;
  --primary-soft: #E4F3F0;
  --accent: #F59E0B;
  /* 琥珀底上的文字必须用深色系（白字压 #F59E0B 仅 2.15），--accent 本身只用于色块/进度条 */
  --accent-text: #4A2508;
  --bg: #F5F7F6;
  --card: #FFFFFF;
  --text: #22312E;
  --text-2: #5C6865;
  --text-3: #687370;
  --danger: #E5484D;
  --line: #EDF0EF;
  --radius: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 6px rgba(20, 49, 43, 0.05);
  --tab-h: 58px;
  /* 安全区留白：安卓 WebView 里 env() 常为 0，Capacitor 会注入 --safe-area-inset-* 变量，取两者较大值；
     非刘海/无导航栏设备与网页版两者都是 0，不会重复留白 */
  --sat: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
  --sab: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px));
  --sal: max(env(safe-area-inset-left, 0px), var(--safe-area-inset-left, 0px));
  --sar: max(env(safe-area-inset-right, 0px), var(--safe-area-inset-right, 0px));
}

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

html { height: 100%; }

body {
  font-family: system-ui, -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; min-height: 44px; min-width: 44px; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; border: none; outline: none; background: transparent; min-height: 44px; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237E8A87' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 18px; }

.page { padding: calc(14px + var(--sat)) calc(16px + var(--sar)) 28px calc(16px + var(--sal)); min-height: 100dvh; }
.page.has-tab { padding-bottom: calc(var(--tab-h) + var(--sab) + 90px); }
.page.has-bottom { padding-bottom: calc(110px + var(--sab)); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.sec { padding: 16px; margin-bottom: 14px; }
.sec-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sec-sub { font-size: 12px; color: var(--text-3); font-weight: 400; }
.link-btn { color: var(--primary); font-size: 13px; border: none; min-height: 32px; min-width: auto; padding: 0 2px; }
.link-btn:disabled { color: var(--text-3); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; font-weight: 600; padding: 0 20px; height: 46px; transition: transform .12s ease, opacity .15s; min-width: auto; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:disabled { opacity: .4; }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-plain { background: var(--line); color: var(--text-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 999px; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.icon-btn.small { width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 50%; background: var(--line); color: var(--text-3); font-size: 13px; }
.icon-btn.small.danger:active { background: #FEE2E2; color: var(--danger); }

/* ==== 我的 ==== */
.hero-head { display: flex; align-items: center; gap: 12px; padding: 10px 4px 18px; }
.hero-logo { width: 52px; height: 52px; border-radius: var(--radius); background: var(--primary); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; }
.hero-logo img { width: 100%; height: 100%; border-radius: var(--radius); object-fit: cover; display: block; }
.hero-title { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.hero-sub { font-size: 12.5px; color: var(--text-2); }
.section-caption { font-size: 14px; font-weight: 700; color: var(--text-2); margin: 4px 2px 10px; display: flex; justify-content: space-between; align-items: center; }
/* 首页账本区：主色渐变大面板把账本整体托出，与下方设置区明显分开 */
.ledger-panel { background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: 24px; padding: 14px 12px 16px; margin-bottom: 22px; box-shadow: 0 10px 26px rgba(10, 130, 113, .28); }
.ledger-panel .section-caption { color: rgba(255,255,255,.92); margin: 2px 4px 10px; }
.ledger-panel .section-caption .link-btn { color: #fff; opacity: .9; }
/* 账本卡片堆叠：卡与卡之间留出间隔线（有明细的隔开效果） */
.ledger-stack { display: flex; flex-direction: column; gap: 10px; }
.ledger-card { padding: 16px; transition: transform .12s; border: 1px solid rgba(10, 130, 113, .07); }
.ledger-card:active { transform: scale(.98); }
.lc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lc-name { font-size: 16.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-code { font-size: 11px; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 2px 8px; font-family: ui-monospace, monospace; flex-shrink: 0; }
.lc-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.lc-time { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-total { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.home-actions { display: flex; gap: 12px; margin-top: 14px; }
.home-actions .btn { flex: 1; }
.ledger-panel .home-actions .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
/* 账本区与工具/设置区之间的分隔标题线 */
.home-divider { display: flex; align-items: center; gap: 10px; margin: 2px 4px 12px; }
.home-divider::before, .home-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.home-divider span { font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: 2px; }

/* ==== 表单 ==== */
.form-card { padding: 6px 16px 16px; margin-bottom: 14px; }
.field { padding-top: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 4px; }
.field input, .field select { width: 100%; border-bottom: 1.5px solid var(--line); padding: 8px 2px; font-size: 16px; transition: border-color .15s; }
.field input:focus, .field select:focus { border-color: var(--primary); }
.field-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.field-inline { display: flex; align-items: center; gap: 10px; }
.field-inline label { margin: 0; width: 56px; flex-shrink: 0; }
.field-inline input { flex: 1; }

/* ==== 账本首页 ==== */
.home-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 14px; }
.hh-name { font-size: 20px; font-weight: 800; }
.hh-swap { font-size: 11px; font-weight: 600; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }
.hh-code { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.total-card { padding: 18px 16px; margin-bottom: 14px; background: var(--primary); color: #fff; }
.tc-label { font-size: 12.5px; opacity: .95; }
.tc-amount { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 4px; }
.tc-amount .sym { font-size: 20px; font-weight: 600; opacity: .95; }
.tc-amount .num { font-size: 38px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.tc-stats { font-size: 12px; opacity: .95; margin-top: 2px; font-variant-numeric: tabular-nums; }
.budget-wrap { margin-top: 10px; }
.budget-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.budget-fill { height: 100%; border-radius: 999px; background: #fff; transition: width .5s ease; }
.budget-fill.over { background: var(--accent); }
.budget-text { display: flex; justify-content: space-between; font-size: 12px; opacity: .95; margin-top: 6px; }
.budget-text .over { color: #FFDCA8; font-weight: 700; }
.budget-none { margin-top: 8px; font-size: 12.5px; opacity: .95; }
.flat-note { font-size: 13.5px; color: var(--primary); background: var(--primary-soft); border-radius: var(--radius-md); padding: 10px 14px; }

.bal-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.bal-row:last-child { border-bottom: none; }
.bal-mid { flex: 1; min-width: 0; }
.bal-name { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.bal-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.bal-amt { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bal-amt.in { color: var(--primary); }
.bal-amt.out { color: #B45309; }
.bal-amt.zero { color: var(--text-3); font-weight: 400; font-size: 13px; }

.exp-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); transition: background .15s; }
.exp-row:last-child { border-bottom: none; }
.exp-row:active { background: #F8FAF9; }
.exp-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.exp-mid { flex: 1; min-width: 0; }
.exp-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-right { text-align: right; flex-shrink: 0; }
.exp-amt { font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.exp-date { font-size: 11.5px; color: var(--text-3); }

.fab { position: fixed; bottom: calc(var(--tab-h) + var(--sab) + 18px); right: max(calc(50% - 204px), calc(16px + var(--sar))); width: 64px; height: 64px; border-radius: 22px; background: var(--accent); color: var(--accent-text); box-shadow: 0 4px 14px rgba(245,158,11,.3); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 40; transition: transform .15s; min-width: 64px; touch-action: none; user-select: none; -webkit-user-select: none; }
@media (max-width: 560px) { .fab { left: auto; margin-left: 0; right: calc(50% - 240px + 18px); } }
@media (max-width: 479px) { .fab { right: 18px; } }
.fab span { font-size: 24px; line-height: 1; font-weight: 400; }
.fab em { font-size: 11.5px; font-weight: 700; font-style: normal; margin-top: 1px; }
.fab:active { transform: scale(.92); }

/* ==== TabBar ==== */
.tab-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(var(--tab-h) + var(--sab)); padding: 0 var(--sar) 0 var(--sal); padding-bottom: var(--sab); background: #fff; display: flex; border-top: 1px solid var(--line); z-index: 50; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-3); font-size: 10.5px; min-height: 44px; transition: color .15s; }
.tab svg { width: 22px; height: 22px; fill: currentColor; }
.tab.on { color: var(--primary); font-weight: 700; }

/* ==== 记一笔（v0.3 紧凑改版：标题置顶、隐藏币种切换、一屏放下） ==== */
.add-page { padding-top: calc(8px + var(--sat)); }
.add-page .nav-bar { padding-bottom: 6px; }
.add-hero { padding: 10px 14px 8px; margin-bottom: 10px; position: relative; }
.ah-top { display: flex; align-items: center; gap: 8px; border-bottom: 1.5px solid var(--line); padding-bottom: 4px; }
.ah-title { flex: 1; min-width: 0; min-height: 40px; font-size: 20px; font-weight: 700; padding: 4px 2px; }
.ah-title::placeholder { color: #A3AEAB; font-weight: 600; font-size: 17px; }
.ah-date { flex: none; min-height: auto; width: 128px; font-size: 12.5px; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.amount-line { display: flex; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--primary-soft); padding: 2px 0 4px; }
.ah-sym { font-size: 30px; font-weight: 700; color: var(--text); display: inline-flex; align-items: baseline; gap: 4px; }
.ah-cur-tag { font-style: normal; font-size: 11px; font-weight: 700; color: #B45309; background: #FFF3D6; border-radius: 999px; padding: 1px 7px; }
.ah-input { flex: 1; min-height: 52px; font-size: 46px; font-weight: 800; letter-spacing: -1px; text-align: right; font-variant-numeric: tabular-nums; width: 100%; }
.ah-input::placeholder { color: #7E8A87; }
.ah-base { font-size: 12.5px; color: var(--text-3); text-align: right; margin-top: 2px; }
.rate-box { display: flex; align-items: center; gap: 8px; margin-top: 8px; background: #FFF8EB; border: 1px solid #FDE4B0; border-radius: var(--radius-md); padding: 6px 12px; }
.rate-box label { font-size: 12.5px; color: #92620B; font-weight: 600; white-space: nowrap; }
.rate-box input { flex: 1; width: 60px; font-size: 15px; border-bottom: 1.5px solid #EAD9B8; padding: 2px; min-height: 30px; }
.rate-hint { font-size: 12px; color: var(--primary); white-space: nowrap; }

.add-sec { padding: 10px 14px 12px; margin-bottom: 10px; }
/* 费用类型：4 列两行大格子（用户要求保持原尺寸，不做小胶囊） */
.cat-scroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 2px; border-radius: var(--radius-md); background: #F4F7F6; font-size: 11.5px; color: var(--text-2); min-height: 62px; transition: all .15s; }
.cat-chip .cat-ico { font-size: 20px; }
.cat-chip.on { background: var(--primary-soft); color: var(--primary); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--primary); }
.note-input { display: block; width: 100%; padding: 6px 2px; min-height: 38px; font-size: 14px; color: var(--text); border-radius: 0; }
.note-input::placeholder { color: #A3AEAB; }

.payer-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mini-label { flex: none; font-size: 12px; color: var(--text-3); font-weight: 700; }
.chip-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.chip-scroll::-webkit-scrollbar { display: none; }
.payer-chip { display: flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; border-radius: 999px; background: #F4F7F6; font-size: 14px; flex-shrink: 0; transition: all .15s; min-height: 40px; white-space: nowrap; }
.payer-chip.on { background: var(--primary); color: #fff; font-weight: 600; }
.payer-chip.pool { padding: 3px 12px; }
.pool-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft, #E3F2EE); font-size: 17px; flex-shrink: 0; }
.payer-chip.on .pool-ico { background: rgba(255,255,255,.22); }
.pool-bal { font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-3); margin-left: 3px; }
.payer-chip.on .pool-bal { color: rgba(255,255,255,.85); }
.mode-hint.pool-warn { color: var(--danger); font-weight: 600; }
.avatar.pool { background: var(--primary-soft, #E3F2EE); }

.seg { display: flex; background: #F4F7F6; border-radius: 999px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border-radius: 999px; font-size: 13px; color: var(--text-2); transition: all .18s; min-height: 34px; padding: 0; }
.seg button.on { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 1px 4px rgba(20,49,43,.07); }
.mode-hint { font-size: 11.5px; color: var(--text-3); margin: 6px 2px 0; }

.split-list { margin-top: 4px; }
.split-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.split-row:last-child { border-bottom: none; }
.split-row.excluded { opacity: .6; }
.split-who { display: flex; align-items: center; gap: 8px; min-width: auto; min-height: 36px; }
.split-name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.tag-payer { font-style: normal; font-size: 10px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 0 6px; line-height: 15px; }
.split-val { font-size: 13.5px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.split-ex { font-size: 12.5px; color: var(--text-3); }
.split-input { width: 92px; text-align: right; border-bottom: 1.5px solid var(--line); padding: 3px 4px; font-size: 14px; font-variant-numeric: tabular-nums; min-height: 32px; }
.split-input:focus { border-color: var(--primary); }
.manual-check { margin-top: 8px; font-size: 12px; color: var(--text-2); background: #FFF8EB; border-radius: 999px; padding: 6px 12px; }
.manual-check.ok { background: var(--primary-soft); color: var(--primary); }
.manual-check.bad { background: #FEF2F2; color: var(--danger); }

.bottom-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 10px calc(16px + var(--sar)) calc(10px + var(--sab)) calc(16px + var(--sal)); background: #fff; border-top: 1px solid var(--line); z-index: 45; }

/* ==== 明细 ==== */
.filter-bar { display: flex; gap: 10px; padding: 8px 12px; margin-bottom: 14px; align-items: center; }
.filter-bar select { flex: 1; background-color: #F4F7F6; border-radius: 999px; padding: 7px 24px 7px 14px; font-size: 13.5px; min-height: 40px; width: 40%; }
.day-group { margin-bottom: 6px; }
.day-head { font-size: 12.5px; color: var(--text-2); font-weight: 700; margin: 10px 4px 6px; }
.day-card { padding: 2px 14px; }

/* 操作历史（明细页右上角进入，全员可见、只增不删） */
.home-head .icon-btn { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; background: var(--line); color: var(--text-2); }
.home-head .icon-btn:active { background: #DCE5E2; }
.op-note { font-size: 12px; color: var(--text-2); margin: -4px 2px 10px; }
.op-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.op-row:last-child { border-bottom: none; }
.op-row .avatar { flex: none; margin-top: 1px; }
.op-mid { flex: 1; min-width: 0; }
.op-line { font-size: 13.5px; line-height: 1.5; word-break: break-word; }
.op-who { color: var(--primary); margin-right: 5px; }
.op-time { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.op-more { margin-top: 4px; }
.op-end { text-align: center; font-size: 12px; color: var(--text-3); padding: 14px 0 6px; }

/* ==== v0.2.6 结清提醒（弹卡 + 右上角红点） ==== */
.hh-history { position: relative; }
.dot-badge { position: absolute; top: -3px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #EF4444; color: #fff; font-size: 11px; font-weight: 800; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.notice-mask { position: fixed; inset: 0; background: rgba(15, 34, 29, .45); z-index: 195; display: flex; align-items: center; justify-content: center; padding: calc(30px + var(--sat)) calc(26px + var(--sar)) calc(30px + var(--sab)) calc(26px + var(--sal)); }
.notice-card { background: #fff; border-radius: 26px; padding: 24px 20px 16px; width: 100%; max-width: 320px; box-shadow: 0 8px 30px rgba(15, 34, 29, .10); text-align: center; }
.notice-card .nc-emoji { font-size: 34px; line-height: 1.1; }
.notice-card .nc-title { font-size: 16.5px; font-weight: 800; margin-top: 8px; }
.notice-card .nc-text { font-size: 14px; color: var(--text-1); line-height: 1.55; margin-top: 8px; word-break: break-word; }
.notice-card .nc-sub { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.notice-card .nc-sub em { font-style: normal; color: var(--primary); margin-left: 4px; }
.notice-card .nc-actions { display: flex; gap: 10px; margin-top: 18px; }
.notice-card .nc-actions .btn { flex: 1; }

/* ==== 统计 ==== */
.stat-ov { display: flex; gap: 10px; margin-bottom: 14px; }
.ov-card { flex: 1; padding: 13px 6px; text-align: center; }
.ov-num { font-size: 15.5px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-label { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { width: 128px; height: 128px; border-radius: 50%; flex-shrink: 0; position: relative; transition: background .4s; }
.donut-hole { position: absolute; inset: 26px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dh-amt { font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dh-label { font-size: 10.5px; color: var(--text-3); }
.legend { flex: 1; list-style: none; min-width: 0; }
.legend li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 0; }
.legend .dot { width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0; }
.lg-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.lg-pct { color: var(--text-3); width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.hbar-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.hbar-mid { flex: 1; min-width: 0; }
.hbar-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 3px; }
.hbar-track { height: 8px; background: #F1F4F3; border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 999px; transition: width .6s ease; }
.day-bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 6px; }
.db-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.db-bar { width: 100%; border-radius: 6px 6px 0 0; background: var(--primary); min-height: 2px; transition: height .5s ease; }
.db-bar.zero { background: #E5EAE8; }
.day-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-3); margin-top: 6px; }

/* ==== 结算 ==== */
.sug-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #FBFDFC; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; margin-bottom: 10px; }
.sug-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sug-arrow { display: flex; flex-direction: column; align-items: center; color: var(--accent-text); font-weight: 800; font-size: 16px; line-height: 1.1; }
.sug-arrow em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sug-names { display: flex; flex-direction: column; font-size: 12px; color: var(--text-2); line-height: 1.35; min-width: 0; }
.settled-hero { text-align: center; padding: 34px 16px; margin-bottom: 14px; background: var(--primary-soft); }
.sh-emoji { font-size: 44px; }
.sh-title { font-size: 18px; font-weight: 800; color: var(--primary); margin-top: 6px; }
.sh-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.rec-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rec-row:last-child { border-bottom: none; }
.rec-mid { flex: 1; min-width: 0; }
.rec-title { font-size: 14px; font-weight: 600; }
.rec-sub { font-size: 11.5px; color: var(--text-3); }
.rec-amt { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }

/* ==== 公共资金（v0.6.0 预付款） ==== */
.pool-card { background: var(--primary-soft); }
.pool-figs { display: flex; gap: 8px; margin: 4px 0 8px; }
.pool-figs .pf { flex: 1; background: #fff; border-radius: var(--radius-md); padding: 9px 6px; text-align: center; }
.pf-num { font-size: 15px; font-weight: 800; color: var(--text-1); font-variant-numeric: tabular-nums; }
.pf-num.neg { color: var(--danger); }
.pf-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pool-note { font-style: normal; font-weight: 400; color: var(--text-3); font-size: 12px; }
.mode-hint.pool-warn, .pool-card .pool-warn { color: var(--danger); font-weight: 600; }
.settled-hero .btn { margin-top: 12px; }

/* ==== 设置 ==== */
.invite-row { display: flex; align-items: center; gap: 12px; }
.invite-code { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 19px; font-weight: 700; letter-spacing: 1px; color: var(--primary); background: var(--primary-soft); padding: 8px 18px; border-radius: 999px; }
.invite-hint { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.invite-hint.danger-hint { color: var(--danger); background: #FEF2F2; border-radius: var(--radius-md); padding: 7px 12px; font-weight: 600; }
.mem-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.mem-name { flex: 1; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.tag-self { font-style: normal; font-size: 10.5px; background: var(--primary); color: #fff; border-radius: 999px; padding: 1px 6px; }
.tag-proxy { font-style: normal; font-size: 10.5px; background: #FEF3C7; color: #B45309; border-radius: 999px; padding: 1px 6px; }
.tag-owner { font-style: normal; font-size: 10.5px; background: #EEF2FF; color: #4F46E5; border-radius: 999px; padding: 1px 6px; }
.tag-admin { font-style: normal; font-size: 10.5px; background: #E0F2FE; color: #0369A1; border-radius: 999px; padding: 1px 6px; }
.tag-gone { font-style: normal; font-size: 10.5px; background: #E9EEF2; color: #5B6B7A; border-radius: 999px; padding: 1px 6px; }
.mem-row.gone { opacity: 0.75; }
.mem-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mem-acts .link-btn { font-size: 12.5px; }
.ds-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv-row span { color: var(--text-2); }
.kv-row b { font-weight: 600; text-align: right; }
.rate-chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.rate-chips em { font-style: normal; font-size: 12px; background: #F4F7F6; border-radius: 999px; padding: 2px 9px; color: var(--text-2); }
.rate-edit-row, .rate-add-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.re-cur { width: 84px; flex-shrink: 0; font-weight: 700; font-size: 13.5px; background: #F4F7F6; border-radius: 999px; padding: 6px 12px; min-height: 40px; }
.re-rate { flex: 1; width: 60px; border-bottom: 1.5px solid var(--line); padding: 5px 4px; font-size: 15px; min-height: 38px; }
.edit-actions { display: flex; gap: 10px; margin-top: 14px; }
.edit-actions .btn { flex: 1; }
.row-btn { display: block; width: 100%; text-align: left; padding: 13px 4px; font-size: 14.5px; border-bottom: 1px solid var(--line); min-height: 48px; }
.row-btn:last-child { border-bottom: none; }
.row-btn.danger { color: var(--danger); }
.about-note { text-align: center; font-size: 12px; color: var(--text-3); padding: 10px 0 4px; }

/* ==== 通用小组件 ==== */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0; user-select: none; }
.empty-state { text-align: center; padding: 34px 16px; }
.empty-emoji { font-size: 42px; }
.empty-text { font-size: 15px; font-weight: 700; color: var(--text-2); margin-top: 8px; }
.empty-sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

.nav-bar { display: flex; align-items: center; padding: 2px 0 14px; position: relative; }
.nav-bar h1 { font-size: 18px; font-weight: 800; flex: 1; }
.nav-back { width: 40px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.nav-back svg { width: 22px; height: 22px; }
.nav-right { width: 40px; }

.toast-stack { position: fixed; top: calc(18px + var(--sat)); left: 50%; transform: translateX(-50%); z-index: 300; width: max-content; max-width: 86vw; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--text); color: #fff; border-radius: 999px; padding: 11px 20px; font-size: 13.5px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; pointer-events: auto; }
.toast-error { background: #B91C1C; }
.toast-ok { background: var(--primary); }
.toast-enter-active, .toast-leave-active { transition: all .28s ease; }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translateY(-12px) scale(.95); }

.modal-mask { position: fixed; inset: 0; background: rgba(15, 34, 29, .45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: calc(30px + var(--sat)) calc(24px + var(--sar)) calc(30px + var(--sab)) calc(24px + var(--sal)); }
.modal-card { background: #fff; border-radius: 26px; padding: 24px 20px 16px; width: 100%; max-width: 320px; box-shadow: 0 8px 30px rgba(15, 34, 29, .10); }
.modal-title { font-size: 16.5px; font-weight: 800; text-align: center; }
.modal-msg { font-size: 13.5px; color: var(--text-2); text-align: center; margin-top: 8px; }
.modal-input { width: 100%; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; margin: 14px 0 2px; font-size: 15px; }
.modal-input:focus { border-color: var(--primary); }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
.modal-enter-active, .modal-leave-active { transition: opacity .2s; }
.modal-enter-from, .modal-leave-to { opacity: 0; }
.modal-enter-active .modal-card, .modal-leave-active .modal-card { transition: transform .22s cubic-bezier(.34,1.4,.64,1); }
.modal-enter-from .modal-card, .modal-leave-to .modal-card { transform: scale(.9); }

.sheet-mask { position: fixed; inset: 0; background: rgba(15, 34, 29, .4); z-index: 190; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 480px; border-radius: 26px 26px 0 0; padding: 10px calc(14px + var(--sar)) calc(14px + var(--sab)) calc(14px + var(--sal)); }
.sheet-title { text-align: center; font-size: 13.5px; color: var(--text-2); padding: 10px 0 6px; border-bottom: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-item { display: block; width: 100%; text-align: center; padding: 15px 0; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); min-height: 52px; }
.sheet-item.danger { color: var(--danger); }
.sheet-item.cancel { color: var(--text-2); font-weight: 400; border-bottom: none; margin-top: 6px; background: #F4F7F6; border-radius: 999px; }
/* 切换账本弹层：账本行左名称右金额，当前账本高亮 */
.sw-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 13px 4px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line); min-height: 48px; }
.sw-item.cur { color: var(--primary); }
.sw-nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sw-nm > span, .sw-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-meta { font-size: 11.5px; color: var(--text-3); font-weight: 400; flex: none; }
.sw-foot { display: flex; gap: 10px; padding: 12px 0 4px; }
.sw-foot .btn { flex: 1; }
.sheet-enter-active, .sheet-leave-active { transition: opacity .22s; }
.sheet-enter-active .sheet, .sheet-leave-active .sheet { transition: transform .25s cubic-bezier(.3,1.1,.6,1); }
.sheet-enter-from, .sheet-leave-to { opacity: 0; }
.sheet-enter-from .sheet, .sheet-leave-to .sheet { transform: translateY(100%); }

.global-loading { position: fixed; inset: 0; background: rgba(255,255,255,.4); z-index: 180; display: flex; align-items: center; justify-content: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton-page { padding: 20px 0; }
.sk { height: 76px; border-radius: var(--radius); background: linear-gradient(100deg, #EEF1F0 40%, #F7FAF9 50%, #EEF1F0 60%); background-size: 200% 100%; animation: sk 1.3s ease infinite; margin-bottom: 14px; }
.sk-lg { height: 120px; }
.sk-title { height: 34px; width: 55%; }
@keyframes sk { to { background-position-x: -200%; } }

.page-enter-active, .page-leave-active { transition: opacity .18s ease, transform .18s ease; }
.page-enter-from { opacity: 0; transform: translateY(8px); }
.page-leave-to { opacity: 0; transform: translateY(-6px); }
.fade-enter-active, .fade-leave-active { transition: opacity .25s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

.offline-banner { position: fixed; top: 0; left: 0; right: 0; background: var(--accent); color: var(--accent-text); font-weight: 600; text-align: center; font-size: 12.5px; padding: calc(4px + var(--sat)) calc(12px + var(--sar)) 5px calc(12px + var(--sal)); z-index: 400; }
.server-row { margin: 18px 4px 6px; text-align: center; font-size: 12px; color: var(--text-3); padding: 10px; min-height: 40px; }
.server-danger { margin-top: 14px; text-align: center; font-size: 12px; color: var(--danger); padding: 8px; }

/* 应用内自动更新（v1.6） */
.upd-card { text-align: center; }
.upd-emoji { font-size: 34px; line-height: 1.2; margin-bottom: 6px; }
/* 更新说明限高成小窗口，长文案在卡内滚动，不撑爆弹窗 */
.upd-notes { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.6; max-height: 108px; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 4px; text-align: left; }
.upd-sub { font-size: 12.5px; color: var(--text-3); margin-top: 10px; line-height: 1.6; }
.upd-error { color: var(--danger); }
.upd-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 14px; }
.upd-fill { height: 100%; border-radius: 999px; background: var(--primary); transition: width .3s ease; }
.upd-alt { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }

/* ==== v0.2.6「我的」页改版：微信式顶栏头像 + 分组列表 ==== */
.wk-profile { display: flex; align-items: center; gap: 14px; background: var(--card); padding: calc(26px + var(--sat)) 16px 20px; margin: calc(-14px - var(--sat)) calc(-16px - var(--sar)) 12px calc(-16px - var(--sal)); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.wk-profile .avatar { flex: none; }
.wp-mid { flex: 1; min-width: 0; }
.wp-name { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.wp-sub { font-size: 12.5px; color: var(--text-3); margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-copy { font-size: 12.5px; color: var(--text-3); flex: none; }
.gate-card { background: #FEF2F2; color: var(--danger); font-size: 13px; font-weight: 600; }
.wk-group { background: var(--card); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.wk-cap { font-size: 12px; color: var(--text-3); margin: 0 6px 7px; }
.wk-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); min-height: 50px; cursor: pointer; }
.wk-row:last-child { border-bottom: none; }
.wk-row:active { background: #F7FAF9; }
.wk-ico { width: 24px; text-align: center; font-size: 17px; flex: none; }
.wk-label { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-label.danger-text { color: var(--danger); }
.wk-val { font-size: 13px; color: var(--text-3); max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-val.danger { color: var(--danger); }
.wk-arrow { color: #C6D1CE; font-size: 15px; flex: none; }
.wk-dot { width: 8px; height: 8px; border-radius: 50%; background: #EF4444; display: inline-block; margin-left: 6px; vertical-align: middle; }
/* 主题配色选择：8 套两行（4 列），三色带圆角色块（浅/主/深），选中时外框描主题主色环 */
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; padding: 14px 10px 12px; }
.theme-cell { display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
.theme-sw { display: flex; width: 60px; height: 38px; padding: 3px; background: #fff; border: 2.5px solid transparent; border-radius: 13px; box-shadow: 0 1px 4px rgba(15, 34, 29, .08); transition: border-color .15s; }
.theme-sw i { flex: 1; }
.theme-sw i:first-child { border-radius: 8px 2px 2px 8px; }
.theme-sw i:last-child { border-radius: 2px 8px 8px 2px; }
.theme-cell.on .theme-sw { border-color: var(--ring); }
.theme-name { font-size: 11.5px; color: var(--text-2); }
.theme-cell.on .theme-name { color: var(--text); font-weight: 700; }
.wk-fold { padding: 6px 14px 14px; background: #FAFCFB; }
.wk-fold .kv-row:first-child { margin-top: 4px; }
.wk-fold-hint { font-size: 11.5px; color: var(--text-3); padding: 0 14px 12px; }

/* v2.0 上架合规：首次启动隐私同意门 + 协议详情页 */
.consent-mask { position: fixed; inset: 0; background: rgba(15, 34, 29, .55); z-index: 350; display: flex; align-items: flex-end; justify-content: center; }
.consent-card { background: #fff; width: 100%; max-width: 480px; max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 26px 26px 0 0; padding: 24px 20px calc(20px + var(--sab)); }
.consent-logo { font-size: 30px; line-height: 1.2; }
.consent-title { font-size: 17px; font-weight: 700; margin: 8px 0 10px; }
.consent-text { font-size: 13.5px; color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }
.consent-text .link-btn { font-size: 13.5px; display: inline; min-height: auto; padding: 0; }
.consent-card .btn { margin-top: 8px; width: 100%; }
.legal-body { padding: 18px 16px 20px; }
.legal-body h1 { font-size: 18px; margin-bottom: 6px; }
.legal-body h2 { font-size: 14.5px; margin: 18px 0 6px; }
.legal-body p { font-size: 13.5px; color: var(--text-2); line-height: 1.8; margin-bottom: 6px; }
.legal-meta { color: var(--text-3); font-size: 12px; }
.kv-dim { font-size: 12.5px; color: var(--text-3); font-weight: 400; }

/* ==== v0.4.8 交互优化十二项 ==== */
/* E12 toast 带操作按钮 */
.toast-act { background: rgba(255, 255, 255, .22); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 12px; min-height: 26px; min-width: auto; white-space: nowrap; }
.toast-act:active { background: rgba(255, 255, 255, .34); }

/* A1 记一笔日期快捷胶囊 */
.date-chips { display: flex; gap: 8px; margin: 2px 0 10px; }
.dchip { font-size: 12.5px; color: var(--text-2); background: #F4F7F6; border-radius: 999px; padding: 5px 14px; min-height: 30px; min-width: auto; }
.dchip.on { color: var(--primary); background: var(--primary-soft); font-weight: 700; }

/* B5 明细页日期段筛选 */
.range-chips { display: flex; gap: 8px; padding: 0 12px 10px; }
.rchip { font-size: 12.5px; color: var(--text-2); background: #F4F7F6; border-radius: 999px; padding: 5px 14px; min-height: 30px; min-width: auto; }
.rchip.on { color: var(--primary); background: var(--primary-soft); font-weight: 700; }

/* B4 明细点行详情卡（底部弹层内） */
.ds-amount { font-size: 28px; font-weight: 800; text-align: center; margin: 14px 0 6px; letter-spacing: .5px; }
.ds-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--text-3); margin-bottom: 12px; }
.ds-tag { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; }
.ds-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ds-row span { color: var(--text-3); flex: none; }
.ds-row b { font-weight: 600; text-align: right; word-break: break-all; }
.ds-split-cap { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin: 12px 0 4px; }
.ds-splits { display: flex; flex-direction: column; gap: 2px; }
.ds-srow { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; padding: 5px 0; }
.ds-srow .ds-name { display: flex; align-items: center; gap: 5px; }
.ds-amt { font-weight: 700; flex: none; }
.ds-actions { display: flex; gap: 10px; margin-top: 14px; }
.ds-actions .btn { flex: 1; }
.btn-danger-outline { background: #fff; color: var(--danger); border: 1.5px solid var(--danger); }

/* C8 手动/部分结清表单 */
.ms-open { margin-top: 12px; font-size: 13.5px; color: var(--text-2); }
.ms-form { padding: 6px 2px 2px; }
.ms-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.ms-line label { color: var(--text-2); flex: none; }
.ms-line select, .ms-line input { flex: 1; min-width: 0; text-align: right; font-weight: 600; }

/* D9 加入页剪贴板邀请码提示 */
.clip-hint { margin-top: 9px; font-size: 12.5px; color: var(--primary); background: var(--primary-soft); border-radius: 13px; padding: 9px 12px; cursor: pointer; }
.clip-hint:active { opacity: .75; }

/* D10 账本卡管理入口 */
.lc-right { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lc-more { color: var(--text-3); font-size: 15px; letter-spacing: 1px; width: 30px; height: 30px; min-height: 30px; min-width: 30px; border-radius: 999px; }
.lc-more:active { background: var(--line); }

/* B6 下拉刷新提示胶囊（app.js mixin 动态创建） */
.pull-hint { position: fixed; top: calc(12px + var(--sat)); left: 50%; transform: translateX(-50%) translateY(-8px); z-index: 280; background: var(--text); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 6px 14px; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.pull-hint.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ v0.7.0 票据图片（记一笔票据卡 / 明细缩略图 / 灯箱） ============ */
.receipt-card { padding: 12px 14px; }
/* v0.6.2 多票据：缩略图网格（一行 4 格）+ 末尾「＋票据」添加格；扁平圆角 */
.rc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rc-thumb { position: relative; }
.rc-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; background: var(--line); cursor: pointer; display: block; }
.rc-del { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 999px; border: none; background: var(--text); color: #fff; font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.rc-del:active { opacity: .75; }
.rc-add-tile { width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; border: 1.5px dashed var(--line-strong, var(--line)); background: var(--bg); color: var(--text-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.rc-add-tile:active { opacity: .7; }
.rc-plus { font-size: 22px; line-height: 1; color: var(--primary); }
.rc-plus-tx { font-size: 11px; }
.rc-tip { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 10px; }
.rc-tip small { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-3); margin-top: 2px; }
.rc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rc-cap { font-size: 13px; font-weight: 600; color: var(--text); }
.rc-note { font-size: 12px; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 5px 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-more { margin-left: auto; font-size: 12px; padding: 6px 12px; }
.exp-img-tag { font-size: 11px; margin-left: 5px; opacity: .8; }
.ds-receipt { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ds-rc-cap { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.ds-rc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ds-rc-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; background: var(--line); cursor: pointer; }
.ds-rc-hint { font-size: 11.5px; color: var(--text-3); }
.imgbox { position: fixed; inset: 0; z-index: 400; background: rgba(15, 23, 21, .92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.imgbox-inner { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; position: relative; }
.imgbox img { max-width: 100%; max-height: 78vh; border-radius: 18px; object-fit: contain; background: #fff; }
.imgbox-cap { color: #fff; font-size: 13px; opacity: .85; }
/* v0.6.2 多图灯箱：左右切换 + 计数（仅多于 1 张时出现） */
.imgbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 999px; border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.imgbox-nav:active { background: rgba(255,255,255,.3); }
.imgbox-prev { left: 8px; }
.imgbox-next { right: 8px; }
.imgbox-count { color: #fff; font-size: 12.5px; opacity: .8; letter-spacing: 1px; }
