/* ===================================================================
   随记账 · 每日打卡 — 移动端样式
   纯静态、无外部依赖、无 CDN
   =================================================================== */

:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --line: #e9ecf1;
  --line-2: #f0f2f5;
  --text: #141a1f;
  --text-2: #485360;
  --muted: #8a939e;
  --primary: #0ea5a4;
  --primary-2: #0b8b8a;
  --primary-soft: #e4f6f5;
  --expense: #f2543d;
  --expense-soft: #fdeeeb;
  --income: #12a150;
  --income-soft: #e7f7ee;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
  --shadow-2: 0 -6px 28px rgba(16, 24, 40, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --tabbar-h: 58px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --topbar-h: 52px;
  /* 码上架会在页面右下角注入平台角标（#mashangjia-watermark，z-index 拉满，
     无法被覆盖）。默认让位 0；只有 app.js 检测到它真的压住底栏时，
     才由 html.has-msj-wm 打开这段让位高度。 */
  --msj-wm-h: 0px;
}

/* 平台角标存在且与底栏重叠时：内容整体上移，把右下角让出来 */
html.has-msj-wm { --msj-wm-h: 46px; }

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
               "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body { padding: 0; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
input, textarea { border: 0; outline: 0; background: none; }
b, strong { font-weight: 600; }

/* ---------------- 布局 ---------------- */
#app { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: calc(var(--topbar-h) + var(--safe-t));
  padding: var(--safe-t) 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(242, 244, 247, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.topbar .sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.topbar .tb-btn {
  height: 34px; padding: 0 13px; border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow-1); font-size: 13px; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.topbar .tb-btn:active { transform: scale(.96); }

.view {
  flex: 1;
  padding: 6px 14px calc(var(--tabbar-h) + var(--safe-b) + var(--msj-wm-h) + 26px);
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}
/* 有悬浮按钮的页面多留一点底部空间，避免遮住最后一条内容 */
.view.has-fab { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + var(--msj-wm-h) + 82px); }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  /* 让位高度加在底栏自身：白色面板延伸到屏幕底部，
     按钮仍居中在原有 58px 内容区里，视觉上只是底部多了一条留白 */
  height: calc(var(--tabbar-h) + var(--safe-b) + var(--msj-wm-h));
  padding-bottom: calc(var(--safe-b) + var(--msj-wm-h));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--muted); font-size: 11px; transition: color .15s;
}
.tabbar button svg { width: 22px; height: 22px; display: block; }
.tabbar button.active { color: var(--primary); font-weight: 600; }

/* ---------------- 悬浮按钮 ---------------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  z-index: 41;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(150deg, #14b8b6, #0891b2);
  color: #fff; font-size: 27px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(8, 145, 178, .38);
  transition: transform .12s ease, opacity .18s ease;
}
.fab:active { transform: scale(.92); }
.fab.hidden { opacity: 0; pointer-events: none; transform: scale(.6); }

/* ---------------- 卡片 / 通用 ---------------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 16px;
  margin-bottom: 12px;
}
.card.tight { padding: 12px 14px; }
.sec-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 18px 4px 8px; font-size: 13px; color: var(--muted); font-weight: 500;
}
.sec-title .more { color: var(--primary); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.expense-c { color: var(--expense); }
.income-c { color: var(--income); }

.empty {
  text-align: center; padding: 40px 16px; color: var(--muted); font-size: 13px;
}
.empty .ico { font-size: 34px; display: block; margin-bottom: 10px; opacity: .55; }

/* 月份切换 */
.monthbar {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 4px 0 12px;
}
.monthbar .mbtn {
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface);
  box-shadow: var(--shadow-1); display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 16px;
}
.monthbar .mbtn:active { transform: scale(.92); }
.monthbar .mtitle {
  min-width: 128px; text-align: center; font-size: 16px; font-weight: 650;
  letter-spacing: .3px;
}
.monthbar .today-btn {
  font-size: 12px; color: var(--primary); background: var(--primary-soft);
  padding: 5px 10px; border-radius: 999px; margin-left: 2px;
}

