/* ============ 基础 ============ */
:root {
    --primary: #0b84e0;
    --primary-dark: #0768b3;
    --primary-soft: #e8f3fd;
    --cyan: #12b5c9;
    --ink: #1f2d3d;
    --ink-2: #52606d;
    --muted: #8895a7;
    --line: #e3e9f2;
    --bg: #f4f7fb;
    --card: #ffffff;
    --ok: #0e9f6e;
    --warn: #d97706;
    --danger: #dc2626;
    --radius: 12px;
    --shadow: 0 2px 10px rgba(31, 45, 61, .06);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

/* 预留滚动条占位，避免页面长短不同导致内容区宽度来回跳动 */
html { scrollbar-gutter: stable; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
.mono { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ============ 前台 ============ */
.site-body { padding-bottom: 24px; }

.site-header {
    background: linear-gradient(135deg, #0b84e0, #12b5c9);
    color: #fff;
    box-shadow: 0 2px 12px rgba(11, 132, 224, .22);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    color: var(--primary);
    font-weight: 700;
    font-size: 17px;
    flex: 0 0 auto;
}

.brand-name { font-weight: 600; font-size: 16px; line-height: 1.2; }
.brand-sub { font-size: 12px; opacity: .82; }
.wx-user { font-size: 12px; background: rgba(255, 255, 255, .18); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

.site-main { padding-top: 16px; }

.hero {
    background: linear-gradient(180deg, #ffffff, #f0f7ff);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
}

.hero h1 { font-size: 19px; margin-bottom: 4px; }
.hero p { color: var(--ink-2); font-size: 13px; }

.form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.section { padding: 18px; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    margin-bottom: 12px;
}

.step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.hint { color: var(--muted); font-size: 12px; margin: 2px 0 10px; }
.form-error { color: var(--danger); font-size: 12px; margin: 2px 0 10px; }

.login-join {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0 8px;
    padding: 16px;
    border: 1px solid #cfe4fa;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef7ff, #e1f0ff);
}
.login-join strong { display: block; font-size: 15px; color: var(--ink); }
.login-join p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.login-join .btn { flex: 0 0 auto; }

.field { display: block; margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 5px; }
.req { color: var(--danger); font-style: normal; }

input[type="text"], input[type="tel"], input[type="number"], input[type="password"], input[type="file"], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fbfcfe;
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 132, 224, .12);
    background: #fff;
}

input[type="file"] { padding: 8px; font-size: 13px; background: #fff; }
textarea { resize: vertical; }

.grid-2, .grid-3 { display: grid; gap: 0 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.region-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.region-picker select { width: 100%; }

.geo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.geo-tip { font-size: 12px; color: var(--muted); }

.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.chip {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-2);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
}

.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.repeat-item {
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 12px 12px 8px;
    margin-bottom: 10px;
    background: #fbfcfe;
}

.link-danger {
    border: 0;
    background: none;
    color: var(--danger);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 0;
}

.inline-form { display: inline-block; margin-left: 8px; }

.link-primary {
    border: 0;
    background: none;
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 0;
}

.thumb { display: inline-block; margin-top: 6px; }
.thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

.submit-bar { padding: 18px; background: #fafcff; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 18px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.submit-tip { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }

.alert {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 12px;
}

.alert-error { background: #fef2f2; color: #b42318; border: 1px solid #fecdca; }
.alert-warn { background: #fffaeb; color: #b54708; border: 1px solid #fedf89; }
.alert-ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }

.site-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 18px 16px 0; }

/* 结果页 */
.result-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 20px;
    text-align: center;
    margin-top: 12px;
}

.result-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #e8f8f1;
    color: var(--ok);
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-icon-muted { background: #fef3f2; color: var(--danger); }
.result-card h1 { font-size: 20px; margin-bottom: 6px; }
.result-desc { color: var(--ink-2); font-size: 13px; margin-bottom: 16px; }

.result-code {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    background: var(--primary-soft);
    border-radius: 10px;
    padding: 10px 22px;
    margin-bottom: 18px;
}

.result-code span { font-size: 12px; color: var(--primary-dark); }
.result-code strong { font-size: 18px; letter-spacing: .5px; color: var(--primary-dark); }

.result-list {
    text-align: left;
    font-size: 13px;
    color: var(--ink-2);
    padding-left: 18px;
    margin: 0 0 20px;
}

/* ============ 登录 / 初始化 ============ */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #eaf4ff 0%, #f6fbfd 45%, #eef8f5 100%);
    padding: 20px;
}

.auth-wrap { width: 100%; max-width: 380px; }

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 17px;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.auth-brand .brand-mark { background: var(--primary); color: #fff; }

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(31, 45, 61, .1);
    padding: 26px 22px;
}

.auth-card h1 { font-size: 19px; margin-bottom: 4px; }
.auth-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.auth-card .btn { margin-top: 8px; }

/* ============ 后台 ============ */
.admin-body { min-height: 100vh; background: #f5f5f5; }

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 200px;
    background: #002344;
    z-index: 30;
    /* 始终预留滚动条位置，展开/收起分组时侧栏宽度不变，避免左右分栏跳动 */
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

.admin-sidebar::-webkit-scrollbar { width: 8px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .28); }

.sidebar-nav { padding: 8px 0; }

.sidebar-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px;
    margin-bottom: 8px;
}
.sidebar-brand::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .03));
}
.sidebar-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #2aa0ff, #0b62c4);
    box-shadow: 0 4px 12px rgba(25, 128, 235, .38);
}
.sidebar-brand-logo svg { width: 19px; height: 19px; }
.sidebar-brand-text { display: flex; flex-direction: column; min-width: 0; }
.sidebar-brand-text strong {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .5px;
    white-space: nowrap;
}
.sidebar-brand-text em {
    margin-top: 5px;
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: 1px;
    white-space: nowrap;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s;
}

