/* ============================================================
   时间锁 · Apple 风设计系统
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text2: #6e6e73;
  --text3: #86868b;
  --line: rgba(0, 0, 0, .09);
  --fill: #e8e8ed;
  --fill-weak: rgba(0, 0, 0, .035);
  --accent: #0071e3;
  --green: #34c759;
  --green-bg: rgba(52, 199, 89, .13);
  --red: #ff3b30;
  --amber: #9a6b00;
  --amber-bg: #fdf3d7;
  --radius: 20px;
  --radius-s: 12px;
  --shadow: 0 4px 28px rgba(0, 0, 0, .06);
  --nav-bg: rgba(245, 245, 247, .8);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text2: #98989d;
    --text3: #86868b;
    --line: rgba(255, 255, 255, .13);
    --fill: #2c2c2e;
    --fill-weak: rgba(255, 255, 255, .07);
    --accent: #2997ff;
    --green: #30d158;
    --green-bg: rgba(48, 209, 88, .16);
    --red: #ff453a;
    --amber: #ffd60a;
    --amber-bg: rgba(255, 214, 10, .13);
    --shadow: 0 8px 40px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .4);
    --card-border: rgba(255, 255, 255, .09);
    --nav-bg: rgba(10, 10, 10, .8);
  }
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* hidden 属性优先于任何 display 设置（防止遮层挡住页面） */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

.mono { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

main { flex: 1; width: 100%; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 20px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand-logo { width: 27px; height: 27px; display: block; }

.nav-actions { display: flex; align-items: center; gap: 4px; }

.nav-link {
  font-size: 15px;
  color: var(--text2);
  padding: 9px 12px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--fill-weak); }
#navLogin {
  color: #fff;
  font-weight: 600;
  background: var(--accent);
  border-radius: 999px;
  padding: 7px 16px;
}
#navLogin:hover { color: #fff; opacity: .88; background: var(--accent); }

/* ---------- 视图与排版 ---------- */
.view { max-width: 640px; margin: 0 auto; padding: 28px 20px 56px; animation: fadeUp .4s ease both; }

.hero { padding: 26px 0 30px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.hero-sub { margin: 14px auto 0; max-width: 30em; font-size: 17px; color: var(--text2); line-height: 1.6; }

.page-title { font-size: 30px; font-weight: 800; letter-spacing: -.03em; text-align: center; }
.page-sub { margin-top: 8px; font-size: 15px; color: var(--text2); text-align: center; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border: .5px solid var(--card-border, transparent);
}

.field + .field { margin-top: 34px; }

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.field-head label { font-size: 14px; font-weight: 700; color: var(--text2); letter-spacing: .01em; }
.field-tip { font-size: 13px; color: var(--text3); }

.note { font-size: 13px; color: var(--text3); line-height: 1.65; margin-top: 10px; }
.note.strong { color: var(--text2); }
.note.center { text-align: center; }

.warn-note {
  background: var(--amber-bg);
  color: var(--amber);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- 输入控件 ---------- */
.input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font-size: 16px;
  background: var(--fill-weak);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: var(--text3); }
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 22%, transparent);
}
.input.big { height: 54px; font-size: 20px; letter-spacing: .08em; text-align: center; font-weight: 600; }

select.input { background: var(--card); }

/* ---------- 分段控件 ---------- */
.seg {
  position: relative;
  display: flex;
  background: var(--fill);
  border-radius: 10px;
  padding: 2px;
  flex: none;
}
.seg-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(0, 0, 0, .05);
  transition: transform .28s cubic-bezier(.32, .72, .35, 1);
}
.seg button {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 76px;
  height: 32px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  border-radius: 8px;
  transition: color .2s;
  white-space: nowrap;
}
.seg button.on { color: var(--text); }

/* ---------- iOS 开关 ---------- */
.switch-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.switch-item { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text2); }
.switch { position: relative; display: inline-block; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--fill);
  transition: background .22s;
  pointer-events: none;
}
.switch i::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0,.22);
  transition: transform .22s cubic-bezier(.32, .72, .35, 1);
}
.switch input:checked + i { background: #34c759; }
@media (prefers-color-scheme: dark) {
  .switch input:checked + i { background: #30d158; }
}
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 滑杆 ---------- */
.len-row { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.len-label { font-size: 15px; color: var(--text2); flex: none; width: 66px; }
.len-label b { color: var(--text); font-size: 17px; font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 30px;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent) 0 var(--p, 30%), var(--fill) var(--p, 30%) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(0, 0, 0, .06);
  cursor: grab;
}
input[type="range"]::-moz-range-track { height: 5px; border-radius: 3px; background: var(--fill); }
input[type="range"]::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--accent); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 11px; }
.chip {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 15px;
  color: var(--text2);
  transition: all .18s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.chip:hover { border-color: var(--text3); }
.chip.on {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
  font-weight: 600;
}

.code-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  text-align: left;
  transition: border-color .15s, background .15s;
  flex: 1 1 130px;
}
.code-chip:hover { border-color: var(--text3); background: var(--fill-weak); }
.code-chip .c-code { font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.code-chip .c-meta { font-size: 12px; color: var(--text3); }

/* ---------- 密码密钥牌（生成预览） ---------- */
.pw-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 16px 20px 19px;
  border-radius: 16px;
  background-color: #1d1d1f;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 46%);
  color: #f5f5f7;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .17),
    inset 0 .5px 0 rgba(255, 255, 255, .3),
    0 8px 26px rgba(0, 0, 0, .2);
}
@media (prefers-color-scheme: dark) {
  .pw-card {
    background-color: rgba(255, 255, 255, .06);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, .16),
      inset 0 .5px 0 rgba(255, 255, 255, .24),
      0 8px 26px rgba(0, 0, 0, .4);
  }
}