/* ---------------- 记账：概览卡 ---------------- */
.summary {
  background: linear-gradient(160deg, #13b3b1 0%, #0e9aa0 55%, #0b7f96 100%);
  color: #fff; border-radius: var(--radius); padding: 18px 18px 16px;
  box-shadow: 0 8px 22px rgba(11, 127, 150, .24);
  margin-bottom: 12px;
}
.summary .lbl { font-size: 12px; opacity: .82; }
.summary .bal { font-size: 30px; font-weight: 700; letter-spacing: .5px; margin: 2px 0 12px; }
.summary .bal .cur { font-size: 17px; font-weight: 600; margin-right: 3px; opacity: .9; }
.summary .duo { display: flex; gap: 10px; }
.summary .duo > div {
  flex: 1; background: rgba(255, 255, 255, .14); border-radius: 12px; padding: 9px 11px;
}
.summary .duo .k { font-size: 11px; opacity: .85; }
.summary .duo .v { font-size: 16px; font-weight: 650; margin-top: 1px; }

.budget { margin-top: 13px; }
.budget .bt { display: flex; justify-content: space-between; font-size: 11.5px; opacity: .9; margin-bottom: 6px; }
.budget .bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .24); overflow: hidden; }
.budget .bar > i { display: block; height: 100%; border-radius: 99px; background: #fff; transition: width .35s ease; }
.budget .bar > i.warn { background: #ffd66b; }
.budget .bar > i.over { background: #ff9a8b; }

/* ---------------- 分段控件 ---------------- */
.seg {
  display: flex; background: #e8ebef; border-radius: 11px; padding: 3px;
  margin-bottom: 12px;
}
.seg button {
  flex: 1; height: 34px; border-radius: 9px; font-size: 14px; color: var(--text-2);
  font-weight: 500; transition: all .16s;
}
.seg button.on { background: var(--surface); color: var(--text); font-weight: 650; box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.seg.on-teal button.on { color: var(--primary); }
.seg.sm button { height: 30px; font-size: 13px; }

/* ---------------- 记账列表 ---------------- */
.day-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 4px 6px; font-size: 12px; color: var(--muted);
}
.day-head .d { font-weight: 600; color: var(--text-2); }
.day-group { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; margin-bottom: 10px; }
.rec {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px;
  border-bottom: 1px solid var(--line-2); transition: background .12s;
}
.rec:last-child { border-bottom: 0; }
.rec:active { background: var(--surface-2); }
.rec .ico {
  width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex: 0 0 auto; background: var(--surface-2);
}
.rec .main { flex: 1; min-width: 0; }
.rec .c1 { font-size: 14.5px; font-weight: 500; }
.rec .c2 { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec .amt { font-size: 15.5px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec .amt.expense-c::before { content: '-'; }
.rec .amt.income-c::before { content: '+'; }

/* ---------------- 打卡 ---------------- */
.today-card {
  background: linear-gradient(160deg, #13b3b1 0%, #0e9aa0 60%, #0b7f96 100%);
  color: #fff; border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 8px 22px rgba(11, 127, 150, .24); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.today-card .d1 { font-size: 12px; opacity: .85; }
.today-card .d2 { font-size: 22px; font-weight: 700; margin-top: 2px; }
.today-card .ring { position: relative; width: 62px; height: 62px; flex: 0 0 auto; }
.today-card .ring span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 650;
}

.habit {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1);
  margin-bottom: 10px;
}
.habit .l { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.habit .emo {
  width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex: 0 0 auto;
}
.habit .nm { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.habit .mt { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.habit .mt b { color: #e8792b; font-weight: 600; }
.chk {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--line); color: var(--muted); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s cubic-bezier(.34, 1.56, .64, 1);
}
.chk.on { border-color: transparent; color: #fff; }
.chk:active { transform: scale(.88); }

/* 月历热力图 */
.cal { margin-top: 4px; }
.cal .wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.cal .wk span { text-align: center; font-size: 11px; color: var(--muted); }
.cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .grid button {
  aspect-ratio: 1 / 1; border-radius: 9px; background: var(--surface-2);
  font-size: 12px; color: var(--text-2); display: flex; align-items: center;
  justify-content: center; font-variant-numeric: tabular-nums;
}
.cal .grid button.future { color: #c6ccd4; }
.cal .grid button.on { color: #fff; font-weight: 650; }
.cal .grid button.today { box-shadow: inset 0 0 0 2px var(--primary); }
.cal .grid button.blank { background: transparent; }

.kv3 { display: flex; gap: 8px; margin-top: 12px; }
.kv3 > div { flex: 1; background: var(--surface-2); border-radius: 11px; padding: 9px 10px; text-align: center; }
.kv3 .k { font-size: 11px; color: var(--muted); }
.kv3 .v { font-size: 17px; font-weight: 700; margin-top: 1px; }

/* ---------------- 设置 ---------------- */
.row {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  background: var(--surface); border-bottom: 1px solid var(--line-2);
}
.row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.row:last-child { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.row.only { border-radius: var(--radius); }
.row .k { flex: 1; font-size: 14.5px; }
.row .k .s { font-size: 11.5px; color: var(--muted); margin-top: 1px; font-weight: 400; }
.row .v { font-size: 13.5px; color: var(--muted); }
.row .chev { color: #c3cad3; font-size: 15px; }
.group { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); margin-bottom: 12px; }
.row.btn:active { background: var(--surface-2); }
.row.danger .k { color: #e0453a; }

.cat-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.cat-row:last-child { border-bottom: 0; }
.cat-row .emo { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.cat-row .nm { flex: 1; font-size: 14px; }
.cat-row .del { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 15px; display: flex; align-items: center; justify-content: center; }

/* 输入框 */
.field {
  display: flex; align-items: center; gap: 8px; background: var(--surface-2);
  border-radius: 11px; padding: 10px 12px; margin-bottom: 10px;
}
.field label { font-size: 13px; color: var(--muted); flex: 0 0 auto; }
.field input {
  flex: 1; font-size: 15px; min-width: 0; background: none;
}
.field input[type="date"] { text-align: right; }
.field.pill { border-radius: 999px; }

/* ---------------- 图表 ---------------- */
.chart { width: 100%; display: block; overflow: visible; }
.legend { margin-top: 6px; }
.lg-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line-2); }
.lg-row:last-child { border-bottom: 0; }
.lg-row .dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.lg-row .nm { flex: 1; font-size: 14px; }
.lg-row .pc { font-size: 12px; color: var(--muted); margin-right: 4px; }
.lg-row .val { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.pbar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pbar > i { display: block; height: 100%; border-radius: 99px; background: var(--primary); transition: width .3s; }

/* 添加到主屏幕引导条 */
.tip {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary-soft); border-radius: var(--radius);
  padding: 11px 10px 11px 13px; margin: 8px 0 4px;
}
.tip .tip-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.tip .tip-ic {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  background: var(--primary); color: #fff; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.tip .tip-tx { min-width: 0; }
.tip .tip-tx b { display: block; font-size: 13.5px; color: #0b5f5e; font-weight: 600; }
.tip .tip-tx span { display: block; font-size: 11.5px; color: #4a7f7e; margin-top: 1px; }
.tip .tip-go { color: var(--primary-2); font-size: 16px; flex: 0 0 auto; }
.tip .tip-x {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  color: #6f9a99; font-size: 16px; display: flex; align-items: center; justify-content: center;
}

/* 步骤说明 */
.sheet .sh-body { counter-reset: stepc; }
.step { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line-2); }
.step:last-of-type { border-bottom: 0; }
.step::before {
  counter-increment: stepc;
  content: counter(stepc);
  position: absolute; left: 0; top: 13px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-2);
  font-size: 11.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step b { display: block; font-size: 14px; font-weight: 600; }
.step span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.warn {
  margin-top: 14px; padding: 12px 13px; border-radius: 12px;
  background: var(--expense-soft); color: #8a3323; font-size: 12.5px; line-height: 1.75;
}
.warn b { font-weight: 600; }

/* ---------------- 底部弹层 ---------------- */
.backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(12, 18, 24, .42);
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.backdrop.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow-2);
  transform: translateY(102%);
  transition: transform .28s cubic-bezier(.32, .72, 0, 1);
  max-height: 92vh;
  display: flex; flex-direction: column;
  /* 记账键盘的「保存」键也在右下角，同样要让开平台角标 */
  padding-bottom: calc(var(--safe-b) + var(--msj-wm-h));
  will-change: transform;
}
.sheet.show { transform: translateY(0); }
.sheet .sh-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px; flex: 0 0 auto;
}
.sheet .sh-head .t { font-size: 15.5px; font-weight: 650; }
.sheet .sh-head button { font-size: 14.5px; color: var(--text-2); padding: 4px 2px; }
.sheet .sh-head button.primary { color: var(--primary); font-weight: 650; }
.sheet .sh-head button.danger { color: #e0453a; }
.sheet .sh-body { overflow-y: auto; padding: 0 16px; -webkit-overflow-scrolling: touch; }
.sheet .sh-body.pb { padding-bottom: 16px; }
.sheet .sh-actions { padding: 4px 0 10px; }
.sheet .sh-actions button {
  display: block; width: 100%; text-align: center; padding: 14px; font-size: 15.5px;
  border-bottom: 1px solid var(--line-2); color: var(--text);
}
.sheet .sh-actions button:last-child { border-bottom: 0; }
.sheet .sh-actions button.danger { color: #e0453a; }
.sheet .sh-actions button.cancel { color: var(--muted); border-top: 8px solid var(--bg); }
.sheet .sh-actions button:active { background: var(--surface-2); }

/* 记账面板 */
.amount-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 6px 4px 12px; border-bottom: 1px solid var(--line-2);
}
.amount-row .cur { font-size: 22px; font-weight: 600; color: var(--text-2); margin-right: 6px; padding-bottom: 3px; }
.amount-row .num {
  font-size: 36px; font-weight: 700; letter-spacing: .5px; flex: 1; text-align: right;
  font-variant-numeric: tabular-nums; word-break: break-all;
}
.amount-row .num.zero { color: #c3cad3; }
.amount-row .del { width: 40px; height: 40px; margin-left: 8px; border-radius: 11px; background: var(--surface-2); font-size: 17px; color: var(--text-2); display: flex; align-items: center; justify-content: center; }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 10px 0 2px; }
.cat-grid button {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px 5px; border-radius: 11px; transition: background .14s;
}
.cat-grid button .b {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 18px; background: var(--surface-2); transition: transform .16s;
}
.cat-grid button .n { font-size: 11px; color: var(--muted); }
.cat-grid button.sel .b { color: #fff; transform: scale(1.04); }
.cat-grid button.sel .n { color: var(--text); font-weight: 600; }

.keypad { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 46px; gap: 5px; padding-top: 2px; }
.keypad button {
  border-radius: 12px; background: var(--surface-2); font-size: 21px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; transition: background .1s;
}
.keypad button:active { background: #e4e8ed; }
.keypad button.ok {
  grid-column: 4; grid-row: 1 / 5; background: linear-gradient(150deg, #14b8b6, #0891b2);
  color: #fff; font-size: 16px; font-weight: 650;
}
.keypad button.ok:active { filter: brightness(.94); }
.sheet.hide-keypad .keypad { display: none; }

.inline-fields { display: flex; gap: 8px; margin: 10px 0 2px; }
.inline-fields .field { flex: 1; margin-bottom: 0; }

/* ---------------- 提示 & 对话框 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 84px);
  transform: translate(-50%, 12px); z-index: 90;
  background: rgba(20, 26, 31, .9); color: #fff; font-size: 13.5px;
  padding: 9px 16px; border-radius: 999px; max-width: 78vw; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.dialog {
  position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.94);
  width: min(88vw, 340px); background: var(--surface); border-radius: 18px;
  padding: 22px 20px 16px; box-shadow: 0 18px 50px rgba(12, 18, 24, .28);
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.dialog.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.dialog h3 { margin: 0 0 8px; font-size: 17px; }
.dialog p { margin: 0 0 18px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.dialog .acts { display: flex; gap: 10px; }
.dialog .acts button { flex: 1; height: 44px; border-radius: 12px; font-size: 15px; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.dialog .acts button.primary { background: var(--primary); color: #fff; }
.dialog .acts button.danger { background: #e0453a; color: #fff; }

.noscript { padding: 24px; text-align: center; color: var(--text-2); }

/* 桌面端：中间留白，仿真手机宽度 */
@media (min-width: 700px) {
  body { background: #e9edf2; }
  #app {
    max-width: 620px; margin: 0 auto; background: var(--bg);
    min-height: 100vh; box-shadow: 0 0 40px rgba(16, 24, 40, .07);
  }
  .tabbar { right: auto; width: 100%; max-width: 620px; left: 50%; transform: translateX(-50%); }
  .sheet { right: auto; width: 100%; max-width: 620px; left: 50%; transform: translate(-50%, 102%); }
  .sheet.show { transform: translate(-50%, 0); }
  .fab { right: calc(50% - 310px + 18px); }
}
