/* ==========================================================================
   双小程序 H5 演示（wx.css）
   两件事：
   1) /wx 入口页 —— 深色底 + 两张大卡，投屏时看得清
   2) /wx/admin、/wx/customer/* —— 小程序外壳：状态栏 + 导航栏 + 内容 + TabBar
   电脑上是一个 375×812 的手机，手机上（<720px）自动脱掉外框全屏。
   不依赖 app.css / ui.css，独立一份，避免和后台主题互相污染。
   ========================================================================== */

:root {
    --wx-ink: #10161f;
    --wx-ink-2: #3c4757;
    --wx-muted: #7b8797;
    --wx-line: #e6ebf1;
    --wx-line-soft: #f0f3f7;
    --wx-panel: #ffffff;
    --wx-bg: #f4f6f9;
    --wx-accent: #e04a2f;
    --wx-accent-soft: #fdeeea;
    --wx-green: #0f8a63;
    --wx-green-soft: #e8f6f1;
    --wx-blue: #2f6fed;
    --wx-blue-soft: #ecf2fe;
    --wx-amber: #b7791f;
    --wx-amber-soft: #fdf5e6;
    --wx-radius: 14px;
    --wx-shadow: 0 18px 46px rgba(12, 20, 32, .16);
    --wx-font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body.wx-page {
    font-family: var(--wx-font);
    color: var(--wx-ink);
    background:
        radial-gradient(1200px 640px at 50% -10%, #20303f 0%, #10171f 46%, #080c12 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 34px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------------------------------------------------------------- 舞台与外壳 */

.wx-stage {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.wx-device {
    position: relative;
    width: 375px;
    height: min(812px, calc(100dvh - 130px));
    min-height: 520px;
    background: var(--wx-panel);
    border-radius: 42px;
    border: 9px solid #05080d;
    box-shadow:
        0 0 0 2px #2c3542,
        0 30px 70px rgba(0, 0, 0, .55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
}

.wx-stage-hint {
    margin: 0;
    font-size: 12.5px;
    color: #7d8b9c;
    letter-spacing: .01em;
}
.wx-stage-hint a { color: #9fc7ff; border-bottom: 1px solid rgba(159, 199, 255, .35); }

/* 状态栏 */
.wx-status {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 22px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--wx-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    background: var(--wx-panel);
}
.wx-status-ico { display: inline-flex; align-items: center; gap: 5px; color: var(--wx-ink); }

/* 小程序导航栏 */
.wx-nav {
    flex: 0 0 auto;
    position: relative;
    height: 46px;
    display: grid;
    grid-template-columns: 46px 1fr 92px;
    align-items: center;
    padding: 0 10px;
    background: var(--wx-panel);
    border-bottom: 1px solid var(--wx-line-soft);
}
.wx-nav h1 {
    margin: 0;
    font-size: 16.5px;
    font-weight: 700;
    text-align: center;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wx-nav-back {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    font-size: 25px; line-height: 1;
    color: var(--wx-ink);
    border-radius: 50%;
}
.wx-nav-back:active { background: var(--wx-line-soft); }

.wx-capsule {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 2px;
    border: 1px solid var(--wx-line);
    border-radius: 15px;
    background: #fbfcfd;
    font-size: 11px;
    color: var(--wx-ink-2);
}
.wx-capsule i {
    font-style: normal;
    display: grid; place-items: center;
    width: 34px; height: 26px;
    border-radius: 13px;
}
.wx-capsule .wx-capsule-dot { width: 30px; border-left: 1px solid var(--wx-line); }

/* 内容区 */
.wx-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--wx-bg);
    padding-bottom: 0;
}
.wx-body.is-flush { padding: 0; background: #fff; overflow: hidden; }

/* TabBar */
.wx-tabs {
    flex: 0 0 auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    border-top: 1px solid var(--wx-line);
    background: #fff;
    padding-bottom: 4px;
}
.wx-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 0 5px;
    font-size: 10.5px;
    color: var(--wx-muted);
}
.wx-tab-ico { font-size: 17px; line-height: 1.1; }
.wx-tab.is-on { color: var(--wx-accent); font-weight: 700; }

.wx-home-bar {
    flex: 0 0 auto;
    height: 5px;
    display: block;
    background: #fff;
}
.wx-home-bar::after {
    content: "";
    display: block;
    width: 116px; height: 4px;
    margin: 0 auto;
    border-radius: 3px;
    background: #11161d;
    opacity: .82;
}

/* ---------------------------------------------------------------- 内容通用 */

.wx-inner { padding: 12px 14px 18px; }

.wx-sec { margin: 16px 0 0; }
.wx-sec.is-first { margin-top: 6px; }
.wx-sec > h3 {
    margin: 0 0 9px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.wx-sec > h3 em {
    font-style: normal;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--wx-muted);
}

.wx-price { color: var(--wx-accent); font-weight: 800; }
.wx-price i { font-style: normal; font-size: .72em; font-weight: 700; margin-left: 1px; }

.wx-note {
    margin: 9px 0 0;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--wx-ink-2);
    background: #fff;
    border: 1px solid var(--wx-line);
    border-radius: 10px;
    padding: 10px 11px;
}
.wx-note-muted { background: transparent; border: 0; padding: 0; color: var(--wx-muted); }

/* 搜索 */
.wx-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--wx-line);
    border-radius: 999px;
    padding: 0 4px 0 14px;
    height: 42px;
    box-shadow: 0 2px 8px rgba(16, 22, 31, .04);
}
.wx-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}
.wx-search input::placeholder { color: #a7b2c0; }
.wx-search button {
    flex: 0 0 auto;
    width: 36px; height: 34px;
    border: 0;
    border-radius: 999px;
    background: var(--wx-ink);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* 筛选 chips */
.wx-filters { margin-top: 10px; }
.wx-chip-row {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.wx-chip-row::-webkit-scrollbar { display: none; }
.wx-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--wx-line);
    font-size: 12.5px;
    color: var(--wx-ink-2);
    white-space: nowrap;
}
.wx-chip i {
    font-style: normal;
    font-size: 10.5px;
    color: var(--wx-muted);
    background: var(--wx-line-soft);
    border-radius: 999px;
    padding: 1px 5px;
}
.wx-chip.is-on {
    background: var(--wx-ink);
    border-color: var(--wx-ink);
    color: #fff;
    font-weight: 600;
}
.wx-chip.is-on i { background: rgba(255, 255, 255, .18); color: #fff; }

/* 统计条 + 排序 */
.wx-bar {
    margin: 8px 0 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--wx-muted);
}
.wx-bar b { color: var(--wx-ink); font-size: 13px; }
.wx-sort-form select {
    border: 0;
    background: transparent;
    font-size: 12px;
    color: var(--wx-ink-2);
    padding: 2px 0;
    outline: 0;
}

/* 车源卡片 */
.wx-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

.wx-car {
    display: flex;
    gap: 11px;
    background: #fff;
    border: 1px solid var(--wx-line);
    border-radius: var(--wx-radius);
    padding: 10px;
    box-shadow: 0 2px 10px rgba(16, 22, 31, .035);
}
.wx-car:active { transform: scale(.995); }

.wx-car-img, .wx-mini-img, .wx-same-img, .wx-lead-img {
    position: relative;
    flex: 0 0 auto;
    width: 104px;
    height: 78px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2f7, #e2e8f0);
    display: grid;
    place-items: center;
}
.wx-car-img img, .wx-mini-img img, .wx-same-img img, .wx-lead-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.wx-car-ph {
    font-size: 24px;
    font-weight: 800;
    color: #b6c1cf;
    letter-spacing: .02em;
}
.wx-car-store {
    position: absolute;
    left: 5px; bottom: 5px;
    font-style: normal;
    font-size: 9.5px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 5px;
    background: rgba(8, 12, 18, .62);
    color: #fff;
    backdrop-filter: blur(2px);
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 已预订 / 整备中：右下角门店标占位，状态标放右上角，别打架 */
.wx-car-flag {
    position: absolute;
    right: 5px; top: 5px;
    font-style: normal;
    font-size: 9.5px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 5px;
    background: rgba(183, 121, 31, .94);
    color: #fff;
    backdrop-filter: blur(2px);
}
.wx-car-flag.is-repairing { background: rgba(51, 78, 104, .92); }

.wx-car-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wx-car-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wx-car-sub { font-size: 11.5px; color: var(--wx-muted); }
.wx-car-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.wx-car-tags i {
    font-style: normal;
    font-size: 10px;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 4px;
    background: var(--wx-line-soft);
    color: var(--wx-ink-2);
}
.wx-car-foot {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.wx-price { font-size: 16px; }
.wx-car-more { font-size: 11px; color: var(--wx-muted); }

.wx-more {
    display: block;
    margin: 12px 0 4px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 999px;
    border: 1px solid var(--wx-line);
    background: #fff;
    font-size: 13px;
    color: var(--wx-ink-2);
    font-weight: 600;
}
.wx-more.is-loading { opacity: .55; pointer-events: none; }
.wx-end {
    margin: 14px 0 6px;
    text-align: center;
    font-size: 11.5px;
    color: #a2aebb;
}

/* 空状态 */
.wx-empty {
    margin: 22px 0;
    text-align: center;
    padding: 26px 18px;
    background: #fff;
    border: 1px solid var(--wx-line);
    border-radius: var(--wx-radius);
}
.wx-empty.is-soft { margin: 0; padding: 18px 14px; }
.wx-empty.is-tall { margin-top: 40px; }
.wx-empty-ico { margin: 0 0 6px; font-size: 26px; color: #c3ccd8; }
.wx-empty b { display: block; font-size: 14px; }
.wx-empty p { margin: 6px 0 12px; font-size: 12.5px; color: var(--wx-muted); line-height: 1.7; }

/* 按钮 */
.wx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--wx-line);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--wx-ink);
    cursor: pointer;
}
.wx-btn.is-primary {
    background: var(--wx-accent);
    border-color: var(--wx-accent);
    color: #fff;
    box-shadow: 0 8px 18px rgba(224, 74, 47, .25);
}
.wx-btn:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- 车辆详情 */

.wx-gallery { position: relative; background: #0d1219; }
.wx-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.wx-gallery-track::-webkit-scrollbar { display: none; }
.wx-gallery-slide {
    position: relative;
    flex: 0 0 100%;
    margin: 0;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1b232e, #0f151c);
}
.wx-gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.wx-gallery-slide.is-ph .wx-car-ph { font-size: 46px; color: #33404f; }
.wx-gallery-slide figcaption {
    position: absolute;
    left: 12px; bottom: 12px;
    max-width: 80%;
    font-size: 11px;
    color: #fff;
    background: rgba(8, 12, 18, .55);
    border-radius: 6px;
    padding: 4px 8px;
    backdrop-filter: blur(3px);
}
.wx-gallery-dots {
    position: absolute;
    left: 0; right: 0; bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.wx-gallery-dots i {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    transition: width .2s ease, background .2s ease;
}
.wx-gallery-dots i.is-on { width: 14px; border-radius: 3px; background: #fff; }
.wx-gallery-code {
    position: absolute;
    right: 10px; top: 10px;
    font-size: 10.5px;
    color: #fff;
    background: rgba(8, 12, 18, .55);
    padding: 4px 8px;
    border-radius: 6px;
    backdrop-filter: blur(3px);
}

.wx-detail { padding-top: 12px; }
.wx-price-block {
    display: flex;
    align-items: baseline;
    gap: 9px;
    padding: 12px 13px;
    border-radius: var(--wx-radius);
    background: linear-gradient(135deg, #fff4f1, #fff);
    border: 1px solid #f7d9d2;
}
.wx-price-lg { font-size: 27px; font-weight: 800; color: var(--wx-accent); line-height: 1; }
.wx-price-lg i { font-style: normal; font-size: 13px; font-weight: 700; margin-left: 2px; }
.wx-price-block span { font-size: 11.5px; color: #a3746a; }

.wx-detail-title {
    margin: 12px 0 4px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 800;
}
.wx-detail-sub { margin: 0; font-size: 12.5px; color: var(--wx-muted); }

.wx-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wx-tag-row i {
    font-style: normal;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--wx-line-soft);
    color: var(--wx-ink-2);
}
.wx-tag-row i.is-good { background: var(--wx-green-soft); color: var(--wx-green); }
.wx-tag-row i.is-bad { background: var(--wx-accent-soft); color: var(--wx-accent); }

.wx-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--wx-line);
    border: 1px solid var(--wx-line);
    border-radius: var(--wx-radius);
    overflow: hidden;
}
.wx-spec {
    background: #fff;
    padding: 9px 11px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.wx-spec span { font-size: 11.5px; color: var(--wx-muted); }
.wx-spec b { font-size: 12.5px; font-weight: 700; }

.wx-scores {
    display: flex;
    flex-direction: column;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--wx-line);
    border-radius: var(--wx-radius);
    padding: 12px 13px;
}
.wx-score { display: grid; grid-template-columns: 82px 1fr 26px; align-items: center; gap: 9px; }
.wx-score span { font-size: 11.5px; color: var(--wx-ink-2); }
.wx-score b { font-size: 12.5px; text-align: right; }
.wx-score-bar { display: block; height: 6px; border-radius: 3px; background: var(--wx-line-soft); overflow: hidden; }
.wx-score-bar i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #6ec6a8, var(--wx-green));
}

.wx-store {
    background: #fff;
    border: 1px solid var(--wx-line);
    border-radius: var(--wx-radius);
    padding: 12px 13px;
}
.wx-store b { font-size: 13.5px; }
.wx-store p { margin: 5px 0 0; font-size: 12.5px; color: var(--wx-ink-2); line-height: 1.65; }

.wx-same { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.wx-same::-webkit-scrollbar { display: none; }
.wx-same-item {
    flex: 0 0 132px;
    background: #fff;
    border: 1px solid var(--wx-line);
    border-radius: 12px;
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.wx-same-img { width: 100%; height: 76px; border-radius: 8px; }
.wx-same-item b { font-size: 12px; line-height: 1.35; }
.wx-same-sub { font-size: 10.5px; color: var(--wx-muted); }

/* 详情底部操作条：贴在小程序内容区底部，不占滚动位 */
.wx-actbar {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--wx-line);
    backdrop-filter: blur(8px);
}
.wx-act-ghost, .wx-act {
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.wx-act-ghost {
    flex: 0 0 62px;
    border: 1px solid var(--wx-line);
    background: #fff;
    color: var(--wx-ink-2);
}
.wx-act { flex: 1 1 0; border: 1px solid var(--wx-ink); background: #fff; color: var(--wx-ink); }
.wx-act.is-main {
    background: var(--wx-accent);
    border-color: var(--wx-accent);
    color: #fff;
    box-shadow: 0 8px 18px rgba(224, 74, 47, .25);
}

/* ---------------------------------------------------------------- 表单 */

.wx-mini-car {
    display: flex;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--wx-line);
    border-radius: var(--wx-radius);
    padding: 9px;
}
.wx-mini-img { width: 88px; height: 66px; }
.wx-mini-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wx-mini-body b { font-size: 13px; line-height: 1.35; }
.wx-mini-body span { font-size: 11.5px; color: var(--wx-muted); }

.wx-form-title { margin: 18px 0 5px; font-size: 17px; font-weight: 800; }
.wx-form-lead { margin: 0 0 14px; font-size: 12.5px; line-height: 1.7; color: var(--wx-muted); }

.wx-form { display: flex; flex-direction: column; gap: 11px; }
.wx-field { display: flex; flex-direction: column; gap: 6px; }
.wx-field > span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--wx-ink-2);
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.wx-field > span em { font-style: normal; font-weight: 400; font-size: 11px; color: #a2aebb; }
.wx-field input, .wx-field select, .wx-field textarea {
    width: 100%;
    border: 1px solid var(--wx-line);
    border-radius: 11px;
    background: #fff;
    padding: 11px 12px;
    font-size: 14px;
    outline: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wx-field textarea { resize: vertical; min-height: 66px; line-height: 1.6; }
.wx-field input:focus, .wx-field select:focus, .wx-field textarea:focus {
    border-color: var(--wx-ink);
    box-shadow: 0 0 0 3px rgba(16, 22, 31, .06);
}
.wx-field input::placeholder, .wx-field textarea::placeholder { color: #aab5c2; }
.wx-form .wx-btn { margin-top: 4px; height: 46px; font-size: 15px; }
.wx-form-tip { margin: 0; font-size: 11px; line-height: 1.65; color: #a2aebb; text-align: center; }

.wx-alert {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--wx-accent-soft);
    border: 1px solid #f6ccc2;
    color: #b4321c;
    font-size: 12.5px;
    line-height: 1.6;
}

/* 状态提示用中性琥珀，别跟报错红混在一起 */
.wx-alert.is-info {
    background: var(--wx-amber-soft);
    border-color: #f0dfbc;
    color: #8a6119;
}
.wx-flag {
    margin: 8px 0 0;
    padding: 9px 12px;
    border-radius: 9px;
    background: var(--wx-amber-soft);
    border: 1px solid #f0dfbc;
    color: #8a6119;
    font-size: 12px;
    line-height: 1.6;
}

/* ---------------------------------------------------------------- 我的 */

.wx-done {
    margin: 4px 0 14px;
    padding: 16px 14px;
    border-radius: var(--wx-radius);
    background: var(--wx-green-soft);
    border: 1px solid #c9e9dd;
    text-align: center;
}
.wx-done-ico {
    display: inline-grid;
    place-items: center;
    width: 34px; height: 34px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--wx-green);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.wx-done b { display: block; font-size: 14px; color: #0b6b4c; }
.wx-done p { margin: 5px 0 0; font-size: 12px; color: #39796a; line-height: 1.65; }
.wx-done.is-warn { background: #fff6e6; border-color: #f3ddb4; }
.wx-done.is-warn b { color: #8a5b00; }

.wx-demo-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 12px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #eef4ff;
    border: 1px solid #d4e2fb;
    font-size: 11.5px;
    line-height: 1.6;
    color: #2c4f8a;
}
.wx-demo-bar span { flex: 1; }
.wx-demo-bar i {
    display: inline-block;
    margin-right: 5px;
    padding: 1px 5px;
    border-radius: 4px;
    background: #2c6ef2;
    color: #fff;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
}
.wx-demo-bar form { margin: 0; flex: 0 0 auto; }
.wx-demo-bar button {
    border: 1px solid #b9d0f7;
    background: #fff;
    color: #2c4f8a;
    font-size: 11.5px;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.wx-demo-invite {
    margin: 4px 0 14px;
    padding: 14px 14px 12px;
    border-radius: var(--wx-radius);
    background: #f7f9fd;
    border: 1px dashed #c8d8f2;
}
.wx-demo-invite b { display: block; font-size: 13.5px; color: var(--wx-ink); }
.wx-demo-invite p { margin: 5px 0 10px; font-size: 11.5px; line-height: 1.65; color: var(--wx-muted); }
.wx-demo-invite form { margin: 0; }
.wx-demo-invite .wx-btn { width: 100%; }
.wx-demo-mini { margin: 10px 0 0; }
.wx-demo-mini .wx-btn { width: 100%; }

.wx-repair {
    background: #fff;
    border: 1px solid var(--wx-line);
    border-left: 3px solid #d8dee9;
    border-radius: var(--wx-radius);
    padding: 12px 13px;
    margin-bottom: 10px;
}
.wx-repair.is-blue { border-left-color: #2c6ef2; }
.wx-repair.is-purple { border-left-color: #7b5cd6; }
.wx-repair.is-green { border-left-color: #12a06a; }
.wx-repair.is-amber { border-left-color: #e0a419; }
.wx-repair-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wx-repair-head b { font-size: 13px; letter-spacing: .2px; color: var(--wx-ink); }
.wx-repair-car { margin: 6px 0 0; font-size: 14.5px; font-weight: 600; color: var(--wx-ink); }
.wx-repair-car em {
    margin-left: 6px;
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    color: var(--wx-muted);
    border: 1px solid var(--wx-line);
    border-radius: 4px;
    padding: 0 4px;
}
.wx-repair-tag {
    margin-left: 6px;
    font-style: normal;
    font-size: 10.5px;
    padding: 1px 5px;
    border-radius: 4px;
    background: #eaf6f0;
    color: #0b6b4c;
}
.wx-repair-meta { margin: 5px 0 0; font-size: 11.5px; color: var(--wx-muted); line-height: 1.6; }
.wx-repair-note { margin: 7px 0 0; font-size: 11.5px; color: #55637a; line-height: 1.6; }

.wx-steps {
    display: flex;
    align-items: flex-start;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}
.wx-steps li {
    flex: 1;
    position: relative;
    text-align: center;
    font-size: 10.5px;
    color: #9aa4b6;
}
.wx-steps li i {
    display: block;
    width: 9px; height: 9px;
    margin: 0 auto 5px;
    border-radius: 50%;
    background: #dfe4ec;
    position: relative;
    z-index: 1;
}
.wx-steps li::before {
    content: '';
    position: absolute;
    top: 4px; left: 0;
    width: 100%;
    height: 1px;
    background: #dfe4ec;
}
.wx-steps li:first-child::before { left: 50%; width: 50%; }
.wx-steps li:last-child::before { width: 50%; }
.wx-steps li.is-done i { background: #12a06a; }
.wx-steps li.is-done::before { background: #12a06a; }
.wx-steps li.is-done { color: #0b6b4c; }
.wx-steps li.is-now i { background: #2c6ef2; box-shadow: 0 0 0 3px #dfe9fc; }
.wx-steps li.is-now { color: #2c4f8a; font-weight: 600; }

.wx-repair-money {
    display: flex;
    gap: 14px;
    margin: 9px 0 0;
    font-size: 11.5px;
    color: var(--wx-muted);
}
.wx-repair-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 0;
    padding-top: 8px;
    border-top: 1px dashed var(--wx-line);
}
.wx-repair-total b { font-size: 15px; color: var(--wx-ink); }
.wx-repair-total em { font-style: normal; font-size: 11.5px; color: #b4520a; }
.wx-repair-total em.is-clear { color: #0b6b4c; }
.wx-repair-store { font-size: 11px; color: var(--wx-muted); }

.wx-sec { position: relative; }
.wx-sec-more {
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 11.5px;
    color: #2c6ef2;
    text-decoration: none;
}

.wx-service-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 14px 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eef4ff;
    border: 1px solid #d4e2fb;
    text-decoration: none;
    color: #2c4f8a;
    font-size: 11.5px;
}
.wx-service-track b { font-size: 12px; }

.wx-appt {
    background: #fff;
    border: 1px solid var(--wx-line);
    border-radius: var(--wx-radius);
    padding: 12px 13px;
    margin-bottom: 9px;
}
.wx-appt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wx-appt-head b { font-size: 14.5px; }
.wx-badge {
    font-size: 10.5px;
    padding: 3px 7px;
    border-radius: 5px;
    font-weight: 600;
}
.wx-badge.is-amber { background: var(--wx-amber-soft); color: var(--wx-amber); }
.wx-badge.is-blue { background: var(--wx-blue-soft); color: var(--wx-blue); }
.wx-badge.is-green { background: var(--wx-green-soft); color: var(--wx-green); }
.wx-badge.is-gray { background: var(--wx-line-soft); color: var(--wx-muted); }
.wx-appt-car { margin: 7px 0 0; font-size: 13px; font-weight: 600; }
.wx-appt-car em { font-style: normal; font-weight: 400; color: var(--wx-muted); font-size: 11.5px; margin-left: 5px; }
.wx-appt-store { margin: 4px 0 0; font-size: 11.5px; color: var(--wx-muted); line-height: 1.6; }
.wx-appt-note { margin: 5px 0 0; font-size: 11.5px; color: var(--wx-ink-2); background: var(--wx-line-soft); border-radius: 7px; padding: 6px 8px; }
.wx-appt-tel {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--wx-blue);
}

.wx-appt-acts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.wx-appt-acts .wx-appt-tel { margin-top: 0; }
.wx-appt-acts form { margin: 0; }
.wx-appt-cancel {
    border: 1px solid var(--wx-line);
    background: #fff;
    color: var(--wx-muted);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
}
.wx-appt-cancel:active { background: var(--wx-line-soft); }

.wx-lead {
    display: flex;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--wx-line);
    border-radius: var(--wx-radius);
    padding: 9px;
    margin-bottom: 8px;
}
.wx-lead-img { width: 78px; height: 62px; }
.wx-lead-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wx-lead-body b { font-size: 12.5px; line-height: 1.35; }
.wx-lead-body span { font-size: 11px; color: var(--wx-muted); }
.wx-lead-status { color: var(--wx-blue) !important; font-weight: 600; }

.wx-help {
    margin: 18px 0 8px;
    padding: 15px 14px;
    border-radius: var(--wx-radius);
    background: #fff;
    border: 1px solid var(--wx-line);
    text-align: center;
}
.wx-help b { display: block; font-size: 13.5px; margin-bottom: 10px; }
.wx-help .wx-btn { width: 100%; }
.wx-help .wx-form-tip { margin-top: 10px; }

/* ---------------------------------------------------------------- 管理方 iframe */

.wx-frame-wrap { display: flex; flex-direction: column; height: 100%; background: #fff; }

/* 演示身份切换：只在 demo 环境出现，横排可滚动，不挤占 iframe 高度 */
.wx-roles {
    flex: 0 0 auto;
    background: #f7f9fb;
    border-bottom: 1px solid var(--wx-line-soft);
    padding: 7px 9px 8px;
}
.wx-roles-hd { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.wx-roles-hd b { font-size: 10.5px; letter-spacing: .04em; color: var(--wx-ink); }
.wx-roles-hd small { font-size: 9.5px; color: var(--wx-muted); }
.wx-roles-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.wx-roles-row form { margin: 0; flex: 0 0 auto; }
.wx-role {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid #d9e1e9;
    background: #fff;
    color: #2a3a4a;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}
.wx-role em {
    font-style: normal;
    font-weight: 500;
    font-size: 9px;
    color: var(--wx-muted);
}
.wx-role:hover { border-color: var(--wx-accent); color: var(--wx-accent); }
.wx-role.is-on {
    background: var(--wx-ink);
    border-color: var(--wx-ink);
    color: #fff;
    padding: 0 10px;
    height: 26px;
    line-height: 26px;
}
.wx-role.is-on em { color: rgba(255, 255, 255, .68); }
.wx-role.is-back { border-style: dashed; color: var(--wx-muted); }

.wx-flash {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 11px;
    line-height: 1.5;
    border-bottom: 1px solid var(--wx-line-soft);
}
.wx-flash.is-ok { background: #eef8f2; color: #1c6b45; }
.wx-flash.is-err { background: #fdf1ee; color: #a92c17; }
.wx-frame-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--wx-line-soft);
    font-size: 11px;
    color: var(--wx-muted);
}
.wx-frame-chip {
    flex: 0 0 auto;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--wx-ink);
    color: #fff;
}
.wx-frame-user { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-frame-open { flex: 0 0 auto; color: var(--wx-blue); border-bottom: 1px solid rgba(47, 111, 237, .3); }
.wx-frame { flex: 1 1 auto; width: 100%; border: 0; background: #fff; }

/* ---------------------------------------------------------------- 入口页 */

body.wx-entry {
    font-family: var(--wx-font);
    margin: 0;
    color: #e8edf5;
    background:
        radial-gradient(900px 520px at 12% 0%, #1d3448 0%, transparent 62%),
        radial-gradient(900px 520px at 88% 6%, #2a2333 0%, transparent 58%),
        #0a0e14;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
body.wx-entry a { color: inherit; text-decoration: none; }

.we-top {
    max-width: 1080px;
    margin: 0 auto;
    padding: 22px 22px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.we-brand { display: flex; align-items: center; gap: 10px; }
.we-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #2b6b5c, #16443a);
    color: #eafaf4;
    font-weight: 800;
    font-size: 17px;
}
.we-brand b { display: block; font-size: 14.5px; }
.we-brand em { display: block; font-style: normal; font-size: 11px; color: #7f8fa3; letter-spacing: .04em; }
.we-links { display: flex; gap: 16px; font-size: 12.5px; color: #93a3b7; }
.we-links a:hover { color: #fff; }

.we-main { max-width: 1080px; margin: 0 auto; padding: 10px 22px 40px; }

.we-hero { padding: 26px 0 22px; max-width: 720px; }
.we-kicker {
    margin: 0 0 10px;
    font-size: 11.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #6f8298;
}
.we-hero h1 {
    margin: 0;
    font-size: clamp(28px, 4.4vw, 44px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -.01em;
}
.we-lead {
    margin: 14px 0 0;
    font-size: 14.5px;
    line-height: 1.8;
    color: #a8b6c6;
    max-width: 640px;
}
.we-facts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 12.5px; color: #7f8fa3; }
.we-facts b { color: #fff; font-size: 17px; margin-right: 4px; font-weight: 800; }

.we-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}
.we-card {
    border-radius: 18px;
    padding: 20px 20px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    flex-direction: column;
}
.we-card.is-admin { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 18px 40px rgba(0, 0, 0, .3); }
.we-card.is-customer { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 18px 40px rgba(0, 0, 0, .3); border-color: rgba(224, 74, 47, .3); }
.we-tag {
    display: inline-block;
    font-size: 10.5px;
    letter-spacing: .1em;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .1);
    color: #cfdae6;
    margin-bottom: 10px;
}
.we-card.is-customer .we-tag { background: rgba(224, 74, 47, .18); color: #ffb9ab; }
/* 独立手机 App：横跨整行，说明这是「入口形态」而不是又一个业务端 */
.we-card.is-app { grid-column: 1 / -1; border-color: rgba(20, 184, 166, .32); }
.we-card.is-app .we-tag { background: rgba(20, 184, 166, .18); color: #7fe3d4; }
.we-card.is-app .we-list li::before { background: #14b8a6; }
.we-card.is-app .we-go {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #041412;
    box-shadow: 0 10px 24px rgba(20, 184, 166, .26);
}
.we-card h2 { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 700; }
.we-card > p { margin: 10px 0 0; font-size: 13px; line-height: 1.8; color: #9dacbd; }
.we-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.we-list li { position: relative; padding-left: 14px; font-size: 12.5px; color: #b6c3d2; line-height: 1.6; }
.we-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #4e8f7c;
}
.we-card.is-customer .we-list li::before { background: #e04a2f; }
.we-go {
    margin-top: 18px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    background: #fff;
    color: #10161f;
}
.we-card.is-customer .we-go { background: var(--wx-accent); color: #fff; box-shadow: 0 10px 24px rgba(224, 74, 47, .3); }
.we-go span { font-weight: 400; }
.we-qr-cta .we-go-2 {
    margin-top: 8px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #cfdae6;
    font-weight: 600;
}
.we-qr-cta .we-go-2:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.we-note { margin: 9px 0 0; font-size: 11px; line-height: 1.65; color: #7b8b9d; }

.we-brands, .we-how { margin-top: 32px; }
.we-brands h3, .we-how h3 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #cfdae6;
}
.we-brand-row { display: flex; flex-wrap: wrap; gap: 8px; }
.we-brand-row a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    font-size: 12.5px;
    color: #c3d0de;
}
.we-brand-row a:hover { background: rgba(255, 255, 255, .1); }
.we-brand-row i { font-style: normal; font-size: 10.5px; color: #8899ab; }

.we-how ol {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    line-height: 1.75;
    color: #a8b6c6;
}
.we-how ol li::marker { color: #e04a2f; font-weight: 700; }
.we-how b { color: #e8edf5; }

.we-foot {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 22px 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    font-size: 11.5px;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, .07);
}
.we-foot a { color: #93a3b7; border-bottom: 1px solid rgba(147, 163, 183, .3); }

/* ---------------------------------------------------------------- 现场扫码页 */

.qr-main { padding-bottom: 54px; }
.qr-hero { max-width: 760px; padding-bottom: 4px; }
.qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.qr-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px 18px;
    border-radius: 18px;
    background: #fff;
    color: #101820;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
}
.qr-card.is-customer { border: 1px solid rgba(224, 74, 47, .26); }
.qr-card .we-tag { background: #eef2f6; color: #33465a; margin-bottom: 0; }
.qr-card.is-customer .we-tag { background: #fdece8; color: #b0361c; }
.qr-box { width: 100%; display: flex; justify-content: center; padding: 12px 0 4px; }
.qr-box svg { width: min(232px, 74%); height: auto; display: block; }
.qr-card h2 { margin: 6px 0 0; font-size: 17.5px; line-height: 1.4; color: #101820; }
.qr-card.is-customer h2 { color: #b0361c; }
.qr-sub { margin: 6px 0 0; font-size: 12.5px; color: #5c6b7c; }
.qr-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.qr-list li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.7; color: #324050; }
.qr-list li::before {
    content: ""; position: absolute; left: 0; top: 9px;
    width: 6px; height: 6px; border-radius: 50%; background: #12a48a;
}
.qr-card.is-customer .qr-list li::before { background: #e04a2f; }
.qr-url { margin: 14px 0 0; font-size: 11.5px; line-height: 1.7; color: #6b7a8b; }
.qr-warn {
    margin: 16px 0 0; padding: 10px 13px; border-radius: 10px;
    font-size: 12.5px; line-height: 1.7; color: #ffcdc2;
    background: rgba(224, 74, 47, .12); border: 1px solid rgba(224, 74, 47, .3);
}
.qr-tip { margin: 16px 0 0; font-size: 12.5px; line-height: 1.85; color: #93a3b7; }
.qr-tip b { color: #d7e2ee; font-weight: 600; }
.qr-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qr-print {
    height: 44px; padding: 0 22px; border: 0; border-radius: 11px;
    font: inherit; font-size: 14px; font-weight: 700;
    background: #fff; color: #10161f; cursor: pointer;
}
.qr-print:hover { background: #e8eef5; }
.qr-actions .we-go { margin-top: 0; padding: 0 20px; background: rgba(255, 255, 255, .08); color: #dbe6f0; border: 1px solid rgba(255, 255, 255, .18); }

/* /wx 入口页底部的扫码入口 */
.we-qr-cta .we-go { max-width: 300px; margin-top: 14px; }

@media (max-width: 720px) {
    .qr-grid { grid-template-columns: 1fr; gap: 14px; }
    .qr-box svg { width: min(220px, 62%); }
}

/* ---------------------------------------------------------------- 展台立牌（A4） */
/* 单位统一用 mm：屏幕上就是一张 210×297 的白纸预览，打印 1:1 单页 */
.qr-toolbar {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
    max-width: 210mm; margin: 8px auto 0;
    padding: 12px 14px; border-radius: 12px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.qr-toolbar-txt { flex: 1 1 320px; min-width: 0; }
.qr-toolbar-txt b { display: block; font-size: 13.5px; color: #eaf1f8; }
.qr-toolbar-txt span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.7; color: #9fb0c2; }
.qr-toolbar-act { display: flex; align-items: center; gap: 10px; }
.qr-link { font-size: 12.5px; color: #cbd8e5; padding: 0 10px; }
.qr-link:hover { color: #fff; text-decoration: underline; }

.qr-main { display: block; }

.qr-stand {
    position: relative;
    width: 210mm; min-height: 297mm;
    margin: 20px auto 44px;
    padding: 15mm 13mm 11mm;
    display: flex; flex-direction: column; gap: 6.5mm;
    background: #fff; color: #10161f;
    border-radius: 4px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .52);
    overflow: hidden;
}
.qr-stand::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2.6mm;
    background: linear-gradient(90deg, #16443a 0%, #2b6b5c 40%, #e04a2f 100%);
}

.qs-brand { display: flex; align-items: center; gap: 4mm; padding-top: 1.5mm; }
.qs-mark {
    width: 13mm; height: 13mm; border-radius: 3mm;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #2b6b5c, #16443a);
    color: #eafaf4; font-weight: 800; font-size: 19pt; line-height: 1;
}
.qs-brand-txt b { display: block; font-size: 15pt; letter-spacing: .5px; line-height: 1.2; }
.qs-brand-txt em {
    display: block; margin-top: 1.4mm;
    font-style: normal; font-size: 8pt; color: #5c6b7c; letter-spacing: .5px;
}
.qs-sys { margin-left: auto; text-align: right; font-size: 7.6pt; line-height: 1.55; color: #41505f; }
.qs-sys span { font-size: 6.9pt; color: #93a3b7; }

.qs-head h1 {
    margin: 0; font-size: 23pt; line-height: 1.18;
    letter-spacing: .5px; color: #0d1a26;
}
.qs-head p { margin: 2.6mm 0 0; max-width: 152mm; font-size: 9pt; line-height: 1.75; color: #41505f; }

.qs-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
.qs-code {
    position: relative;
    padding: 4.5mm 4mm 4mm;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    border: .35mm solid #dde5ec; border-radius: 4mm;
    background: #fbfcfd;
}
.qs-code.is-customer {
    border-color: rgba(224, 74, 47, .34);
    background: linear-gradient(180deg, #fff7f4 0%, #ffffff 46%);
}
.qs-no {
    position: absolute; top: 3.6mm; left: 4mm;
    font-size: 6.8pt; letter-spacing: 1.2px; color: #8090a0;
}
.qs-code.is-customer .qs-no { color: #b0361c; }
.qs-qr { width: 58mm; height: 58mm; margin: 2.5mm 0 1.5mm; display: grid; place-items: center; }
.qs-qr svg { display: block; width: 100%; height: 100%; }
.qs-code h2 { margin: 0; font-size: 12.5pt; line-height: 1.3; color: #10202e; }
.qs-code.is-customer h2 { color: #b0361c; }
.qs-sub { margin: 2mm 0 0; font-size: 8pt; line-height: 1.6; color: #41505f; }
.qs-note { margin: 2.4mm 0 0; font-size: 7.4pt; color: #7b8797; }

.qs-steps { border-top: .3mm dashed #d7e0e8; padding-top: 4.5mm; }
.qs-steps h3 { margin: 0 0 3.4mm; font-size: 9.4pt; letter-spacing: .6px; color: #33465a; }
.qs-steps ol {
    margin: 0; padding: 0; list-style: none;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5mm;
    counter-reset: qs;
}
.qs-steps li { position: relative; padding-left: 8.6mm; counter-increment: qs; }
.qs-steps li::before {
    content: counter(qs);
    position: absolute; left: 0; top: -.2mm;
    width: 6mm; height: 6mm; border-radius: 50%;
    display: grid; place-items: center;
    background: #16443a; color: #fff; font-size: 7.4pt; font-weight: 700;
}
.qs-steps li b { display: block; font-size: 8.8pt; color: #10202e; }
.qs-steps li span { display: block; margin-top: 1.2mm; font-size: 7.7pt; line-height: 1.6; color: #5c6b7c; }

.qs-foot {
    margin-top: auto; padding-top: 4.5mm;
    border-top: .3mm solid #e4ebf1;
    display: flex; align-items: flex-end; gap: 6mm;
}
.qs-hot span { display: block; font-size: 7.2pt; letter-spacing: 1.2px; color: #8090a0; }
.qs-hot b { display: block; margin-top: .8mm; font-size: 15.5pt; letter-spacing: .6px; color: #16443a; }
.qs-hot em { display: block; margin-top: .6mm; font-style: normal; font-size: 7.2pt; color: #7b8797; }
.qs-meta { margin-left: auto; text-align: right; font-size: 6.9pt; line-height: 1.75; color: #8090a0; }
.qs-meta span { display: block; }
.qs-meta span + span { margin-top: .6mm; }
.qs-meta b { color: #41505f; font-weight: 600; }
.qs-meta a { color: #16443a; }

/* 窄屏：整张纸等比缩小预览，不做重排（打印时永远 1:1） */
@media (max-width: 880px) { .qr-stand { zoom: .74; margin: 16px auto 28px; } .qr-toolbar { max-width: 100%; } }
@media (max-width: 660px) { .qr-stand { zoom: .56; } }
@media (max-width: 500px) { .qr-stand { zoom: .46; } }
@media (max-width: 410px) { .qr-stand { zoom: .41; } }

/* 打印成 A4：一张纸一个立牌，页边由纸内 padding 控制，不再加页边距 */
@media print {
    @page { size: A4 portrait; margin: 0; }
    html, body { background: #fff !important; color: #000 !important; }
    .we-top, .we-foot, .qr-toolbar, .qr-warn { display: none !important; }
    .we-main.qr-main { max-width: none; padding: 0 !important; }
    .qr-stand {
        zoom: 1 !important;
        width: 210mm; height: 296.4mm; min-height: 0;
        margin: 0; border-radius: 0; box-shadow: none;
        padding: 15mm 13mm 11mm;
        -webkit-print-color-adjust: exact; print-color-adjust: exact;
    }
    .qs-code, .qs-steps li, .qs-foot { break-inside: avoid; page-break-inside: avoid; }
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 860px) {
    .we-cards { grid-template-columns: 1fr; }
}

/* 手机 / 窄屏：脱掉外框，直接全屏，像一个真小程序 */@media (max-width: 720px) {
    body.wx-page {
        display: block;
        padding: 0;
        background: var(--wx-panel);
        min-height: 100dvh;
    }
    .wx-stage { gap: 0; min-height: 100dvh; }
    .wx-stage-hint { display: none; }
    .wx-device {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .wx-status { display: none; }
    .wx-nav { padding-top: env(safe-area-inset-top, 0px); height: calc(46px + env(safe-area-inset-top, 0px)); }
    .wx-body { padding-bottom: 0; }
    .wx-home-bar { display: none; }
    .wx-tabs { padding-bottom: max(4px, env(safe-area-inset-bottom, 0px)); }

    .we-top { padding: 16px 16px 8px; }
    .we-links { gap: 12px; font-size: 12px; }
    .we-main { padding: 6px 16px 32px; }
    .we-hero { padding: 16px 0 16px; }
    .we-foot { padding: 16px 16px 28px; }
}

@media (max-width: 380px) {
    .wx-car-img, .wx-mini-img { width: 92px; height: 72px; }
    .wx-specs { grid-template-columns: 1fr; }
}

/* 打印：这个页面不用于打印 */
@media print {
    .wx-stage-hint, .we-links, .wx-tabs { display: none !important; }
}

/* ---------------------------------------------------------------- 桌面台卡（A5 横向双面） */
.card-hint {
    max-width: 210mm; margin: 14px auto 0;
    font-size: 12.5px; line-height: 1.7; color: #9fb0c2; text-align: center;
}
.card-face {
    position: relative;
    width: 210mm; height: 148.5mm;
    margin: 18px auto 0;
    padding: 11mm 13mm;
    box-sizing: border-box;
    display: flex; flex-direction: column;
    background: #fff; color: #10161f;
    border-radius: 4px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .48);
    overflow: hidden;
}
.card-face::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2mm;
    background: linear-gradient(90deg, #e04a2f 0%, #2b6b5c 58%, #16443a 100%);
}
.card-face.is-back::before { background: linear-gradient(90deg, #16443a 0%, #2b6b5c 42%, #e04a2f 100%); }
.card-tag {
    position: absolute; top: 4.5mm; right: 13mm;
    font-size: 6.8pt; letter-spacing: .8px; color: #9fb0c2;
}

.cf-brand { display: flex; align-items: center; gap: 3mm; flex: 0 0 auto; padding-top: 1mm; }
.cf-mark {
    width: 8.4mm; height: 8.4mm; border-radius: 2.2mm;
    display: grid; place-items: center; flex: 0 0 auto;
    background: linear-gradient(135deg, #e05a3f, #b0361c);
    color: #fff3ee; font-weight: 800; font-size: 12pt; line-height: 1;
}
.cf-mark.is-green { background: linear-gradient(135deg, #2b6b5c, #16443a); color: #eafaf4; }
.cf-name { display: flex; flex-direction: column; font-size: 10.5pt; font-weight: 700; line-height: 1.22; letter-spacing: .4px; }
.cf-name em { margin-top: .8mm; font-style: normal; font-size: 6.9pt; font-weight: 400; color: #7b8797; letter-spacing: .3px; }
.cf-sys { margin-left: auto; font-size: 6.6pt; color: #9fb0c2; letter-spacing: .3px; }

.cf-body {
    flex: 1 1 auto; min-height: 0;
    display: flex; align-items: center; gap: 8mm;
    padding: 2mm 0;
}
.cf-qr { flex: 0 0 auto; width: 57mm; height: 57mm; }
.cf-qr svg { display: block; width: 100%; height: 100%; }
.cf-copy { flex: 1 1 auto; min-width: 0; }
.cf-kicker { display: block; font-size: 7.8pt; letter-spacing: 1.5px; color: #b0361c; }
.cf-kicker.is-green { color: #2b6b5c; }
.cf-copy h1 { margin: 1mm 0 0; font-size: 19pt; letter-spacing: 1px; color: #0d1a26; line-height: 1.15; }
.cf-copy p { margin: 2mm 0 0; font-size: 8.2pt; line-height: 1.6; color: #41505f; }
.cf-copy ul { margin: 2.4mm 0 0; padding: 0; list-style: none; }
.cf-copy li { position: relative; padding-left: 3.4mm; font-size: 7.6pt; line-height: 1.75; color: #5c6b7c; }
.cf-copy li::before {
    content: ''; position: absolute; left: 0; top: 1.5mm;
    width: 1.3mm; height: 1.3mm; border-radius: 50%; background: #d9e2ea;
}

.cf-foot {
    flex: 0 0 auto;
    display: flex; align-items: baseline; gap: 3mm;
    padding-top: 2.2mm; border-top: .25mm solid #eef2f6;
}
.cf-foot b { font-size: 10.5pt; color: #16443a; letter-spacing: .4px; }
.cf-foot span { font-size: 6.9pt; color: #7b8797; }

@media (max-width: 880px) { .card-face { zoom: .74; margin: 14px auto 0; } .card-hint { max-width: 100%; } }
@media (max-width: 660px) { .card-face { zoom: .56; } }
@media (max-width: 500px) { .card-face { zoom: .46; } }
@media (max-width: 410px) { .card-face { zoom: .41; } }

@media print {
    @page { size: A5 landscape; margin: 0; }
    .qr-tip, .card-hint, .card-tag { display: none !important; }
    .card-face {
        zoom: 1 !important;
        width: 210mm; height: 147.4mm;
        margin: 0; border-radius: 0; box-shadow: none;
        padding: 11mm 13mm;
        break-after: page; page-break-after: always;
        -webkit-print-color-adjust: exact; print-color-adjust: exact;
    }
    .card-face:last-of-type { break-after: auto; page-break-after: auto; }
}

/* ==========================================================================
   客户 H5 第二批：贷款 / 置换 / 收藏 / 售后 / 订单 / 门店 / 指南
   ========================================================================== */

.wx-quick {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
    padding: 2px 12px 10px;
}
.wx-quick a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 9px 2px; border-radius: 10px; background: var(--wx-panel);
    border: 1px solid var(--wx-line-soft); font-size: 10.5px; color: var(--wx-ink-2);
}
.wx-quick a:active { border-color: var(--wx-accent); color: var(--wx-accent); }
.wx-quick i {
    font-style: normal; width: 24px; height: 24px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--wx-accent-soft); color: var(--wx-accent); font-size: 13px; font-weight: 700;
}

.wx-detail-acts { display: flex; gap: 8px; margin: 10px 0 4px; }
.wx-detail-acts form { flex: 1 1 0; margin: 0; }
.wx-detail-acts .wx-btn { width: 100%; padding: 9px 6px; font-size: 12px; }

.wx-loan-hero {
    margin: 0 12px 12px; padding: 16px 16px 14px; border-radius: var(--wx-radius);
    background: linear-gradient(135deg, #0f766e, #115e59); color: #fff;
}
.wx-loan-hero span { font-size: 11.5px; opacity: .82; }
.wx-loan-hero b { display: block; font-size: 30px; letter-spacing: -.5px; margin-top: 2px; }
.wx-loan-hero b i { font-style: normal; font-size: 13px; font-weight: 600; margin-left: 3px; opacity: .85; }
.wx-loan-hero small { display: block; font-size: 11px; opacity: .78; margin-top: 5px; }

.wx-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.wx-order {
    border: 1px solid var(--wx-line); border-radius: var(--wx-radius);
    background: var(--wx-panel); padding: 12px; margin-bottom: 10px;
}
.wx-order-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wx-order-head b { font-size: 13.5px; }
.wx-order-car { display: flex; gap: 10px; margin-top: 9px; }
.wx-order-img {
    flex: 0 0 84px; width: 84px; height: 62px; border-radius: 9px; overflow: hidden;
    background: var(--wx-line-soft); display: flex; align-items: center; justify-content: center;
}
.wx-order-img img { width: 100%; height: 100%; object-fit: cover; }
.wx-order-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; align-content: start; }
.wx-order-meta { font-size: 10.8px; color: var(--wx-muted); }
.wx-order-price { font-size: 11.5px; color: var(--wx-ink-2); }
.wx-order-price b { color: var(--wx-accent); font-size: 14px; }
.wx-order-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--wx-line);
    font-size: 11px; color: var(--wx-muted);
}

.wx-steps { display: flex; gap: 2px; margin-top: 11px; }
.wx-step { flex: 1 1 0; text-align: center; position: relative; }
.wx-step i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 19px; height: 19px; border-radius: 50%; font-style: normal;
    font-size: 9.5px; background: var(--wx-line-soft); color: var(--wx-muted);
}
.wx-step em { display: block; font-style: normal; font-size: 9px; color: var(--wx-muted); margin-top: 3px; }
.wx-step.is-done i { background: var(--wx-green); color: #fff; }
.wx-step.is-done em { color: var(--wx-green); }

.wx-store-card {
    border: 1px solid var(--wx-line); border-radius: var(--wx-radius);
    background: var(--wx-panel); padding: 13px; margin-bottom: 10px;
}
.wx-store-card > b { font-size: 14px; }
.wx-store-addr { margin: 5px 0 0; font-size: 11.5px; color: var(--wx-ink-2); line-height: 1.6; }
.wx-store-acts { display: flex; gap: 8px; margin-top: 10px; }
.wx-store-acts .wx-btn { flex: 1 1 0; }

.wx-guide-list { display: grid; gap: 9px; }
.wx-guide-item { border-left: 3px solid var(--wx-line); padding: 2px 0 2px 10px; }
.wx-guide-item b { font-size: 12.5px; }
.wx-guide-item p { margin: 3px 0 0; font-size: 11.5px; color: var(--wx-ink-2); line-height: 1.7; }

.wx-guide-steps { display: grid; gap: 10px; }
.wx-guide-step { display: flex; gap: 10px; align-items: flex-start; }
.wx-guide-step > span {
    flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: var(--wx-accent-soft); color: var(--wx-accent); font-size: 11px; font-weight: 800;
}
.wx-guide-step b { font-size: 12.5px; }
.wx-guide-step p { margin: 3px 0 0; font-size: 11.5px; color: var(--wx-ink-2); line-height: 1.7; }

.wx-faq {
    border: 1px solid var(--wx-line); border-radius: 11px; background: var(--wx-panel);
    padding: 10px 12px; margin-bottom: 8px;
}
.wx-faq summary { font-size: 12.5px; font-weight: 600; cursor: pointer; list-style: none; }
.wx-faq summary::-webkit-details-marker { display: none; }
.wx-faq summary::before { content: '？ '; color: var(--wx-accent); font-weight: 800; }
.wx-faq p { margin: 7px 0 0; font-size: 11.5px; color: var(--wx-ink-2); line-height: 1.75; }

.wx-guide-cta { display: flex; gap: 8px; margin-top: 10px; }
.wx-guide-cta .wx-btn { flex: 1 1 0; }

.wx-mine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.wx-mine-grid a {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 11px 3px; border-radius: 11px; background: var(--wx-panel);
    border: 1px solid var(--wx-line-soft); font-size: 10px; color: var(--wx-ink-2); text-align: center;
}
.wx-mine-grid a:active { border-color: var(--wx-accent); color: var(--wx-accent); }
.wx-mine-grid i {
    font-style: normal; width: 26px; height: 26px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--wx-green-soft); color: var(--wx-green); font-size: 13px; font-weight: 700;
}
