/* ==========================================================================
   base.css —— 重置 / 排版 / 通用布局 / 滚动条
   ========================================================================== */

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

html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body { min-height: 100vh; }

img { display: block; border: 0; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
svg { display: block; }

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: rgba(22,24,29,.16); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(22,24,29,.26); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 排版工具 ---------- */
.tnum { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.t-ink2 { color: var(--ink-2); } .t-ink3 { color: var(--ink-3); } .t-ink4 { color: var(--ink-4); }
.t-brand { color: var(--brand); } .t-success { color: var(--success); }
.t-warn { color: var(--warn); } .t-danger { color: var(--danger); }
.tc { text-align: center; } .tr { text-align: right; }
.fw6 { font-weight: 600; } .fw7 { font-weight: 700; } .fw8 { font-weight: 800; }
.fs11 { font-size: var(--fs-11); } .fs12 { font-size: var(--fs-12); }
.fs13 { font-size: var(--fs-13); } .fs14 { font-size: var(--fs-14); }
.fs16 { font-size: var(--fs-16); } .fs18 { font-size: var(--fs-18); }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh15 { line-height: 1.5; } .lh18 { line-height: 1.8; }
.flex { display: flex; } .flexc { display: flex; align-items: center; }
.flexb { display: flex; align-items: center; justify-content: space-between; }
.flexcc { display: flex; align-items: center; justify-content: center; }
.flexcol { display: flex; flex-direction: column; }
.f1 { flex: 1 1 auto; min-width: 0; }
.gap2 { gap: 2px; } .gap4 { gap: 4px; } .gap6 { gap: 6px; }
.gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.mt2 { margin-top: 2px; } .mt4 { margin-top: 4px; } .mt6 { margin-top: 6px; }
.mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.hide { display: none !important; }

/* ---------- 演示台外壳（PC 页面通用） ---------- */
.app { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }

.stage {
  flex: 1 1 auto;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 30px 22px 48px;
}
.stage-inner { display: flex; align-items: flex-start; justify-content: center; gap: 34px; }
.stage-scaler { transform-origin: top center; }

/* ---------- 页脚说明 ---------- */
.footnote {
  padding: 0 22px 32px;
  text-align: center;
  font-size: 11.5px; color: var(--ink-4); line-height: 1.9;
}
.footnote b { color: var(--ink-3); font-weight: 700; }

@media (max-width: 900px) {
  .stage { padding: 18px 12px 30px; }
  .stage-scaler { transform: none !important; width: 100%; }
  .stage-inner { flex-direction: column; align-items: center; gap: 30px; width: 100%; }
}

/* 截图模式：隐藏演示台装饰 */
body.is-capture { background: #fff; }
body.is-capture .stage { padding: 0; }
body.is-capture .appbar, body.is-capture .footnote, body.is-capture .device-cap { display: none !important; }
