/* =====================================================================
 * 话费充值 · H5 样式（遵循 miniprogram/DESIGN.md v2；rpx → px 除以 2）
 * - 手机浏览器全屏铺满；桌面浏览器居中最大宽 480px 的应用列
 * - 使用 env(safe-area-inset-*) 适配刘海与底部横条
 * - 支持深色模式（prefers-color-scheme: dark）与减少动态效果（prefers-reduced-motion）
 * - 8px 栅格：间距 / 高度均为 8 的倍数（个别 4px 微调）
 * ===================================================================== */
:root {
  color-scheme: light dark;
  /* 品牌 */
  --brand: #07C160;
  --brand-dark: #05A350;
  --brand-light: #E8F8EF;
  --brand-text: #05A350;
  --brand-gradient: linear-gradient(135deg, #0BC768 0%, #07B35A 55%, #0A9F86 100%);
  /* 强调 */
  --accent: #FF6A00;
  --accent-light: #FFF3E8;
  --accent-gradient: linear-gradient(135deg, #FF9A3D 0%, #FF6A00 100%);
  /* 语义 */
  --success: #07C160; --warning: #FF9F0A; --danger: #FA5151; --info: #2F7CF6;
  --danger-light: #FFF1F1; --warning-light: #FFF7E8; --warning-text: #B86E00;
  /* 运营商 */
  --cm: #0081CC; --cu: #E60027; --ct: #2E6BE6;
  /* 文字 / 背景 */
  --text-1: #191919; --text-2: #5C5C5C; --text-3: #999999; --text-4: #C7C7C7;
  --bg: #F4F5F7; --card: #FFFFFF; --line: #EEEEEE;
  --fill: #F6F7F9; --fill-2: #EEF0F3;
  --outer: #E6E9ED;
  --bar-bg: rgba(255,255,255,.82);
  --glass: rgba(255,255,255,.86);
  --glass-border: rgba(255,255,255,.75);
  --sheet-bg: #FFFFFF;
  --sku-on-bg: #F0FBF5;
  --sk-1: #F0F1F3; --sk-2: #E5E7EA;
  /* 状态标签 */
  --tag-warning-bg: #FFF4E0; --tag-warning: #C27400;
  --tag-info-bg: #EAF2FE; --tag-info: #2F7CF6;
  --tag-success-bg: #E8F8EF; --tag-success: #05A350;
  --tag-gray-bg: #F2F3F5; --tag-gray: #8C8C8C;
  --tag-accent-bg: #FFF3E8; --tag-accent: #F06000;
  /* 头图 */
  --hero-bg:
    radial-gradient(140% 90% at 100% 0%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 45%),
    radial-gradient(90% 70% at 0% 100%, rgba(6,140,120,.55) 0%, rgba(6,140,120,0) 60%),
    linear-gradient(135deg, #0BC768 0%, #07B35A 55%, #0A9F86 100%);
  /* 圆角 / 阴影 */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 999px;
  --shadow-1: 0 2px 8px rgba(0,0,0,.04);
  --shadow-2: 0 6px 20px rgba(0,0,0,.08);
  --shadow-card: 0 1px 2px rgba(0,0,0,.03), 0 4px 16px rgba(0,0,0,.04);
  --shadow-brand: 0 6px 16px rgba(7,193,96,.28);
  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-num: "DIN Alternate", "DIN Condensed", "DINPro", "D-DIN", "Bahnschrift", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  /* 布局 */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --hdr-h: 48px;
  --tab-h: 56px;
  --hdr: calc(var(--hdr-h) + var(--safe-t));
  --tabbar: calc(var(--tab-h) + var(--safe-b));
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-light: rgba(7,193,96,.16);
    --brand-text: #3DDC84;
    --accent-light: rgba(255,106,0,.16);
    --danger-light: rgba(250,81,81,.14); --warning-light: rgba(255,159,10,.14); --warning-text: #FFB340;
    --text-1: #EDEDEF; --text-2: #B3B4B8; --text-3: #85868B; --text-4: #55565B;
    --bg: #0F1012; --card: #1A1B1E; --line: #2A2B30;
    --fill: #222327; --fill-2: #2A2B30;
    --outer: #050607;
    --bar-bg: rgba(26,27,30,.82);
    --glass: rgba(30,31,35,.86);
    --glass-border: rgba(255,255,255,.08);
    --sheet-bg: #1E1F23;
    --sku-on-bg: #12261B;
    --sk-1: #222327; --sk-2: #2D2E33;
    --tag-warning-bg: rgba(255,159,10,.16); --tag-warning: #FFB340;
    --tag-info-bg: rgba(47,124,246,.18); --tag-info: #7AAEFF;
    --tag-success-bg: rgba(7,193,96,.16); --tag-success: #3DDC84;
    --tag-gray-bg: rgba(255,255,255,.08); --tag-gray: #9A9BA0;
    --tag-accent-bg: rgba(255,106,0,.18); --tag-accent: #FF9447;
    --hero-bg:
      radial-gradient(140% 90% at 100% 0%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 45%),
      radial-gradient(90% 70% at 0% 100%, rgba(4,100,86,.6) 0%, rgba(4,100,86,0) 60%),
      linear-gradient(135deg, #08A355 0%, #068A45 55%, #077A68 100%);
    --shadow-1: 0 2px 8px rgba(0,0,0,.3);
    --shadow-2: 0 8px 24px rgba(0,0,0,.4);
    --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.2);
    --shadow-brand: 0 6px 16px rgba(7,193,96,.22);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--outer);
  font-family: var(--font);
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 481px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, rgba(7,193,96,.08), transparent 60%), var(--outer); }
}
button { font-family: inherit; cursor: pointer; color: inherit; -webkit-appearance: none; appearance: none; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.accent { color: var(--accent); }

/* 图标 */
.ic { display: inline-flex; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.15em; }
.ic svg { width: 100%; height: 100%; display: block; }

/* 按压态（DESIGN：scale .97）与悬停反馈 */
.pressable { transition: transform .15s ease, background-color .15s ease, opacity .15s ease, box-shadow .2s ease; }
.pressable:active { transform: scale(.97); }

/* ---------------- 应用列 ---------------- */
.app {
  position: relative; max-width: 480px; margin: 0 auto;
  height: 100vh; height: 100dvh;
  background: var(--bg); overflow: hidden; isolation: isolate;
}
@media (min-width: 481px) {
  .app { box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 24px 80px rgba(0,0,0,.10); }
}

/* ---------------- 首屏加载 / 启动失败兜底 ---------------- */
.splash {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  transition: opacity .3s ease, visibility .3s ease;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo { width: 64px; height: 64px; border-radius: 18px; box-shadow: var(--shadow-brand); animation: splashPulse 1.6s ease-in-out infinite; }
.splash-logo svg { width: 100%; height: 100%; display: block; }
.splash-name { font-size: 17px; font-weight: 600; letter-spacing: 2px; color: var(--text-1); }
.splash-bar { width: 96px; height: 3px; border-radius: 3px; background: var(--fill-2); overflow: hidden; position: relative; }
.splash-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 3px; background: var(--brand-gradient); animation: splashBar 1.1s ease-in-out infinite; }
.splash-fail { display: none; text-align: center; color: var(--text-2); font-size: 14px; }
.splash-fail button { margin-top: 16px; height: 40px; padding: 0 24px; border: none; border-radius: 999px; background: var(--brand-gradient); color: #fff; font-size: 14px; font-weight: 600; }
.splash.failed .splash-bar { display: none; }
.splash.failed .splash-fail { display: block; }
.splash.failed .splash-logo { animation: none; filter: grayscale(.6); }
@keyframes splashPulse { 50% { transform: scale(.94); } }
@keyframes splashBar { 0% { left: -40%; } 100% { left: 100%; } }

/* ---------------- 顶部栏 ---------------- */
.hdr {
  position: absolute; left: 0; right: 0; top: 0; z-index: 30;
  height: var(--hdr); padding-top: var(--safe-t);
  color: var(--text-1); background: var(--bar-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 .5px 0 var(--line);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.hdr.hero { background: transparent; color: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr.hero.solid { background: var(--bar-bg); color: var(--text-1); box-shadow: 0 .5px 0 var(--line); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.hdr-inner { height: var(--hdr-h); position: relative; display: flex; align-items: center; justify-content: center; }
.nav-title { font-size: 17px; font-weight: 600; transition: opacity .2s ease, transform .2s ease; }
.hdr.hero:not(.solid) .nav-title { opacity: 0; transform: translateY(4px); }
.nav-back {
  position: absolute; left: 4px; top: 4px; width: 40px; height: 40px; border: none; border-radius: 50%;
  background: none; font-size: 22px; display: flex; align-items: center; justify-content: center;
}
@media (hover: hover) { .nav-back:hover { background: var(--fill); } .hdr.hero:not(.solid) .nav-back:hover { background: rgba(255,255,255,.16); } }

/* 离线提示条 */
.offline {
  position: absolute; left: 0; right: 0; top: var(--hdr); z-index: 29;
  height: 32px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; color: var(--warning-text); background: var(--warning-light);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: slideDown .25s var(--ease-out) both;
}
.offline.ok { color: var(--tag-success); background: var(--brand-light); }
.offline .ic { font-size: 14px; }
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------- 页面容器与过渡（淡入 + 轻微位移） ---------------- */
.page { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; background: var(--bg); }
.page > .scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; z-index: 1;
  -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
  padding: calc(var(--hdr) + 16px) 16px calc(var(--safe-b) + 24px);
  scrollbar-width: none;
}
.page > .scroll::-webkit-scrollbar { display: none; }
.page.tab > .scroll { padding-bottom: calc(var(--tabbar) + 24px); }
.page.hero > .scroll { padding-top: 0; }
#pgRecharge > .scroll { padding-bottom: calc(var(--tabbar) + 64px + 24px); }
.page.dragging { -webkit-user-select: none; user-select: none; }
.page.enter-push { animation: enterPush .28s var(--ease-out) both; }
.page.enter-pop { animation: enterPop .28s var(--ease-out) both; }
.page.enter-fade { animation: enterFade .24s ease-out both; }
@keyframes enterPush { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes enterPop { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes enterFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- TabBar ---------------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  height: var(--tabbar); padding-bottom: var(--safe-b); display: flex;
  background: var(--bar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 -.5px 0 var(--line);
  transition: transform .28s var(--ease-out);
}
.tabbar.off { transform: translateY(100%); }
.tab-item {
  flex: 1; border: none; background: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; color: var(--text-3); font-size: 11px; position: relative;
  transition: color .15s ease;
}
.tab-item .ic { font-size: 24px; transition: transform .2s var(--spring); }
.tab-item.on { color: var(--brand); font-weight: 600; }
.tab-item.on .ic { transform: translateY(-1px); }
.tab-item.on .ic svg { fill: var(--brand-light); }
.tab-item:active .ic { transform: scale(.88); }
@media (hover: hover) { .tab-item:not(.on):hover { color: var(--text-2); } }

/* ---------------- 通用：卡片 / 按钮 / 徽标 / 标签 ---------------- */
.card {
  background: var(--card); border-radius: var(--r-lg); padding: 16px;
  margin-bottom: 12px; box-shadow: var(--shadow-card);
}
.card-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; min-height: 24px; }
.card-title { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.card-title::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--brand-gradient); }
.card-hint { font-size: 12px; color: var(--text-3); }

.btn {
  position: relative; border: none; border-radius: var(--r-full); height: 44px; padding: 0 20px;
  font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .15s ease, opacity .2s ease, filter .15s ease, background-color .15s ease, box-shadow .2s ease;
  overflow: hidden; white-space: nowrap;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-primary { height: 48px; font-size: 16px; font-weight: 600; color: #fff; background: var(--brand-gradient); box-shadow: var(--shadow-brand); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.45), rgba(255,255,255,0));
  transform: skewX(-20deg); opacity: 0;
}
.btn-primary.shine::after { animation: sheen .9s ease-out; }
@media (hover: hover) {
  .btn-primary:not(:disabled):hover { filter: brightness(1.04); box-shadow: 0 8px 22px rgba(7,193,96,.34); }
  .btn-primary:not(:disabled):hover::after { animation: sheen .9s ease-out; }
  .btn-ghost:hover { background: var(--fill); }
}
@keyframes sheen { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }
.btn-ghost { background: var(--card); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--line); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; font-weight: 500; gap: 4px; }
.btn-sm.btn-brand { background: var(--brand-light); color: var(--brand-text); }
@media (hover: hover) { .btn-sm.btn-brand:hover { filter: brightness(.97); } }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 12px; margin-top: 8px; }
.btn-row .btn { flex: 1; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; display: inline-block; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .8s linear infinite;
}
.spinner.dark { border-color: var(--fill-2); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* 运营商徽标：圆角方块 + 白色单字（不用官方 Logo） */
.cb-wrap { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.cb { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-weight: 600; border-radius: 5px; }
.cb-md { width: 20px; height: 20px; font-size: 12px; }
.cb-sm { width: 16px; height: 16px; font-size: 10px; border-radius: 4px; }
.cb-lg { width: 40px; height: 40px; font-size: 18px; border-radius: 12px; }
.cb-1 { background: var(--cm); }
.cb-2 { background: var(--cu); }
.cb-3 { background: var(--ct); }
.cb-0 { background: var(--text-4); }
.cb-lg.cb-1 { background: linear-gradient(145deg, #1A9BE0, #0072B8); box-shadow: 0 4px 10px rgba(0,129,204,.25); }
.cb-lg.cb-2 { background: linear-gradient(145deg, #F2334F, #CC0020); box-shadow: 0 4px 10px rgba(230,0,39,.22); }
.cb-lg.cb-3 { background: linear-gradient(145deg, #4A82F0, #2459D0); box-shadow: 0 4px 10px rgba(46,107,230,.25); }
.cb-name { font-size: 13px; color: var(--text-2); }
.cb-wrap.pop .cb { animation: popBadge .42s var(--spring) both; }
@keyframes popBadge { 0% { transform: scale(.3); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* 状态标签 */
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.tag-warning { background: var(--tag-warning-bg); color: var(--tag-warning); }
.tag-info { background: var(--tag-info-bg); color: var(--tag-info); }
.tag-success { background: var(--tag-success-bg); color: var(--tag-success); }
.tag-gray { background: var(--tag-gray-bg); color: var(--tag-gray); }
.tag-accent { background: var(--tag-accent-bg); color: var(--tag-accent); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dotPulse 1.4s ease-in-out infinite; }
@keyframes dotPulse { 50% { opacity: .3; } }

/* 骨架屏：#F0F1F3 底 + shimmer 1.2s */
.sk {
  background: linear-gradient(90deg, var(--sk-1) 25%, var(--sk-2) 37%, var(--sk-1) 63%);
  background-size: 400% 100%; animation: shimmer 1.2s ease infinite; border-radius: 4px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 空状态 */
.empty { text-align: center; padding: 40px 16px 24px; animation: fadeUp .3s var(--ease-out) backwards; }
.empty-ill { width: 128px; height: 128px; margin: 0 auto 12px; display: block; }
.empty-title { font-size: 14px; color: var(--text-2); font-weight: 500; }
.empty-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.empty .btn { margin-top: 24px; min-width: 128px; height: 40px; font-size: 14px; }

/* ---------------- 充值首页：头图 ---------------- */
.hero {
  position: relative; margin: 0 -16px; padding: calc(var(--hdr) + 16px) 24px 96px;
  background: var(--hero-bg); color: #fff; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 10%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 90% at 85% 10%, #000 0%, transparent 70%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(28px); pointer-events: none; }
.hero-orb.o1 { width: 168px; height: 168px; right: -32px; top: -40px; background: #A5F7CC; opacity: .45; animation: orb 9s ease-in-out infinite alternate; }
.hero-orb.o2 { width: 144px; height: 144px; left: -56px; bottom: 16px; background: #12D9B5; opacity: .32; animation: orb 11s ease-in-out infinite alternate-reverse; }
@keyframes orb { to { transform: translate(-12px, 10px) scale(1.08); } }
.hero-ring { position: absolute; right: -72px; bottom: -88px; width: 240px; height: 240px; pointer-events: none; }
.hero-ill { position: absolute; right: 8px; top: calc(var(--hdr) - 4px); width: 152px; height: 152px; pointer-events: none; }
.hero-ill .ill-phone { animation: float 4s ease-in-out infinite alternate; }
.hero-ill .ill-coin { animation: float 3.2s ease-in-out .6s infinite alternate; }
.hero-ill .ill-wave { animation: wave 2.4s ease-in-out infinite; }
.hero-ill .ill-wave.w2 { animation-delay: .3s; }
.hero-ill .ill-wave.w3 { animation-delay: .6s; }
.hero-ill .ill-spark { animation: twinkle 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hero-ill .ill-spark.s2 { animation-delay: 1.2s; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes wave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .3; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
.hero-text { position: relative; }
.hero-title { font-size: 32px; font-weight: 800; letter-spacing: 1px; line-height: 1.2; text-shadow: 0 2px 16px rgba(0,60,30,.18); }
.hero-sub { margin-top: 8px; font-size: 13px; font-weight: 400; opacity: .88; letter-spacing: .5px; }
.hero-chip {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px 0 6px;
  border-radius: var(--r-full); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24);
  font-size: 12px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-chip .cb { box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); }
.hero-chip .cb + .cb { margin-left: -2px; }
.hero-chip span:last-child { margin-left: 4px; }

/* 号码卡：玻璃拟态 + 浮起阴影 */
.phone-card {
  position: relative; z-index: 2; margin-top: -72px; padding: 16px 16px 8px; border-radius: var(--r-xl);
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 12px 40px rgba(4,70,40,.14), 0 2px 6px rgba(0,0,0,.04);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.phone-card.focus { border-color: rgba(7,193,96,.55); box-shadow: 0 0 0 4px rgba(7,193,96,.12), 0 12px 40px rgba(4,70,40,.16); }
.phone-card.error { border-color: rgba(250,81,81,.5); box-shadow: 0 0 0 4px rgba(250,81,81,.10), 0 12px 40px rgba(4,70,40,.12); }
.phone-card.okpulse { animation: okPulse .8s ease-out; }
@keyframes okPulse {
  0% { box-shadow: 0 0 0 0 rgba(7,193,96,.40), 0 12px 40px rgba(4,70,40,.14); }
  100% { box-shadow: 0 0 0 14px rgba(7,193,96,0), 0 12px 40px rgba(4,70,40,.14); }
}
.pc-label { font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; align-items: center; height: 18px; }
.pc-row { display: flex; align-items: center; gap: 4px; padding: 4px 0 8px; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.phone-card.focus .pc-row { border-bottom-color: rgba(7,193,96,.5); }
.phone-card.error .pc-row { border-bottom-color: rgba(250,81,81,.5); }
.phone-input {
  flex: 1; min-width: 0; height: 48px; border: none; outline: none; background: transparent; padding: 0;
  font-family: var(--font-num); font-size: 28px; font-weight: 600; letter-spacing: 1px; color: var(--text-1);
  caret-color: var(--brand);
}
.phone-input::placeholder { font-family: var(--font); font-size: 20px; font-weight: 400; color: var(--text-4); letter-spacing: 0; }
.phone-input:focus-visible { outline: none; }
.pc-ok { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-gradient); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; animation: popBadge .4s var(--spring) both; }
.pc-ok .ic svg { stroke-width: 3; }
.icon-btn {
  border: none; background: none; padding: 0; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text-4); font-size: 20px;
}
@media (hover: hover) { .icon-btn:hover { color: var(--text-3); background: var(--fill); } }
.pc-meta { min-height: 32px; padding-top: 8px; display: flex; align-items: center; font-size: 12px; color: var(--text-3); }
.pc-err { color: var(--danger); display: inline-flex; align-items: center; gap: 4px; animation: fadeIn .2s ease both; }
.pc-err .ic { font-size: 14px; }
.pc-tip { margin-left: 8px; }

/* 最近充值下拉 */
.recent {
  position: absolute; left: 8px; right: 8px; top: 96px; z-index: 10;
  background: var(--sheet-bg); border-radius: var(--r-lg); box-shadow: 0 12px 32px rgba(0,0,0,.16), 0 0 0 1px var(--line);
  padding: 4px 0; animation: dropIn .18s ease-out both; transform-origin: top center;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-4px) scaleY(.98); } to { opacity: 1; transform: none; } }
.recent-hd { display: flex; align-items: center; gap: 4px; padding: 8px 16px 4px; font-size: 12px; color: var(--text-3); }
.rc-item { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px 0 16px; cursor: pointer; transition: background-color .15s; }
@media (hover: hover) { .rc-item:hover { background: var(--fill); } }
.rc-item:active { background: var(--fill-2); }
.rc-phone { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.rc-carrier { flex: 1; font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.rc-del { border: none; background: none; width: 40px; height: 40px; border-radius: 50%; color: var(--text-4); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
@media (hover: hover) { .rc-del:hover { color: var(--danger); background: var(--danger-light); } }

/* 公告条 */
.notice {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px 0 12px; margin: 12px 0;
  background: var(--accent-light); color: var(--tag-accent); border-radius: var(--r-md); font-size: 12px; overflow: hidden;
  transition: height .25s ease, margin .25s ease, opacity .2s ease;
}
.notice.closing { height: 0; margin: 0; opacity: 0; }
.notice > .ic { font-size: 16px; color: var(--accent); }
.notice-track { flex: 1; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%); }
.notice-text { display: inline-block; padding-left: 100%; animation: marquee 16s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.notice-close { border: none; background: none; width: 32px; height: 32px; border-radius: 50%; color: var(--tag-accent); opacity: .6; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
@media (hover: hover) { .notice-close:hover { opacity: 1; } }
.notice[hidden] + .card { margin-top: 12px; }

/* 面额宫格 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sku {
  position: relative; height: 88px; border-radius: var(--r-md); background: var(--fill); border: 1.5px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: transform .2s var(--ease-out), box-shadow .2s ease, background-color .15s ease, opacity .2s ease;
  animation: fadeUp .32s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 30ms);
}
@media (hover: hover) { .sku:not(.disabled):not(.on):not(.sk):hover { background: var(--fill-2); transform: translateY(-1px); } }
.sku:active { transform: scale(.97); }
.sku-face { font-size: 12px; font-weight: 600; color: var(--text-1); line-height: 1; display: flex; align-items: baseline; gap: 1px; }
.sku-face .num { font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.sku-price { margin-top: 8px; font-size: 11px; color: var(--text-3); }
.sku-badge {
  position: absolute; top: -1.5px; right: -1.5px; background: var(--accent-gradient); color: #fff;
  font-size: 10px; line-height: 16px; padding: 0 6px; border-radius: 0 var(--r-md) 0 var(--r-md);
  box-shadow: 0 2px 6px rgba(255,106,0,.25);
}
.sku-check {
  position: absolute; right: -1.5px; bottom: -1.5px; width: 24px; height: 18px; color: #fff; font-size: 11px;
  background: var(--brand-gradient); border-radius: var(--r-md) 0 var(--r-md) 0;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0); transform-origin: 100% 100%; transition: transform .28s var(--spring);
}
.sku-check .ic svg { stroke-width: 3; }
.sku.on {
  background: linear-gradient(var(--sku-on-bg), var(--sku-on-bg)) padding-box, var(--brand-gradient) border-box;
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(7,193,96,.18);
}
.sku.on:active { transform: translateY(-2px) scale(.97); }
.sku.on .sku-face, .sku.on .sku-price { color: var(--brand-text); }
.sku.on .sku-check { transform: scale(1); }
.sku.disabled { opacity: .45; cursor: not-allowed; }
.sku.sk { cursor: default; animation: shimmer 1.2s ease infinite; }
.sku-state { text-align: center; padding: 24px 0 16px; color: var(--text-3); font-size: 13px; }
.sku-state .btn { margin-top: 12px; }

/* 服务保障 */
.guarantee { display: flex; justify-content: space-between; padding: 16px 8px; }
.gu-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.gu-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 20px; }

/* FAQ 手风琴 */
.faq { padding: 16px 16px 4px; }
.faq .card-hd { margin-bottom: 4px; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; border: none; background: none; padding: 0; height: 48px; display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-1); text-align: left;
}
.faq-q .q { width: 18px; height: 18px; border-radius: 6px; background: var(--brand-light); color: var(--brand-text); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-q span.t { flex: 1; }
.faq-q .ic { color: var(--text-4); font-size: 16px; transition: transform .25s var(--ease-out); }
@media (hover: hover) { .faq-q:hover span.t { color: var(--brand-text); } }
.faq-item.open .faq-q .ic { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 0 16px 26px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.page-foot { text-align: center; font-size: 11px; color: var(--text-4); padding: 8px 0; }

/* 结算栏（毛玻璃） */
.settle {
  position: absolute; left: 0; right: 0; bottom: var(--tabbar); z-index: 5; height: 64px;
  display: flex; align-items: center; gap: 16px; padding: 0 16px;
  background: var(--bar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 -.5px 0 var(--line), 0 -8px 24px rgba(0,0,0,.04);
}
.settle-info { flex: 1; min-width: 0; }
.settle-pay { font-size: 13px; color: var(--text-2); display: flex; align-items: baseline; gap: 4px; height: 28px; }
.money { color: var(--accent); font-family: var(--font-num); font-weight: 700; font-size: 24px; line-height: 1.1; display: inline-block; transform-origin: 0 100%; }
.money small { font-size: 14px; margin-right: 1px; }
.money.bump { animation: bump .38s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.12); } }
.settle-save { font-size: 11px; color: var(--accent); height: 16px; line-height: 16px; }
.settle-save.muted { color: var(--text-3); }
.settle .btn-primary { width: 144px; }

/* ---------------- 底部弹层 / 对话框 / Toast ---------------- */
.mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 99;
  opacity: 0; pointer-events: none; transition: opacity .25s ease-out;
}
.mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 100; background: var(--sheet-bg);
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 0 16px calc(var(--safe-b) + 16px);
  transform: translateY(100%); transition: transform .25s ease-out;
  max-height: 88%; display: flex; flex-direction: column;
}
.sheet.show { transform: none; }
.sheet::before { content: ""; position: absolute; left: 50%; top: 8px; width: 32px; height: 4px; margin-left: -16px; border-radius: 2px; background: var(--fill-2); }
.sheet-hd { height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative; font-size: 16px; font-weight: 600; }
.sheet-x { position: absolute; right: -4px; top: 12px; }

/* 收银台：确认订单 → 支付中 → 支付成功 */
.cf-phone-box { text-align: center; padding: 8px 0 16px; border-bottom: 1px solid var(--line); }
.cf-label { font-size: 12px; color: var(--text-3); }
.cf-phone { font-size: 32px; font-weight: 700; letter-spacing: 1.5px; margin: 4px 0 8px; }
.cf-rows { padding: 8px 0; }
.cf-row { display: flex; justify-content: space-between; align-items: center; height: 40px; font-size: 14px; color: var(--text-2); }
.cf-row b { font-weight: 600; color: var(--text-1); display: inline-flex; align-items: center; gap: 6px; }
.cf-row b.accent { color: var(--accent); }
.cf-row .wx-ic { width: 18px; height: 18px; border-radius: 5px; background: var(--brand); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.cf-risk {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin: 4px 0 16px;
  background: var(--warning-light); color: var(--warning-text); border-radius: var(--r-md); font-size: 12px; line-height: 1.5;
}
.cf-risk .ic { font-size: 16px; color: var(--warning); }
.cf-state { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; animation: fadeIn .2s ease both; padding-bottom: 24px; }
.cf-state .st-ic { width: 64px; height: 64px; margin-bottom: 8px; }
.cf-state .cs-title { font-size: 17px; font-weight: 600; }
.cf-state .cs-sub { font-size: 13px; color: var(--text-3); }
.cf-state .cs-amt { font-size: 32px; font-weight: 700; color: var(--text-1); margin-top: 4px; }
.cf-state .cs-amt small { font-size: 18px; margin-right: 2px; }

/* 对话框 */
.dialog {
  position: absolute; left: 32px; right: 32px; top: 50%; z-index: 100; background: var(--sheet-bg); border-radius: var(--r-xl);
  transform: translateY(-50%) scale(.92); opacity: 0; transition: transform .22s var(--ease-out), opacity .2s ease-out; overflow: hidden;
  max-width: 360px; margin: 0 auto;
}
.dialog.show { transform: translateY(-50%); opacity: 1; }
.dlg-title { padding: 24px 24px 8px; text-align: center; font-size: 17px; font-weight: 600; }
.dlg-body { padding: 0 24px 24px; font-size: 14px; color: var(--text-2); line-height: 1.7; white-space: pre-line; max-height: 50vh; overflow-y: auto; }
.dlg-ft { display: flex; border-top: 1px solid var(--line); }
.dlg-ft button { flex: 1; height: 48px; border: none; background: none; font-size: 16px; transition: background-color .15s; }
.dlg-ft button + button { border-left: 1px solid var(--line); }
.dlg-ft .ok { color: var(--brand-text); font-weight: 600; }
.dlg-ft button:active { background: var(--fill); }
@media (hover: hover) { .dlg-ft button:hover { background: var(--fill); } }

/* 常用号码弹层 */
.ph-list { overflow-y: auto; min-height: 120px; }
.ph-item { display: flex; align-items: center; gap: 12px; height: 64px; border-bottom: 1px solid var(--line); }
.ph-item:last-child { border-bottom: none; }
.ph-main { flex: 1; min-width: 0; cursor: pointer; border-radius: var(--r-md); padding: 4px 0; }
.ph-num { font-size: 18px; font-weight: 600; letter-spacing: .5px; }
.ph-sub { font-size: 12px; color: var(--text-3); }
@media (hover: hover) { .ph-main:hover .ph-num { color: var(--brand-text); } }

/* Toast */
.toast {
  position: absolute; left: 50%; top: 45%; z-index: 300; transform: translate(-50%, -50%) scale(.96);
  min-width: 120px; max-width: 256px; padding: 12px 16px; border-radius: 12px;
  background: rgba(25,25,25,.86); color: #fff; font-size: 14px; text-align: center; line-height: 1.45;
  pointer-events: none; opacity: 0; transition: opacity .2s ease, transform .2s ease;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%); }
.toast.has-icon { min-width: 128px; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.toast-ic { font-size: 36px; display: inline-flex; }
.toast-ic .ic svg { stroke-width: 2.2; }

/* ---------------- 结果页 / 详情页 ---------------- */
.st-head { text-align: center; padding: 32px 16px 24px; position: relative; overflow: hidden; }
.st-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, var(--st-glow, rgba(7,193,96,.10)), transparent 70%);
}
.st-head.tone-fail { --st-glow: rgba(250,81,81,.10); }
.st-head.tone-refund { --st-glow: rgba(255,106,0,.10); }
.st-head.tone-gray { --st-glow: rgba(0,0,0,.04); }
.st-ic-wrap { position: relative; width: 72px; height: 72px; margin: 0 auto 16px; }
.st-ic { width: 72px; height: 72px; display: block; overflow: visible; position: relative; z-index: 1; }
.st-ic .st-c { transform-origin: 32px 32px; animation: popIn .38s var(--spring) both; }
.st-ic .st-p {
  fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 60); stroke-dashoffset: var(--len, 60); animation: draw .45s ease-out .28s forwards;
}
.st-ic.ok .st-c { fill: url(#gBrand); }
.st-ic.fail .st-c { fill: var(--danger); }
.st-ic.refund .st-c { fill: url(#gAccent); }
.st-ic.closed .st-c { fill: var(--text-4); }
.st-ic.static .st-c, .st-ic.static .st-p { animation: none; stroke-dashoffset: 0; }
.st-ic .ring-bg { fill: none; stroke: var(--brand-light); stroke-width: 5; }
.st-ic .ring-fg { fill: none; stroke: url(#gBrand); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 52 200; transform-origin: 32px 32px; }
.st-ic.spinning .ring-fg { animation: spin 1s linear infinite; }
.st-ic .ring-clock { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
@keyframes popIn { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* 成功庆祝：圆形扩散波纹 + 少量彩色粒子（1 秒内结束） */
.ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: ripple 1s ease-out .1s forwards; pointer-events: none; }
.ripple.r2 { animation-delay: .3s; }
@keyframes ripple { 0% { transform: scale(.9); opacity: .6; } 100% { transform: scale(2.3); opacity: 0; } }
.confetti { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.confetti i {
  position: absolute; left: -3px; top: -5px; width: 6px; height: 10px; border-radius: 2px; background: var(--c);
  opacity: 0; animation: confetti .9s cubic-bezier(.15,.7,.3,1) .2s forwards;
}
.confetti i:nth-child(3n) { width: 7px; height: 7px; border-radius: 50%; }
@keyframes confetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}
.st-title { font-size: 20px; font-weight: 600; position: relative; }
.st-desc { margin-top: 8px; font-size: 13px; color: var(--text-2); position: relative; }
.st-reason { margin-top: 12px; display: inline-block; padding: 4px 12px; border-radius: var(--r-full); background: var(--danger-light); color: var(--danger); font-size: 12px; }
.st-amount { margin-top: 16px; font-size: 36px; font-weight: 700; line-height: 1; position: relative; }
.st-amount small { font-size: 18px; margin-right: 2px; }
.st-amount-label { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.st-link { margin-top: 16px; border: none; background: var(--brand-light); color: var(--brand-text); font-size: 13px; height: 32px; padding: 0 16px; border-radius: var(--r-full); display: inline-flex; align-items: center; gap: 4px; }
.st-link.loading .ic { animation: spin .8s linear infinite; }

.info-row { display: flex; justify-content: space-between; align-items: center; min-height: 40px; font-size: 13px; gap: 12px; }
.info-row .k { color: var(--text-3); flex-shrink: 0; }
.info-row .v { text-align: right; word-break: break-all; display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.info-row .v.big { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.mono { font-family: Menlo, Consolas, "SF Mono", monospace; font-size: 12px; }
.copy-btn { border: none; background: var(--fill); color: var(--text-2); height: 24px; padding: 0 8px; border-radius: var(--r-full); font-size: 11px; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
@media (hover: hover) { .copy-btn:hover { background: var(--brand-light); color: var(--brand-text); } }
.copy-btn .ic { font-size: 12px; }
.reason-card { background: var(--danger-light); box-shadow: none; color: var(--danger); font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.reason-card .ic { font-size: 16px; margin-top: 1px; }

/* 时间线 */
.tl { padding: 4px 0 0 2px; }
.tl-item { position: relative; display: flex; gap: 12px; padding-bottom: 16px; animation: fadeUp .3s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: -2px; width: 2px; border-radius: 1px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item.done::before { background: var(--brand); }
.tl-item.done.c-danger::before, .tl-item.done.c-accent::before { background: var(--accent); }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--text-4); flex-shrink: 0; margin-top: 4px; position: relative; z-index: 1; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--text-4); }
.tl-item.done .tl-dot { background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.tl-item.done.c-danger .tl-dot { background: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.tl-item.done.c-accent .tl-dot { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tl-item.current .tl-dot { background: var(--tl-c, var(--brand)); box-shadow: 0 0 0 4px var(--tl-halo, rgba(7,193,96,.18)); }
.tl-item.current.live .tl-dot { animation: halo 1.4s ease-in-out infinite; }
@keyframes halo { 50% { box-shadow: 0 0 0 7px var(--tl-halo2, rgba(7,193,96,.06)); } }
.tl-item.c-danger { --tl-c: var(--danger); --tl-halo: rgba(250,81,81,.18); --tl-halo2: rgba(250,81,81,.06); }
.tl-item.c-accent { --tl-c: var(--accent); --tl-halo: rgba(255,106,0,.18); --tl-halo2: rgba(255,106,0,.06); }
.tl-item.c-gray { --tl-c: var(--text-4); --tl-halo: rgba(128,128,128,.14); }
.tl-item.c-warning { --tl-c: var(--warning); --tl-halo: rgba(255,159,10,.18); --tl-halo2: rgba(255,159,10,.06); }
.tl-t { font-size: 14px; color: var(--text-3); line-height: 20px; }
.tl-item.done .tl-t { color: var(--text-2); }
.tl-item.current .tl-t { color: var(--text-1); font-weight: 600; }
.tl-time { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ---------------- 订单列表 ---------------- */
.ord-bar {
  position: absolute; left: 0; right: 0; top: var(--hdr); height: 44px; z-index: 6;
  background: var(--bar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  display: flex; align-items: stretch; box-shadow: 0 .5px 0 var(--line);
}
.ord-tabs { flex: 1; display: flex; position: relative; }
.ord-tab { flex: 1; border: none; background: none; font-size: 14px; color: var(--text-2); transition: color .15s ease; }
.ord-tab.on { color: var(--text-1); font-weight: 600; }
@media (hover: hover) { .ord-tab:not(.on):hover { color: var(--text-1); } }
.ord-ind { position: absolute; left: 0; bottom: 0; width: 25%; height: 3px; display: flex; justify-content: center; transition: transform .3s var(--ease-out); pointer-events: none; }
.ord-ind::after { content: ""; width: 20px; height: 3px; border-radius: 2px; background: var(--brand-gradient); }
.ord-refresh { width: 48px; border: none; background: none; color: var(--text-3); font-size: 18px; display: flex; align-items: center; justify-content: center; position: relative; }
.ord-refresh::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
@media (hover: hover) { .ord-refresh:hover { color: var(--brand); } }
.ord-refresh.loading .ic { animation: spin .8s linear infinite; color: var(--brand); }
#pgOrders > .scroll { padding-top: calc(var(--hdr) + 44px + 12px); background: transparent; }
.pull-tip {
  position: absolute; left: 0; right: 0; top: calc(var(--hdr) + 44px + 4px); height: 48px; z-index: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--text-3);
}
.pull-inner.snap { transition: transform .25s ease; }

.o-card {
  position: relative; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  margin-bottom: 12px; cursor: pointer; overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease;
}
.o-card::before { content: ""; position: absolute; left: 0; top: 20px; width: 3px; height: 32px; border-radius: 0 3px 3px 0; background: var(--tone, transparent); }
.o-card.tone-warning { --tone: var(--warning); }
.o-card.tone-info { --tone: var(--info); }
.o-card.tone-success { --tone: var(--brand); }
.o-card.tone-accent { --tone: var(--accent); }
.o-card.tone-gray { --tone: var(--text-4); }
@media (hover: hover) { .o-card:not(.sk-card):hover { box-shadow: var(--shadow-2); transform: translateY(-1px); } }
.o-card:not(.sk-card):active { transform: scale(.985); }
.o-main { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; }
.o-info { flex: 1; min-width: 0; }
.o-title { font-size: 15px; font-weight: 600; display: flex; align-items: baseline; gap: 2px; }
.o-title .num { font-size: 18px; margin-left: 2px; }
.o-sub { margin-top: 4px; font-size: 12px; color: var(--text-3); display: flex; gap: 8px; }
.o-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.o-pay { font-size: 18px; font-weight: 700; color: var(--text-1); line-height: 1.2; }
.o-pay small { font-size: 12px; margin-right: 1px; }
.o-acts { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 16px 12px; border-top: 1px dashed var(--line); margin: 0 16px; padding-left: 0; padding-right: 0; }
.o-acts:empty { display: none; }
.o-acts .btn-sm.loading .ic { animation: spin .8s linear infinite; }
.o-sk { padding: 16px; display: flex; gap: 12px; align-items: center; }
.list-foot { text-align: center; font-size: 12px; color: var(--text-3); padding: 8px 0 4px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; }
.list-foot.click { color: var(--brand-text); cursor: pointer; }
.list-foot .line { width: 32px; height: 1px; background: var(--line); }

/* ---------------- 我的：会员卡风格头部 ---------------- */
.mine-hero { position: relative; margin: 0 -16px; padding: calc(var(--hdr) + 8px) 16px 56px; background: var(--hero-bg); overflow: hidden; }
.vip-card {
  position: relative; border-radius: var(--r-xl); padding: 20px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, rgba(3,52,33,.92) 0%, rgba(5,92,62,.88) 55%, rgba(6,110,92,.86) 100%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 16px 40px rgba(0,50,30,.30), inset 0 1px 0 rgba(255,255,255,.12);
  animation: fadeUp .4s var(--ease-out) both;
}
.vip-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(165,247,204,.22) 0%, transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 10px);
}
.vip-card::after {
  content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.12), rgba(255,255,255,0));
  transform: rotate(20deg); animation: cardShine 1.6s ease-out .5s both;
}
@keyframes cardShine { from { left: -60%; } to { left: 140%; } }
.vip-top { position: relative; display: flex; align-items: center; gap: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); overflow: hidden; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.avatar svg { width: 100%; height: 100%; display: block; }
.vip-name { font-size: 18px; font-weight: 600; }
.vip-id { margin-top: 4px; font-size: 12px; opacity: .78; letter-spacing: 1px; }
.vip-mark { position: absolute; right: 0; top: 0; width: 40px; height: 40px; opacity: .9; }
.vip-stats { position: relative; display: flex; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.vip-stats > div { flex: 1; }
.vip-stats > div + div { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.14); }
.vip-stats b { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; }
.vip-stats span { font-size: 11px; opacity: .7; }
.vip-foot { position: relative; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; opacity: .78; }
.mine-entry { position: relative; z-index: 2; margin-top: -40px; padding: 16px 8px 8px; box-shadow: var(--shadow-2); }
.mine-entry .card-hd { padding: 0 8px; margin-bottom: 8px; }
.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.entry { border: none; background: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0; font-size: 12px; color: var(--text-2); border-radius: var(--r-md); }
.entry .e-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 22px; transition: transform .2s var(--spring); }
.entry[data-entry="processing"] .e-ic { background: var(--tag-info-bg); color: var(--info); }
.entry[data-entry="refund"] .e-ic { background: var(--accent-light); color: var(--accent); }
@media (hover: hover) { .entry:hover .e-ic { transform: translateY(-2px); } .entry:hover { color: var(--text-1); } }
.link-more { border: none; background: none; font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; }
@media (hover: hover) { .link-more:hover { color: var(--brand-text); } }
.cell-group { padding: 0 16px; }
.cell { width: 100%; border: none; background: none; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0; font-size: 15px; color: var(--text-1); text-align: left; position: relative; }
.cell + .cell::before { content: ""; position: absolute; left: 32px; right: 0; top: 0; height: 1px; background: var(--line); }
.cell > .ic:first-child { font-size: 20px; color: var(--text-2); }
.cell .cell-t { flex: 1; }
.cell .cell-v { font-size: 13px; color: var(--text-3); }
.cell > .ic:last-child { font-size: 14px; color: var(--text-4); transition: transform .15s ease; }
@media (hover: hover) { .cell:hover > .ic:last-child { transform: translateX(2px); color: var(--text-3); } .cell:hover .cell-t { color: var(--brand-text); } }

/* ---------------- 营销能力预留：活动价 / 角标 / 倒计时 ---------------- */
.sku-tag {
  position: absolute; top: -1.5px; left: -1.5px; background: var(--brand-gradient); color: #fff;
  font-size: 10px; line-height: 16px; padding: 0 6px; border-radius: var(--r-md) 0 var(--r-md) 0;
}
.sku.promo .sku-price { color: var(--accent); }
.sku.on.promo .sku-price { color: var(--accent); }
.sku-cd { margin-top: 2px; font-size: 10px; color: var(--accent); font-family: var(--font-num); letter-spacing: .3px; min-height: 14px; }
.sku.promo { justify-content: center; padding-top: 4px; }
.sku.promo .sku-face .num { font-size: 26px; }
.sku.promo .sku-price { margin-top: 6px; }

/* 收银台金额明细 */
.cf-row.clickable { cursor: pointer; margin: 0 -8px; padding: 0 8px; border-radius: var(--r-sm); transition: background-color .15s; }
@media (hover: hover) { .cf-row.clickable:hover { background: var(--fill); } }
.cf-row.clickable:active { background: var(--fill-2); }
.cf-row b .ic { font-size: 14px; color: var(--text-4); }
.cf-row.total { height: 48px; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.cf-row.total > span:first-child { color: var(--text-1); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.cf-save { font-style: normal; font-size: 11px; color: var(--accent); background: var(--accent-light); padding: 0 8px; border-radius: var(--r-full); line-height: 18px; }
.cf-promo { font-size: 10px; font-weight: 500; color: #fff; background: var(--accent-gradient); padding: 0 6px; border-radius: 4px; line-height: 16px; margin-right: 4px; }
.cp-on { color: var(--accent); font-weight: 600; }
.cp-avail { color: #fff; background: var(--accent-gradient); font-size: 11px; padding: 0 8px; border-radius: var(--r-full); line-height: 18px; font-weight: 500; }
#cfBtn.loading { pointer-events: none; }

/* 选择优惠券 */
.cp-pick { overflow-y: auto; padding-bottom: 8px; }
.cp-item, .cp-none {
  display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; border-radius: var(--r-md);
  background: var(--fill); cursor: pointer; border: 1.5px solid transparent; transition: border-color .15s, background-color .15s;
}
.cp-none { font-size: 14px; color: var(--text-2); justify-content: space-between; height: 48px; }
.cp-item.on, .cp-none.on { border-color: var(--brand); background: var(--sku-on-bg); }
.cp-item.disabled { cursor: default; opacity: .55; }
.cp-amt { width: 72px; flex-shrink: 0; text-align: center; color: var(--accent); }
.cp-amt .num { font-size: 26px; font-weight: 700; }
.cp-amt small { font-size: 13px; }
.cp-body { flex: 1; min-width: 0; }
.cp-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.cp-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.cp-reason { font-size: 11px; color: var(--danger); margin-top: 2px; }
.cp-radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--text-4); color: transparent; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.cp-item.on .cp-radio, .cp-none.on .cp-radio { background: var(--brand-gradient); box-shadow: none; color: #fff; }
.cp-radio .ic svg { stroke-width: 3; }
.cp-sec { font-size: 12px; color: var(--text-3); padding: 8px 0; }

/* 优惠券卡片（我的优惠券 / 领券中心） */
.cp-card {
  position: relative; display: flex; align-items: stretch; min-height: 96px; margin-bottom: 12px;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden;
  animation: fadeUp .3s var(--ease-out) backwards;
}
.cp-card.sk { animation: shimmer 1.2s ease infinite; box-shadow: none; }
.cp-left {
  width: 104px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--accent-gradient); color: #fff; position: relative;
}
.cp-left::after {
  content: ""; position: absolute; right: -6px; top: 0; bottom: 0; width: 12px;
  background: radial-gradient(circle at 6px 6px, var(--bg) 4px, transparent 4.5px) 0 0 / 12px 12px repeat-y;
}
.cp-val { font-size: 30px; font-weight: 700; line-height: 1; }
.cp-val small { font-size: 14px; margin-right: 1px; }
.cp-cond { font-size: 11px; opacity: .9; }
.cp-right { flex: 1; min-width: 0; padding: 12px 8px 12px 20px; display: flex; flex-direction: column; justify-content: center; }
.cp-op { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 16px 0 0; }
.cp-card.dim .cp-left { background: linear-gradient(135deg, #C7C9CE, #A9ACB3); }
.cp-card.dim .cp-name { color: var(--text-3); }
.cp-stamp { font-size: 12px; color: var(--text-3); border: 1px solid var(--line); border-radius: var(--r-full); padding: 2px 10px; }
.cp-stamp.ok { color: var(--brand-text); border-color: var(--brand); }
.cp-remain { font-size: 10px; color: var(--accent); }
.cp-claim { height: 32px; font-size: 13px; padding: 0 16px; }
.center-banner {
  position: relative; overflow: hidden; margin: 0 0 16px; padding: 24px 20px; border-radius: var(--r-xl);
  background: var(--accent-gradient); color: #fff; box-shadow: 0 10px 28px rgba(255,106,0,.22);
}
.center-banner .cb-title { position: relative; font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.center-banner .cb-sub { position: relative; font-size: 12px; opacity: .9; margin-top: 4px; }

/* 优惠券页 Tab（3 列） */
.ord-ind.third { width: 33.3333%; }
.page > .scroll.with-bar { padding-top: calc(var(--hdr) + 44px + 12px); }

/* 键盘可达：卡片聚焦 */
.o-card:focus-visible, .sku:focus-visible, .cp-item:focus-visible, .cp-none:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------------- 减少动态效果 ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
  .spinner, .ring-fg { animation: none !important; }
  .notice-text { padding-left: 0; }
}