.pw-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .58);
}
.pw-tag svg { width: 12px; height: 12px; }

.pw-text {
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.5;
  word-break: break-all;
  user-select: all;
  min-height: 1.5em;
}

.pw-actions { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--fill-weak);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  transition: color .15s, border-color .15s, background .15s, opacity .15s;
}
.mini-btn:hover { color: var(--text); border-color: var(--text3); background: var(--fill); }
.mini-btn:active { transform: scale(.96); }
.mini-btn svg { width: 15px; height: 15px; }
.mini-btn.primary {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
  padding: 0 20px;
}
.mini-btn.primary:hover { color: var(--bg); opacity: .85; background: var(--text); }

/* ---------- 密码展示框（手动输入） ---------- */
.pw-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--fill-weak);
  border-radius: var(--radius-s);
  padding: 13px 14px;
}
.pw-value {
  flex: 1;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(14px, 4vw, 17px);
  letter-spacing: .04em;
  word-break: break-all;
  line-height: 1.45;
  min-height: 26px;
}
.pw-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  letter-spacing: .04em;
}
.pw-input:focus { outline: none; }

.icon-btn {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text2);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--fill); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- 按钮 ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  transition: transform .12s, opacity .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.btn-primary { background: var(--text); color: var(--bg); }
.btn-secondary { background: var(--fill); color: var(--text); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }

.btn + .btn { margin-top: 12px; }
.btn-row { display: flex; gap: 12px; }
.btn-row .btn + .btn { margin-top: 0; }

.link-btn {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--text3);
  border-radius: 8px;
  transition: color .15s;
}
.link-btn:hover { color: var(--text); }
.link-btn.danger { color: var(--red); }
.link-btn.accent { color: var(--accent); font-weight: 600; }

.actions { margin-top: 24px; text-align: center; }
.actions .link-btn { margin-top: 14px; }

