/* 用户兑换页 · 冰川清透 */
:root {
    color-scheme: light;
    --base: #f2f5f9;
    --b1: #cfe6ff;
    --b2: #dfe3ff;
    --b3: #d4f2ee;
    --b4: #eaf1ff;
    --text: #1c1c1e;
    --muted: #636369;
    --faint: #8e8e93;
    --glass: rgba(255, 255, 255, .58);
    --sheen: rgba(255, 255, 255, .72);
    --spec: rgba(255, 255, 255, .8);
    --rim-a: #ffffff;
    --rim-b: rgba(208, 218, 233, .45);
    --shadow: 0 1px 1px rgba(15, 25, 45, .04), 0 18px 48px rgba(30, 50, 90, .10);
    --shadow-sm: 0 1px 2px rgba(15, 25, 45, .05), 0 6px 16px rgba(30, 50, 90, .06);
    --blur: 24px;
    --sat: 140%;
    --field: rgba(255, 255, 255, .7);
    --field-rim: rgba(203, 212, 226, .9);
    --blue: #007aff;
    --blue-press: #0062cc;
    --green: #34c759;
    --orange: #ff9500;
    --red: #ff3b30;
    --purple: #af52de;
    --track: rgba(118, 118, 128, .12);
    --lens: #ffffff;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    --font-num: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
    --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--base);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
svg.lucide { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.9; }
/* 图标脚本是 defer 的：在它把 <i data-lucide> 换成 svg 之前，先给占位元素留出同样大小的格子，不然图标出现时文字会被挤动（CLS） */
i[data-lucide] { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; }
.pill i[data-lucide] { width: 15px; height: 15px; }
.top-tab i[data-lucide] { width: 16px; height: 16px; }
.field-hint-strong i[data-lucide], .seat-status i[data-lucide], .selection-timer i[data-lucide], .lang-current i[data-lucide], .lang-menu a i[data-lucide], .guide-badge i[data-lucide] { width: 14px; height: 14px; }
.car-pill i[data-lucide] { width: 13px; height: 13px; }
.buy-link i[data-lucide] { width: 16px; height: 16px; }
.faq-section h2 i[data-lucide] { width: 20px; height: 20px; }
.result-icon i[data-lucide] { width: 38px; height: 38px; }
.order-stage-icon i[data-lucide] { width: 24px; height: 24px; }
html:not([data-lang="zh-CN"]):not([data-lang="zh-TW"]) .home-tabs .top-tab i[data-lucide] { width: 15px; height: 15px; }

/* ---------- 壁纸 ---------- */
.wall { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.wall i { position: absolute; border-radius: 50%; filter: blur(70px); animation: drift 28s ease-in-out infinite alternate; }
.wall i:nth-child(1) { width: 62vw; height: 62vw; max-width: 820px; max-height: 820px; left: -14vw; top: -22vw; background: var(--b1); opacity: .85; }
.wall i:nth-child(2) { width: 52vw; height: 52vw; max-width: 700px; max-height: 700px; right: -12vw; top: 6vh; background: var(--b2); opacity: .8; animation-duration: 33s; animation-delay: -8s; }
.wall i:nth-child(3) { width: 48vw; height: 48vw; max-width: 640px; max-height: 640px; left: 22vw; bottom: -26vw; background: var(--b3); opacity: .8; animation-duration: 37s; animation-delay: -15s; }
.wall i:nth-child(4) { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; right: 16vw; bottom: -8vw; background: var(--b4); opacity: .7; animation-duration: 31s; animation-delay: -4s; }
.caustics {
    position: absolute; inset: -20%; opacity: .55; filter: blur(18px);
    background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0 60px, rgba(255, 255, 255, .55) 80px, rgba(255, 255, 255, 0) 110px 200px);
    animation: rays 20s linear infinite;
}
.grain {
    position: absolute; inset: 0; opacity: .035; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(6vw, 4vh, 0) scale(1.1); }
    100% { transform: translate3d(-4vw, 2vh, 0) scale(.94); }
}
@keyframes rays { to { transform: translateX(200px); } }

/* ---------- 玻璃材质 ---------- */
.glass {
    position: relative;
    isolation: isolate;
    background: linear-gradient(135deg, var(--sheen) 0%, rgba(255, 255, 255, 0) 45%), var(--glass);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
    backdrop-filter: blur(var(--blur)) saturate(var(--sat));
    box-shadow: var(--shadow);
}
.glass::before {
    content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(140deg, var(--rim-a), var(--rim-b) 36%, var(--rim-b) 64%, var(--rim-a));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}
.glass::after {
    content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(320px circle at var(--mx, 20%) var(--my, -20%), var(--spec), transparent 62%);
    opacity: 0; transition: opacity .4s ease;
}
.glass:hover::after { opacity: 1; }
.glass > * { position: relative; z-index: 1; }

