/* ============================================================
   base.css —— 灰盒线框基础样式（低保真 + 基础样式）
   依赖 tokens.css
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--c-bg);
}
body {
  font-family: var(--font);
  color: var(--c-ink);
  /* 港风光晕背景 —— 薄荷绿 + 复古金 + 翡翠绿，营造烟火气 */
  background:
    radial-gradient(1100px 560px at 8% -8%, rgba(6,167,125,0.18), transparent 60%),
    radial-gradient(900px 480px at 100% -4%, rgba(245,179,1,0.14), transparent 55%),
    radial-gradient(800px 620px at 50% 112%, rgba(11,110,84,0.16), transparent 62%),
    var(--c-bg);
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-primary); text-decoration: none; cursor: pointer; }
a:hover { color: var(--c-primary-dark); }
button { font-family: inherit; cursor: pointer; }

/* 应用容器 */
#app { min-height: 100vh; }

/* 顶部栏 —— 毛玻璃（悬浮于内容之上，模糊背景） */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--s-3);
  height: 56px; padding: 0 var(--s-4);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.topbar .brand {
  display: flex; align-items: center; gap: var(--s-2);
  font-weight: 700; font-size: 16px; color: var(--c-deep);
}
.topbar .brand .dot {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px;
}
.topbar .spacer { flex: 1; }
.topbar .nav-link {
  font-size: 13px; color: var(--c-ink-2); padding: 6px 10px;
  border-radius: var(--r-md); white-space: nowrap;
}
.topbar .nav-link.active { background: var(--c-primary-light); color: var(--c-primary-dark); font-weight: 600; }
.topbar .nav-link:hover { background: var(--c-hover); }

/* 内容容器 */
.container { max-width: 1024px; margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-10); }
.container.narrow { max-width: 460px; }

/* 卡片 */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.card:hover { border-color: var(--c-jade); box-shadow: var(--shadow-md); }
.card + .card { margin-top: var(--s-4); }

/* 标题 */
.page-title { font-size: 20px; font-weight: 700; color: var(--c-deep); }
.page-sub { font-size: 13px; color: var(--c-ink-3); margin-top: 2px; }
.section-title {
  font-size: 15px; font-weight: 700; margin-bottom: var(--s-3);
  padding-left: 10px;
  border-left: 3px solid var(--c-gold);
  box-shadow: -2px 0 6px rgba(245,179,1,.22);
}
.hint { font-size: 12px; color: var(--c-ink-3); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 12px 18px; border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 2px 8px rgba(6,167,125,.22); }
.btn-primary:hover { background: var(--c-primary-dark); box-shadow: 0 4px 12px rgba(6,167,125,.26); }
.btn-primary:disabled { background: var(--c-ink-3); box-shadow: none; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--c-ink); border-color: var(--c-border); }
.btn-outline:hover { background: var(--c-hover); }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #b21f1f; }
.btn-ghost { background: transparent; color: var(--c-ink-2); }
.btn-ghost:hover { background: var(--c-hover); }
.btn-block { width: 100%; }
.btn-lg { font-size: 16px; padding: 14px 20px; }
.btn-sm { font-size: 13px; padding: 8px 12px; }

/* 标签 */
.tag {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: var(--r-pill);
}
.tag-green { background: var(--c-primary-light); color: var(--c-primary-dark); }
.tag-red { background: #FDE8E8; color: var(--c-danger); }
.tag-yellow { background: #FEF3E0; color: #B87512; }
.tag-gray { background: #EEF0F2; color: var(--c-ink-2); }
.tag-blue { background: #E8F0F6; color: var(--c-deep); }

/* 表单 */
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--c-ink-2); margin-bottom: 6px; }
.input {
  width: 100%; font-size: 15px; padding: 11px 12px;
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: #fff; color: var(--c-ink); font-family: inherit;
}
.input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-light); }
.radio-row {
  display: flex; gap: var(--s-3); align-items: center;
  padding: 12px; border: 1px solid var(--c-border); border-radius: var(--r-md);
  cursor: pointer; background: #fff;
}
.radio-row.active { border-color: var(--c-primary); background: var(--c-primary-light); }
.radio-row input { accent-color: var(--c-primary); }

/* 列表项 */
.list-item {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-border);
}
.list-item:last-child { border-bottom: none; }

/* 分隔线 */
.divider { height: 1px; background: var(--c-border); margin: var(--s-4) 0; }