.sidebar-item:hover { background: #06315c; }
.sidebar-item.active { background: #0e4a7b; }
.sidebar-item svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: .92; }
.sidebar-item span { flex: 1; }

.sidebar-toggle-btn svg:last-child { width: 14px; height: 14px; opacity: .7; transition: transform .2s; }
.sidebar-group.collapsed .sidebar-toggle-btn svg:last-child { transform: rotate(-90deg); }
.sidebar-group.collapsed .sidebar-sub { display: none; }

.sidebar-sub a {
    display: block;
    padding: 11px 20px 11px 48px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    transition: all .15s;
}

.sidebar-sub a:hover { color: #fff; background: #06315c; }
.sidebar-sub a.active { color: #fff; background: #0e4a7b; }

.sidebar-mask { display: none; }

.admin-shell {
    padding-left: 200px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    height: 48px;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-title { flex: 1; color: #409eff; font-size: 15px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.topbar-user { color: var(--ink-2); }

.sidebar-mobile-btn {
    display: none;
    padding: 4px;
    border: 0;
    background: none;
    color: var(--ink-2);
    cursor: pointer;
}

.sidebar-mobile-btn svg { width: 20px; height: 20px; }

.admin-content { width: 100%; max-width: 1240px; margin: 0 auto; padding: 16px 20px 32px; }

.admin-quick-nav { display: none; }

@media (max-width: 900px) {
    .admin-quick-nav {
        display: flex;
        gap: 6px;
        padding: 7px 12px;
        position: sticky;
        top: 48px;
        z-index: 19;
        background: #fff;
        border-bottom: 1px solid #e6e6e6;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .admin-quick-nav::-webkit-scrollbar { display: none; }
    .admin-quick-nav a {
        flex: 1 0 auto;
        min-width: 62px;
        padding: 5px 10px;
        border-radius: 999px;
        background: #f4f7fb;
        color: var(--ink-2);
        font-size: 12px;
        text-align: center;
        white-space: nowrap;
    }
    .admin-quick-nav a.active {
        background: #e8f3ff;
        color: #0a2b4e;
        font-weight: 600;
    }
}

.link-btn {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.link-btn:hover { color: var(--danger); }

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.page-head h1 { font-size: 18px; }
.page-sub { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.stat-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.stat-value { font-size: 24px; font-weight: 600; color: var(--ink); }
.stat-warn .stat-value { color: var(--warn); }
.stat-ok .stat-value { color: var(--ok); }

.matrix-group-row td { background: #f5f9fd; border-top: 2px solid #e2ecf7; }
.matrix-group-row strong { color: #102a43; margin-right: 8px; }
.matrix-group-row .badge { margin: 0 6px; }
.matrix-missing td { background: #fff8ec; }

.pagination { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid #eef2f6; }
.page-link { color: var(--primary); font-size: 13px; }
.page-current { color: #64748b; font-size: 13px; }
.oplog-params {
    margin: 6px 0 0;
    padding: 8px 10px;
    max-width: 420px;
    max-height: 220px;
    overflow: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    margin-bottom: 16px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-head h2 { font-size: 15px; }
.panel-link { font-size: 13px; }

.empty-tip { color: var(--muted); font-size: 13px; padding: 24px 0; text-align: center; }

.station-map-panel { padding: 0; overflow: hidden; }
.station-map-panel .empty-tip { padding: 40px 16px; margin: 0; }
.station-map-tip-line { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.station-map-canvas { width: 100%; height: calc(100vh - 300px); min-height: 420px; background: #eef3f8; }
@media (max-width: 720px) {
    .station-map-canvas { height: 62vh; min-height: 360px; }
}

.table-wrap { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 0; }

.data-table th,
.data-table td { white-space: nowrap; }

.data-table th {
    text-align: left;
    font-weight: 500;
    color: #3d3d3d;
    font-size: 14px;
    padding: 12px 8px;
    border-bottom: 1px solid #ebeef5;
    white-space: nowrap;
    background: #f7f8fa;
}

.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f4fa;
    vertical-align: middle;
}

.data-table tbody tr:hover { background: #fafcff; }
.data-table tbody tr:last-child td { border-bottom: 0; }

.cell-main { font-weight: 500; }
.cell-sub { font-size: 12px; color: var(--muted); }
.cell-address { max-width: 150px; color: var(--ink-2); white-space: normal; }

.badge {
    display: inline-block;
    font-size: 12px;
    padding: 2px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-0 { background: #fff7e6; color: #b45309; }
.badge-1 { background: #ecfdf3; color: #067647; }
.badge-2 { background: #fef3f2; color: #b42318; }

.table-link { font-size: 13px; white-space: nowrap; }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}

.filter-bar.is-right { justify-content: flex-end; }

.filter-bar input[type="text"] { flex: 1 1 220px; width: auto; }
.filter-bar select { width: auto; min-width: 120px; }
.filter-bar .btn { padding: 8px 14px; font-size: 13px; }

/* 订单状态快捷标签 */
.order-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.order-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-2);
    font-size: 13px;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.order-tab:hover { border-color: var(--primary); color: var(--primary); }
.order-tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.order-tab-count {
    min-width: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--ink-2);
    font-size: 12px;
    text-align: center;
}
.order-tab.is-active .order-tab-count { background: rgba(255, 255, 255, .24); color: #fff; }

/* 水站订单：搜索 + 标签筛选 */
.station-switch { margin: 0; }
.station-search {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    margin-bottom: 12px;
}
.station-search-input {
    flex: 1 1 220px;
    display: flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow);
}
.station-search-input svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.station-search-input input {
    flex: 1; min-width: 0; height: 100%;
    border: 0; outline: 0; background: transparent;
    box-shadow: none; -webkit-appearance: none; appearance: none;
    font-size: 14px; color: var(--ink);
}
.station-search-input input:focus { border: 0; box-shadow: none; background: transparent; }
.station-search-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 132, 224, .12); }
.station-search-input input::-webkit-search-cancel-button { -webkit-appearance: none; }
.station-search .btn { padding: 9px 16px; }
.station-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.station-filter .station-search-input { flex: 1 1 220px; }
.station-date-row { display: flex; align-items: center; gap: 6px; }
.station-date-field { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.station-date-field input[type="date"] { width: auto; padding: 7px 9px; font-size: 13px; }
.station-date-row em { font-style: normal; font-size: 12px; color: var(--muted); }
.station-filter-actions { display: flex; gap: 6px; }
.station-filter-actions .btn { padding: 9px 16px; }
.station-date-quick {
    display: flex; gap: 7px; overflow-x: auto;
    padding: 0 0 10px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.station-date-quick::-webkit-scrollbar { display: none; }
.station-date-chip {
    flex: none; padding: 5px 12px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
    color: var(--ink-2); font-size: 12px; white-space: nowrap;
}
.station-date-chip.active {
    background: var(--primary-soft); border-color: #bfdcf7;
    color: var(--primary); font-weight: 600;
}
.station-tabs {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 2px 0 10px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.station-tabs::-webkit-scrollbar { display: none; }
.station-tab {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); color: var(--ink-2);
    font-size: 13px; white-space: nowrap;
}
.station-tab-count {
    min-width: 20px; padding: 0 6px; border-radius: 999px;
    background: #eef3f9; color: var(--muted);
    font-size: 11px; line-height: 18px; text-align: center;
}
.station-tab.active {
    background: var(--primary); border-color: var(--primary); color: #fff;
    box-shadow: 0 4px 12px rgba(11, 132, 224, .28);
}
.station-tab.active .station-tab-count { background: rgba(255, 255, 255, .22); color: #fff; }
.station-result-meta { margin: 0 2px 8px; font-size: 12px; color: var(--muted); }
.station-result-meta strong { color: var(--ink); }

@media (max-width: 640px) {
    .station-search-input { flex: 1 1 100%; }
    .station-search .btn { flex: 1; }
    .station-filter .station-search-input { flex: 1 1 100%; }
    .station-date-row { flex: 1 1 100%; flex-wrap: wrap; }
    .station-date-field { flex: 1; min-width: 0; }
    .station-date-field input[type="date"] { width: 100%; }
    .station-filter-actions { flex: 1 1 100%; }
    .station-filter-actions .btn { flex: 1; }
    .station-actions { justify-content: flex-end; }
    .station-actions .btn { min-width: 72px; }
}

.station-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.station-actions form { margin: 0; }

input[type="date"], input[type="time"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fbfcfe;
    font-size: 14px;
    color: var(--ink);
    font-family: inherit;
}
.filter-bar input[type="date"], .filter-bar input[type="time"] { width: auto; }

.data-table tfoot th {
    text-align: left;
    padding: 10px 12px;
    background: #fafcff;
    border-top: 1px solid var(--line);
    font-weight: 600;
    white-space: nowrap;
}

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 14px; }
.pager-info { font-size: 13px; color: var(--muted); }

/* 详情 */
.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: start; }
.detail-form .field { margin-bottom: 10px; }
.form-actions { display: flex; align-items: center; gap: 14px; margin: 14px 0 12px; flex-wrap: wrap; }
.form-actions:last-child { margin-bottom: 0; }
.form-actions + .hint { margin-top: 2px; }
.form-actions .hint { margin: 0; flex: 1 1 100%; }
.thumb-link { display: block; }

.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 10px; }
.mini-table th {
    text-align: left;
    color: var(--muted);
    font-weight: 500;
    padding: 6px 8px;
    border-bottom: 1px solid var(--line);
}
.mini-table td { padding: 6px 8px; border-bottom: 1px solid #f2f5fa; white-space: nowrap; }
.mini-table td:first-child { white-space: normal; }
.mini-table td:last-child, .mini-table th:last-child { width: 46px; text-align: right; }

.inline-add { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.inline-add input { flex: 1 1 90px; width: auto; padding: 7px 9px; font-size: 13px; }
.inline-add .btn { padding: 7px 12px; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .admin-sidebar { width: 240px; transform: translateX(-100%); transition: transform .2s ease; }
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open .admin-sidebar { transform: translateX(0); }
    .sidebar-mask {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .35);
        z-index: 25;
    }
    body.sidebar-open .sidebar-mask { display: block; }
    .admin-shell { padding-left: 0; }
    .sidebar-mobile-btn { display: inline-flex; }
}

@media (max-width: 640px) {
    body { font-size: 14px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 0; }
    .region-picker { grid-template-columns: 1fr; }
    .login-join { flex-direction: column; align-items: stretch; text-align: center; }
    .login-join .btn { width: 100%; }
    .section { padding: 14px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 12px; }
    .stat-label { font-size: 11px; }
    .stat-value { font-size: 20px; }
    .admin-content { padding: 12px 12px 28px; }
    .admin-topbar { padding: 0 12px; gap: 8px; }
    .topbar-title { font-size: 14px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .topbar-role { display: none; }
    .page-head { gap: 8px; margin-bottom: 12px; align-items: flex-start; }
    .page-head h1 { font-size: 17px; }
    .panel { padding: 12px; }
    .panel-head { margin-bottom: 8px; }
    .filter-bar { padding: 10px; }
    .filter-bar input[type="text"] { flex: 1 1 100%; }
    .filter-bar select,
    .filter-bar .btn { flex: 1 1 100%; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .form-actions .btn { width: 100%; }
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* 列表在手机上转为卡片，避免左右拖动 */
    .table-wrap:has(.card-table) { overflow: visible; }
    .card-table thead { display: none; }
    .card-table,
    .card-table tbody,
    .card-table tr,
    .card-table td { display: block; width: 100%; }
    .card-table tr {
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 4px 12px;
        margin-bottom: 10px;
        background: #fff;
    }
    .card-table tbody tr:hover { background: #fff; }
    .card-table td {
        display: grid;
        grid-template-columns: 86px 1fr;
        gap: 8px;
        align-items: start;
        padding: 7px 0;
        border-bottom: 1px dashed #eef2f7;
        white-space: normal;
        text-align: right;
        word-break: break-word;
    }
    .card-table td:last-child { border-bottom: 0; }
    .card-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 12px;
        text-align: left;
        padding-top: 2px;
    }
    .card-table td > * { text-align: right; }
    .card-table td.cell-address { max-width: none; }
}

/* ============ 前台：联营首页与水站自助 ============ */
.site-body { background: #fff; }

.site-header {
    background: #fff;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    height: auto;
}

.brand { color: inherit; }
.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #0c2f52;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.brand-name { color: #0c2f52; }
.brand-sub { color: var(--muted); opacity: 1; }

.site-nav { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.site-nav a,
.site-nav .nav-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.6;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
}
.site-nav a:hover,
.site-nav .nav-ghost:hover { color: #0c2f52; background: #f2f7fc; }
.site-nav a.active { color: #0a2b4e; background: #e8f3ff; font-weight: 600; }
.site-nav .nav-form { display: inline-flex; margin: 0; }
@media (max-width: 640px) {
    /* 顶部整体压缩 */
    .site-header-inner { padding: 6px 12px; gap: 8px; }
    .brand { flex: 0 0 auto; gap: 7px; }
    .brand-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
    .brand-name { font-size: 14px; line-height: 1.15; }
    .brand-sub { display: none; }

    /* 导航等宽、不换行 */
    .site-nav { gap: 6px; flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
    .site-nav > a,
    .site-nav > form { flex: 1 1 0; min-width: 0; display: flex; }
    .site-nav > a { align-items: center; justify-content: center; padding: 4px 0; text-align: center; white-space: nowrap; }
    .site-nav .nav-form { margin: 0; }
    .site-nav .nav-btn,
    .site-nav .nav-ghost {
        width: 100%;
        padding: 4px 0;
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
        white-space: nowrap;
    }
    .site-nav .nav-form .nav-ghost { font-family: inherit; cursor: pointer; }
    .site-nav .nav-hide-sm { display: none; }
}

.hero-band {
    background: linear-gradient(135deg, #0b3255 0%, #123f68 62%, #17507f 100%);
    color: #fff;
    padding: 34px 0 28px;
}

.hero-eyebrow { font-size: 12px; letter-spacing: .06em; color: rgba(255, 255, 255, .72); }
.hero-title { margin: 10px 0 2px; font-size: 34px; line-height: 1.2; color: #fff; }
.hero-brand { font-size: 16px; color: #cfe4f7; margin-bottom: 14px; }
.hero-desc { font-size: 14px; line-height: 1.75; color: rgba(255, 255, 255, .88); max-width: 580px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 16px; }
.hero-band .btn-primary { background: #fff; color: #0b3255; }
.hero-band .btn-primary:hover { background: #eaf2fa; }
.hero-band .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.hero-band .btn-ghost:hover { border-color: #fff; color: #fff; }

.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: rgba(255, 255, 255, .78); }
.hero-points li { list-style: none; }
.hero-points li::before { content: "·"; margin-right: 6px; color: #7fb6e8; }

.hero-grid { display: grid; gap: 20px; }
.hero-grid > *, .split > *, .poster-row > * { min-width: 0; }
.hero-figure { margin: 2px auto 0; max-width: 300px; }
.hero-figure img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 14px; box-shadow: 0 16px 36px rgba(4, 24, 46, .35); }

.split { display: grid; gap: 16px; }
.poster { margin: 14px auto 0; max-width: 320px; }
.poster img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid #e6eef6; background: #fff; }
.poster-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.poster-row .poster { margin: 0; max-width: none; }

.home-block { padding: 26px 0 0; }
.home-block:last-of-type { padding-bottom: 8px; }

.block-title {
    font-size: 19px;
    color: #0c2f52;
    padding-left: 10px;
    border-left: 3px solid #1a6db5;
    line-height: 1.2;
    margin-bottom: 8px;
}

.block-sub { font-size: 13px; color: var(--muted); margin: 0 0 12px 13px; }

.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid #e6eef6;
    border-radius: 10px;
    background: #f8fbfe;
}
.fact b { font-size: 22px; color: #0c2f52; line-height: 1.1; }
.fact span { font-size: 12px; color: var(--muted); }

.logic-list { display: flex; flex-direction: column; gap: 2px; }
.logic-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #e8eef5;
}
.logic-list li:last-child { border-bottom: 0; }
.logic-no { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: #9fb6cc; padding-top: 2px; }
.logic-list h3 { font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.logic-list p { font-size: 13px; color: var(--ink-2); line-height: 1.7; }

.partner-grid { display: grid; gap: 12px; }
.partner-card { border: 1px solid #e6eef6; border-radius: 10px; padding: 16px; background: #fbfdff; }
.partner-tag {
    display: inline-block;
    font-size: 11px;
    color: #1a6db5;
    background: #eaf3fb;
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 8px;
}
.partner-card h3 { font-size: 17px; color: #0c2f52; margin-bottom: 6px; }
.partner-card p { font-size: 13px; color: var(--ink-2); line-height: 1.7; }

.two-col { display: grid; gap: 12px; }
.info-card { border: 1px solid #e6eef6; border-radius: 10px; padding: 16px; }
.info-card .block-title { font-size: 16px; margin-bottom: 12px; }

.check-list li,
.dot-list li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #0f9d76; font-size: 12px; }
.dot-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9fb6cc;
}

.flow { display: flex; flex-direction: column; gap: 4px; }
.flow-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f7fafd;
    border: 1px solid #e6eef6;
    border-radius: 10px;
}
.flow-step b { font-size: 14px; color: var(--ink); }
.flow-step small { font-size: 12px; color: var(--muted); margin-left: auto; }
.flow-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #0c2f52;
    color: #fff;
    font-size: 12px;
}
.flow-arrow { text-align: center; color: #b7c8d8; font-size: 12px; line-height: 1; padding: 2px 0; }
.flow-arrow::after { content: "↓"; }

.faq details { border-bottom: 1px solid #eef2f7; }
.faq details:first-of-type { border-top: 1px solid #eef2f7; }
.faq summary {
    padding: 14px 4px;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: #9fb6cc; }
.faq details[open] summary::after { content: "−"; }
.faq p { font-size: 13px; color: var(--ink-2); line-height: 1.7; padding: 0 4px 14px; }

.cta-band {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: 12px;
    background: #0c2f52;
    color: #fff;
}
.cta-band h2 { font-size: 18px; color: #fff; margin-bottom: 6px; }
.cta-band p { font-size: 13px; color: rgba(255, 255, 255, .78); line-height: 1.6; }
.cta-actions { display: flex; gap: 10px; }
.cta-band .btn-primary { background: #fff; color: #0c2f52; }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.cta-note { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; }

.lead-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow);
}
.lead-form { display: flex; flex-direction: column; gap: 10px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #334155; }
.lead-form input,
.lead-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fbfcfe;
    font-size: 14px;
    color: var(--ink);
    font-family: inherit;
}
.lead-form textarea { min-height: 64px; resize: vertical; }
.lead-form .btn { align-self: flex-start; }
.lead-form .form-note { font-size: 12px; color: var(--muted); margin: 0; }
@media (max-width: 720px) {
    .lead-panel { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    text-align: center;
    font-size: 12px;
    color: var(--ink-2);
    padding: 18px 16px 26px;
    line-height: 1.9;
}
.site-footer .muted { font-size: 12px; }

/* 站点自助页面 */
.page-wrap { padding: 18px 16px 28px; }
.page-wrap.narrow { max-width: 520px; }
.page-lead { margin-bottom: 14px; }
.page-lead h1 { font-size: 22px; color: #0c2f52; margin-bottom: 6px; }
.page-lead p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
    background: #eaf3fb;
    color: #1a6db5;
    font-size: 12px;
    font-weight: 600;
}

.req { color: #d92d20; font-style: normal; }

.geo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.geo-row .hint { margin: 0; }

.manage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.manage-head h1 { font-size: 20px; color: #0c2f52; line-height: 1.3; }
.manage-head .muted { margin-top: 4px; }

.station-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 14px;
    background: #f4f8fc;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.station-switch-label { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.station-switch select { max-width: 320px; }

.manage-tabs {
    display: flex;
    gap: 4px;
    margin: 16px 0;
    padding: 5px;
    background: #edf3fa;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.manage-tabs::-webkit-scrollbar { display: none; }
.manage-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--ink-2);
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.manage-tabs a svg { width: 15px; height: 15px; flex: 0 0 auto; }
.manage-tabs a:hover { color: var(--primary); background: rgba(255, 255, 255, .65); }
.manage-tabs a.active {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(12, 47, 82, .14);
}

.m-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: #f8fbfe;
    border: 1px solid #e6eef6;
    border-radius: 10px;
}
.m-stat-label { font-size: 12px; color: var(--muted); }
.m-stat-value { font-size: 22px; color: #0c2f52; line-height: 1.2; }
.m-stat-value.sm { font-size: 15px; }

.quick-grid { display: grid; gap: 10px; margin: 16px 0; }
.quick-card {
    display: block;
    padding: 14px;
    border: 1px solid #e6eef6;
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s;
}
.quick-card:hover { border-color: #1a6db5; }
.quick-card b { display: block; font-size: 15px; color: #0c2f52; margin-bottom: 4px; }
.quick-card span { font-size: 12px; color: var(--muted); }

.panel.tips-panel h3 { font-size: 15px; margin-bottom: 8px; }
.panel.tips-panel { margin-top: 2px; }

.item-card {
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e6eef6;
    border-radius: 10px;
}
.item-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.item-row.three { grid-template-columns: 1fr 1fr 1fr; }
.item-card .field:last-child { margin-bottom: 10px; }
.item-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 10px; border-top: 1px solid #f2f5fa; }

.btn-danger-ghost { background: #fff; border-color: #fecdca; color: #b42318; }
.btn-danger-ghost:hover { border-color: #b42318; background: #fef2f2; }

.add-card { margin-top: 16px; }
.empty-panel { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 16px; border-style: dashed; }
.mt-16 { margin-top: 16px; }

@media (min-width: 640px) {
    .fact-grid { grid-template-columns: repeat(4, 1fr); }
    .partner-grid { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr 1fr; }
    .quick-grid { grid-template-columns: repeat(4, 1fr); }
    .m-stat-grid { grid-template-columns: repeat(4, 1fr); }
    .flow { flex-direction: row; align-items: stretch; }
    .flow-step { flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; }
    .flow-step small { margin-left: 0; }
    .flow-arrow { display: flex; align-items: center; padding: 0 4px; }
    .flow-arrow::after { content: "→"; }
    .home-block { padding-top: 32px; }
    .hero-band { padding: 48px 0 42px; }
    .hero-title { font-size: 42px; }
}

@media (min-width: 720px) {
    .hero-grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 26px; }
    .hero-figure { margin: 0; max-width: none; }
    .split { grid-template-columns: 1.06fr .94fr; align-items: start; gap: 22px; }
    .split .poster { margin: 0; max-width: none; }
    .poster { max-width: 440px; }
    .poster-row { gap: 18px; margin-top: 22px; }
}

/* 骑手登记 */
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 7px 0 3px; }
.radio-row label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.radio-row input { margin: 0; }
.check-row { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check-row input { width: 16px; height: 16px; margin: 0; }
.topbar-role { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 8px; }
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.doc-item { min-width: 0; }
.doc-item .thumb { margin-top: 6px; }
.done-panel { max-width: 560px; margin: 0 auto; padding: 24px; }
.done-code { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #f4f8fc; border-radius: 10px; margin-bottom: 14px; }
.done-code span { font-size: 13px; color: var(--muted); }
.done-code b { font-size: 20px; color: #0a2b4e; letter-spacing: .5px; }

/* APP 下载 */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-bottom: 6px; }
.footer-links a { color: var(--primary); font-weight: 500; }
.footer-links span { color: #c4d0de; }

.download-page { padding-top: 4px; padding-bottom: 24px; }

.download-hero {
    background: linear-gradient(135deg, #0b3255 0%, #123f68 62%, #17507f 100%);
    color: #fff;
    border-radius: 16px;
    padding: 30px 22px;
}
.download-eyebrow { font-size: 12px; letter-spacing: .06em; color: rgba(255, 255, 255, .72); }
.download-hero h1 { margin: 8px 0 6px; font-size: 30px; color: #fff; }
.download-lead { font-size: 14px; color: rgba(255, 255, 255, .86); line-height: 1.7; }
.download-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.download-hero .btn-primary { background: #fff; color: #0b3255; }
.download-hero .btn-primary:hover { background: #eaf2fa; }
.download-hero .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.download-hero .btn-ghost:hover { border-color: #fff; color: #fff; }

.download-grid { display: grid; gap: 14px; margin-top: 16px; }
.download-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border: 1px solid #e6eef6;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(12, 47, 82, .05);
}
.download-card-head { display: flex; align-items: center; gap: 12px; }
.download-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: 0 0 auto;
}
.download-icon svg { width: 26px; height: 26px; }
.icon-merchant { background: linear-gradient(135deg, #0b84e0, #12b5c9); }
.icon-rider { background: linear-gradient(135deg, #0e9f6e, #12b5c9); }
.download-card h2 { font-size: 18px; color: #0c2f52; }
.download-role { font-size: 12px; color: var(--muted); }
.download-desc { margin-top: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.download-points { margin: 12px 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.download-points li::marker { color: var(--primary); }
.download-meta { font-size: 12px; color: var(--muted); background: #f5f9fd; border-radius: 8px; padding: 6px 10px; }
.download-actions { margin-top: 14px; }
.btn-block { display: block; width: 100%; text-align: center; }
.download-android { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.7; }

.download-help {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e6eef6;
    border-radius: 14px;
}
.download-help h2 { font-size: 16px; color: #0c2f52; margin-bottom: 10px; }
.download-help ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.download-back { margin-top: 14px; text-align: center; font-size: 13px; }
.download-back a { color: var(--muted); }

@media (min-width: 640px) {
    .download-grid { grid-template-columns: 1fr 1fr; }
}
.done-list { list-style: none; margin: 0 0 10px; padding: 0; }
.done-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.done-list li:last-child { border-bottom: 0; }
.done-list span { color: var(--muted); }
@media (max-width: 720px) {
    .doc-grid { grid-template-columns: 1fr 1fr; }
}

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.is-open { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(15, 30, 45, .45); }
.modal-dialog {
    position: relative;
    width: min(760px, calc(100% - 32px));
    max-height: 88vh;
    margin: 6vh auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 40, 60, .25);
    overflow: hidden;
}
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 16px; }
.modal-close {
    border: 0;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0 4px;
}
.modal-body { padding: 16px 18px; overflow-y: auto; }
body.modal-open { overflow: hidden; }
.station-map-tip {
    background: #fff;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(15, 30, 45, .25);
    color: #0a2b4e;
    font-size: 12px;
    padding: 2px 6px;
}
.station-map-tip::before { display: none; }
.map-load-tip {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 800;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #f0c36d;
    border-radius: 6px;
    color: #8a5a00;
    font-size: 12px;
    line-height: 1.5;
    padding: 8px 10px;
}

/* 弹窗内表单操作区固定在底部，长表单无需滚动到底即可保存 */
.modal-body .form-actions {
    position: sticky;
    bottom: -16px;
    z-index: 2;
    margin: 16px -18px -16px;
    padding: 12px 18px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.field-full { grid-column: 1 / -1; }

.product-cell { display: flex; align-items: center; gap: 10px; }
.product-thumb {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f5f8fb;
    object-fit: cover;
}
.product-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--muted);
}
.image-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.image-preview {
    width: 72px;
    height: 72px;
    flex: none;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #f5f8fb;
    object-fit: cover;
}
.image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--muted);
}
.field-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

@media (max-width: 640px) {
    .modal-dialog {
        width: 100%;
        height: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
    }
}

/* 商品描述富文本编辑器 */
.rich-editor { background: #fff; }
.rich-editor .ql-editor { min-height: 180px; max-height: 320px; overflow-y: auto; font-size: 14px; }
.rich-editor .ql-editor img { max-width: 100%; }
.modal .ql-toolbar.ql-snow { border-color: var(--line); border-radius: 8px 8px 0 0; }
.modal .ql-container.ql-snow { border-color: var(--line); border-radius: 0 0 8px 8px; font-family: inherit; font-size: 14px; }

.admin-body .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="songti"]::before,
.admin-body .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="songti"]::before { content: "宋体"; }
.admin-body .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="heiti"]::before,
.admin-body .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="heiti"]::before { content: "黑体"; }
.admin-body .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="kaiti"]::before,
.admin-body .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="kaiti"]::before { content: "楷体"; }
.admin-body .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="yahei"]::before,
.admin-body .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="yahei"]::before { content: "微软雅黑"; }
.admin-body .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before,
.admin-body .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before { content: "衬线体"; }
.admin-body .ql-snow .ql-picker.ql-font .ql-picker-label:not([data-value])::before { content: "默认字体"; }

.admin-body .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="small"]::before,
.admin-body .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="small"]::before { content: "小"; }
.admin-body .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="large"]::before,
.admin-body .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="large"]::before { content: "大"; }
.admin-body .ql-snow .ql-picker.ql-size .ql-picker-label[data-value="huge"]::before,
.admin-body .ql-snow .ql-picker.ql-size .ql-picker-item[data-value="huge"]::before { content: "超大"; }
.admin-body .ql-snow .ql-picker.ql-size .ql-picker-label:not([data-value])::before { content: "默认"; }

.admin-body .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
.admin-body .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { content: "标题 1"; }
.admin-body .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
.admin-body .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: "标题 2"; }
.admin-body .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
.admin-body .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: "标题 3"; }
.admin-body .ql-snow .ql-picker.ql-header .ql-picker-label:not([data-value])::before { content: "正文"; }

/* 富文本内容在编辑器外展示时的字体 */
.ql-font-songti { font-family: "Songti SC", SimSun, serif; }
.ql-font-heiti { font-family: "Heiti SC", "Microsoft YaHei", sans-serif; }
.ql-font-kaiti { font-family: "Kaiti SC", KaiTi, serif; }
.ql-font-yahei { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
.ql-font-serif { font-family: Georgia, "Times New Roman", serif; }

/* 水票套餐商品明细 */
.ticket-items-wrap { margin: 4px 0 14px; }
.ticket-items-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ticket-items select { max-width: 100%; }

/* 角色权限配置 */
.role-perms, .role-stations { margin: 6px 0 12px; }
.role-perms > .label, .role-stations > .label { display: block; margin-bottom: 6px; }
.perm-group { margin-top: 10px; }
.perm-group-head { font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.perm-items { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.perm-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); }
.perm-item input { width: auto; accent-color: var(--primary); }
.role-stations { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafcff; }

/* 水票套餐规格 */
.specs-wrap { margin: 6px 0 14px; }
.spec-block { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #fafcff; }
.spec-head { display: grid; grid-template-columns: 1fr 150px auto; gap: 10px; align-items: end; margin-bottom: 8px; }
.spec-head .field { margin: 0; }
.spec-block .ticket-items { margin-top: 4px; }
.spec-block .btn-sm { margin-top: 6px; }
.spec-summary { display: flex; flex-wrap: wrap; gap: 4px 10px; line-height: 1.6; padding: 2px 0; }
.spec-summary strong { color: var(--ink); }
.data-table td.cell-address { max-width: 420px; min-width: 240px; }
@media (max-width: 640px) {
    .spec-head { grid-template-columns: 1fr; }
    .data-table td.cell-address { min-width: 0; }
}
.ticket-qty-col { width: 110px; }
.ticket-op-col { width: 64px; }

.auto-dispatch-toggle { display: flex; align-items: center; margin: 0 4px 0 0; }
.auto-dispatch-toggle label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; }
.auto-dispatch-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 38px;
    height: 22px;
    margin: 0;
    flex: none;
    background: #d0d5dd;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background .2s;
}
.auto-dispatch-toggle input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .15);
    transition: transform .2s;
}
.auto-dispatch-toggle input[type="checkbox"]:checked { background: var(--primary); }
.auto-dispatch-toggle input[type="checkbox"]:checked::after { transform: translateX(16px); }

.dispatch-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.dispatch-actions form { margin: 0; }
.dispatch-actions .btn { width: 100%; }
.radio-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 14px; color: var(--ink-2); }
.radio-row input[type="radio"] { width: 16px; height: 16px; margin: 0; }

/* ============ 商城 / 扫码支付 / 操作日志 ============ */
.mall-page { padding-top: 10px; padding-bottom: 36px; }
.mall-page .alert { margin-top: 12px; }

/* 商城头部 */
.mall-hero {
    position: relative;
    overflow: hidden;
    margin-top: 2px;
    padding: 20px 18px 18px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #0b84e0 0%, #12b5c9 100%);
    box-shadow: 0 12px 30px rgba(11, 132, 224, .24);
}
.mall-hero::before,
.mall-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    pointer-events: none;
}
.mall-hero::before { width: 190px; height: 190px; right: -70px; top: -90px; }
.mall-hero::after { width: 110px; height: 110px; right: 30px; bottom: -70px; background: rgba(255, 255, 255, .08); }
.mall-hero-kicker { position: relative; font-size: 11px; letter-spacing: .14em; opacity: .9; }
.mall-hero h1 { position: relative; margin: 6px 0 4px; font-size: 25px; letter-spacing: .01em; }
.mall-hero p { position: relative; font-size: 13px; opacity: .92; }
.mall-hero-points { position: relative; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.mall-hero-points span {
    font-size: 11px; padding: 4px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(4px);
}

/* 加购页头部 */
.mall-addon-head { padding: 4px 0 2px; }
.mall-back {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 13px; color: var(--ink-2); margin-bottom: 6px;
}
.mall-back svg { width: 16px; height: 16px; }
.mall-addon-head h1 { font-size: 21px; }
.mall-addon-head p { margin-top: 2px; font-size: 12px; color: var(--muted); }

/* 商城门店信息 */
.mall-shopbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 2px 2px 0;
}
.mall-shopbar-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mall-shopbar-main strong { font-size: 18px; letter-spacing: .01em; }
.mall-shopbar-main span { font-size: 11px; color: var(--muted); }
.mall-shop-badge {
    flex: none; padding: 3px 9px; border-radius: 999px;
    background: var(--primary-soft); color: var(--primary);
    font-size: 11px; font-weight: 600;
}

/* 轮播图 */
.mall-carousel {
    position: relative; margin-top: 12px;
    border-radius: 16px; overflow: hidden;
    background: linear-gradient(135deg, #0b84e0, #12b5c9);
    box-shadow: 0 10px 24px rgba(31, 45, 61, .12);
}
.mall-slides {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mall-slides::-webkit-scrollbar { display: none; }
.mall-slide {
    position: relative; flex: 0 0 100%;
    aspect-ratio: 16 / 8; display: block;
    scroll-snap-align: start; background: #dceaf6;
}
.mall-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mall-slide-mask {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8, 25, 40, 0) 35%, rgba(8, 25, 40, .62) 100%);
}
.mall-slide-copy {
    position: absolute; left: 14px; right: 60px; bottom: 12px;
    display: flex; flex-direction: column; gap: 1px; color: #fff;
}
.mall-slide-copy strong { font-size: 16px; text-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.mall-slide-copy em { font-style: normal; font-size: 11px; opacity: .88; }
.mall-dots { position: absolute; right: 12px; bottom: 13px; display: flex; gap: 4px; }
.mall-dots button {
    width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .2s, background .2s;
}
.mall-dots button.active { width: 16px; border-radius: 999px; background: #fff; }

/* 通知条 */
.mall-notice {
    display: flex; align-items: center; gap: 8px;
    margin-top: 10px; padding: 8px 11px;
    background: #fff; border-radius: 10px; box-shadow: var(--shadow);
    font-size: 12px; color: var(--ink-2);
}
.mall-notice svg { width: 16px; height: 16px; color: var(--warn); flex: none; }
.mall-notice span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 分类图标导航 */
.mall-icon-nav { display: flex; gap: 4px; margin-top: 14px; }
.mall-icon-item {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.mall-icon {
    width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; box-shadow: 0 4px 10px rgba(31, 45, 61, .1);
}
.mall-icon svg { width: 22px; height: 22px; }
.mall-icon.tone-0 { background: linear-gradient(135deg, #4facfe, #00c6ff); }
.mall-icon.tone-1 { background: linear-gradient(135deg, #43e0a0, #12b5a0); }
.mall-icon.tone-2 { background: linear-gradient(135deg, #ff9a9e, #f05f8a); }
.mall-icon.tone-3 { background: linear-gradient(135deg, #7c9cff, #4f6ef7); }
.mall-icon.tone-4 { background: linear-gradient(135deg, #ffb36b, #f8853f); }
.mall-icon-item em {
    max-width: 100%; font-style: normal; font-size: 11px; color: var(--ink-2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 电子水票广告 */
.mall-ticket-ad {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 10px;
    margin-top: 14px; padding: 12px 14px;
    border-radius: 14px; color: #fff;
    background: linear-gradient(120deg, #0b84e0 0%, #12b5c9 100%);
    box-shadow: 0 8px 20px rgba(11, 132, 224, .22);
}
.mall-ticket-ad::after {
    content: ""; position: absolute; right: -34px; top: -46px;
    width: 130px; height: 130px; border-radius: 50%;
    background: rgba(255, 255, 255, .12); pointer-events: none;
}
.mall-ticket-art {
    flex: none; width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .2);
}
.mall-ticket-art svg { width: 23px; height: 23px; }
.mall-ticket-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mall-ticket-copy strong { font-size: 14px; }
.mall-ticket-copy em { font-style: normal; font-size: 11px; opacity: .86; }
.mall-ticket-btn {
    flex: none; padding: 5px 12px; border-radius: 999px;
    background: #fff; color: #0b84e0; font-size: 12px; font-weight: 600;
}

/* 搜索 + 分类 */
.mall-sticky-head {
    position: sticky; top: 0; z-index: 20;
    margin: 12px -16px 0;
    padding: 8px 16px 4px;
    background: rgba(244, 247, 251, .94);
    backdrop-filter: blur(10px);
}
.mall-search {
    display: flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 1px 2px rgba(31, 45, 61, .04);
}
.mall-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.mall-search input {
    flex: 1; min-width: 0; height: 100%;
    border: 0; outline: 0; background: transparent;
    box-shadow: none; -webkit-appearance: none; appearance: none;
    font-size: 14px; color: var(--ink);
}
.mall-search input:focus { border: 0; box-shadow: none; background: transparent; }
.mall-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 132, 224, .12); }
.mall-search input::placeholder { color: #9aa7b6; }
.mall-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mall-search-clear {
    flex: none; width: 22px; height: 22px; border: 0; border-radius: 50%;
    background: #eef2f7; color: var(--muted); font-size: 15px; line-height: 1;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mall-cats {
    display: flex; gap: 8px; overflow-x: auto; padding: 9px 0 8px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.mall-cats::-webkit-scrollbar { display: none; }
.mall-cats a {
    flex: none; display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 13px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
    color: var(--ink-2); font-size: 13px; white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s;
}
.mall-cats a span { font-size: 11px; color: var(--muted); }
.mall-cats a.active {
    background: var(--primary); border-color: var(--primary); color: #fff;
    box-shadow: 0 4px 12px rgba(11, 132, 224, .28);
}
.mall-cats a.active span { color: rgba(255, 255, 255, .82); }
.mall-cats a:active { transform: scale(.97); }

.mall-section { margin-top: 6px; scroll-margin-top: 118px; }
.mall-cat-title {
    display: flex; align-items: baseline; gap: 8px;
    margin: 14px 2px 10px; font-size: 16px;
}
.mall-cat-title::before {
    content: ""; width: 3px; height: 15px; border-radius: 2px;
    align-self: center;
    background: linear-gradient(180deg, #0b84e0, #12b5c9);
}
.mall-cat-title span { font-size: 12px; font-weight: 400; color: var(--muted); }

/* 商品网格 */
.mall-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .mall-grid { grid-template-columns: repeat(3, 1fr); } }
.mall-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid rgba(227, 233, 242, .85);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(31, 45, 61, .04), 0 6px 18px rgba(31, 45, 61, .05);
}
.mall-card-media { position: relative; aspect-ratio: 1 / 1; background: #f2f7fb; overflow: hidden; }
.mall-card-img { width: 100%; height: 100%; object-fit: cover; display: flex; align-items: center; justify-content: center; }
.mall-card-img.mall-thumb-ph { font-size: 44px; }
.mall-tag {
    position: absolute; top: 8px; left: 8px;
    padding: 2px 8px; border-radius: 999px;
    background: rgba(11, 132, 224, .92); color: #fff; font-size: 11px;
    backdrop-filter: blur(4px);
}
.mall-card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 10px 10px 12px; }
.mall-name {
    font-size: 14px; font-weight: 600; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mall-spec {
    font-size: 12px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mall-card-foot {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 6px;
    margin-top: auto; padding-top: 8px;
}
.mall-price {
    color: #f04438; font-size: 19px; font-weight: 800; line-height: 1;
    letter-spacing: -.02em; white-space: nowrap;
}
.mall-price i { font-style: normal; font-size: 12px; font-weight: 700; margin-right: 1px; }
.mall-price em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 1px; }
.mall-buy-btn {
    flex: none; border: 0; border-radius: 999px;
    padding: 7px 13px; cursor: pointer;
    background: linear-gradient(135deg, #0b84e0, #12b5c9);
    color: #fff; font-size: 12px; font-weight: 600;
    box-shadow: 0 4px 10px rgba(11, 132, 224, .28);
    transition: transform .12s, opacity .18s;
}
.mall-buy-btn:active { transform: scale(.95); }
.mall-buy-btn:disabled { background: #c8d3df; box-shadow: none; cursor: not-allowed; }
.mall-add-btn {
    flex: none; width: 32px; height: 32px; padding: 0;
    border: 0; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0b84e0, #12b5c9);
    color: #fff; font-size: 20px; line-height: 1;
    box-shadow: 0 4px 10px rgba(11, 132, 224, .28);
    transition: transform .12s;
}
.mall-add-btn:active { transform: scale(.94); }
.mall-add-btn:disabled { background: #c8d3df; box-shadow: none; cursor: not-allowed; }
.mall-ticket-link {
    display: inline-flex; align-items: center; gap: 2px;
    margin-top: 6px; font-size: 11px; color: var(--primary);
}
.mall-ticket-link span { font-size: 14px; line-height: 1; }
.mall-card-link { display: block; height: 100%; color: inherit; }
a.mall-name { color: inherit; text-decoration: none; }
.mall-slogan {
    font-size: 12px; color: var(--muted); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.mall-sold { font-size: 11px; color: #94a3b8; }
.mall-price-wrap { display: inline-flex; flex-direction: column; gap: 2px; }
.mall-crossed { font-size: 11px; color: #9aa7b6; text-decoration: line-through; }

/* 商品详情页 */
.md-page { display: flex; flex-direction: column; gap: 12px; }
.md-back {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 13px; color: var(--muted); text-decoration: none;
}
.md-back svg { width: 16px; height: 16px; }
.md-gallery { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.md-gallery-main { aspect-ratio: 1 / 1; background: #f2f7fb; }
.md-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-gallery-ph {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 64px; color: #c3d0de;
}
.md-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.md-thumb {
    flex: none; width: 56px; height: 56px; padding: 0; cursor: pointer;
    border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #f2f7fb;
}
.md-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-thumb.active { border-color: var(--primary); }
.md-info {
    background: #fff; border-radius: 16px; box-shadow: var(--shadow);
    padding: 14px; display: flex; flex-direction: column; gap: 6px;
}
.md-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.md-price { color: #f04438; font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.md-price i { font-style: normal; font-size: 14px; font-weight: 700; margin-right: 1px; }
.md-price em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.md-crossed { font-size: 12px; color: #9aa7b6; text-decoration: line-through; }
.md-sold { margin-left: auto; font-size: 12px; color: #94a3b8; }
.md-name { font-size: 18px; font-weight: 700; line-height: 1.4; margin: 2px 0 0; }
.md-spec, .md-hint { font-size: 12px; color: var(--muted); margin: 0; }
.md-slogan {
    font-size: 13px; color: #0b84e0; line-height: 1.5; margin: 0;
    background: rgba(11, 132, 224, .07); border-radius: 10px; padding: 8px 10px;
}
.md-buy {
    background: #fff; border-radius: 16px; box-shadow: var(--shadow);
    padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.md-qty { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.md-qty .label { font-size: 13px; color: var(--muted); }
.md-section-title { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.md-block { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px; }
.md-desc { font-size: 14px; line-height: 1.7; color: #334155; word-break: break-word; }
.md-desc img { max-width: 100%; height: auto; border-radius: 10px; }
.md-details { display: flex; flex-direction: column; gap: 0; margin-top: 8px; border-radius: 12px; overflow: hidden; }
.md-details img { width: 100%; height: auto; display: block; border-radius: 0; background: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* 加购列表 */
.mall-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mall-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; background: #fff;
    border: 1px solid rgba(227, 233, 242, .9); border-radius: 14px;
    box-shadow: var(--shadow);
}
.mall-row-main { flex: 1; min-width: 0; }
.mall-row-main .mall-name { -webkit-line-clamp: 2; }
.mall-row-price { margin-top: 2px; font-size: 15px; font-weight: 700; color: #f04438; }
.mall-row-price small { font-size: 11px; font-weight: 400; color: var(--muted); }
.mall-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: #f2f7fb; }
.mall-thumb-ph {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e8f3fd, #dff6f8); color: var(--primary);
    font-weight: 700; font-size: 22px;
}

/* 数量步进器 */
.mall-stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.mall-stepper button {
    width: 28px; height: 28px; padding: 0; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.mall-stepper button:active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.mall-stepper input {
    width: 36px; padding: 0; border: 0; background: transparent;
    text-align: center; font-size: 15px; font-weight: 600; color: var(--ink);
}
.mall-stepper input::-webkit-outer-spin-button,
.mall-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mall-stepper input[type="number"] { -moz-appearance: textfield; }
.mall-stepper-lg button { width: 34px; height: 34px; }
.mall-stepper-lg input { width: 54px; height: 34px; border: 1px solid var(--line); border-radius: 8px; }

/* 加购底部结算条 */
.mall-sticky {
    position: sticky; bottom: 0; z-index: 30;
    display: flex; align-items: center; gap: 12px;
    margin: 16px -16px 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    box-shadow: 0 -6px 24px rgba(31, 45, 61, .08);
}
.mall-addon-sum { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); line-height: 1.35; }
.mall-addon-sum .count { color: var(--ink); font-size: 14px; }
.mall-addon-sum > div { margin-top: 1px; }
.mall-addon-sum [data-addon-total] { font-size: 19px; color: #f04438; }
.mall-sticky .btn { flex: none; min-width: 122px; border-radius: 999px; }
.mall-page .btn:disabled { opacity: .45; cursor: not-allowed; }

/* 当前订单商品 */
.mall-order-card {
    margin-top: 18px; padding: 4px 14px 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.mall-order-card .mall-cat-title { margin: 12px 0 6px; }
.mall-order-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.mall-order-item:last-child { border-bottom: 0; }
.mall-order-item strong { color: var(--ink); }

/* 搜索无结果 / 空商城 */
.mall-no-result { padding: 48px 0; text-align: center; font-size: 13px; color: var(--muted); }
.mall-ajax { scroll-margin-top: 120px; }
.mall-result-meta { margin: 12px 2px 8px; font-size: 12px; color: var(--muted); }
.mall-grid.is-loading { opacity: .45; pointer-events: none; }
.mall-loadmore { padding: 14px 0 4px; text-align: center; }
.mall-pay-alert { margin-top: 16px; }
.mall-loadmore .btn { min-width: 140px; }
.mall-empty { padding: 64px 20px; text-align: center; color: var(--muted); }
.mall-empty svg { width: 46px; height: 46px; color: #c3d0de; margin-bottom: 10px; }
.mall-empty p { font-size: 14px; }

.mall-buy-summary {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px; background: var(--primary-soft); border-radius: 10px;
    margin-bottom: 12px; font-size: 14px;
}

@media (max-width: 380px) {
    .mall-grid { gap: 8px; }
    .mall-card-body { padding: 8px 8px 10px; }
    .mall-price { font-size: 17px; }
    .mall-buy-btn { padding: 6px 10px; }
    .mall-row { gap: 9px; padding: 10px; }
    .mall-thumb { width: 56px; height: 56px; }
}

@media (max-width: 640px) {
    #mall-buy-modal .modal-dialog {
        position: absolute; left: 0; right: 0; bottom: 0; top: auto;
        width: 100%; max-width: none; max-height: 90vh;
        margin: 0; border-radius: 18px 18px 0 0;
    }
    #mall-buy-modal .modal-head { padding: 14px 16px 10px; }
    #mall-buy-modal .modal-body { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
}
.pay-page { padding-top: 28px; }
.pay-card {
    background: #fff; border-radius: 16px; box-shadow: var(--shadow);
    padding: 28px 20px 24px; text-align: center; max-width: 420px; margin: 0 auto;
}
.pay-amount { font-size: 32px; font-weight: 700; color: #e5484d; margin: 10px 0 4px; }
.pay-qr {
    width: 220px; height: 220px; margin: 18px auto 8px; padding: 6px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.pay-qr img, .pay-qr canvas { width: 100% !important; height: 100% !important; }
.pay-tip { color: var(--ink-2); font-size: 14px; }
.pay-status { color: var(--muted); margin-top: 10px; }
.pay-icon {
    width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 12px;
}
.timeline { list-style: none; margin: 0; padding: 4px 0 0; }
.timeline-item { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot {
    position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.timeline-act { font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.timeline-operator { font-size: 12px; font-weight: 400; color: var(--muted); background: #f2f5fa; border-radius: 999px; padding: 1px 8px; }
.timeline-detail { font-size: 13px; color: var(--ink-2); margin-top: 2px; word-break: break-all; }
.timeline-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* 卡票管理 */
.voucher-inline { display: flex; align-items: center; gap: 6px; }
.voucher-inline input { width: 70px; }
.voucher-inline span { font-size: 13px; color: var(--ink-2); }
.voucher-guide-intro { color: var(--ink-2); font-size: 14px; line-height: 1.7; margin: 0 0 18px; }
.voucher-step {
    display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line);
}
.voucher-step:first-of-type { border-top: 0; }
.voucher-step-no {
    flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary-soft); color: var(--primary); font-weight: 700;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.voucher-step h3 { font-size: 15px; margin: 2px 0 6px; color: var(--ink); }
.voucher-step p { font-size: 13px; line-height: 1.75; color: var(--ink-2); margin: 0; }
.voucher-guide-note {
    margin-top: 16px; padding: 12px 14px; border-radius: 10px;
    background: var(--primary-soft); color: var(--primary-dark); font-size: 13px; line-height: 1.7;
}

/* 使用说明示意图 */
.vd-wrap { display: flex; flex-direction: column; gap: 16px; margin: 0 0 22px; }
.vd-card {
    position: relative; overflow: hidden;
    padding: 18px 18px 20px;
    border: 1px solid #e3ebf5; border-radius: 16px;
    background:
        radial-gradient(900px 180px at 0% 0%, rgba(11, 132, 224, .07), transparent 62%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 6px 22px rgba(31, 45, 61, .06);
}
.vd-card-head { position: relative; margin-bottom: 16px; }
.vd-pill {
    display: inline-block; margin-bottom: 8px; padding: 3px 10px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
    color: var(--primary); background: var(--primary-soft); border-radius: 999px;
}
.vd-card-head h3 { margin: 0 0 4px; font-size: 16px; color: #102a43; }
.vd-card-head p { margin: 0; font-size: 12.5px; color: var(--muted); }

.vd-flow { position: relative; display: flex; align-items: stretch; }
.vd-step {
    position: relative; flex: 1 1 0; min-width: 0;
    padding: 14px 12px 12px;
    background: #fff; border: 1px solid #e6eef7; border-radius: 14px;
    box-shadow: 0 4px 14px rgba(31, 45, 61, .05);
    transition: transform .18s ease, box-shadow .18s ease;
}
.vd-step:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 45, 61, .10); }
.vd-step::before {
    content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 3px;
    border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #0b84e0, #12b5c9);
}
.vd-step.tone-green::before { background: linear-gradient(90deg, #0e9f6e, #3dd598); }
.vd-step-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; margin-bottom: 8px;
    font-size: 11px; font-weight: 800; color: #0b6fd0;
    background: #e8f3fd; border-radius: 9px;
}
.vd-step.tone-cyan .vd-step-no { color: #0a8fa0; background: #e6f8fb; }
.vd-step.tone-green .vd-step-no { color: #0e9f6e; background: #e7f8f0; }
.vd-step b { display: block; margin-bottom: 4px; font-size: 13.5px; color: #102a43; }
.vd-step-desc { display: block; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.vd-conn {
    position: relative; flex: 0 0 26px; align-self: center; height: 2px;
    background: linear-gradient(90deg, #d5e6f7, #9cc6ea);
}
.vd-conn::after {
    content: ""; position: absolute; right: -1px; top: 50%;
    width: 7px; height: 7px; transform: translateY(-50%) rotate(45deg);
    border-top: 2px solid #7fb3dd; border-right: 2px solid #7fb3dd;
}

.vd-canvas {
    padding: 6px 8px; background: #fff;
    border: 1px solid #e6eef7; border-radius: 14px;
}
.vd-canvas svg { display: block; width: 100%; height: auto; }
.vd-svg-title { font-size: 14px; font-weight: 700; fill: #fff; text-anchor: middle; }
.vd-svg-sub { font-size: 10.5px; text-anchor: middle; }
.vd-svg-label { font-size: 10.5px; fill: #7b8da3; }
.vd-svg-label.amber { fill: #d97706; }

.vd-ledger { display: flex; align-items: stretch; }
.vd-ledger-item {
    position: relative; flex: 1 1 0; min-width: 0;
    padding: 14px 14px 12px;
    background: #fff; border: 1px solid #e6eef7; border-radius: 14px;
    box-shadow: 0 6px 18px rgba(31, 45, 61, .06);
}
.vd-ledger-item.lv-1 { border-top: 3px solid #0b84e0; }
.vd-ledger-item.lv-2 { border-top: 3px solid #12b5c9; }
.vd-ledger-item.lv-3 { border-top: 3px solid #0e9f6e; }
.vd-ledger-tag {
    display: inline-block; padding: 2px 8px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
    color: #0b6fd0; background: #eef6fe; border-radius: 999px;
}
.vd-ledger-item.lv-2 .vd-ledger-tag { color: #0a8fa0; background: #e6f8fb; }
.vd-ledger-item.lv-3 .vd-ledger-tag { color: #0e9f6e; background: #e7f8f0; }
.vd-ledger-item b { display: block; margin: 8px 0 6px; font-size: 14px; color: #102a43; }
.vd-ledger-item p { margin: 0 0 10px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.vd-ledger-key {
    display: inline-block; padding: 2px 8px;
    font-size: 11px; font-weight: 700; color: #0b6fd0;
    background: #eef6fe; border-radius: 999px;
}
.vd-ledger-link {
    position: relative; flex: 0 0 54px;
    display: flex; align-items: center; justify-content: center;
}
.vd-ledger-link::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px;
    background: linear-gradient(90deg, #d5e6f7, #9cc6ea);
}
.vd-ledger-link span {
    position: relative; z-index: 1; padding: 2px 6px;
    font-size: 10.5px; font-weight: 700; color: #0b6fd0;
    background: #fff; border: 1px solid #cfe2f5; border-radius: 999px;
}

/* 三大档案：用户 / 订单 / 水票 */
.vd-arch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vd-arch-col {
    display: flex; flex-direction: column; gap: 8px;
    padding: 14px;
    background: #fff; border: 1px solid #e6eef7; border-radius: 14px;
    border-top: 3px solid #0b84e0;
    box-shadow: 0 6px 18px rgba(31, 45, 61, .06);
}
.vd-arch-col.arch-order { border-top-color: #12b5c9; }
.vd-arch-col.arch-ticket { border-top-color: #0e9f6e; }
.vd-arch-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 14px; font-weight: 700; color: #102a43;
}
.vd-arch-head span { font-size: 10.5px; font-weight: 600; color: #7b8da3; }
.vd-tier {
    padding: 8px 10px;
    background: #f7fbff; border: 1px solid #e6eef7; border-radius: 10px;
}
.vd-tier em {
    display: inline-block; font-style: normal; margin-right: 6px; padding: 1px 7px;
    font-size: 10px; font-weight: 700; color: #0b6fd0;
    background: #eef6fe; border-radius: 999px;
}
.vd-tier b { font-size: 12px; color: #102a43; }
.vd-tier span { display: block; margin-top: 4px; font-size: 10.5px; line-height: 1.55; color: #7b8da3; word-break: break-all; }
.vd-arch-key { margin-top: auto; padding-top: 4px; font-size: 10.5px; font-weight: 700; color: #0b6fd0; }
.vd-chain {
    margin-top: 14px; padding: 10px 12px;
    background: #f7fbff; border: 1px dashed #cfe2f5; border-radius: 10px;
    font-size: 11px; line-height: 2; color: #476177; word-break: break-all;
}
.vd-chain-title { font-weight: 700; color: #0b6fd0; margin-right: 8px; }
.vd-chain code {
    padding: 1px 6px; background: #fff; border: 1px solid #dbe8f5;
    border-radius: 5px; font-size: 10.5px; color: #0b6fd0;
}
.sw3d-empty { margin: auto; font-size: 11px; color: #a7b8ca; }

/* 立体泳道流程 */
.sw3d { overflow-x: auto; padding: 4px 2px 12px; perspective: 1500px; }
.sw3d-grid {
    display: grid;
    grid-template-columns: 104px repeat(5, minmax(0, 1fr));
    gap: 8px; min-width: 760px; padding: 12px;
    border: 1px solid #dbe8f5; border-radius: 16px;
    background: linear-gradient(180deg, #f2f8ff 0%, #e8f1fa 100%);
    box-shadow: inset 0 1px 0 #fff, 0 18px 30px rgba(31, 45, 61, .10);
    transform: rotateX(6deg);
    transform-style: preserve-3d;
    transform-origin: 50% 0;
}
.sw3d-corner {
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; color: #8aa0b6;
}
.sw3d-stage {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 8px; border-radius: 11px;
    background: linear-gradient(180deg, #fff, #eef6fe);
    border: 1px solid #d8e7f5;
    box-shadow: 0 4px 0 #d7e5f2, 0 10px 16px rgba(31, 45, 61, .08);
    font-size: 12px; font-weight: 700; color: #23425f; white-space: nowrap;
}
.sw3d-stage b {
    display: flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    background: linear-gradient(135deg, #2b9df4, #0b6fd0);
    color: #fff; font-size: 10.5px;
}
.sw3d-lane {
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 8px; border-radius: 12px;
    font-size: 12px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #6aa9e0, #3d7fbd);
    box-shadow: 0 6px 0 rgba(25, 74, 120, .18), 0 12px 18px rgba(31, 45, 61, .12);
}
.sw3d-lane.lane-b {
    background: linear-gradient(135deg, #4cc3d9, #1a93ab);
    box-shadow: 0 6px 0 rgba(16, 105, 120, .18), 0 12px 18px rgba(31, 45, 61, .12);
}
.sw3d-lane.lane-c {
    background: linear-gradient(135deg, #3ecf8e, #12986a);
    box-shadow: 0 6px 0 rgba(10, 110, 75, .18), 0 12px 18px rgba(31, 45, 61, .12);
}
.sw3d-lane.lane-d {
    background: linear-gradient(135deg, #f0b34a, #d98a12);
    box-shadow: 0 6px 0 rgba(150, 95, 10, .18), 0 12px 18px rgba(31, 45, 61, .12);
}
.sw3d-cell {
    display: flex; align-items: center; min-height: 84px; padding: 4px;
    border: 1px dashed #d3e3f2; border-radius: 12px;
    background: rgba(255, 255, 255, .5);
}
.sw3d-cell.is-empty { background: rgba(255, 255, 255, .25); border-color: #e0ebf6; }
.sw3d-node {
    position: relative; width: 100%; padding: 10px 11px 9px;
    border: 1px solid #dbe8f5; border-radius: 11px;
    background: linear-gradient(180deg, #fff, #f7fbff);
    box-shadow: 0 5px 0 #dbe7f3, 0 12px 18px rgba(31, 45, 61, .10);
    transform: translateZ(10px);
    transition: transform .18s ease, box-shadow .18s ease;
}
.sw3d-node:hover {
    transform: translateZ(26px) translateY(-2px);
    box-shadow: 0 7px 0 #d3e3f1, 0 18px 28px rgba(31, 45, 61, .16);
}
.sw3d-node::before {
    content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #0b84e0, #12b5c9);
}
.sw3d-node.tone-cyan::before { background: linear-gradient(90deg, #12b5c9, #4dd6e8); }
.sw3d-node.tone-green::before { background: linear-gradient(90deg, #0e9f6e, #3dd598); }
.sw3d-node.tone-amber::before { background: linear-gradient(90deg, #d97706, #f6b73c); }
.sw3d-node.tone-red::before { background: linear-gradient(90deg, #dc2626, #f36b6b); }
.sw3d-node b { display: block; margin-bottom: 4px; font-size: 12.5px; color: #102a43; }
.sw3d-node span { display: block; font-size: 11px; line-height: 1.5; color: #6b7f93; }

@media (max-width: 900px) {
    .sw3d-grid { transform: none; }
    .vd-arch { grid-template-columns: 1fr; }
}

/* 自由流程连线图 */
.flow3d { overflow-x: auto; padding: 2px 2px 10px; }
.flow3d svg { display: block; width: 100%; min-width: 1040px; height: auto; }
.flow3d-zone { font-size: 12.5px; font-weight: 700; fill: #7b8da3; }
.flow3d-title { font-size: 15px; font-weight: 700; fill: #fff; text-anchor: middle; }
.flow3d-sub { font-size: 11px; text-anchor: middle; }
.flow3d-ch-title { font-size: 13px; font-weight: 700; fill: #fff; text-anchor: middle; }
.flow3d-ch-sub { font-size: 10.5px; text-anchor: middle; }
.flow3d-label { font-size: 11px; fill: #7b8da3; }
.flow3d-decision { font-size: 13px; font-weight: 700; fill: #fff; text-anchor: middle; }
.flow3d-decision-sub { font-size: 10px; fill: #fff3d8; text-anchor: middle; }
.flow3d-decision-small { font-size: 12px; font-weight: 700; fill: #fff; text-anchor: middle; }
.flow3d-note { font-size: 11px; fill: #8aa0b6; text-anchor: middle; }
.flow3d-node {
    transform-box: fill-box; transform-origin: center;
    transition: transform .2s ease;
}
.flow3d-node:hover { transform: translateY(-3px); }
@media (max-width: 900px) {
    .flow3d svg { min-width: 960px; }
}

@media (max-width: 1200px) {
    .vd-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .vd-conn { display: none; }
}
@media (max-width: 900px) {
    .vd-ledger { flex-direction: column; gap: 10px; }
    .vd-ledger-link { flex: 0 0 24px; }
    .vd-ledger-link::before {
        left: 50%; right: auto; top: 0; bottom: 0;
        width: 2px; height: auto; transform: translateX(-50%);
    }
}
@media (max-width: 719px) {
    .voucher-step { gap: 10px; }
    .voucher-step p { font-size: 12.5px; }
    .vd-flow { grid-template-columns: 1fr; }
    .vd-card { padding: 14px 14px 16px; }
    .vd-canvas { overflow-x: auto; }
    .vd-canvas svg { min-width: 520px; }
}

/* ============ 水站常备商品 ============ */
.station-product-table { min-width: 1080px; }
.station-product-table th,
.station-product-table td { padding: 10px 8px; vertical-align: middle; }
.station-product-table select,
.station-product-table input[type="number"] { width: 100%; min-width: 0; padding: 7px 8px; }
.station-product-table select[name="product_id"] { min-width: 220px; }
.station-product-table .add-row td { background: #fafcff; }
.station-product-table .btn-sm,
.station-product-table .link-danger { white-space: nowrap; }

@media (max-width: 900px) {
    .station-product-table { min-width: 0; }
    .station-product-table th,
    .station-product-table td { padding: 7px 0; }
    .station-product-table select,
    .station-product-table input[type="number"] { max-width: 220px; }
    .station-product-table select[name="product_id"] { min-width: 0; max-width: none; }
    .panel-head { flex-wrap: wrap; gap: 8px; }
}

/* 水站商品搜索联想 */
.product-combo { position: relative; }
.product-combo input[type="text"] { width: 100%; }
.product-combo-list {
    display: none;
    position: fixed;
    z-index: 80;
    max-height: 260px;
    overflow: auto;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 40, 80, .14);
}
.product-combo-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}
.product-combo-item:hover,
.product-combo-item.is-active { background: #eef6ff; }
.product-combo-item .muted { font-size: 12px; white-space: nowrap; }
.product-combo-empty { padding: 10px; color: var(--muted); font-size: 13px; }

/* 批量设置商品 */
.batch-check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    max-height: 260px;
    overflow: auto;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdff;
}
.batch-check-list .perm-item { min-width: 240px; align-items: flex-start; }
.batch-check-list .perm-item .muted { display: block; font-weight: normal; }