/* ---------- 布局 ---------- */
/* 头儿 10-17 定的：标题块在上、面板在下，一列到底；面板再长也不会把标题挤到页面中间去 */
.page-wrap {
    position: relative; z-index: 1;
    width: 100%; max-width: 640px; margin: 0 auto;
    padding: max(28px, env(safe-area-inset-top)) 18px 48px;
    display: grid; gap: 22px;
}
/* 入场动画只做位移不做淡入：opacity 从 0 开始会让浏览器把首屏“最大内容绘制”算到动画结束之后（LCP 多算将近 1 秒） */
.hero-header { padding: 4px 4px 0; text-align: center; animation: rise .55s var(--ease) both; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--blue);
    background: linear-gradient(145deg, #fff, rgba(255, 255, 255, .55));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), var(--shadow-sm);
}
.hero-header h1 { margin-top: 14px; font-size: clamp(30px, 6vw, 40px); line-height: 1.14; font-weight: 800; letter-spacing: -.025em; }
.hero-header h1 em { font-style: normal; color: var(--blue); }
.hero-subtitle { margin: 10px auto 0; max-width: 30em; font-size: 15px; line-height: 1.7; color: var(--muted); }
.hero-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.25; text-align: center; }
.pill svg.lucide { flex-shrink: 0; }
.pill svg.lucide { width: 15px; height: 15px; color: var(--blue); }

.main-shell { border-radius: var(--radius-xl); padding: 20px; animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: .6; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- 分段切换 ---------- */
.top-nav-tabs {
    position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px; border-radius: 999px; background: var(--track);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .05);
}
.top-tab {
    position: relative; z-index: 1; height: 40px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: color .3s ease, transform .35s var(--spring);
}
.top-tab svg.lucide { width: 16px; height: 16px; }
.top-tab:hover { color: var(--text); }
.top-tab:active { transform: scale(.95); }
.top-tab.active { color: var(--text); }
.top-tab:focus-visible { outline: 3px solid rgba(0, 122, 255, .35); outline-offset: 1px; }
.tab-indicator {
    position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2);
    border-radius: 999px; background: var(--lens);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 14px rgba(0, 0, 0, .08);
    transition: left .55s var(--spring), width .55s var(--spring);
}
.tab-indicator.is-moving { animation: squish .55s var(--ease); }
@keyframes squish {
    0% { transform: scale(1, 1); }
    40% { transform: scale(1.08, .88); }
    70% { transform: scale(.98, 1.04); }
    100% { transform: scale(1, 1); }
}

.step { display: none; }
.step.active { display: block; animation: fadeUp .45s var(--ease) both; }
.tab-panel { display: none; padding-top: 18px; }
.tab-panel.active { display: block; animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.panel-head { margin-bottom: 14px; }
.panel-head h2 { font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.panel-head p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.panel-head p.panel-head-strong { font-weight: 700; color: var(--text); }

/* ---------- 提示条 ---------- */
.info-box, .warning-box {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md);
    font-size: 13.5px; line-height: 1.6;
}
.info-box { background: rgba(0, 122, 255, .07); color: #1e3a5f; }
.info-box svg.lucide { color: var(--blue); margin-top: 2px; }
.warning-box { margin-top: 16px; background: rgba(255, 149, 0, .09); color: #6b4a12; }
.warning-box svg.lucide { color: var(--orange); margin-top: 2px; }
.info-box p, .warning-box p { margin: 0; }
.info-box[hidden] { display: none; }
.term-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------- 表单 ---------- */
.stack-form { display: grid; gap: 14px; margin-top: 16px; }
.form-group label { display: block; margin: 0 0 6px 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.required-star { color: var(--red); }
.field-wrap {
    display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 18px;
    background: var(--field); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04), inset 0 0 0 1px var(--field-rim);
    transition: box-shadow .3s ease, background-color .3s ease;
}
.field-wrap:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(0, 122, 255, .16); }
.field-icon { color: var(--faint); transition: color .3s ease; }
.field-wrap:focus-within .field-icon { color: var(--blue); }
.form-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; }
.form-input::placeholder { color: #a5a5ab; }
.field-hint { margin: 6px 0 0 4px; font-size: 12.5px; color: var(--faint); }
/* 要让人一眼看到的提示（比如“邮箱付款后不能改”） */
.field-hint-strong { display: inline-flex; align-items: center; gap: 6px; color: #b4540a; font-weight: 650; }
.field-hint-strong svg.lucide { width: 14px; height: 14px; flex-shrink: 0; }
/* 浏览器自动填充时别把输入框涂成黄 / 蓝底 */
.form-input:-webkit-autofill, .form-input:-webkit-autofill:hover, .form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset, inset 0 0 0 1px var(--field-rim); -webkit-text-fill-color: var(--text); caret-color: var(--text); transition: background-color 9999s ease-out;
}
.form-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset, inset 0 0 0 2px var(--blue); }
/* 专属链接带进来的优惠码：锁定 */
.form-input.is-locked { background: rgba(0, 122, 255, .06); color: var(--blue); font-weight: 700; letter-spacing: .06em; cursor: not-allowed; }
.code-locked-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 122, 255, .12); color: var(--blue); font-size: 11.5px; font-weight: 650; vertical-align: middle; }
.code-locked-badge svg.lucide { width: 12px; height: 12px; }

.warranty-query-form { display: grid; gap: 6px; }
.warranty-query-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.warranty-query-btn { height: 52px; padding: 0 20px; }
.warranty-result-container { margin-top: 16px; }

/* ---------- 按钮 ---------- */
.btn {
    position: relative; overflow: hidden; height: 50px; padding: 0 22px; border: 0; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 15px; font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform .45s var(--spring), box-shadow .3s ease, background-color .25s ease, opacity .25s ease;
}
.btn::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .35), transparent 62%);
    opacity: 0; transition: opacity .3s ease;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.96); transition-duration: .15s; }