/* 状态条 */
.banner {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 10px 14px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 600;
}
.banner-green { background: var(--c-primary-light); color: var(--c-primary-dark); }
.banner-yellow { background: #FEF3E0; color: #B87512; }
.banner-red { background: #FDE8E8; color: var(--c-danger); }

/* 大数字 */
.big-num { font-family: var(--font-mono); font-weight: 800; letter-spacing: -1px; }

/* Toast */
#toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: var(--c-ink); color: #fff; font-size: 14px;
  padding: 10px 18px; border-radius: var(--r-pill);
  opacity: 0; pointer-events: none; transition: .25s; z-index: 999;
  max-width: 80vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 移动端底部操作栏 —— 毛玻璃 */
.sticky-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding: var(--s-3) var(--s-4); padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom));
  display: flex; gap: var(--s-3); align-items: center;
}

/* 骨架/占位 */
.placeholder-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--s-10) var(--s-4); color: var(--c-ink-3);
  border: 1px dashed var(--c-border); border-radius: var(--r-lg); background: #fff;
}

/* 灰盒线框标注（低保真特性） */
.wire-note {
  font-size: 11px; color: var(--c-ink-3); background: var(--c-hover);
  border: 1px dashed var(--c-border); border-radius: 4px;
  padding: 2px 6px; display: inline-block;
}

/* ============================================================
   玻璃效果（毛玻璃 / 液态玻璃）
   ============================================================ */

