/* ============================================================
 * app.css —— 移动端优先的样式（无外部字体/图标，全部离线可用）
 * ============================================================ */
:root {
  --brand: #0f766e;
  --brand-dark: #0b3b36;
  --brand-soft: #ccfbf1;
  --accent: #f59e0b;
  --accent-soft: #fef3c7;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e9f0;
  --bg: #f4f7fa;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 16px rgba(15, 23, 42, .07);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .18);
  --tabh: 58px;
  --toph: 52px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

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

/* 手机上点按更跟手：去掉 300ms 延迟、禁止双击缩放干扰 */
button, .btn, .chip, .tab, .variant, .wheel-center, .gal-item, label.switch {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
input, textarea { -webkit-user-select: text; user-select: text; }
/* iOS 上给输入框至少 16px，否则聚焦时页面会被强制放大（看起来像卡住/跳动） */
input, select, textarea, .input { font-size: 16px; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  overscroll-behavior-y: none;
}

body { padding-top: calc(var(--toph) + var(--safe-t)); padding-bottom: calc(var(--tabh) + var(--safe-b) + 8px); }

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
[hidden] { display: none !important; }

/* ---------------- 闪屏 ---------------- */
.splash {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background: linear-gradient(160deg, var(--brand-dark), var(--brand) 70%, #0ea5e9);
  color: #fff; transition: opacity .4s ease, visibility .4s;
}
.splash.hide { opacity: 0; visibility: hidden; }
.splash-logo { font-size: 60px; animation: floaty 2.4s ease-in-out infinite; }
.splash-title { font-size: 26px; font-weight: 700; letter-spacing: 6px; }
.splash-sub { font-size: 13px; opacity: .82; letter-spacing: 1px; }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: calc(var(--toph) + var(--safe-t));
  padding: var(--safe-t) 8px 0;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.tb-title { flex: 1; font-size: 17px; font-weight: 650; padding: 0 4px; }
.tb-actions { display: flex; gap: 4px; align-items: center; }
.tb-btn {
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 0; border-radius: 12px; background: transparent;
  font-size: 17px; color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.tb-btn:active { background: #eef2f7; }
.tb-btn.primary { background: var(--brand); color: #fff; }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--tabh) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex; align-items: stretch;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--muted); position: relative; padding: 6px 0;
}
.tab-ico { font-size: 20px; line-height: 1; filter: grayscale(.55); transition: transform .18s; }
.tab-txt { font-size: 11px; }
.tab.active { color: var(--brand); font-weight: 650; }
.tab.active .tab-ico { filter: none; transform: translateY(-1px) scale(1.06); }
.tab-dot {
  position: absolute; top: 4px; right: 22%;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--danger); color: #fff;
  font-size: 10px; font-style: normal; line-height: 16px; text-align: center;
}

/* ---------------- 页面容器 ---------------- */
.view { max-width: 680px; margin: 0 auto; padding: 12px 12px 24px; outline: none; }
@media (min-width: 720px) { .view { padding: 18px 16px 32px; } }

/* ---------------- 通用组件 ---------------- */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.card.tight { padding: 10px 12px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card h2 { font-size: 16px; margin: 0 0 10px; }
.card h3 { font-size: 15px; margin: 0 0 8px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 6px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.bold { font-weight: 650; }
.center { text-align: center; }
.mt6 { margin-top: 6px } .mt10 { margin-top: 10px } .mt12 { margin-top: 12px } .mt14 { margin-top: 14px }
.mb0 { margin-bottom: 0 } .mb8 { margin-bottom: 8px } .mb12 { margin-bottom: 12px }
.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider { height: 1px; background: var(--line); margin: 10px 0; }
.hr-soft { height: 1px; background: var(--line); margin: 8px 0; opacity: .7; }

.btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 12px; padding: 10px 14px; cursor: pointer;
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
  justify-content: center; transition: transform .08s, background .15s;
}
.btn:active { background: #eef2f7; }
.btn.primary:active { background: #0d6a63; }
.btn.accent:active { background: #d97706; }
.btn.danger:active { background: #fef2f2; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { background: #fff; border-color: #fecaca; color: var(--danger); }
.btn.ghost { background: #f8fafc; }
.btn.block { width: 100%; }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.btn.xs { padding: 3px 8px; font-size: 12px; border-radius: 9px; }
.btn[disabled] { opacity: .5; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 auto; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 13px; cursor: pointer;
  transition: all .15s;
}
.chip.on { background: var(--brand-soft); border-color: #5eead4; color: #0f766e; font-weight: 650; }
.chip.sm { padding: 3px 8px; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  display: inline-block; padding: 1px 7px; border-radius: 7px;
  background: #f1f5f9; color: var(--muted); font-size: 11.5px;
}
.tag.brand { background: var(--brand-soft); color: #0f766e; }
.tag.warn { background: var(--accent-soft); color: #b45309; }
.tag.danger { background: #fee2e2; color: #b91c1c; }
.tag.ok { background: #dcfce7; color: #15803d; }

.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; font-size: 15px;
}
.input:focus { outline: 2px solid var(--brand-soft); border-color: #5eead4; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.form-grid { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.form-label i { color: var(--danger); font-style: normal; }
.form-hint { font-size: 11.5px; color: var(--muted); }
.switch { display: inline-flex; align-items: center; }
.switch input { display: none; }
.switch span { width: 46px; height: 27px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(19px); }

/* 进度条 */
.bar { height: 9px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .4s; }
.bar.warn > i { background: var(--accent); }
.bar.over > i { background: var(--danger); }
.bar.thin { height: 6px; }

/* 统计块 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }
.stat { background: #f8fafc; border-radius: 12px; padding: 9px 10px; }
.stat b { display: block; font-size: 17px; line-height: 1.3; }
.stat span { font-size: 11.5px; color: var(--muted); }
.stat.brand { background: linear-gradient(150deg, var(--brand), #0e7490); color: #fff; }
.stat.brand span { color: rgba(255,255,255,.8); }

/* 列表项 */
.list { display: flex; flex-direction: column; }
.item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 2px; border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: 0; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-weight: 600; font-size: 14.5px; }
.item-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.item-side { text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.ico-badge {
  width: 36px; height: 36px; border-radius: 11px; flex: 0 0 36px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: #f1f5f9;
}

/* 时间轴 */
.tl-day { margin-bottom: 14px; }
.tl-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font-weight: 650; font-size: 14px;
}
.tl-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.tl-head .date { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.tl-act {
  display: flex; gap: 10px; padding: 9px 10px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); margin-bottom: 7px;
}
.tl-act.done { background: #f0fdfa; border-color: #99f6e4; }
.tl-act.optional { opacity: .82; border-style: dashed; }
.tl-time { font-size: 12px; color: var(--muted); min-width: 76px; font-variant-numeric: tabular-nums; }
.tl-body { flex: 1; min-width: 0; }
.tl-name { font-weight: 600; font-size: 14.5px; }
.tl-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tl-ops { display: flex; flex-direction: column; gap: 4px; }

/* 目的地卡片 */
.dest-card {
  display: flex; gap: 11px; align-items: center; padding: 12px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px;
}
.dest-emoji { font-size: 30px; flex: 0 0 44px; text-align: center; }
.dest-main { flex: 1; min-width: 0; }
.dest-name { font-weight: 700; font-size: 16px; }
.dest-meta { font-size: 12px; color: var(--muted); margin: 2px 0 5px; }

/* 方案对比 */
.variants { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
.variant {
  flex: 0 0 232px; scroll-snap-align: start;
  background: #fff; border-radius: var(--radius); padding: 12px;
  border: 2px solid transparent; box-shadow: var(--shadow); cursor: pointer;
}
.variant.on { border-color: var(--brand); background: #f0fdfa; }
.variant-head { display: flex; align-items: center; justify-content: space-between; }
.variant-code {
  width: 26px; height: 26px; border-radius: 9px; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.variant.on .variant-code { background: var(--brand-dark); }
.variant-name { font-weight: 650; font-size: 14px; margin: 6px 0 3px; }
.variant-desc { font-size: 12px; color: var(--muted); min-height: 52px; }
.variant-cost { font-size: 18px; font-weight: 700; color: var(--brand); margin-top: 6px; }
.mini-bars { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.mini-bar { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.mini-bar .bar { flex: 1; }
.mini-bar .lbl { width: 52px; }

/* 对比表 */
.cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp th, .cmp td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp th { color: var(--muted); font-weight: 600; font-size: 12px; }
.cmp td.num { font-variant-numeric: tabular-nums; }
.cmp tr.best td { background: #f0fdfa; }

/* 转盘 */
.wheel-wrap { position: relative; width: min(320px, 86vw); margin: 6px auto 12px; }
.wheel { width: 100%; height: auto; transform: rotate(0deg); transition: transform 4.4s cubic-bezier(.16, .84, .22, 1); filter: drop-shadow(0 8px 22px rgba(15,23,42,.16)); }
.wheel-pin {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  font-size: 26px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}
.wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  box-shadow: 0 3px 12px rgba(15,23,42,.2); font-size: 11px; color: var(--muted);
  border: 0; cursor: pointer;
}
.wheel-center b { font-size: 15px; color: var(--brand); }
.wheel-result {
  text-align: center; font-size: 22px; font-weight: 700; min-height: 34px;
  color: var(--brand-dark);
}

/* 相册 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 7px; }
.gal-item {
  position: relative; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden;
  background: #e2e8f0; cursor: pointer;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-item .ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #64748b; font-size: 22px; gap: 4px; }
.gal-item .ph small { font-size: 10px; padding: 0 5px; text-align: center; word-break: break-all; }
.gal-item .badge { position: absolute; left: 4px; bottom: 4px; background: rgba(15,23,42,.66); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 6px; }
.gal-item .pick { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.gal-item.sel { outline: 3px solid var(--brand); }

/* 流水 */
.flow { display: flex; flex-direction: column; }
.flow-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.flow-item:last-child { border-bottom: 0; }
.flow-amt { font-weight: 700; font-variant-numeric: tabular-nums; }

/* 打卡 */
.cheer {
  background: linear-gradient(140deg, #0f766e, #0ea5e9);
  color: #fff; border-radius: var(--radius); padding: 14px; text-align: center;
  box-shadow: var(--shadow);
}
.cheer .big { font-size: 17px; font-weight: 650; line-height: 1.5; }
.cheer .sub { font-size: 12px; opacity: .85; margin-top: 4px; }

/* 空状态 */
.empty { text-align: center; padding: 26px 14px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 6px; }

/* 提示条 */
.notice {
  border-radius: 12px; padding: 10px 12px; font-size: 13px;
  background: #f1f5f9; color: var(--ink-2); margin-bottom: 10px;
  border-left: 3px solid var(--muted);
}
.notice.warn { background: #fffbeb; border-color: var(--accent); color: #92400e; }
.notice.danger { background: #fef2f2; border-color: var(--danger); color: #991b1b; }
.notice.ok { background: #f0fdf4; border-color: var(--ok); color: #166534; }
.notice.brand { background: #f0fdfa; border-color: var(--brand); color: #115e59; }

/* 选项卡 */
.seg { display: flex; background: #eef2f7; border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.seg button {
  flex: 1; border: 0; background: transparent; padding: 8px 4px; border-radius: 10px;
  font-size: 13.5px; color: var(--muted); cursor: pointer; font-weight: 600;
}
.seg button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(15,23,42,.1); }

/* 悬浮记账按钮 */
.fab {
  position: fixed; right: 14px; bottom: calc(var(--tabh) + var(--safe-b) + 14px); z-index: 55;
  height: 50px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 8px 22px rgba(245, 158, 11, .38); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.fab:active { transform: scale(.96); }

/* 吐司 */
.toast-root {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabh) + var(--safe-b) + 18px);
  z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; padding: 0 14px;
}
.toast {
  max-width: 92%; background: rgba(15, 23, 42, .93); color: #fff;
  border-radius: 12px; padding: 10px 14px; font-size: 13.5px; line-height: 1.5;
  opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
}
.toast-msg { flex: 1; }
.toast-act {
  flex: 0 0 auto; border: 0; background: rgba(255,255,255,.18); color: #fff;
  border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600;
  cursor: pointer; min-height: 32px;
}
.toast-act:active { background: rgba(255,255,255,.3); }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-info { background: rgba(15, 23, 42, .93); }
.toast-good { background: rgba(6, 95, 70, .96); }
.toast-warn { background: rgba(180, 83, 9, .96); }
.toast-error { background: rgba(153, 27, 27, .96); }

/* 弹层 */
.sheet-mask {
  position: fixed; inset: 0; z-index: 150; background: rgba(15, 23, 42, .45);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .24s;
}
.sheet-mask.show { opacity: 1; }
.sheet {
  width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 20px 20px 0 0; padding: 8px 16px calc(18px + var(--safe-b));
  transform: translateY(14px); transition: transform .26s;
}
.sheet-mask.show .sheet { transform: translateY(0); }
.sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: #cbd5e1; margin: 6px auto 10px; }
.sheet-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.sheet-actions { display: flex; gap: 8px; margin-top: 16px; }
.sheet-actions .btn { flex: 1; }
.confirm-text { margin: 4px 0 0; font-size: 14.5px; line-height: 1.65; }

/* 操作单（手机上的"更多操作"） */
.act-list { gap: 6px; }
.act-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  font-size: 15.5px; font-weight: 600; color: var(--ink); text-align: left;
  cursor: pointer;
}
.act-row:active { background: #eef2f7; }
.act-row.danger { color: var(--danger); border-color: #fecaca; background: #fffafa; }
.act-ico { font-size: 19px; width: 24px; text-align: center; flex: 0 0 24px; }
.act-label { flex: 1; }
.act-hint { font-size: 12px; font-weight: 400; color: var(--muted); }
/* 行尾"更多"按钮：够大、好点 */
.more-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent;
  font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
}
.more-btn:active { background: #eef2f7; }

/* 查看器 */
.viewer { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.viewer.show { opacity: 1; }
.viewer img, .viewer video { max-width: 96vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.viewer-close { position: absolute; top: calc(14px + var(--safe-t)); right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 18px; }

/* 安装提示条 */
.install-bar {
  position: fixed; left: 10px; right: 10px; bottom: calc(var(--tabh) + var(--safe-b) + 10px); z-index: 120;
  background: #0f172a; color: #fff; border-radius: 14px; padding: 10px 12px;
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; box-shadow: var(--shadow-lg);
}
.install-bar span { flex: 1; }

/* 日历热力 */
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.heat i { display: block; aspect-ratio: 1/1; border-radius: 5px; background: #eef2f7; }
.heat i.l1 { background: #99f6e4 } .heat i.l2 { background: #5eead4 }
.heat i.l3 { background: #14b8a6 } .heat i.l4 { background: #0f766e }

/* 桌面适配 */
@media (min-width: 720px) {
  .tabbar { max-width: 680px; margin: 0 auto; border-radius: 16px 16px 0 0; box-shadow: 0 -4px 18px rgba(15,23,42,.06); }
  .topbar { padding-left: max(8px, calc(50vw - 340px)); padding-right: max(8px, calc(50vw - 340px)); }
  .sheet { border-radius: 20px; margin-bottom: 24px; }
  .sheet-mask { align-items: center; }
}

/* 大字号/无障碍 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* 列表/卡片进场：只做透明度+位移，避免手机上的重排抖动 */
.card, .dest-card, .variant, .tl-act { will-change: auto; }
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .card.will-in, .dest-card.will-in { opacity: .001; }
  .card.in, .dest-card.in { animation: cardIn .2s ease-out both; }
}
/* 点击态统一用背景色变化，不用 transform，避免 iOS 上的重排卡顿 */
.chip:active, .tab:active, .gal-item:active, .variant:active { background: #eef2f7; }

/* 打印（导出报告时用浏览器打印） */
@media print {
  .topbar, .tabbar, .fab, .toast-root, .install-bar { display: none !important; }
  body { padding: 0; background: #fff; }
}