.btn:focus-visible { outline: 3px solid rgba(0, 122, 255, .35); outline-offset: 2px; }
.btn:disabled, .btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 24px rgba(0, 122, 255, .28); }
.btn-primary:hover { background: #0a84ff; }
.btn-secondary { background: rgba(255, 255, 255, .78); color: var(--text); box-shadow: inset 0 0 0 1px var(--field-rim), var(--shadow-sm); }
.btn-secondary:hover { background: #fff; }
.stack-form > .btn { width: 100%; height: 54px; margin-top: 4px; font-size: 16px; }
.spinning { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.buy-link {
    justify-self: center; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
    color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .25s ease;
}
.buy-link svg.lucide { width: 16px; height: 16px; transition: transform .35s var(--spring); }
.buy-link:hover { color: var(--blue); }
.buy-link:hover svg.lucide { transform: translateX(3px); }

/* ---------- 结果 ---------- */
.result-shell { padding-top: 4px; }
.result-card, .empty-result { display: grid; gap: 16px; text-align: center; animation: pop .6s var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.result-card-header { display: grid; justify-items: center; gap: 6px; padding-top: 8px; }
.result-icon {
    position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
    background: rgba(0, 122, 255, .1); color: var(--blue);
}
.result-icon svg.lucide { width: 38px; height: 38px; stroke-width: 2.2; animation: iconIn .6s var(--spring) .1s both; }
.result-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; animation: ripple 1.1s var(--ease) .35s both; }
.result-icon.success { background: rgba(52, 199, 89, .12); color: var(--green); }
.result-icon.error { background: rgba(255, 59, 48, .1); color: var(--red); }
.result-icon.info { background: rgba(0, 122, 255, .1); color: var(--blue); }
@keyframes iconIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ripple { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.55); opacity: 0; } }
.result-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.result-message { font-size: 14px; color: var(--muted); }
.result-details { display: grid; gap: 2px; padding: 6px; border-radius: var(--radius-md); background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--field-rim); text-align: left; }
.result-detail-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.result-detail-item + .result-detail-item { border-top: 1px solid rgba(203, 212, 226, .55); border-radius: 0; }
.result-detail-label { color: var(--muted); }
.result-detail-value { font-weight: 600; text-align: right; word-break: break-all; }
.result-inline-note { padding: 12px 14px; border-radius: var(--radius-md); background: rgba(0, 122, 255, .07); color: #1e3a5f; font-size: 13.5px; line-height: 1.7; text-align: left; }
.result-card-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.result-card-actions .btn { flex: 1 1 180px; }
.inline-code-box { display: flex; gap: 8px; }
.inline-code-input {
    flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; border-radius: 14px; outline: 0;
    background: var(--field); box-shadow: inset 0 0 0 1px var(--field-rim); font-family: var(--font-mono); font-size: 14px;
}
.empty-result { padding: 10px 0 4px; justify-items: center; }

/* ---------- 质保记录 ---------- */
.warranty-view { display: grid; gap: 16px; text-align: left; }
.warranty-summary {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.warranty-summary > div { padding: 14px; border-radius: var(--radius-md); background: rgba(255, 255, 255, .66); box-shadow: inset 0 0 0 1px var(--field-rim); }
.summary-card-label { font-size: 12.5px; color: var(--muted); }
.summary-card-value { margin-top: 6px; font-family: var(--font-num); font-size: 16px; font-weight: 700; }
.records-section { display: grid; gap: 10px; }
.records-section-title { font-size: 15px; font-weight: 700; }
.records-list { display: grid; gap: 10px; }
.record-card { padding: 14px; border-radius: var(--radius-md); background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--field-rim), var(--shadow-sm); animation: fadeUp .45s var(--ease) both; }
.record-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.record-code { font-family: var(--font-mono); font-size: 14px; font-weight: 600; word-break: break-all; }
.record-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 12px; }
.record-meta-label { font-size: 12px; color: var(--faint); }
.record-meta-value { margin-top: 2px; font-size: 13.5px; font-weight: 600; word-break: break-all; }
.record-meta-value.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* 兑换邮箱单独占一整行、字小一号，尽量不折行（头儿 10-17 提的） */
.record-meta-item-wide { grid-column: 1 / -1; }
.record-meta-email { font-size: 12px; font-weight: 500; font-family: var(--font-mono); word-break: normal; overflow-wrap: anywhere; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-footer { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(203, 212, 226, .6); }
.record-footer-copy { font-size: 13px; color: var(--muted); }
.record-footer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.record-footer-actions .btn { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- 标签 ---------- */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: rgba(118, 118, 128, .12); color: var(--muted); }
.badge-success { background: rgba(52, 199, 89, .14); color: #1f8a3c; }
.badge-error { background: rgba(255, 59, 48, .12); color: #c62a20; }
.badge-warn { background: rgba(255, 149, 0, .14); color: #a35f00; }
.badge-neutral { background: rgba(118, 118, 128, .12); color: var(--muted); }

/* ---------- 轻提示 ---------- */
.toast {
    position: fixed; z-index: 60; top: max(16px, env(safe-area-inset-top)); left: 50%;
    display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px;
    background: rgba(255, 255, 255, .86); color: var(--text); font-size: 14px; font-weight: 600;
    -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 12px 32px rgba(30, 50, 90, .16);
    opacity: 0; pointer-events: none; transform: translate(-50%, -18px) scale(.96);
    transition: opacity .3s ease, transform .5s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast svg.lucide { color: var(--blue); }
.toast.success svg.lucide { color: var(--green); }
.toast.error svg.lucide { color: var(--red); }

/* ---------- 公告与提醒弹窗 ---------- */
.announcement-modal {
    position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.announcement-modal.show { opacity: 1; visibility: visible; }
.announcement-backdrop { position: absolute; inset: 0; background: rgba(226, 232, 242, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.announcement-dialog {
    width: min(520px, 100%); max-height: min(80vh, 640px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: 28px; transform: translateY(16px) scale(.96); transition: transform .55s var(--spring);
    --glass: rgba(255, 255, 255, .82);
}
.announcement-modal.show .announcement-dialog { transform: none; }
.announcement-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 8px; }
.announcement-header h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 750; }
.announcement-header h3 svg.lucide { color: var(--blue); }
.announcement-close {
    width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: var(--track); color: var(--muted); transition: transform .35s var(--spring), background-color .2s ease;
}
.announcement-close:hover { background: rgba(118, 118, 128, .2); color: var(--text); }
.announcement-close:active { transform: scale(.9); }
.announcement-body { overflow: auto; padding: 4px 20px 8px; font-size: 14.5px; line-height: 1.75; color: #3a3a3c; }
.announcement-body h1, .announcement-body h2, .announcement-body h3 { margin: 12px 0 6px; font-size: 16px; color: var(--text); }
.announcement-body p { margin: 8px 0; }
.announcement-body ul, .announcement-body ol { margin: 8px 0; padding-left: 20px; }
.announcement-body code { padding: 1px 6px; border-radius: 6px; background: var(--track); font-family: var(--font-mono); font-size: 13px; }
.announcement-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 12px 20px 20px; }
.announcement-footer .btn { height: 44px; }
.renewal-reminder-footer .btn { flex: 1 1 auto; }

/* ---------- 宽屏 ---------- */
@media (min-width: 980px) {
    .page-wrap { padding-top: 44px; gap: 26px; }
    .hero-header h1 { font-size: 42px; }
    .hero-subtitle { font-size: 16px; }
    .main-shell { padding: 24px; }
}
@media (max-width: 420px) {
    .page-wrap { padding-left: 14px; padding-right: 14px; }
    .main-shell { padding: 16px; border-radius: 26px; }
    .top-tab { font-size: 13.5px; gap: 4px; }
    .warranty-query-row { grid-template-columns: 1fr; }
    .warranty-query-btn { width: 100%; }
    .record-meta-grid, .warranty-summary { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 选位购买页 ---------- */
.shop-wrap { max-width: 1040px; }
/* 中文以外的语言文案长：容器放宽、卡片最小宽度加大，车卡片头部的“Team 1 / 标准 / 额度”一行放得下，不折行 */
html:not([data-lang="zh-CN"]):not([data-lang="zh-TW"]) .shop-wrap { max-width: 1180px; }
html:not([data-lang="zh-CN"]):not([data-lang="zh-TW"]) .car-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.shop-shell { display: grid; gap: 18px; }
.shop-toolbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.shop-toolbar .btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.field-hint.is-good { color: var(--green); }
.field-hint.is-bad { color: var(--red); }
.shop-rules p { line-height: 1.7; }
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: stretch; }
.car-empty { grid-column: 1 / -1; padding: 36px 16px; text-align: center; color: var(--faint); font-size: 14px; }
.car-card { border-radius: var(--radius-lg); padding: 14px 16px 6px; display: grid; gap: 4px; align-content: start; transition: box-shadow .3s ease, transform .45s var(--spring); }
/* 位置行：标签 + 每天单价 + 占位行 */
.seat-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--track); color: var(--muted); font-size: 11px; font-weight: 650; white-space: nowrap; }
.seat-tag-days { background: rgba(255, 149, 0, .16); color: #b4540a; }
.seat-per-day { display: block; font-style: normal; font-size: 11.5px; color: var(--faint); font-weight: 500; margin-top: 2px; text-align: right; }
.seat-row.is-none { opacity: .55; }
.seat-row.is-none .seat-name strong { color: var(--muted); }
.seat-status-none { color: var(--faint); font-size: 12.5px; font-weight: 600; }

/* ---------- 车位列表：筛选 / 排序 + 固定高度滚动懒加载 ---------- */
.car-list { display: grid; gap: 10px; }
.car-list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.car-list-tools[hidden] { display: none; }
.filter-chips { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--track); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .05); }
.filter-chips .chip { border: 0; background: transparent; border-radius: 999px; padding: 0 14px; min-height: 34px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .25s ease, background-color .3s ease, box-shadow .3s ease, transform .35s var(--spring); }
.filter-chips .chip:hover { color: var(--text); }
.filter-chips .chip:active { transform: scale(.95); }
.filter-chips .chip.active { background: #fff; color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px rgba(30, 50, 90, .08); }
.car-list-sort { min-width: 200px; }
.car-list-sort .ui-select.form-input, .car-list-sort .form-input { min-height: 40px; }
.car-list-count { margin-left: auto; font-size: 12.5px; color: var(--faint); }
/* 列表滚到头后滚轮要能继续带动整页（不设 overscroll-behavior: contain），不然鼠标在列表上页面就上不去 */
.car-list-viewport { position: relative; max-height: min(62vh, 640px); overflow-y: auto; padding: 4px 4px 12px; margin: 0 -4px; border-radius: var(--radius-lg); scrollbar-width: thin; scrollbar-color: rgba(118, 118, 128, .35) transparent; }
.car-list-viewport::-webkit-scrollbar { width: 8px; }
.car-list-viewport::-webkit-scrollbar-thumb { background: rgba(118, 118, 128, .3); border-radius: 999px; }
.car-list-sentinel { height: 1px; }
.car-list-more { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; color: var(--faint); font-size: 13px; }
.car-list-more[hidden] { display: none; }
.car-list-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0, 122, 255, .2); border-top-color: var(--blue); animation: dealer-spin 1s linear infinite; }
@media (max-width: 640px) {
    .car-list-tools { gap: 8px; }
    .filter-chips { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
    .car-list-sort { width: 100%; }
    .car-list-count { margin-left: 0; }
    .car-list-viewport { max-height: 70vh; }
}
.car-card.is-selected { box-shadow: inset 0 0 0 2px var(--blue), var(--shadow); }
/* 头部一行不折行；实在放不下时只让最后那个“额度”胶囊省略号收尾（完整文字在 title 里） */
.car-head { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--field-rim); min-width: 0; }
.car-pill-usage { min-width: 0; }
.car-pill-usage > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car-no { font-family: var(--font-num); font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.car-pill { height: 26px; min-height: 26px; padding: 0 8px; font-size: 11.5px; background: var(--track); color: var(--muted); white-space: nowrap; }
.car-pill svg.lucide { width: 13px; height: 13px; }
/* 位置行：左边名称 + 说明（可以换行），右边价格和按钮上下排。两栏布局，日语 / 英语这种长文案也不会把名称挤成三行 */
.seat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--field-rim); }
.seat-row:last-child { border-bottom: 0; }
.seat-row.is-mine { background: rgba(0, 122, 255, .06); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.seat-row-none { color: var(--faint); }
.seat-name { display: grid; gap: 3px; min-width: 0; flex: 1 1 auto; }
.seat-name strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; line-height: 1.3; }
.seat-name small { color: var(--faint); font-size: 12px; line-height: 1.4; }
.seat-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.seat-price { font-family: var(--font-num); font-size: 16px; font-weight: 750; white-space: nowrap; text-align: right; }
.seat-price small { color: var(--faint); font-size: 12px; font-weight: 600; }
.seat-price:empty { display: none; }
.seat-action .btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.seat-status { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.seat-status svg.lucide { width: 14px; height: 14px; }
.seat-status-mine { background: rgba(52, 199, 89, .14); color: #1f8a3c; }
.seat-status-busy { background: rgba(255, 149, 0, .14); color: #a35f00; }
.selection-panel { margin-top: 16px; border-radius: var(--radius-xl); padding: 20px; display: grid; gap: 14px; animation: rise .5s var(--ease) both; }

/* 常见问题：页面上可见的问答（和结构化数据里的 FAQPage 对应），原生 details 做折叠 */
.faq-section { margin-top: 18px; border-radius: var(--radius-xl); padding: 18px 20px 8px; animation: rise .6s var(--ease) .08s both; }
.faq-section h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 17px; font-weight: 750; }
.faq-section h2 svg.lucide { width: 20px; height: 20px; color: var(--blue); }
.faq-item { border-top: 1px solid var(--field-rim); }
.faq-item:first-of-type { border-top: 0; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 650; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg.lucide { width: 18px; height: 18px; color: var(--faint); flex-shrink: 0; transition: transform .35s var(--spring); }
.faq-item[open] summary svg.lucide { transform: rotate(180deg); }
.faq-item p { margin: -4px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.pill-price { color: var(--blue); font-weight: 700; }
.selection-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.selection-kicker { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .04em; }
.selection-head h3 { margin: 2px 0 0; font-size: 18px; }
.selection-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.selection-timer { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--track); color: var(--muted); font-family: var(--font-num); font-size: 13px; font-weight: 650; white-space: nowrap; }
.selection-timer svg.lucide { width: 14px; height: 14px; }
.price-lines { margin: 0; display: grid; gap: 6px; }
.price-lines > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.price-lines dt { color: var(--muted); }
.price-lines dd { margin: 0; font-family: var(--font-num); text-align: right; }
.price-lines strong { font-size: 20px; color: var(--blue); }
.selection-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.selection-note { margin-left: 0; }
.shop-footer { display: flex; justify-content: center; margin-top: 18px; }
.shop-page .brand { text-decoration: none; color: inherit; }
@media (max-width: 640px) {
    .seat-row { grid-template-columns: minmax(0, 1fr) auto; }
    .seat-row .seat-action { grid-column: 1 / -1; }
    .selection-actions { grid-template-columns: 1fr; }
    .selection-panel { position: sticky; bottom: 10px; }
}

/* ---------- 订单结果页 ---------- */
.order-shell { display: grid; gap: 18px; }
.order-stage { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-lg); background: rgba(0, 122, 255, .07); }
.order-stage-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); color: var(--blue); }
.order-stage-icon svg.lucide { width: 24px; height: 24px; }
.order-kicker { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.order-stage-label { font-size: 17px; font-weight: 750; }
.order-shell[data-stage="done"] .order-stage { background: rgba(52, 199, 89, .12); }
.order-shell[data-stage="done"] .order-stage-icon { color: var(--green); }
.order-shell[data-stage="manual"] .order-stage { background: rgba(255, 149, 0, .14); }
.order-shell[data-stage="manual"] .order-stage-icon { color: var(--orange); }
.order-shell[data-stage="closed"] .order-stage, .order-shell[data-stage="refunded"] .order-stage { background: var(--track); }
.order-shell[data-stage="closed"] .order-stage-icon, .order-shell[data-stage="refunded"] .order-stage-icon { color: var(--muted); }
.order-lines > div { padding: 6px 0; border-bottom: 1px solid var(--field-rim); }
.order-lines > div:last-child { border-bottom: 0; }
.order-actions { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.order-actions .btn[hidden] { display: none; }
.shop-tabs { margin-bottom: 4px; }
.renew-actions { grid-template-columns: minmax(0, 260px); margin: 4px 0 14px; }
.renew-card .renew-months { height: 40px; padding: 0 10px; border-radius: 12px; background: var(--field); box-shadow: inset 0 0 0 1px var(--field-rim); font-size: 14px; }

/* ---------- 兑换码进车：选车 ---------- */
/* 语言切换器（右上角，悬浮，不占布局） */
.lang-switcher { position: absolute; top: 14px; right: 16px; z-index: 30; }
.lang-current { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 650; color: var(--text); cursor: pointer; transition: transform .35s var(--spring), box-shadow .25s ease; }
.lang-current:hover { box-shadow: 0 0 0 2px rgba(0, 122, 255, .25), var(--shadow); }
.lang-current:active { transform: scale(.96); }
.lang-current svg.lucide { width: 14px; height: 14px; color: var(--muted); }
.lang-flag { width: 20px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); object-fit: cover; flex-shrink: 0; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; margin: 0; padding: 6px; list-style: none; min-width: 190px; border-radius: 16px; box-shadow: var(--shadow); animation: dealer-pop .25s var(--spring) both; }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.lang-menu a:hover { background: rgba(0, 122, 255, .08); }
.lang-menu a.is-active { color: var(--blue); }
.lang-menu a svg.lucide { width: 14px; height: 14px; margin-left: auto; }
@keyframes dealer-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
    .lang-switcher { position: static; display: flex; justify-content: flex-end; margin: 0 0 6px; }
    .lang-menu { right: 16px; }
}
.page-wrap { position: relative; }

/* 查单验证码 */
.captcha-row { display: flex; align-items: flex-end; gap: 12px; margin-top: 12px; }
.captcha-image { flex-shrink: 0; width: 168px; height: 52px; padding: 0; border: 0; border-radius: 14px; background: transparent; cursor: pointer; display: grid; place-items: center; overflow: hidden; transition: transform .35s var(--spring), box-shadow .25s ease; box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, .06)); }
.captcha-image:hover { box-shadow: 0 0 0 2px rgba(0, 122, 255, .35); }
.captcha-image:active { transform: scale(.97); }
.captcha-image.is-loading { opacity: .6; }
.captcha-image svg { display: block; width: 100%; height: 100%; }
.captcha-loading { font-size: 12px; color: var(--faint); }
.captcha-field { flex: 1; min-width: 0; margin: 0; }
.captcha-field .form-input { max-width: 220px; }
@media (max-width: 640px) {
    .captcha-row { flex-wrap: wrap; }
    .captcha-field .form-input { max-width: none; }
}
.redeem-car-list { margin: 14px 0 4px; }
.redeem-car-list .car-list-viewport { max-height: min(48vh, 480px); }
.car-pick-list { display: grid; gap: 8px; margin: 14px 0 4px; }
.car-pick-title { font-size: 13px; font-weight: 700; color: var(--muted); }
.car-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--field-rim); font: inherit; text-align: left; cursor: pointer; transition: box-shadow .25s ease, transform .35s var(--spring); }
.car-pick:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.car-pick:disabled, .car-pick.is-busy { cursor: not-allowed; opacity: .7; }
.car-pick-name { font-family: var(--font-num); font-weight: 750; }
.car-pick-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-pick-status { font-size: 12.5px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.car-pick.is-busy .car-pick-status { color: #a35f00; }
.car-pick-empty { margin: 0; color: var(--faint); font-size: 13px; }

/* ---------- 经销商后台 ---------- */
.dealer-login-wrap { max-width: 520px; }
.dealer-header .hero-pills b { font-family: var(--font-num); }
.pill-button { border: 0; cursor: pointer; font: inherit; color: var(--muted); }
.pill-button:hover { color: var(--red); }
.dealer-tab { display: grid; gap: 14px; }
.dealer-subtitle { margin: 6px 0 0; font-size: 16px; }
.dealer-stats { display: grid; gap: 12px; }
/* 经销商概览：三张总账卡 */
.dealer-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.dealer-total { padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.dealer-total.is-primary { box-shadow: inset 0 0 0 1.5px rgba(0, 122, 255, .35), var(--shadow); }
.dealer-total-label { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.dealer-total-value { font-family: var(--font-num); font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1.1; }
.dealer-total-value small { font-size: 14px; font-weight: 600; color: var(--muted); }
.dealer-total.is-primary .dealer-total-value { color: var(--blue); }
.dealer-total-sub { font-size: 12.5px; color: var(--faint); }
.dealer-total-facts { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--field-rim); display: grid; gap: 6px; }
.dealer-total-facts div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.dealer-total-facts dt { color: var(--muted); }
.dealer-total-facts dd { margin: 0; font-family: var(--font-num); font-weight: 700; color: var(--text); }
.dealer-total-facts dd.is-blue { color: var(--blue); }
.dealer-months-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px 4px; }
.dealer-months-head .field-hint { margin: 0; }
.dealer-months td.is-blue { color: var(--blue); font-weight: 700; font-family: var(--font-num); }
.dealer-months td { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.dealer-months tr.is-strong td { color: var(--text); font-weight: 700; }
.dealer-months tr.is-strong td:first-child small { color: var(--blue); font-weight: 600; margin-left: 4px; }
.dealer-ledger-card { padding: 6px 4px; margin-bottom: 12px; overflow-x: auto; }
.dealer-summary { width: 100%; border-collapse: collapse; font-size: 14px; }
.dealer-summary th, .dealer-summary td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--field-rim); white-space: nowrap; }
.dealer-summary th:first-child, .dealer-summary td:first-child { text-align: left; color: var(--muted); font-weight: 500; }
.dealer-summary th { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.dealer-summary tbody tr:last-child td { border-bottom: 0; }
.dealer-summary .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 650; color: var(--text); }
.dealer-summary tr.is-strong td:first-child { color: var(--text); font-weight: 650; }
.dealer-summary tr.is-strong .num { color: var(--blue); font-size: 15px; }
.dealer-stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.dealer-stat {
    padding: 12px 14px; border: 0; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px var(--field-rim);
    text-align: left; cursor: pointer; font: inherit; color: inherit; transition: transform .35s var(--spring), box-shadow .2s ease;
}
.dealer-stat:hover { box-shadow: inset 0 0 0 1.5px var(--blue); transform: translateY(-1px); }
.dealer-stat-value { font-family: var(--font-num); font-size: 22px; font-weight: 750; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dealer-stat-label { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) {
    .dealer-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dealer-summary th, .dealer-summary td { padding: 9px 8px; font-size: 13px; }
    .dealer-totals { grid-template-columns: 1fr; }
    .dealer-total-value { font-size: 26px; }
}
.dealer-recharge { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.dealer-pending { padding: 16px 18px; display: grid; gap: 14px; box-shadow: inset 0 0 0 1.5px rgba(0, 122, 255, .25); }
.dealer-pending-head { display: flex; align-items: center; gap: 12px; }
.dealer-pending-head strong { display: block; font-size: 16px; }
.dealer-pending-head small { color: var(--muted); font-size: 12.5px; }
.dealer-pending-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(0, 122, 255, .2); border-top-color: var(--blue); animation: dealer-spin 1s linear infinite; flex-shrink: 0; }
@keyframes dealer-spin { to { transform: rotate(360deg); } }
.dealer-presets { display: flex; gap: 6px; }
.dealer-presets .btn-sm, .dealer-list-head .btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }
.dealer-issue { display: grid; gap: 8px; }
.car-pick.is-selected { box-shadow: inset 0 0 0 1.5px var(--blue); }
.dealer-issue-row { display: grid; grid-template-columns: minmax(0, 200px) auto; gap: 10px; align-items: center; }
.dealer-list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dealer-list-head .dealer-subtitle { margin-right: auto; }
.dealer-select { height: 38px; padding: 0 10px; border-radius: 12px; background: var(--field); box-shadow: inset 0 0 0 1px var(--field-rim); font-size: 14px; }
.dealer-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .66); box-shadow: inset 0 0 0 1px var(--field-rim); }
.dealer-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dealer-table th, .dealer-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--field-rim); vertical-align: top; }
.dealer-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.dealer-table tr:last-child td { border-bottom: 0; }
.dealer-table code { font-family: var(--font-mono); font-size: 12.5px; }
.dealer-table .is-neg { color: var(--red); font-family: var(--font-num); }
.dealer-table .is-pos { color: var(--green); font-family: var(--font-num); }
.dealer-table tr.is-refunded td { color: var(--faint); }
.dealer-empty { text-align: center; color: var(--faint); padding: 24px 12px !important; }
.dealer-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dealer-actions .btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.dealer-sub { display: block; margin: 4px 0 0; color: var(--faint); font-size: 12px; }
.dealer-payouts { display: grid; gap: 10px; }
.dealer-payout { padding-bottom: 14px; }
.retail-previews.dealer-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.dealer-previews img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px var(--field-rim); }
@media (max-width: 640px) {
    .dealer-recharge, .dealer-issue-row { grid-template-columns: 1fr; }
}
.dealer-page .brand { text-decoration: none; color: inherit; }
.dealer-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dealer-promo-list { display: grid; gap: 12px; }
.dealer-promo { padding: 16px 18px; display: grid; gap: 12px; }
.dealer-promo.is-off { opacity: .6; }
.dealer-promo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dealer-promo-code { font-family: var(--font-num); font-size: 20px; font-weight: 750; letter-spacing: .06em; }
.dealer-promo-note { color: var(--muted); font-size: 13px; }
.pill-good { background: rgba(52, 199, 89, .14); color: #1f7a3a; }
.pill-off { background: rgba(118, 118, 128, .14); color: var(--muted); }
.dealer-promo-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dealer-promo-facts dt { color: var(--muted); font-size: 12.5px; }
.dealer-promo-facts dd { margin: 2px 0 0; font-family: var(--font-num); font-size: 17px; font-weight: 700; }
.dealer-promo-facts dd small { font-size: 12px; color: var(--muted); font-weight: 500; }
.dealer-promo-facts dd.is-blue { color: var(--blue); }
.dealer-promo-link { display: flex; gap: 8px; align-items: center; }
.dealer-promo-link .form-input { flex: 1; min-width: 0; font-size: 13px; }
@media (max-width: 640px) {
    .dealer-promo-link { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
    .dealer-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; border-radius: 24px; }
    .dealer-tabs .top-tab { font-size: 12.5px; padding-inline: 6px; }
    .dealer-tabs .tab-indicator { display: none; }
    .dealer-tabs .top-tab { border-radius: 20px; }
    .dealer-tabs .top-tab.active { background: var(--lens); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 14px rgba(0, 0, 0, .08); }
}

/* ---------- 首页：四个标签 / 品牌图标 / 查单 ---------- */
.brand-mark img { width: 22px; height: 22px; border-radius: 6px; display: block; }
.home-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-tabs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-tabs .top-tab span { white-space: nowrap; }
/* 中文以外的语言标签文字长：桌面上允许换行、图标在上文字在下；手机上也一样，避免三个标签互相叠在一起 */
html:not([data-lang="zh-CN"]):not([data-lang="zh-TW"]) .home-tabs .top-tab { height: auto; min-height: 44px; padding: 6px 8px; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.15; white-space: normal; text-align: center; }
html:not([data-lang="zh-CN"]):not([data-lang="zh-TW"]) .home-tabs .top-tab span { white-space: normal; }
html:not([data-lang="zh-CN"]):not([data-lang="zh-TW"]) .home-tabs .top-tab svg.lucide { width: 15px; height: 15px; }
@media (max-width: 640px) {
    .home-tabs .top-tab { padding: 0 2px; font-size: 13px; gap: 4px; }
    .home-tabs .top-tab svg.lucide { width: 14px; height: 14px; }
    html:not([data-lang="zh-CN"]):not([data-lang="zh-TW"]) .home-tabs .top-tab { font-size: 12px; padding: 6px 4px; }
}
.shop-toolbar[hidden] { display: none; }
.my-orders { margin-top: 18px; }
.my-orders-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; }
.my-orders-title i { width: 18px; height: 18px; color: var(--blue); }
.my-orders-list { display: grid; gap: 8px; }
.my-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-lg); text-decoration: none; color: inherit; }
.my-order:hover { box-shadow: 0 0 0 1.5px var(--blue); }
.my-order-main { display: grid; gap: 2px; min-width: 0; }
.my-order-main small { color: var(--faint); font-size: 12px; overflow-wrap: anywhere; }
.my-order-side { display: grid; gap: 6px; justify-items: end; flex-shrink: 0; }
.my-order-amount { font-family: var(--font-num); font-weight: 700; }