/* 毛玻璃 Frosted Glass：悬浮于内容之上，模糊背后 */
.glass-frost {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

/* 强调卡片：实色白底 + 内高光（去半透明渐变，更稳重） */
.glass-liquid {
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 2px 8px rgba(16,24,40,.06);
}

/* 彩色液态玻璃：叠加品牌渐变（用于会员卡/支付卡等强调元素） */
.glass-liquid-mint {
  background: linear-gradient(135deg, rgba(6,167,125,0.16) 0%, rgba(10,61,42,0.10) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 10px 40px rgba(6,167,125,0.20);
}

/* 菜品配图 */
.food-img {
  width: 76px; height: 76px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.food-img-lg {
  width: 100%; height: 200px;
  object-fit: cover;
  border-radius: var(--r-lg);
}

/* 玻璃卡片 hover：收敛为 border 提示（去掉浮夸抬升） */
.glass-liquid,
.glass-liquid-mint {
  transition: border-color .18s ease, box-shadow .18s ease;
}
.glass-liquid:hover,
.glass-liquid-mint:hover {
  border-color: var(--c-jade);
  box-shadow: 0 4px 14px rgba(16,24,40,.10);
}

/* 图表进入动画 */
.chart-bar {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: barGrow .7s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.chart-line { animation: lineIn .8s ease both; }
@keyframes lineIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   港风高保真元素
   ============================================================ */

/* 霓虹招牌（深墨绿底 + 复古金霓虹灯管，多层光晕 + 字距） */
.hk-sign {
  background: var(--c-deep);
  color: var(--c-gold);
  text-shadow:
    0 0 2px #fff,
    0 0 6px var(--c-gold),
    0 0 14px var(--c-gold),
    0 0 24px rgba(245,179,1,.6);
  letter-spacing: 2px;
}

/* 霓虹红（白热灯管核心 + 多层红色光晕，模拟真实霓虹管） */
.hk-neon-red {
  color: #fff;
  text-shadow:
    0 0 2px #fff,
    0 0 5px #ff9aa8,
    0 0 10px var(--c-neon),
    0 0 18px var(--c-neon),
    0 0 30px rgba(230,0,35,.55);
}

/* 复古金 */
.hk-gold { color: var(--c-gold); }

/* 翡翠绿瓷砖纹理（白缝线 + 斜向高光，有实体感） */
.hk-tile {
  background-color: var(--c-jade);
  background-image:
    linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(160deg, rgba(255,255,255,.08), transparent 45%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
}

/* 霓虹描边 */
.hk-neon-border {
  border: 2px solid var(--c-neon);
  box-shadow: 0 0 10px rgba(230,0,35,.35), inset 0 0 10px rgba(230,0,35,.12);
}

/* 港式招牌顶部栏（深墨绿渐变 + 复古金霓虹字 + 霓虹红点） */
.topbar.hk-bar {
  background: linear-gradient(135deg, var(--c-deep), var(--c-jade));
  border-bottom: 2px solid var(--c-gold);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.topbar.hk-bar .brand { color: var(--c-gold); text-shadow: 0 0 8px rgba(245,179,1,.5); }
.topbar.hk-bar .brand .dot { background: var(--c-neon); box-shadow: 0 0 10px rgba(230,0,35,.65); }
.topbar.hk-bar .nav-link { color: #e8f5ee; }
.topbar.hk-bar .nav-link.active { background: rgba(245,179,1,.18); color: var(--c-gold); }
.topbar.hk-bar .nav-link:hover { background: rgba(255,255,255,.12); }

/* ============================================================
   iOS 丝滑动效
   ============================================================ */

/* 页面切换：iOS 标准缓动 + 轻微上滑（符合 iOS push 习惯）
   ⚠️ 2026-09-12 改：不再用 `#app > *` 无条件播放（那样每次 rerender 都重播 → 闪）。
   改为「仅切路由时由 JS 给 #app 加 .page-enter，播完后移除」——重渲染绝不重播。 */
#app.page-enter > * { animation: pageIn .4s var(--ease-ios); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* 同路由「重渲染」时抑制入场动画（2026-09-12）：
   加购/筛选/状态更新会 rerender 整页，若重播 pageIn + 所有 .card 的 itemIn
   会出现「每隔几秒闪一下」。此属性由 render() 在「同路由」时临时挂上。
   ⚠️ 只抑制「入场类」动画（pageIn/itemIn/fadeUp），**不抑制**交互反馈动效
   （num-bump 加购跳动 / gift-hit 达标 / badge-pulse 限量脉冲）——那些是用户期待的反馈。 */
#app[data-noanim] > *,
#app[data-noanim] .card,
#app[data-noanim] .list-item,
#app[data-noanim] .fade-up {
  animation: none !important;
}

/* 按钮：iOS 弹性按压缩放 */
.btn { transition: background .16s, transform .22s var(--ease-spring), box-shadow .16s, border-color .16s; }
.btn:active { transform: scale(.93); }

/* 列表项逐项进入 */
.list-item, .card {
  animation: itemIn .42s var(--ease-ios) both;
}
@keyframes itemIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* tab 横向滑动切换（容器内，不影响全局 fixed） */
.tab-slide-right { animation: tabSlideRight .34s var(--ease-ios) both; }
.tab-slide-left { animation: tabSlideLeft .34s var(--ease-ios) both; }
@keyframes tabSlideRight {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes tabSlideLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}

/* 下拉刷新/加载旋转 */
.spin { animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   业务动效工具类（2026-09-11 动效体系，统一 iOS 缓动，轻盈不夸张）
   用法：直接给元素加 class，避免动效散落各模块内联 style
   ============================================================ */

/* ① 满额进度条：宽度平滑填充 + 颜色过渡 */
.prog-fill {
  transition: width .5s var(--ease-ios), background .3s ease;
}

/* ② 金额/数字滚动跳动（加购后触发，配合 JS 切换 class） */
.num-bump { animation: numBump .42s var(--ease-spring); }
@keyframes numBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); color: var(--c-primary-dark); }
  100% { transform: scale(1); }
}

/* ③ 凑满打勾 + 变金（满额瞬间） */
.gift-hit { animation: giftHit .55s var(--ease-spring); }
@keyframes giftHit {
  0% { transform: scale(.9); opacity: .6; }
  55% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════
   🎬 B2 动效体系补全（2026-09-13）
   补齐「蓝军复核」指出的 2 处不足：①凑满瞬间「✓ 打勾」②金额「数字滚动」
   遵循 iOS 风格缓动 cubic-bezier(0.32,0.72,0,1)，轻盈不夸张
   ══════════════════════════════════════════════════════════ */

/* ① 凑满瞬间：✓ 打勾（弹出 + 轻微旋转，有「达成」的爽感） */
.gift-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 50%; background: var(--c-gold); color: #fff;
  font-size: 12px; font-weight: 900; line-height: 1;
  animation: checkPop .5s cubic-bezier(0.32,0.72,0,1) both;
}
@keyframes checkPop {
  0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
  60%  { transform: scale(1.25) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ② 金额数字滚动：避免「突跳」，用等宽数字防抖动 */
.num-roll {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  transition: color .3s cubic-bezier(0.32,0.72,0,1);
}

/* ③ 进度条：平滑填充（配合 JS 从 0 过渡到目标宽度） */
.prog-track { position: relative; }
.prog-fill { transition: width .55s cubic-bezier(0.32,0.72,0,1), background .3s ease; }
/* 凑满瞬间：进度条变金色 + 轻微发光 */
.prog-fill.prog-done { background: var(--c-gold) !important; box-shadow: 0 0 8px rgba(245,179,1,.55); }


/* ④ 赠品限量角标：轻量脉冲（制造稀缺，不刺眼） */
.badge-pulse { animation: badgePulse 1.8s ease-in-out infinite; }
@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .72; transform: scale(1.06); }
}

/* ⑤ 卡片淡入上滑（预览墙/凑单推荐/提示卡） */
.fade-up { animation: fadeUp .46s var(--ease-ios) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ⑥ 加购「飞入购物车」的小圆点（JS 动态创建，动画结束自行移除） */
.fly-dot {
  position: fixed; z-index: 300; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-primary); box-shadow: 0 0 12px rgba(6,167,125,.6);
  pointer-events: none; transition: left .62s var(--ease-ios), top .62s var(--ease-ios),
    transform .62s var(--ease-ios), opacity .62s ease;
}

/* ⑦ 广告弹窗：弹出 + 关闭过渡（遮罩淡入 + 卡片缩放上浮） */
.modal-mask { animation: maskIn .28s ease both; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal-mask.closing { animation: maskOut .24s ease both; }
@keyframes maskOut { from { opacity: 1; } to { opacity: 0; } }
.modal-card { animation: modalIn .42s var(--ease-spring) both; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: none; }
}
.modal-card.closing { animation: modalOut .24s var(--ease-ios) both; }
@keyframes modalOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(10px) scale(.96); }
}

/* ⑧ 下单「成功打勾」：result.js 用 .gift-hit 让成功标识弹出（见 ③），此项由 gift-hit 复用 */

/* ⑨ 无障碍：用户系统偏好「减少动效」时，全部关闭 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ══════════════════════════════════════════════════════════
   🛒 底部购物车栏「展开面板」（2026-09-13，用户需求）
   挂 document.body（在 #app 外）→ 不受整页重渲染影响
   ══════════════════════════════════════════════════════════ */
@keyframes cartPanelIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes cartPanelOut { from { transform: translateY(0); } to { transform: translateY(100%); } }

.cart-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--c-border);
  font-size: 15px; flex-shrink: 0;
}
.cart-panel-close {
  border: none; background: transparent; cursor: pointer;
  font-size: 16px; color: var(--c-ink-3); width: 30px; height: 30px;
  border-radius: 50%; line-height: 1;
}
.cart-panel-close:hover { background: var(--c-bg, #f5f5f5); }

.cart-panel-list { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }

.cart-panel-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--c-border);
}
.cart-panel-item:last-child { border-bottom: none; }