/* ---------- 倒计时 ---------- */
.count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  padding: 26px 0 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  font-weight: 700;
}
.count-days { font-size: clamp(20px, 5vw, 28px); color: var(--text2); }
.count-hms { font-size: clamp(46px, 13vw, 62px); }
.count-sub { text-align: center; font-size: 14px; color: var(--text3); padding-bottom: 8px; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.badge-locked { background: var(--fill); color: var(--text2); }
.badge-open { background: var(--green-bg); color: var(--green); }
.badge-breach { background: var(--amber-bg); color: var(--amber); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.lock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lock-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.meta-list { margin-top: 18px; border-top: .5px solid var(--line); }
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: .5px solid var(--line);
  font-size: 14.5px;
}
.meta-row .k { color: var(--text3); flex: none; }
.meta-row .v { text-align: right; font-weight: 500; }

/* ---------- 票据（取回码） ---------- */
.ticket-card { text-align: center; }
.ticket-head { font-size: 15px; color: var(--text2); font-weight: 600; }
.ticket-card h2 { margin-top: 6px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.code-display {
  margin: 22px auto 8px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(26px, 7.5vw, 36px);
  font-weight: 700;
  letter-spacing: .06em;
  padding: 20px 8px;
  background: var(--fill-weak);
  border-radius: 16px;
  user-select: all;
}
.ticket-actions { display: flex; gap: 10px; margin: 16px 0; }
.ticket-meta { margin-top: 16px; text-align: left; }

/* ---------- 列表（我的封存） ---------- */
.list-card { padding: 4px 0; overflow: hidden; }
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 20px;
  text-align: left;
  transition: background .15s;
}
.row:hover { background: var(--fill-weak); }
.row + .row { border-top: .5px solid var(--line); }
.row-body { flex: 1; min-width: 0; }
.row-title { font-size: 16.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 13px; color: var(--text3); margin-top: 3px; }
.row-side { flex: none; text-align: right; font-size: 13px; color: var(--text2); }
.chev { flex: none; color: var(--text3); font-size: 19px; line-height: 1; }

.empty { text-align: center; padding: 44px 16px; color: var(--text3); font-size: 15px; line-height: 1.8; }
.empty .emoji { font-size: 36px; display: block; margin-bottom: 8px; }

/* ---------- 弹层（底部抽屉 / 居中卡片） ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  animation: fadeIn .25s ease both;
}
.sheet {
  position: relative;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  padding: 22px 22px calc(26px + env(safe-area-inset-bottom));
  animation: sheetUp .38s cubic-bezier(.32, .72, .35, 1) both;
}
@media (min-width: 680px) {
  .overlay { align-items: center; padding: 20px; }
  .sheet {
    width: auto;
    max-width: 430px;
    border-radius: 20px;
    padding: 26px;
    animation: sheetIn .3s cubic-bezier(.32, .72, .35, 1) both;
  }
}

.sheet-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-align: center; }
.sheet-sub { margin-top: 6px; font-size: 14px; color: var(--text2); text-align: center; line-height: 1.6; }
.sheet-body { margin-top: 20px; }
.sheet-grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--fill); margin: 0 auto 14px; }
@media (min-width: 680px) { .sheet-grabber { display: none; } }

/* ---------- 支付面板 ---------- */
.pay-channels { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.pay-channel {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color .15s, background .15s;
  text-align: left;
}
.pay-channel:hover { border-color: var(--text3); background: var(--fill-weak); }
.pay-logo {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #fff; font-weight: 700;
}
.pay-wc { background: #07c160; }
.pay-ap { background: #1677ff; }
.pay-mk { background: var(--text3); }
.pay-name { flex: 1; font-size: 16px; font-weight: 600; }
.pay-tag { font-size: 11px; font-weight: 700; color: var(--amber); background: var(--amber-bg); padding: 3px 8px; border-radius: 6px; }

.qr-wrap { text-align: center; padding: 6px 0 2px; }
.qr-img {
  width: 224px; height: 224px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  margin: 4px auto 0;
  display: block;
}
.qr-hint { margin-top: 14px; font-size: 14px; color: var(--text2); line-height: 1.7; }
.qr-status { margin-top: 12px; font-size: 13.5px; color: var(--text3); display: flex; align-items: center; justify-content: center; gap: 7px; }

.spinner {
  width: 15px; height: 15px; flex: none;
  border: 2px solid var(--line);
  border-top-color: var(--text3);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ---------- 取回密码结果 ---------- */
.result-icon {
  width: 66px; height: 66px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 6px auto 0;
  font-size: 30px;
}
.result-win { background: var(--green-bg); color: var(--green); }
.result-lose { background: var(--amber-bg); color: var(--amber); }
.pw-big {
  margin-top: 18px;
  padding: 18px 14px;
  background: var(--fill-weak);
  border-radius: 14px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(19px, 5.5vw, 24px);
  font-weight: 600;
  letter-spacing: .04em;
  word-break: break-all;
  text-align: center;
  user-select: all;
  line-height: 1.5;
}

/* ---------- 封存动画 ---------- */
.seal { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding-bottom: 12vh; }
.seal-chars {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 3px;
  max-width: 78vw;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px; font-weight: 600;
}
.seal-char { display: inline-block; animation: sealFly .9s cubic-bezier(.5, 0, .8, .4) var(--d) forwards; }
.seal-lock {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0;
  animation: sealPop .55s cubic-bezier(.2, 1.4, .4, 1) .95s forwards;
}
.seal-lock .lock-emoji { font-size: 64px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.25)); }
.seal-word { font-size: 21px; font-weight: 800; letter-spacing: .12em; color: var(--text); }

/* ---------- 错误/空态 ---------- */
.error-card { text-align: center; padding: 44px 24px; }
.error-card .emoji { font-size: 40px; }
.error-card h2 { margin-top: 12px; font-size: 20px; font-weight: 700; }
.error-card p { margin-top: 8px; font-size: 14.5px; color: var(--text2); }

/* ---------- 页脚 ---------- */
.footer {
  padding: 44px 20px calc(52px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 13px;
  color: var(--text3);
  line-height: 1.9;
}
.footer-sub { opacity: .8; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(34px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  animation: toastIn .3s cubic-bezier(.32, .72, .35, 1) both;
  max-width: calc(100vw - 40px);
  text-align: center;
}

/* ---------- 彩带 ---------- */
.confetti { position: fixed; inset: 0; z-index: 300; pointer-events: none; }

/* ---------- 动画 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(60%); } to { transform: none; } }
@keyframes sheetIn { from { opacity: 0; transform: scale(.94) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sealFly {
  30% { opacity: 1; filter: blur(0); }
  100% { opacity: 0; filter: blur(10px); transform: translate(var(--dx, 0), -70px) scale(.6); }
}
@keyframes sealPop {
  from { opacity: 0; transform: scale(.4); }
  60% { opacity: 1; transform: scale(1.12); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 桌面适配 ---------- */
@media (min-width: 680px) {
  .view { padding-top: 44px; }
  .hero { padding: 44px 0 40px; }
  .nav { height: 56px; }
}