.info-box.shop-rules { margin-bottom: 16px; }
.renew-box { margin-bottom: 18px; }
.renew-box .car-grid { margin-bottom: 0; }
.renew-notice { box-shadow: inset 0 0 0 1.5px rgba(0, 122, 255, .25); }

/* ---------- 使用方法 ---------- */
.guide-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.guide-pill { color: var(--blue); font-weight: 700; }
.guide-pill:hover { color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.guide-dialog { width: min(760px, 100%); max-height: min(88vh, 900px); }
.guide-body { padding-bottom: 16px; }
.guide-tabs { margin: 4px 0 12px; }
/* 指南弹窗的两个标签：长语言允许换行，不让“Мобильное приложение”这种被截掉 */
html:not([data-lang="zh-CN"]):not([data-lang="zh-TW"]) .guide-tabs .top-tab { height: auto; min-height: 40px; padding: 6px 8px; white-space: normal; line-height: 1.15; font-size: 13px; text-align: center; }
.guide-note { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 122, 255, .08); color: var(--text); font-size: 13.5px; line-height: 1.6; }
.guide-note-tail { margin-top: 12px; background: rgba(118, 118, 128, .1); color: var(--muted); }
.guide-panel { display: none; }
.guide-panel.active { display: block; animation: fadeUp .35s var(--ease) both; }
.guide-panel h4 { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-size: 15.5px; font-weight: 750; color: var(--text); }
.guide-badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--blue); color: #fff; }
.guide-badge svg.lucide { width: 14px; height: 14px; }
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: guide; display: grid; gap: 14px; }
.guide-steps li { counter-increment: guide; position: relative; padding-left: 32px; }
.guide-steps li::before { content: counter(guide); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 999px; background: rgba(0, 122, 255, .12); color: var(--blue); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.guide-steps li p { margin: 2px 0 8px; font-size: 14px; line-height: 1.6; }
.guide-steps li a { display: block; }
.guide-steps img { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: 14px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px var(--field-rim), 0 8px 24px rgba(0, 0, 0, .08); }
.guide-panel[data-guide-panel="app"] .guide-steps img { max-height: 420px; }
@media (max-width: 640px) {
    .guide-dialog { max-height: 92vh; border-radius: 22px; }
    .guide-steps img { max-height: none; }
}

/* ---------- 截图放大 ---------- */
.guide-lightbox {
    position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px;
    background: rgba(20, 24, 32, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; cursor: zoom-out;
}
.guide-lightbox.show { opacity: 1; visibility: visible; }
.guide-lightbox img {
    max-width: min(96vw, 1400px); max-height: 88vh; object-fit: contain; border-radius: 14px; background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45); cursor: default; transform: scale(.96); transition: transform .35s var(--spring);
}
.guide-lightbox.show img { transform: none; }
.guide-lightbox-close {
    position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .92); color: var(--text); display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .3s var(--spring), background .2s ease;
}
.guide-lightbox-close:hover { background: #fff; }
.guide-lightbox-close:active { transform: scale(.9); }
.guide-lightbox-close svg.lucide { width: 20px; height: 20px; }
.guide-lightbox-hint { position: absolute; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); margin: 0; text-align: center; color: rgba(255, 255, 255, .75); font-size: 12.5px; pointer-events: none; }
.guide-steps li a { cursor: zoom-in; }