/* 数量控件（复用购物车页视觉） */
.cart-qty { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--c-primary); background: transparent;
  color: var(--c-primary-dark); font-size: 15px; font-weight: 700;
  cursor: pointer; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s cubic-bezier(0.32,0.72,0,1), transform .18s cubic-bezier(0.32,0.72,0,1);
}
.qty-btn:hover { background: rgba(6,167,125,.1); }
.qty-btn:active { transform: scale(.9); }
.qty-num { min-width: 26px; text-align: center; font-size: 14px; font-weight: 600; }

/* 赠品行 */
.cart-panel-gift {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px; font-size: 13px;
  background: rgba(245,179,1,.08); border-top: 1px dashed rgba(245,179,1,.5);
}
.cart-panel-gift--hit { color: var(--c-ink-1, #222); font-weight: 600; animation: fadeUp .35s cubic-bezier(0.32,0.72,0,1); }

/* 底部合计 + 去埋单 */
.cart-panel-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--c-border); flex-shrink: 0;
}
.cart-panel-total { font-size: 20px; font-weight: 800; color: var(--c-primary-dark); }

/* 底部栏可点击提示 */
#menu-cart-clickable { cursor: pointer; }


/* ============================================================
   iOS 风格开关（.switch）—— 2026-09-14 需求3（顾客隐私设置）
   用途：顧客端「隱私設置」的 2 个 PDPO 自决开关
   ============================================================ */
.switch { position: relative; display: inline-block; width: 46px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch::before {
  content: ''; position: absolute; inset: 0;
  background: #D8DDE3; border-radius: 999px;
  transition: background .25s cubic-bezier(0.32, 0.72, 0, 1);
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .25s cubic-bezier(0.32, 0.72, 0, 1);
}
.switch input:checked ~ * , .switch:has(input:checked)::before { background: var(--c-primary); }
.switch:has(input:checked)::after { transform: translateX(18px); }
/* 无 :has 支持时的兜底（老浏览器） */
.switch input:checked + .switch-track { background: var(--c-primary); }
