/* SKG 泰国店员端 · 亮色移动端 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --brand: #0E9F8F; --brand-dark: #0B7F73; --brand-bg: #E5F5F3;
  --bg: #F4F6F6; --card: #fff; --ink: #17322F; --muted: #6B7F7C; --line: #E3EAE9;
  --amber: #B87A00; --amber-bg: #FFF4DC; --green: #1F9254; --green-bg: #E3F5EB;
  --red: #C2402A; --red-bg: #FDEAE5; --blue: #2563EB; --blue-bg: #E8EFFD;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  /* Liquid Glass（风格库 13 号 iOS26 配方 · 23 号亮底参数 · 彩影品牌化） */
  --glass: rgba(255,255,255,.30);
  --glass-hi: rgba(255,255,255,.48);
  --glass-lo: rgba(255,255,255,.18);
  --gline: rgba(255,255,255,.78);
  --shine: inset 2px 2px 1px 0 rgba(255,255,255,.85), inset -1px -1px 1px 1px rgba(255,255,255,.4);
  --gshadow: 0 8px 20px -8px rgba(11,127,115,.20);
  --gshadow-hi: 0 16px 32px -12px rgba(11,127,115,.30);
}
@font-face { /* SKG 字标专用（Poppins 600 仅 S/K/G 子集，840B 自托管） */
  font-family: 'SKG Wordmark';
  src: url('/fonts/skg-wordmark.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
.wordmark { font-family: 'SKG Wordmark', -apple-system, Roboto, sans-serif; font-weight: 600; letter-spacing: 4px; }
html, body { height: 100%; }
body { font-family: -apple-system, "Noto Sans Thai", "Sarabun", Roboto, "Segoe UI", sans-serif;
  background:
    radial-gradient(720px 520px at 88% -8%, rgba(14,159,143,.42), transparent 60%),
    radial-gradient(600px 460px at -14% 24%, rgba(96,205,255,.34), transparent 60%),
    radial-gradient(640px 520px at 84% 66%, rgba(255,158,64,.27), transparent 62%),
    radial-gradient(540px 440px at 6% 96%, rgba(186,140,255,.25), transparent 62%),
    linear-gradient(180deg, #EDF5F3, #F1F4F3);
  background-attachment: fixed; color: var(--ink); font-size: 16px; }
.hidden { display: none !important; }
button { font: inherit; border: 0; cursor: pointer; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* 登录 */
.login { min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #0E9F8F 0%, #0B7F73 55%, #085E55 100%); padding: 24px; }
.login-card { background: #fff; border-radius: 20px; padding: 32px 24px; width: 100%; max-width: 360px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.login-logo { font-size: 34px; font-weight: 800; letter-spacing: 4px; color: var(--brand); text-align: center; }
.login-sub { text-align: center; color: var(--muted); margin-top: -10px; }
.login-card input[type=text], .login-card input:not([type]), .login-card input[type=password] {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 16px; width: 100%; }
.login-card input:focus { outline: none; border-color: var(--brand); }
.login-card input[type=email] { border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 16px; width: 100%; }
.login-card select { border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 16px; width: 100%; background: #fff; }
#lg-apply { display: flex; flex-direction: column; gap: 14px; }
.remember { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.btn-primary { background: var(--brand); color: #fff; border-radius: 12px; padding: 14px; font-size: 17px; font-weight: 700; }
.btn-primary:active { background: var(--brand-dark); }
.btn-primary[disabled] { opacity: .55; }
.login-err { color: var(--red); text-align: center; font-size: 14px; min-height: 18px; }
.lang-row { display: flex; justify-content: center; gap: 10px; }
.lang-btn { padding: 6px 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.lang-btn.on { background: var(--brand-bg); color: var(--brand); border-color: var(--brand); font-weight: 700; }

/* 壳（无顶栏，语言入口在「我的」面板） */
#view { padding: calc(14px + var(--safe-t)) 16px calc(104px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
/* 浮岛式底部 Dock（四层液态玻璃） */
#tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); z-index: 30;
  max-width: 600px; margin: 0 auto; display: flex; align-items: center; padding: 6px;
  border-radius: 28px; overflow: hidden; isolation: isolate;
  box-shadow: var(--gshadow-hi); }
#tabbar::before { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); filter: url(#glass-distortion); }
#tabbar::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  box-shadow: inset 2px 2px 1px 0 rgba(255,255,255,.6), inset -1px -1px 1px 1px rgba(255,255,255,.45); }
#tabbar > a { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0;
  padding: 8px 0 6px; border-radius: 22px; text-decoration: none; color: var(--muted); font-size: 10.5px;
  transition: background .25s ease, color .25s ease; }
#tabbar a svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
#tabbar a.on { color: var(--brand-dark); background: var(--brand-bg); font-weight: 700; }
#tabbar a.on svg { transform: translateY(-1px) scale(1.1); }
#tabbar a:active svg { transform: scale(.9); }

/* 通用卡片 */
.card { position: relative; isolation: isolate; background: transparent;
  border: 1px solid var(--gline); border-radius: 16px; padding: 16px; margin-bottom: 12px;
  box-shadow: var(--gshadow); }
.card::before { content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  backdrop-filter: blur(8px) saturate(190%); -webkit-backdrop-filter: blur(8px) saturate(190%);
  filter: url(#glass-distortion); }
.card::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass)); box-shadow: var(--shine); }
.h2 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.muted { color: var(--muted); font-size: 13px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.badge.pending { background: var(--amber-bg); color: var(--amber); }
.badge.approved { background: var(--blue-bg); color: var(--blue); }
.badge.settled { background: var(--green-bg); color: var(--green); }
.badge.rejected { background: var(--red-bg); color: var(--red); }
.badge.draft { background: var(--amber-bg); color: var(--amber); }

/* 首页 */
.hero { background: linear-gradient(140deg, var(--brand), var(--brand-dark)); color: #fff;
  border-radius: 16px; padding: 20px 18px; margin-bottom: 14px; }
.hero .hi { font-size: 19px; font-weight: 800; }
.hero .store { opacity: .85; font-size: 13px; margin-top: 3px; }
.hero .units { margin-top: 14px; font-size: 13px; opacity: .9; }
.hero .units b { font-size: 30px; font-weight: 800; margin-right: 4px; }
.tri { display: flex; gap: 8px; margin-bottom: 14px; }
.tri .t { flex: 1; border-radius: 12px; padding: 12px 10px; text-align: center; }
.tri .t .v { font-size: 17px; font-weight: 800; margin-top: 2px; }
.tri .amber { background: var(--amber-bg); color: var(--amber); }
.tri .blue { background: var(--blue-bg); color: var(--blue); }
.tri .green { background: var(--green-bg); color: var(--green); }
.tri .lbl { font-size: 11.5px; }
.big-actions { display: flex; gap: 10px; }
.big-actions a { flex: 1; background: #fff; border-radius: 14px; padding: 18px 12px; text-align: center;
  text-decoration: none; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(23,50,47,.06); }
.big-actions svg { width: 30px; height: 30px; stroke: var(--brand); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }

/* 产品 */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcard { background: linear-gradient(180deg, var(--glass-hi), var(--glass)); backdrop-filter: blur(16px) saturate(190%); -webkit-backdrop-filter: blur(16px) saturate(190%); border: 1px solid var(--gline); box-shadow: var(--shine), var(--gshadow); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 3px rgba(23,50,47,.06); position: relative; }
.pcard img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #fafafa; }
.pcard .pin { padding: 9px 10px 11px; }
.pcard .sku { font-weight: 800; font-size: 14px; }
.pcard .cat { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.pcard .price { color: var(--brand-dark); font-weight: 800; margin-top: 5px; font-size: 15px; }
.pcard .reb { position: absolute; top: 8px; right: 8px; background: rgba(184,122,0,.92); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 99px; padding: 2px 8px; }
.pd-img { width: 100%; border-radius: 14px; background: #fff; display: block; }
.pd-name { font-size: 16px; font-weight: 800; margin: 12px 0 4px; }
.pd-price { font-size: 22px; color: var(--brand-dark); font-weight: 800; }
.pd-reb { display: inline-block; margin-left: 8px; background: var(--amber-bg); color: var(--amber);
  border-radius: 8px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.pitch-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; font-size: 14.5px; line-height: 1.55; }
.pitch-item .copy { float: right; color: var(--brand); font-size: 12.5px; font-weight: 700; padding: 2px 6px; }
.acc { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.acc summary { padding: 11px 12px; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc .body { padding: 0 12px 12px; font-size: 14px; color: #2c4340; line-height: 1.55; }
video { width: 100%; border-radius: 12px; background: #000; }
.back { color: var(--brand); font-weight: 700; text-decoration: none; font-size: 14px; display: inline-block; margin-bottom: 10px; }

/* AI 问答 */
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 55dvh; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; line-height: 1.55; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.msg.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(23,50,47,.06); }
.msg.ai a { color: var(--brand); font-weight: 700; }
.msg.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  margin-right: 4px; animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; } .msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25 } 40% { opacity: 1 } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; }
.chips button { flex: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 99px;
  padding: 7px 14px; font-size: 13.5px; color: var(--ink); }
.ask-bar { position: fixed; left: 0; right: 0; bottom: calc(86px + var(--safe-b)); background: var(--bg);
  padding: 8px 16px; display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.ask-bar input { flex: 1; border: 1.5px solid var(--line); border-radius: 99px; padding: 11px 16px; background: #fff; }
.ask-bar input:focus { outline: none; border-color: var(--brand); }
.ask-bar button { background: var(--brand); color: #fff; border-radius: 50%; width: 44px; height: 44px; flex: 0 0 44px; font-size: 18px; }
#view.view-ask { padding-bottom: calc(140px + var(--safe-b)); }

/* 拍小票 */
.scan-hero { text-align: center; padding: 26px 16px; }
.scan-hero .ico { width: 84px; height: 84px; border-radius: 50%; background: var(--brand-bg);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.scan-hero .ico svg { width: 40px; height: 40px; stroke: var(--brand); fill: none; stroke-width: 1.7; stroke-linecap: round; }
.scan-note { font-size: 14.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.btn-line { border: 1.5px solid var(--brand); color: var(--brand); border-radius: 12px; padding: 12px; font-weight: 700; width: 100%; margin-top: 10px; }
.preview-img { width: 100%; border-radius: 14px; }
/* 确认页统一分组列表：整页只剩「组」这一层容器，行内一律无填充块——可编辑项用细下划线示意，
   与「单号/时间/支付」这类只读行同构（用户口径：能填也不要单独框起来） */
.fgroup { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.5); }
.fg-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; font-size: 15.5px; border-top: 1px solid var(--line); }
.fgroup > .fg-row:first-child, #rows .fg-row:first-child { border-top: 0; }
.fg-row input, .fg-row select { border: 0; background: none; border-radius: 0; height: 38px; padding: 0 2px; font-size: 16px; }
.fg-row input { border-bottom: 1px solid var(--line); }
.fg-row input:focus, .fg-row select:focus { outline: none; border-bottom-color: var(--brand); }
.fg-row input[type=number] { appearance: textfield; -moz-appearance: textfield; }
.fg-row input[type=number]::-webkit-outer-spin-button,
.fg-row input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fg-row select { width: 100%; }
.fg-lab { color: var(--muted); flex: 1; }
.fg-row > input:last-child { margin-left: auto; text-align: right; }
.fg-val { margin-left: auto; text-align: right; font-size: 14px; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fg-note { padding: 10px 12px 2px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
/* 商品行：品名占左，数量×单价靠右连读，删除退成灰✕ */
.it-name { flex: 1; min-width: 0; }
.fg-row select.f-sku { width: auto; max-width: 100%; height: auto; font-weight: 600; font-size: 15.5px; }
.it-raw { font-size: 11.5px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-num { display: flex; align-items: baseline; margin-left: auto; color: var(--muted); font-size: 13px; }
.it-num em { font-style: normal; padding: 0 5px; }
.fg-row .it-num input { text-align: right; font-weight: 600; font-size: 15.5px; height: 32px; }
.it-num .f-qty { width: 32px; }
.it-num .f-price { width: 72px; }
.it-row.low { background: var(--amber-bg); box-shadow: inset 3px 0 0 var(--amber); }
.it-row .del { color: var(--muted); font-size: 14px; padding: 4px 0 4px 4px; opacity: .5; }
/* S/N 行：色块 chip → 灰标签；校验状态只走下划线 + 行尾提示，不描整框 */
.sn-row .f-sn { flex: 1; text-transform: uppercase; min-width: 0; font-size: 15px; }
.sn-chip { flex: 0 0 auto; min-width: 58px; color: var(--muted); font-size: 13px; font-weight: 600; }
.sn-msg { padding: 0 12px 8px; font-size: 12px; text-align: right; }
.sn-msg:empty { display: none; }
.fg-acc summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 12px; border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 700; color: var(--brand); cursor: pointer; list-style: none; }
.fg-acc summary::-webkit-details-marker { display: none; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px 10px; font-size: 16.5px; font-weight: 700; }
.sum-row b.reb { color: var(--amber); font-size: 23px; }
.ok-hero { text-align: center; padding: 40px 16px; }
.ok-hero .big { font-size: 44px; }
.ok-hero .amt { font-size: 30px; font-weight: 800; color: var(--amber); margin: 8px 0 2px; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: rot .8s linear infinite; vertical-align: -4px; margin-right: 8px; }
.spin.dark { border-color: rgba(14,159,143,.25); border-top-color: var(--brand); }
@keyframes rot { to { transform: rotate(360deg) } }

/* 返点 */
.rec { display: flex; gap: 10px; background: linear-gradient(180deg, var(--glass-hi), var(--glass)); backdrop-filter: blur(18px) saturate(190%); -webkit-backdrop-filter: blur(18px) saturate(190%); border: 1px solid var(--gline); box-shadow: var(--shine), var(--gshadow); border-radius: 14px; padding: 12px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(23,50,47,.05); }
.rec img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: #f0f0f0; }
.rec .noimg { width: 54px; height: 54px; border-radius: 10px; background: var(--brand-bg); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 22px; }
.rec .mid { flex: 1; min-width: 0; }
.rec .sku-line { font-weight: 700; font-size: 14px; }
.rec .date { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rec .right { text-align: right; }
.rec .amt { font-weight: 800; color: var(--amber); font-size: 15px; margin-bottom: 4px; }
.rec .note { font-size: 12px; color: var(--red); margin-top: 4px; }
/* 返点银行卡（首页置顶） */
.bank-card { position: relative; overflow: hidden; cursor: pointer;
  background: linear-gradient(130deg, #0B3F3A 0%, #0A5A50 45%, #0E9F8F 100%);
  border-radius: 20px; padding: 20px 20px 16px; color: #fff; margin-bottom: 8px;
  box-shadow: 0 14px 34px rgba(8,62,55,.38); }
.bc-lotus { position: absolute; right: -46px; top: -18px; width: 210px; opacity: .13; pointer-events: none; }
.bc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; position: relative; }
/* 圆形商标 = 大水印（矢量 SVG，白影从左到右渐显 + 轻模糊） */
.bc-mark { position: absolute; right: -8px; top: -26px; width: 230px; height: 230px;
  opacity: .5; filter: blur(2px); pointer-events: none;
  animation: markBreath 5.5s ease-in-out infinite; }
@keyframes markBreath { /* 呼吸感：缓慢明暗+微缩放 */
  0%, 100% { opacity: .40; transform: scale(1); }
  50% { opacity: .62; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) { .bc-mark { animation: none; } }
.bc-actions { display: flex; gap: 7px; align-items: center; }
.bc-actions button { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  color: #fff; border-radius: 99px; padding: 5px 11px; font-size: 12px; font-weight: 600; backdrop-filter: blur(2px); }
.bc-langwrap { position: relative; }
#bc-lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.28); min-width: 120px; overflow: hidden; z-index: 70; display: block; }
#bc-lang-menu button { display: block; width: 100%; text-align: left; padding: 11px 16px; font-size: 14.5px;
  color: var(--ink); background: #fff; border: 0; border-radius: 0; }
#bc-lang-menu button:not(:last-child) { border-bottom: 1px solid var(--line); }
#geo-chip { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.22);
  border-radius: 99px; padding: 4px 11px; font-size: 11.5px; font-weight: 600; }
.bc-label { font-size: 12.5px; opacity: .82; position: relative; }
.bc-amount { font-size: 50px; font-weight: 800; letter-spacing: 1px; margin: 2px 0 14px;
  text-shadow: 0 2px 10px rgba(0,0,0,.18); position: relative; }
.bc-holder { display: flex; justify-content: space-between; align-items: flex-end; position: relative; }
.bc-name { font-family: "SF Mono", Menlo, monospace; letter-spacing: 2.5px; font-size: 13.5px; opacity: .92; }
.bc-store { font-size: 11.5px; opacity: .8; }
.switch-row { text-align: right; margin-bottom: 10px; }
.switch-row button { color: var(--muted); font-size: 12.5px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: #fff; }

/* 账号条（含切换账号） */
.acct-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px;
  padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(23,50,47,.06); }
.acct-ava { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-bg);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 44px; }
.acct-info { flex: 1; min-width: 0; }
.acct-name { font-weight: 800; font-size: 16px; }
.acct-store { font-size: 12.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#switch-acct { border: 1.5px solid var(--line); color: var(--brand); border-radius: 99px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; flex: 0 0 auto; }
/* 首页主按钮：拍小票 */
.primary-cta { display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  border-radius: 16px; padding: 22px 16px; margin-bottom: 12px; text-decoration: none;
  font-size: 19px; font-weight: 800; box-shadow: 0 8px 22px rgba(14,159,143,.35); }
.primary-cta svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; }
.primary-cta:active { transform: scale(.985); }
/* 返点钱数卡 */
.money-card { display: block; background: #fff; border-radius: 16px; padding: 16px;
  text-decoration: none; color: var(--ink); box-shadow: 0 1px 3px rgba(23,50,47,.06); }
.mc-label { font-size: 13px; color: var(--muted); }
.mc-big { font-size: 38px; font-weight: 800; color: var(--amber); margin: 2px 0 10px; }
.mc-chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* 卡片补充：金色可提现胶囊 / 左下定位 / 右下店铺选择 / CTA 副标题 */
.bc-left { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bc-geo-b { font-size: 11px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px; padding: 3px 9px; }
.bc-store { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); color: #fff;
  border-radius: 10px; padding: 7px 11px; font-size: 12px; font-weight: 600; max-width: 55%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.primary-cta { flex-direction: column; gap: 4px; }
.cta-main { display: flex; align-items: center; gap: 12px; }
.cta-sub { font-size: 11.5px; font-weight: 500; opacity: .85; }

/* 店铺选择弹层 */
.sheet-ov { position: fixed; inset: 0; background: rgba(10,30,28,.55); z-index: 90;
  display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 560px;
  max-height: 72dvh; overflow-y: auto; padding: 18px 16px calc(18px + var(--safe-b)); }
.sheet-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.sheet-item.on { border-color: var(--brand); background: var(--brand-bg); }
.sheet-item b { font-size: 15px; }

/* 返点排行（自家亮色版式） */
.seg { display: flex; background: linear-gradient(180deg, var(--glass-hi), var(--glass)); backdrop-filter: blur(16px) saturate(190%); -webkit-backdrop-filter: blur(16px) saturate(190%); box-shadow: var(--shine); border: 1px solid var(--gline); border: 1.5px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 10px; }
.seg-btn { flex: 1; padding: 10px; border-radius: 10px; color: var(--muted); font-size: 14.5px; font-weight: 700; }
.seg-btn.on { background: var(--brand); color: #fff; }
.rrow { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px;
  padding: 13px 14px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(23,50,47,.05); }
.rrow-rk { width: 30px; text-align: center; font-weight: 800; font-size: 15px; color: var(--muted); }
.rrow.top1 .rrow-rk, .rrow.top2 .rrow-rk, .rrow.top3 .rrow-rk { font-size: 22px; }
.rrow.top1 { border: 1.5px solid #E8C55A; background: linear-gradient(120deg, #FFFDF4, #FFF7DE); }
.rrow.top1 .rrow-amt { font-size: 20px; }
.rrow.top2 { border: 1.5px solid #D5DBDB; }
.rrow.top3 { border: 1.5px solid #E4C6AE; }
.rrow.me { outline: 2px solid var(--brand); }
.me-tag { background: var(--brand-bg); color: var(--brand); border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.rrow-mid { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rrow-mid b { font-size: 15px; }
.rrow-mid span { font-size: 12px; color: var(--muted); margin-top: 1px; }
.rrow-amt { color: var(--amber); font-weight: 800; font-size: 16.5px; }

/* 搜索 + 语音 */
.searchbar { display: flex; align-items: center; gap: 8px; background: linear-gradient(180deg, var(--glass-hi), var(--glass)); backdrop-filter: blur(16px) saturate(190%); -webkit-backdrop-filter: blur(16px) saturate(190%); box-shadow: var(--shine); border: 1px solid var(--gline); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 4px 6px 4px 14px; margin-bottom: 12px; }
.searchbar > svg { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; flex: 0 0 20px; }
.searchbar input { flex: 1; border: 0; padding: 11px 0; font-size: 16px; background: none; min-width: 0; }
.searchbar input:focus { outline: none; }
.mic-btn { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--brand-bg);
  display: flex; align-items: center; justify-content: center; }
.mic-btn svg { width: 21px; height: 21px; stroke: var(--brand); fill: none; stroke-width: 1.9; stroke-linecap: round; }
.mic-btn.rec { background: var(--red); animation: pulse 1s infinite; }
.mic-btn.rec svg { stroke: #fff; }
.mic-btn.busy { opacity: .5; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(194,64,42,.5) } 50% { box-shadow: 0 0 0 9px rgba(194,64,42,0) } }
/* 首页两个大拍照按钮 */
.big-actions.photo2 { margin-bottom: 12px; }
.big-actions.photo2 > * { padding: 20px 10px; font-size: 15px; line-height: 1.35; }
.big-actions.photo2 svg { width: 36px; height: 36px; }
.big-actions button { flex: 1; background: #fff; border-radius: 14px; text-align: center; font-weight: 700;
  box-shadow: 0 1px 3px rgba(23,50,47,.06); color: var(--ink); }
.big-actions button svg { stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
/* 详情页返点大条 */
.reb-banner { margin-top: 10px; background: linear-gradient(120deg, #FFB300, #FF8A00); color: #fff;
  border-radius: 14px; padding: 14px 16px; font-size: 17px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(255,138,0,.35); }
.reb-banner b { font-size: 24px; margin-left: 4px; }
/* 拍S/N 小按钮 */
.sn-cam { flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.sn-cam .ic { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 语言三选菜单 */

/* 平板 / 电脑自适应 */
@media (min-width: 768px) {
  #view { max-width: 760px; }
  .ask-bar { max-width: 760px; }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .big-actions.photo2 > * { padding: 26px 12px; }
  /* 单栏页面（首页/拍小票/返点/排行/问答/产品详情）电脑上限宽居中，不做手机页拉宽 */
  #view.view-home, #view.view-scan, #view.view-rebates, #view.view-rank, #view.view-ask, #view.view-product { max-width: 640px; }
  .ask-bar { max-width: 640px; }
  #tabbar { justify-content: center; }
  #tabbar a { max-width: 130px; }
}
@media (min-width: 1100px) {
  #view { max-width: 1000px; }
  .pgrid { grid-template-columns: repeat(4, 1fr); }
  .pd-img { max-width: 560px; margin: 0 auto; }
  #view.view-home, #view.view-scan, #view.view-rebates, #view.view-rank, #view.view-ask, #view.view-product { max-width: 640px; }
}

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + var(--safe-b));
  background: rgba(23,50,47,.92); color: #fff; border-radius: 99px; padding: 10px 20px; font-size: 14px; z-index: 99;
  opacity: 0; transition: opacity .25s; pointer-events: none; }
.toast.show { opacity: 1; }

/* ---------- 限时冲量任务 ---------- */
.flash-card { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(120deg, #FF8A00, #FF5722); color: #fff; text-decoration: none;
  box-shadow: 0 6px 18px rgba(255, 110, 0, .28); }
.flash-card:active { transform: scale(.985); }
.flash-card.soon { background: linear-gradient(120deg, #90A0AE, #5C6B7A); box-shadow: none; }
.flash-card .fc-img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: #fff; flex: none; }
.flash-card .fc-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.flash-card .fc-title { font-size: 13.5px; font-weight: 800; }
.flash-card .fc-bonus { font-size: 20px; font-weight: 800; line-height: 1.15; }
.flash-card .fc-meta { font-size: 11.5px; opacity: .9; }
.flash-card .fc-right { text-align: center; flex: none; }
.flash-card .fc-lbl { display: block; font-size: 10.5px; opacity: .85; }
.flash-card .fc-cd { font-size: 17px; font-variant-numeric: tabular-nums; }
.reb-banner.flash { background: linear-gradient(120deg, #FF5722, #E91E63); margin-top: 8px; }
.reb-banner.flash [data-cd-end] { font-variant-numeric: tabular-nums; }
.est-bonus { text-align: right; color: #FF6F00; font-weight: 700; font-size: 13px; margin-top: 4px; }
.fc-done { color: #FF6F00; font-weight: 800; margin-top: 2px; }

/* ---------- 邮箱登录 ---------- */
.login-mode { display: flex; background: #F0F4F3; border-radius: 12px; padding: 4px; gap: 4px; }
.login-mode button { flex: 1; padding: 9px 0; border-radius: 9px; font-size: 14.5px; color: var(--muted); font-weight: 600; }
.login-mode button.on { background: #fff; color: var(--brand); font-weight: 800; box-shadow: 0 1px 4px rgba(23,50,47,.12); }
#lg-pass-zone, #lg-email-zone { display: flex; flex-direction: column; gap: 14px; }
.login-hint { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: -4px; }

/* ---------- 我的页（档案卡：店铺选择+定位） ---------- */
.me-card .me-row1 { display: flex; align-items: baseline; gap: 8px; font-size: 17px; margin-bottom: 4px; }
.me-line { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; }
.me-line > span:first-child { color: var(--muted); flex: none; }
.me-store-btn { color: var(--brand); font-weight: 700; padding: 4px 12px; border: 1px solid var(--brand); border-radius: 99px; font-size: 13.5px; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .reb.boost { background: linear-gradient(120deg, #FF8A00, #FF5722); }

.me-lang { display: flex; gap: 6px; }
.me-lang button { padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.me-lang button.on { background: var(--brand-bg); color: var(--brand); border-color: var(--brand); font-weight: 700; }
.me-click { cursor: pointer; }
.me-click:active { opacity: .7; }
.me-exit { color: var(--muted); font-weight: 700; }

/* ---------- 录入 CTA（抄自竞技场稿：卖1台钱立刻到账） ---------- */
.coin-line { position: relative; height: 34px; width: 0; border-left: 2px dashed #D9BE7E; margin: 2px auto; opacity: .75; }
.coin-line::after { content: ''; position: absolute; left: -6px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE9A8, #F5C33B 60%, #D99B14); box-shadow: 0 0 8px rgba(245,195,59,.9);
  animation: coinRise 1.6s ease-out infinite; }
@keyframes coinRise { 0% { top: 26px; opacity: 0; } 20% { opacity: 1; } 85% { top: -4px; opacity: 1; } 100% { top: -6px; opacity: 0; } }
.sell-cta { display: flex; align-items: center; gap: 12px; padding: 16px 14px; border-radius: 18px;
  background: linear-gradient(120deg, #FF7A59, #F4502E); color: #fff; text-decoration: none;
  box-shadow: 0 10px 26px rgba(244,80,46,.32); animation: ctaIn .45s cubic-bezier(.2,1.2,.4,1); }
.sell-cta:active { transform: scale(.985); }
@keyframes ctaIn { 0% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.sell-cta .ico { width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; flex: none; }
.sell-cta .ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.sell-cta .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sell-cta .eyebrow { font-size: 10px; letter-spacing: 1.8px; font-weight: 800; opacity: .8; }
.sell-cta .big { font-size: 18px; font-weight: 800; line-height: 1.3; margin-top: 1px; }
.sell-cta .sub { font-size: 12px; opacity: .9; margin-top: 2px; }
.sell-cta .go { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; flex: none; animation: pulseGo 2s infinite; }
.sell-cta .go svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pulseGo { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.4); } 50% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }
/* 成功页动效：金额弹跳（金币雨已换成 .coin-fly 入袋，见下方） */
.ok-hero { position: relative; overflow: hidden; }
.ok-hero .amt { animation: amtPop .55s cubic-bezier(.2,1.6,.4,1); }
@keyframes amtPop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* 录入底部抽屉：从下滑出，不全屏遮挡 */
/* 抽屉遮罩：录入时后面的信息不用看清，虚化让注意力全在录入上 */
#scan-sheet-ov, #me-sheet-ov { position: fixed; inset: 0; z-index: 59; background: rgba(23,50,47,0);
  transition: background .3s ease, backdrop-filter .3s ease, -webkit-backdrop-filter .3s ease; }
#scan-sheet-ov.show, #me-sheet-ov.show { background: rgba(23,50,47,.30);
  backdrop-filter: blur(14px) saturate(115%); -webkit-backdrop-filter: blur(14px) saturate(115%); }
#scan-sheet, #me-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-width: 640px; margin: 0 auto;
  border-radius: 22px 22px 0 0; height: var(--sheet-h, auto); max-height: 86dvh; isolation: isolate;
  display: flex; flex-direction: column; transform: translateY(105%);
  transition: transform .38s cubic-bezier(.32, .72, .28, 1), height .38s ease, max-height .38s ease;
  box-shadow: 0 -12px 44px rgba(23,50,47,.28); }
#scan-sheet.mini { max-height: 52dvh; }
#scan-sheet.mini .steps { margin-bottom: 8px; }
#scan-sheet.mini .ok-hero { padding: 12px 16px; margin-bottom: 0; }
/* 提交成功那一刻：遮罩清空且撤掉虚化，钱包卡完整亮出来看金币落袋 */
#scan-sheet-ov.clear { background: rgba(23,50,47,0); backdrop-filter: none; -webkit-backdrop-filter: none; }
#scan-sheet.up, #me-sheet.up { transform: translateY(0); }
#scan-sheet::before, #me-sheet::before { content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  backdrop-filter: blur(26px) saturate(160%); -webkit-backdrop-filter: blur(26px) saturate(160%); }
#scan-sheet::after, #me-sheet::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(250,252,252,.84), rgba(246,250,249,.72));
  box-shadow: inset 2px 2px 1px 0 rgba(255,255,255,.7), inset -1px -1px 1px 1px rgba(255,255,255,.4); }
.sheet-x { position: absolute; top: 12px; right: 14px; z-index: 6; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(23,50,47,.10); color: var(--muted); font-size: 14px; line-height: 32px; text-align: center; }
.sheet-x:active { background: rgba(23,50,47,.18); }
.ss-handle { flex: none; padding: 11px 0 7px; display: flex; justify-content: center; cursor: pointer; }
.ss-handle::before { content: ''; width: 44px; height: 5px; border-radius: 99px; background: #C2CFCC; }
#scan-sheet-body, #me-sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px 16px calc(20px + var(--safe-b)); }

/* ---------- 录入四步进度条 + 虚线上传卡 + 样例区（抄同事稿排版） ---------- */
.steps { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 14px; padding: 0 2px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; min-width: 44px; }
.step i { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 800; font-size: 13.5px; background: #fff; border: 2px solid var(--line); color: var(--muted); }
.step span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.step.act i { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 10px rgba(14,159,143,.3); }
.step.act span { color: var(--brand); font-weight: 700; }
.step.done i { background: var(--brand-bg); border-color: var(--brand); color: var(--brand); }
.step.done span { color: var(--brand); }
.steps em { flex: 1; height: 2px; background: var(--line); margin-top: 14px; border-radius: 2px; }
.steps em.on { background: var(--brand); }
.scan-entry { border: 1.5px dashed #C9D6D3; text-align: center; padding: 22px 16px 16px; }
.se-ico { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(140deg, var(--brand), var(--brand-dark)); margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center; }
.se-ico svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.se-title { font-weight: 800; font-size: 17px; }
.se-sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.5; }
.se-btns { display: flex; gap: 10px; margin-top: 16px; }
.se-btns button { flex: 1; border-radius: 16px; padding: 20px 8px; font-weight: 800; font-size: 15px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
.se-btns svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.se-cam { background: var(--brand); color: #fff; }
.se-cam:active { opacity: .85; }
.se-upl { background: #fff; border: 1.5px solid var(--brand); color: var(--brand); }
.samples .sm-eyebrow { font-size: 10px; letter-spacing: 1.6px; color: var(--amber); font-weight: 800; }
.sm-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 14.5px; margin: 2px 0 10px; gap: 8px; }
.sm-head .muted { font-size: 12px; }
.sm-card { display: flex; gap: 10px; align-items: center; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-align: left; }
.sm-card:active { background: var(--brand-bg); }
.sm-card img { width: 44px; height: 56px; object-fit: cover; border-radius: 8px; background: #f4f4f4; flex: none; }
.sm-mid b { display: block; font-size: 14px; }
.sm-mid span { color: var(--brand); font-size: 12.5px; font-weight: 700; }
.sm-row { display: flex; gap: 8px; }
.sm-row .sm-card { flex: 1; min-width: 0; }
.sm-mid { min-width: 0; }
.sm-mid em { display: block; font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 识别等待：小票大图 + 扫描线扫过（仿竞技场稿动效） */
.scan-prog { margin-top: 12px; }
.sp-img { position: relative; border-radius: 12px; overflow: hidden; height: 230px; border: 1px solid var(--line); background: #EDF2F1; }
.sp-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-img::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,159,143,.10), rgba(14,159,143,0) 45%); pointer-events: none; }
.sp-line { position: absolute; left: 0; right: 0; top: -34%; height: 34%; pointer-events: none;
  background: linear-gradient(180deg, rgba(52,196,178,0) 0%, rgba(52,196,178,.22) 68%, rgba(52,196,178,.95) 97%, #EFFFFC 100%);
  box-shadow: 0 2px 12px rgba(52,196,178,.55);
  animation: spSweep 1.5s cubic-bezier(.4,.1,.6,.9) infinite; }
@keyframes spSweep { 0% { transform: translateY(0); } 100% { transform: translateY(400%); } }
.sp-txt { font-size: 12.5px; text-align: center; margin-top: 8px; }
/* 入账飘字 */
.bc-amount { position: relative; }
.amt-float { position: absolute; right: -6px; top: -14px; font-size: 16px; font-weight: 800; color: #FFD666;
  text-shadow: 0 1px 6px rgba(0,0,0,.25); animation: amtFloat 1.7s ease-out forwards; pointer-events: none; }
@keyframes amtFloat { 0% { opacity: 0; transform: translateY(10px) scale(.7); }
  25% { opacity: 1; transform: translateY(0) scale(1.05); } 75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-22px) scale(1); } }

/* 问答语音按钮 */
.mic-btn { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 1.5px solid var(--line); touch-action: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none;
  background: #fff; display: flex; align-items: center; justify-content: center; }
.mic-btn svg { width: 21px; height: 21px; stroke: var(--brand); fill: none; stroke-width: 1.9; stroke-linecap: round; }
.mic-btn.mic-live { background: var(--red-bg); border-color: var(--red); animation: micPulse 1.2s infinite; }
.mic-btn.mic-live svg { stroke: var(--red); }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(194,64,42,.30); } 50% { box-shadow: 0 0 0 8px rgba(194,64,42,0); } }

/* S/N 录入框状态：待填/失败=红框，通过=绿框 */
.fg-row input.f-sn { transition: border-color .15s; }
.fg-row input.f-sn.sn-req { border-bottom-color: var(--red); }
.fg-row input.f-sn.sn-ok { border-bottom-color: var(--green); }
.fg-row input.f-sn.sn-req::placeholder { color: var(--red); opacity: .55; }

/* 金币入袋（fixed 穿透抽屉裁剪，z 高于抽屉） */
.coin-fly { position: fixed; z-index: 80; width: 14px; height: 14px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #FFE9A8, #F5C33B 60%, #D99B14);
  box-shadow: 0 0 10px rgba(245,195,59,.9); opacity: 0; }

.rec-del { display: block; margin-top: 5px; color: var(--red); font-size: 12px; font-weight: 700; }
.badge.withdrawn { background: #ECEFEF; color: var(--muted); }

.me-row1 { position: relative; padding-right: 30px; }
.me-chev { position: absolute; right: 2px; top: -2px; font-size: 20px; color: var(--muted);
  transition: transform .25s ease; display: inline-block; }
.me-chev.up { transform: rotate(180deg); }

.ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-right: 3px; }
.rec-del .ic { width: 14px; height: 14px; vertical-align: -2px; }

/* 排行领奖台（参考竞技场稿 2-1-3 podium，亮底玻璃版） */
.rank-head { margin: 2px 2px 12px; }
.rh-eyebrow { font-size: 11.5px; font-weight: 800; color: var(--amber); letter-spacing: .5px; }
.rh-title { font-size: 25px; font-weight: 800; margin: 2px 0; letter-spacing: .5px; }
.podium { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 12px; padding-top: 10px; }
.pd { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-align: center; padding: 14px 8px 12px; border-radius: 16px;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  backdrop-filter: blur(16px) saturate(190%); -webkit-backdrop-filter: blur(16px) saturate(190%);
  border: 1px solid var(--gline); box-shadow: var(--shine), var(--gshadow); }
.pd b { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd span { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd em { font-style: normal; font-weight: 800; color: var(--amber); font-size: 15px; margin-top: 2px; }
.pd-badge { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 800; font-size: 15px; background: rgba(23,50,47,.07); color: var(--muted); margin-bottom: 3px; }
.pd1 { padding: 20px 8px 18px; transform: translateY(-10px); border: 1.5px solid #E7C463;
  box-shadow: var(--shine), 0 14px 30px -10px rgba(233,185,59,.35); }
.pd1 .pd-badge { width: 40px; height: 40px; font-size: 17px;
  background: linear-gradient(140deg, #FFD666, #E9B93B); color: #4a3a08; box-shadow: 0 4px 12px rgba(233,185,59,.5); }
.pd1 em { font-size: 18px; }
.pd3 { border: 1.5px solid rgba(14,159,143,.55); }
.pd.meoutline { outline: 2px solid var(--brand); outline-offset: 1px; }
.pd.empty { visibility: hidden; }

/* 居中语音收音弹层 */
#voice-ov { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(23,50,47,.38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vo-card { width: min(320px, 84vw); text-align: center; padding: 32px 22px 20px; border-radius: 24px; position: relative;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--gline); box-shadow: var(--shine), var(--gshadow-hi); }
.vo-orb { width: 86px; height: 86px; margin: 0 auto 16px; border-radius: 50%; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark)); box-shadow: 0 10px 28px rgba(14,159,143,.45); }
.vo-orb::before, .vo-orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(14,159,143,.5); animation: voRipple 1.8s ease-out infinite; }
.vo-orb::after { animation-delay: .9s; }
@keyframes voRipple { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(1.9); opacity: 0; } }
.vo-orb svg { width: 36px; height: 36px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.vo-text { min-height: 46px; font-size: 16.5px; font-weight: 600; line-height: 1.45; word-break: break-word; }
.vo-text.err { color: var(--red); }
.vo-hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
#vo-cancel { position: absolute; top: 8px; right: 10px; color: var(--muted); font-size: 19px; padding: 5px 9px; }
.ask-bar { z-index: 25; }

/* 我的页：左上角圆形头像（点击展开档案） */
.me-top { margin-bottom: 10px; }
#me-avatar { width: 48px; height: 48px; border-radius: 50%; font-size: 19px; font-weight: 800; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  border: 2px solid rgba(255,255,255,.7); box-shadow: 0 6px 18px rgba(14,159,143,.35); }
#me-avatar:active { transform: scale(.94); }
/* 记录左滑删除 */
.rec-wrap { position: relative; margin-bottom: 10px; }
.rec-wrap .rec { margin-bottom: 0; position: relative; z-index: 1; }
.rec-delbg { position: absolute; right: 0; top: 0; bottom: 0; width: 84px; z-index: 0; opacity: 0;
  border-radius: 14px; background: linear-gradient(140deg, #E25B4A, #C2402A); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; font-weight: 700; transition: opacity .2s; }
.rec-delbg .ic { width: 18px; height: 18px; stroke: #fff; margin: 0; }
#scan-sheet .steps { padding-right: 30px; } /* 给右上角关闭✕让位 */

/* 我的销售账户页（参考妙搭结构，品牌皮肤） */
.me-head { margin: 4px 2px 12px; }
.me-head .mh-title { font-size: 24px; font-weight: 800; margin-top: 2px; }
.acct-hero { position: relative; overflow: hidden;
  background: linear-gradient(130deg, #0B3F3A 0%, #0A5A50 45%, #0E9F8F 100%);
  border-radius: 20px; padding: 18px 20px; color: #fff; margin-bottom: 6px;
  box-shadow: 0 14px 34px rgba(8,62,55,.38); }
.ah-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .95; }
.ah-badge { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 99px; padding: 3px 12px; font-size: 11.5px; font-weight: 700; }
.ah-amt { font-size: 40px; font-weight: 800; letter-spacing: .5px; margin: 6px 0 2px; color: #FFD666; }
.ah-units { font-size: 13.5px; opacity: .92; margin-bottom: 12px; }
.ah-units b { font-size: 18px; }
.ah-minis { display: flex; gap: 8px; position: relative; }
.ah-minis span { flex: 1; background: rgba(255,255,255,.13); border-radius: 12px; padding: 8px 11px; font-size: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.ah-minis b { font-size: 13.5px; }
.mon-bar { display: flex; justify-content: space-between; align-items: center; margin: 18px 2px 10px; gap: 10px; }
.mon-title { font-size: 19px; font-weight: 800; }
#mon-sel { border: 1px solid var(--gline); background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  border-radius: 12px; padding: 8px 12px; font-size: 13.5px; font-weight: 700; color: var(--ink); box-shadow: var(--gshadow); }
.mstats { display: flex; gap: 10px; margin-bottom: 6px; }
.mstats .ms { flex: 1; border: 1px solid var(--gline); border-radius: 14px; padding: 12px 14px;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass)); box-shadow: var(--shine), var(--gshadow); }
.mstats .lbl { font-size: 12px; color: var(--muted); }
.mstats .v { font-size: 19px; font-weight: 800; margin-top: 3px; }
.day-head { display: flex; align-items: center; gap: 8px; margin: 16px 2px 8px; }
.day-head b { font-size: 14.5px; }
.day-chip { background: rgba(23,50,47,.08); border-radius: 99px; padding: 2px 10px; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.day-sum { margin-left: auto; color: var(--green); font-weight: 800; font-size: 14.5px; }

/* 钱包卡：左上=头像+名字(点开个人信息)，右上=SKG 圆标(纯品牌，替代莲花水印) */
.bc-me { display: flex; align-items: center; gap: 10px; color: #fff; text-align: left; padding: 0; }
.bc-me:active .bc-ava { transform: scale(.94); }
.bc-ava { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.38);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; transition: transform .15s; }
.bc-who { min-width: 0; }
.bc-who b { display: block; font-size: 14.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.bc-who i { font-style: normal; font-size: 11px; opacity: .78; }

/* S/N 条码取景器：全屏、本机解码，z 高于抽屉(60)与金币(80) */
#bc-scan { position: fixed; inset: 0; z-index: 90; background: #000; overflow: hidden; }
#bc-scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#bc-scan .bc-win { position: absolute; left: 7%; right: 7%; top: 33%; height: 138px; border-radius: 16px;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.58); outline: 2px solid rgba(255,255,255,.9); overflow: hidden; }
#bc-scan .bc-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--brand);
  box-shadow: 0 0 12px 2px rgba(14,159,143,.9); animation: bcSweep 1.9s ease-in-out infinite; }
@keyframes bcSweep { 0%, 100% { top: 6px; } 50% { top: calc(100% - 8px); } }
#bc-scan .bc-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + var(--safe-t)) 18px 0; color: #fff; font-size: 16px; }
#bc-scan .bc-x { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 15px; }
#bc-scan .bc-hint { position: absolute; left: 0; right: 0; top: calc(33% + 156px); text-align: center;
  color: rgba(255,255,255,.92); font-size: 14.5px; padding: 0 24px; }
#bc-scan .bc-count { margin-top: 8px; font-size: 17px; font-weight: 700; color: #fff; min-height: 22px; }
#bc-scan .bc-alt { position: absolute; left: 0; right: 0; bottom: calc(30px + var(--safe-b)); text-align: center; }
#bc-scan .bc-alt button { color: #fff; border: 1.5px solid rgba(255,255,255,.55); border-radius: 99px; padding: 11px 22px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { #bc-scan .bc-line { animation: none; top: 50%; } }
