/* ==========================================================================
   /h5 用户自助下单端 · 样式表
   设计令牌沿用旧端 frontend/styles/main.css（品蓝白商务风），无任何 CDN 依赖
   断点：≤900px 断双栏 + 汉堡导航；≤560px 断网格/字号 + 底部固定操作栏
   ========================================================================== */

/* ------------------------------ 1. 令牌 ------------------------------ */
:root {
    --primary: #2563EB;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --primary-line: #bfdbfe;

    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    --text: #0f172a;
    --text-sub: #475569;
    --text-muted: #94a3b8;

    --ok: #10b981;
    --ok-soft: #ecfdf5;
    --warn: #f59e0b;
    --warn-soft: #fffbeb;
    --danger: #ef4444;
    --danger-soft: #fef2f2;
    --info-soft: #eff6ff;

    --radius-card: 12px;
    --radius-ctrl: 8px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .07);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, .12);

    --header-h: 64px;
    --bottom-h: 72px;

    --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC',
            'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Courier New', monospace;
}

/* ------------------------------ 2. 基础 ------------------------------ */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; }

p { margin: 0; }

button { font-family: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.page-main { min-height: 60vh; padding-bottom: 56px; }

.muted { color: var(--text-muted); }
.sub { color: var(--text-sub); }
.hidden { display: none !important; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ------------------------------ 3. 通用组件 ------------------------------ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}

.card-pad { padding: 20px; }

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.card-title { font-size: 16px; font-weight: 600; }

.section { margin-top: 48px; }

.section-head { text-align: center; margin-bottom: 24px; }
.section-head .section-title { font-size: 24px; }
.section-head .section-sub { margin-top: 8px; color: var(--text-sub); font-size: 14px; }

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-ctrl);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, opacity .15s;
    white-space: nowrap;
    user-select: none;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-outline { border-color: var(--primary-line); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary-soft); color: var(--primary-hover); }

.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-sub); }
.btn-ghost:hover { background: var(--surface-soft); color: var(--text); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }

.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 6px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn[disabled], .btn.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: h5-spin .7s linear infinite;
}
.btn-outline.is-loading::after, .btn-ghost.is-loading::after {
    border-color: rgba(37, 99, 235, .3);
    border-top-color: var(--primary);
}

@keyframes h5-spin { to { transform: rotate(360deg); } }

/* 徽标 */
.badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    background: var(--surface-soft);
    color: var(--text-sub);
    white-space: nowrap;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: #b45309; }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--primary); }
.badge-muted { background: var(--surface-soft); color: var(--text-muted); }

.tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
    background: var(--surface-soft);
    color: var(--text-sub);
}
.tag-blue { background: var(--primary-soft); color: var(--primary); }

/* 提示条 */
.alert {
    padding: 12px 14px;
    border-radius: var(--radius-ctrl);
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.65;
}
.alert-danger { background: var(--danger-soft); border-color: #fecaca; color: #b91c1c; }
.alert-warn { background: var(--warn-soft); border-color: #fde68a; color: #b45309; }
.alert-info { background: var(--info-soft); border-color: var(--primary-line); color: #1d4ed8; }
.alert-ok { background: var(--ok-soft); border-color: #a7f3d0; color: #047857; }
.alert-title { font-weight: 600; margin-bottom: 4px; }

/* 空态 */
.empty {
    padding: 56px 20px;
    text-align: center;
    color: var(--text-muted);
}
.empty-icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--text-muted);
}
.empty-icon svg { width: 26px; height: 26px; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--text-sub); }
.empty-sub { margin-top: 6px; font-size: 13px; }

/* Toast */
.toast-wrap {
    position: fixed;
    top: calc(var(--header-h) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 420px;
}
.toast {
    max-width: 100%;
    padding: 11px 18px;
    border-radius: var(--radius-ctrl);
    background: rgba(15, 23, 42, .92);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: var(--shadow-lg);
    animation: h5-toast-in .22s ease-out;
    word-break: break-all;
}
.toast-ok { background: rgba(5, 150, 105, .95); }
.toast-error { background: rgba(220, 38, 38, .95); }
.toast.is-out { animation: h5-toast-out .2s ease-in forwards; }

@keyframes h5-toast-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes h5-toast-out {
    to { opacity: 0; transform: translateY(-8px); }
}

/* ------------------------------ 4. 头部导航 ------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo { height: 32px; width: auto; border-radius: 6px; }
.brand-mark {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: .2px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-ctrl);
    background: var(--surface);
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    width: 18px; height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--text-sub);
    transition: transform .2s, opacity .2s;
}
.site-header.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-ctrl);
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--surface-soft); color: var(--text); }
.nav-link.is-active { background: var(--primary-soft); color: var(--primary); }

.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-user-name { display: flex; align-items: center; gap: 8px; color: var(--text-sub); font-size: 14px; }
.nav-user-name:hover { color: var(--primary); }
.nav-user-text { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 维护横幅 */
.maintenance-banner {
    background: var(--warn-soft);
    border-bottom: 1px solid #fde68a;
    color: #b45309;
    font-size: 13px;
}
.maintenance-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 9px;
    padding-bottom: 9px;
}
.maintenance-tag {
    padding: 1px 8px;
    border-radius: 6px;
    background: #f59e0b;
    color: #fff;
    font-size: 12px;
}
.maintenance-time { color: #92400e; opacity: .85; }

/* ------------------------------ 5. 页脚 ------------------------------ */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    margin-top: 40px;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 22px;
    padding-bottom: 22px;
}
.footer-brand { font-size: 14px; font-weight: 600; color: var(--text-sub); }
.footer-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }

/* ------------------------------ 6. 首页 ------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 52%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
}
.hero::after {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .12), transparent 68%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    padding: 64px 16px 72px;
    max-width: 760px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    margin-bottom: 18px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid var(--primary-line);
    color: var(--primary);
    font-size: 13px;
    box-shadow: var(--shadow-sm);
}
.hero-title { font-size: 40px; line-height: 1.2; letter-spacing: -.5px; }
.hero-title em { font-style: normal; color: var(--primary); }
.hero-sub { margin-top: 16px; font-size: 16px; color: var(--text-sub); max-width: 620px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.hero-stat-num { font-size: 24px; font-weight: 700; color: var(--primary); }
.hero-stat-label { margin-top: 2px; font-size: 13px; color: var(--text-muted); }

/* 套餐列表 */
.plist-wrap { max-width: 1040px; margin: 0 auto; padding: 24px 22px 44px; }
.plist-head { padding: 10px 0 20px; border-bottom: 1px solid var(--border); }
.plist-eyebrow { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.plist-title { margin: 0; font-size: clamp(24px, 4vw, 32px); line-height: 1.2; letter-spacing: -.03em; font-weight: 600; }
.plist-sub { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-sub); }
.plist-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 20px; }
.plist-chips { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.plist-chips::-webkit-scrollbar { display: none; }
.plist-chip { flex: none; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-sub); font-size: 13px; text-decoration: none; white-space: nowrap; transition: border-color .2s ease, color .2s ease; }
.plist-chip:hover { border-color: var(--primary-line); color: var(--text); }
.plist-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.plist-search { display: flex; gap: 8px; }
.plist-input { width: 210px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 16px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.plist-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.plist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; align-items: stretch; }
.plist-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.plist-card:hover { border-color: var(--primary-line); transform: translateY(-2px); }
.plist-card.is-pick { border-color: var(--primary); }
.plist-thumb { position: relative; margin: -18px -18px 2px; overflow: hidden; border-radius: 13px 13px 0 0; background: var(--primary-soft); }
.plist-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.plist-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plist-name { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.plist-pick { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; }
.plist-desc { margin: 0; min-height: 42px; font-size: 13px; line-height: 1.65; color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plist-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.plist-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.plist-price { display: flex; align-items: baseline; gap: 2px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.plist-price small { font-size: 13px; font-weight: 500; color: var(--text-sub); }
.plist-price em { margin-left: 4px; font-size: 12px; font-style: normal; color: var(--text-muted); }
.plist-empty { padding: 44px 20px; text-align: center; border: 1px dashed var(--border); border-radius: 14px; color: var(--text-sub); font-size: 13px; }
.plist-empty a { color: var(--primary); text-decoration: none; }

@media (max-width: 760px) {
    .plist-wrap { padding: 18px 18px 36px; }
    .plist-tools { flex-direction: column; align-items: stretch; gap: 10px; margin: 14px 0 16px; }
    .plist-grid { grid-template-columns: 1fr; gap: 12px; }
    .plist-search .plist-input { flex: 1; width: auto; }
}

/* 三步流程 */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flow-step {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}
.flow-num {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
}
.flow-title { margin-top: 14px; font-size: 15px; font-weight: 600; }
.flow-desc { margin-top: 6px; font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* 特性区 */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.feature-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-title { margin-top: 12px; font-size: 14px; font-weight: 600; }
.feature-desc { margin-top: 4px; font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ------------------------------ 7. 列表页工具栏 ------------------------------ */
.page-head {
    padding: 28px 0 4px;
}
.page-head-title { font-size: 26px; }
.page-head-sub { margin-top: 6px; color: var(--text-sub); font-size: 14px; }

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.tabs-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tabs-scroll::-webkit-scrollbar { display: none; }
.tab {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-sub);
    font-size: 13px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.tab:hover { border-color: var(--primary-line); color: var(--primary); }
.tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.search-box { display: flex; align-items: center; gap: 8px; }
.search-input {
    width: 240px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-ctrl);
    background: var(--surface);
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

/* ------------------------------ 8. 表单 ------------------------------ */
.field { margin-bottom: 18px; }
.field-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sub);
}
.field-label .req { color: var(--danger); margin-left: 2px; }
.field-hint { margin-top: 6px; font-size: 12px; color: var(--text-muted); line-height: 1.6; }

.input, .select, .textarea {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-ctrl);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 16px; /* 低于 16px 会触发 iOS 自动缩放 */
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}
.textarea { height: auto; min-height: 96px; padding: 11px 12px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2394a3b8' stroke-width='2' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 下单页双栏 */
.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
    margin-top: 20px;
}
.checkout-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card {
    position: relative;
    flex: 1 1 140px;
    min-width: 130px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-ctrl);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.radio-card:hover { border-color: var(--primary-line); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card-title { font-size: 14px; font-weight: 500; }
.radio-card-desc { margin-top: 2px; font-size: 12px; color: var(--text-muted); }
.radio-card.is-checked {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.radio-card.is-disabled { opacity: .6; cursor: not-allowed; }

/* Logo 上传 */
.logo-upload { display: flex; align-items: center; gap: 14px; }
.logo-preview {
    position: relative;
    width: 72px; height: 72px;
    flex: 0 0 72px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-ctrl);
    background: var(--surface-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    overflow: hidden;
    cursor: pointer;
}
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.logo-upload-tip { font-size: 12px; color: var(--text-muted); line-height: 1.7; }

/* 价格摘要 */
.summary-card { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    font-size: 14px;
    color: var(--text-sub);
}
.summary-row .summary-val { color: var(--text); font-weight: 500; text-align: right; word-break: break-all; }
.summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}
.summary-total-amount { font-size: 26px; font-weight: 700; color: var(--danger); }
.summary-total-amount .unit { font-size: 14px; font-weight: 500; margin-right: 2px; }

/* ------------------------------ 9. 订单列表 ------------------------------ */
.order-list { display: flex; flex-direction: column; gap: 14px; }

.order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow .18s, border-color .18s;
}
.order-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-line); }
.order-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}
.order-no { font-family: var(--font-mono); font-size: 13px; color: var(--text-sub); word-break: break-all; }
.order-card-body { padding: 16px 18px; }
.order-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.order-club { font-size: 16px; font-weight: 600; word-break: break-all; }
.order-pkg { margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.order-amount { font-size: 20px; font-weight: 700; color: var(--danger); white-space: nowrap; }

.order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 20px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}
.order-field { display: flex; gap: 8px; font-size: 13px; min-width: 0; }
.order-field-key { flex: 0 0 62px; color: var(--text-muted); }
.order-field-val { color: var(--text-sub); word-break: break-all; }

.order-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 18px;
    border-top: 1px solid var(--border);
}
.order-time { font-size: 12px; color: var(--text-muted); }
.order-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 分页器 */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}
.pager-info { font-size: 13px; color: var(--text-muted); }

/* ------------------------------ 10. 订单详情 ------------------------------ */
.order-hero {
    margin-top: 24px;
    padding: 26px 24px;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.order-hero.is-ok { background: linear-gradient(135deg, #ecfdf5, #ffffff); border-color: #a7f3d0; }
.order-hero.is-warn { background: linear-gradient(135deg, #fffbeb, #ffffff); border-color: #fde68a; }
.order-hero.is-info { background: linear-gradient(135deg, #eff6ff, #ffffff); border-color: var(--primary-line); }
.order-hero.is-danger { background: linear-gradient(135deg, #fef2f2, #ffffff); border-color: #fecaca; }

.order-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.order-hero-title { font-size: 22px; }
.order-hero-sub { margin-top: 6px; font-size: 14px; color: var(--text-sub); }
.order-hero-no { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); word-break: break-all; }
.order-hero-amount { font-size: 26px; font-weight: 700; color: var(--danger); white-space: nowrap; }

/* 进度条 */
.progress-track {
    height: 8px;
    margin-top: 18px;
    border-radius: var(--radius-pill);
    background: var(--surface-soft);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    transition: width .4s ease;
}
.progress-meta { margin-top: 8px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }

/* 时间线 */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 6px; bottom: 6px;
    width: 2px;
    background: var(--border);
    border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 20px 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
    position: absolute;
    left: -26px; top: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border-strong);
    z-index: 1;
}
.tl-item.is-running .tl-dot { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); animation: h5-pulse 1.4s ease-in-out infinite; }
.tl-item.is-done .tl-dot { border-color: var(--ok); background: var(--ok); }
.tl-item.is-failed .tl-dot { border-color: var(--danger); background: var(--danger); }
@keyframes h5-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, .05); }
}
.tl-name { font-size: 14px; font-weight: 600; }
.tl-item.is-pending .tl-name { color: var(--text-muted); font-weight: 500; }
.tl-msg { margin-top: 3px; font-size: 13px; color: var(--text-sub); word-break: break-all; line-height: 1.6; }
.tl-time { margin-top: 3px; font-size: 12px; color: var(--text-muted); }

/* 键值表 */
.kv { display: flex; flex-direction: column; }
.kv-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--border);
}
.kv-row:last-child { border-bottom: none; }
.kv-key { flex: 0 0 96px; font-size: 13px; color: var(--text-muted); }
.kv-val { flex: 1; min-width: 0; font-size: 14px; word-break: break-all; }
.kv-val.mono { font-family: var(--font-mono); font-size: 13px; }
.kv-actions { flex: 0 0 auto; }

.copyable { display: flex; align-items: center; gap: 8px; }
.copyable .copy-text { flex: 1; min-width: 0; word-break: break-all; }
.copy-btn {
    flex: 0 0 auto;
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-sub);
    font-size: 12px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.copy-btn:hover { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary); }

/* 部署前置检查 */
.preflight-list { display: flex; flex-direction: column; gap: 8px; }
.preflight-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--radius-ctrl);
    font-size: 13px;
    line-height: 1.6;
    background: var(--surface-soft);
    color: var(--text-sub);
}
.preflight-item.is-ok { background: var(--ok-soft); color: #047857; }
.preflight-item.is-bad { background: var(--danger-soft); color: #b91c1c; }
.preflight-mark { flex: 0 0 auto; font-weight: 700; }

/* 日志 */
.log-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-sub);
    user-select: none;
}
.log-box {
    margin-top: 12px;
    max-height: 320px;
    overflow: auto;
    padding: 12px 14px;
    border-radius: var(--radius-ctrl);
    background: #0f172a;
    color: #cbd5e1;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.75;
}
.log-line { display: flex; gap: 10px; }
.log-line + .log-line { margin-top: 2px; }
.log-time { flex: 0 0 auto; color: #64748b; }
.log-text { word-break: break-all; }

/* 状态说明区 */
.panel { margin-top: 20px; }
.panel .card-title { display: flex; align-items: center; gap: 8px; }

/* ------------------------------ 11. 认证页 ------------------------------ */
.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 56px 16px 72px;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 30px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
}
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-logo {
    width: 52px; height: 52px;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}
.auth-title { font-size: 21px; }
.auth-sub { margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.auth-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); text-align: center; font-size: 13px; color: var(--text-muted); }

.verify-status-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.verify-status-card.is-ok { background: var(--ok-soft); border-color: #a7f3d0; }
.verify-status-card.is-warn { background: var(--warn-soft); border-color: #fde68a; }
.verify-status-card.is-danger { background: var(--danger-soft); border-color: #fecaca; }
.verify-status-card.is-muted { background: var(--surface-soft); }
.verify-status-title { font-size: 16px; font-weight: 600; }
.verify-status-desc { margin-top: 5px; font-size: 13px; color: var(--text-sub); line-height: 1.65; }

/* ------------------------------ 12. 底部固定操作栏（移动端） ------------------------------ */
.bottom-bar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.bottom-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}
.bottom-total { min-width: 0; }
.bottom-total-label { font-size: 12px; color: var(--text-muted); }
.bottom-total-amount { font-size: 19px; font-weight: 700; color: var(--danger); }
.bottom-bar .btn { flex: 0 0 auto; min-width: 130px; }
.bottom-note { font-size: 12px; color: var(--text-muted); }

/* ------------------------------ 13. 骨架屏 ------------------------------ */
.skeleton {
    border-radius: var(--radius-ctrl);
    background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
    background-size: 400% 100%;
    animation: h5-skeleton 1.4s ease infinite;
}
@keyframes h5-skeleton {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ==========================================================================
   14. 响应式 · ≤900px：断双栏 + 汉堡导航
   ========================================================================== */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }

    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px 0 10px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .site-header.is-open .site-nav { display: flex; }

    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link {
        height: 46px;
        padding: 0 16px;
        border-radius: 0;
        font-size: 15px;
    }
    .nav-link.is-active { background: var(--primary-soft); }

    .nav-user {
        margin-top: 6px;
        padding: 12px 16px 0;
        border-top: 1px solid var(--border);
        justify-content: flex-end;
    }
    .nav-user-text { max-width: 180px; }

    .hero-inner { padding: 44px 16px 52px; }
    .hero-title { font-size: 32px; }
    .hero-sub { font-size: 15px; }
    .hero-stats { gap: 28px; margin-top: 30px; }

    .steps-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }

    /* 下单页：价格摘要移到表单之后 */
    .checkout-grid { grid-template-columns: 1fr !important; }
    .summary-card { position: static; }
    .checkout-aside { order: 2; }

    .field-row { grid-template-columns: 1fr; }

    .order-main { flex-direction: column; gap: 8px; }
    .order-amount { font-size: 18px; }

    .kv-key { flex: 0 0 80px; }
}

/* ==========================================================================
   15. 响应式 · ≤560px：断网格/字号 + 底部固定操作栏
   ========================================================================== */
@media (max-width: 560px) {
    body { font-size: 14px; }

    .container { padding: 0 12px; }

    .section { margin-top: 32px; }
    .section-head .section-title { font-size: 20px; }

    .page-head { padding: 18px 0 0; }
    .page-head-title { font-size: 21px; }

    .hero-inner { padding: 34px 12px 40px; }
    .hero-title { font-size: 25px; letter-spacing: -.2px; }
    .hero-sub { font-size: 14px; margin-top: 12px; }
    .hero-actions { margin-top: 22px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-stats { gap: 20px 28px; margin-top: 26px; }
    .hero-stat-num { font-size: 20px; }

    .feature-grid { grid-template-columns: 1fr; }

    .card-pad { padding: 16px; }
    .card-head { padding: 14px 16px; }

    .search-input { width: 100%; }
    .search-box { width: 100%; }
    .toolbar { gap: 10px; }

    .order-card-head { padding: 11px 14px; }
    .order-card-body { padding: 14px; }
    .order-card-foot { padding: 11px 14px; }
    .order-actions { width: 100%; }
    .order-actions .btn { flex: 1 1 auto; }

    .order-grid { grid-template-columns: 1fr; gap: 6px; }

    .order-hero { padding: 20px 16px; }
    .order-hero-title { font-size: 19px; }
    .order-hero-amount { font-size: 22px; }

    .auth-wrap { padding: 28px 12px 48px; }
    .auth-card { padding: 24px 20px; }

    .kv-row { flex-direction: column; gap: 4px; }
    .kv-key { flex: none; }

    /* 底部固定操作栏启用 */
    .bottom-bar { display: block; }
    /* 移动端隐藏正文内重复的操作按钮，只保留底部固定操作栏 */
    body.has-bottom-bar #submitBtn,
    body.has-bottom-bar #payBtn,
    body.has-bottom-bar #retryBtn2 { display: none; }
    body.has-bottom-bar .page-main { padding-bottom: calc(var(--bottom-h) + 24px); }
    body.has-bottom-bar .site-footer { margin-bottom: var(--bottom-h); }

    .toast-wrap { top: calc(var(--header-h) + 10px); }
}

/* 打印/无障碍：尊重减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ==========================================================================
   16. P0 视觉升级：确认订单 / 订单详情
   —— 只调整排版、层级与控件外观，不改任何业务逻辑
   ========================================================================== */
:root {
    --radius-card: 14px;
    --border: #E4E9F0;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-md: 0 8px 24px -14px rgba(15, 23, 42, .18);
}

.card { border-color: var(--border); box-shadow: var(--shadow-sm); }
.card-head { padding: 16px 20px; }
.card-pad { padding: 20px; }

/* 确认订单页头 */
.checkout-page { max-width: 1040px; }
.checkout-top { padding: 24px 0 4px; }
.back-link {
    display: inline-block;
    font-size: 13px;
    color: var(--text-sub);
    text-decoration: none;
    padding: 4px 0;
}
.back-link:hover { color: var(--primary); }
.checkout-title {
    margin-top: 10px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.01em;
}
.checkout-sub { margin-top: 4px; font-size: 13px; color: var(--text-muted); }

/* 套餐摘要 */
.pkg-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}
.pkg-summary-thumb {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pkg-summary-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pkg-summary-body { flex: 1; min-width: 0; }
.pkg-summary-name { font-size: 16px; font-weight: 600; line-height: 1.4; }
.pkg-summary-desc {
    margin-top: 2px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pkg-summary-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pkg-summary-price {
    flex: none;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.pkg-summary-price span { font-size: 13px; font-weight: 500; margin-right: 1px; }

/* 表单分步 */
.form-step {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.form-step:not(:first-child) {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}
.form-step-no {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 单选卡片强化 */
.radio-card {
    padding: 13px 14px;
    border-radius: 12px;
    padding-right: 30px;
}
.radio-card:hover { border-color: var(--primary-line); background: var(--surface); }
.radio-card.is-checked { box-shadow: none; }
.radio-card.is-checked .radio-card-title { color: var(--primary); }
.radio-card.is-checked::after {
    content: '✓';
    position: absolute;
    top: 11px;
    right: 11px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    line-height: 17px;
    text-align: center;
}
.radio-card.is-disabled::after { display: none; }

/* 费用明细 */
.summary-card .card-title { font-size: 15px; }
.summary-total-amount { color: var(--text); }
.summary-total-amount .unit { color: var(--text-sub); }

/* 底部固定操作栏 */
.bottom-bar {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px -14px rgba(15, 23, 42, .25);
}
.bottom-total-amount { color: var(--text); }
.bottom-bar .btn { min-width: 148px; height: 46px; border-radius: 12px; }

/* 订单详情：扁平状态卡，去掉渐变 */
.order-hero {
    border-radius: var(--radius-card);
    box-shadow: none;
    border-left-width: 3px;
    border-left-style: solid;
}
.order-hero.is-ok { background: var(--surface); border-color: var(--border); border-left-color: var(--ok); }
.order-hero.is-warn { background: var(--surface); border-color: var(--border); border-left-color: var(--warn); }
.order-hero.is-info { background: var(--surface); border-color: var(--border); border-left-color: var(--primary); }
.order-hero.is-danger { background: var(--surface); border-color: var(--border); border-left-color: var(--danger); }
.order-hero-title { font-size: 23px; letter-spacing: -.01em; }
.order-hero-amount { color: var(--text); }

/* 进度条：纯色，减少视觉噪音 */
.progress-fill {
    background: var(--primary);
    background-image: none;
    transition: width .3s ease;
}

/* 时间线 */
.tl-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #fff;
    line-height: 1;
}
.tl-item.is-done .tl-dot::after { content: '✓'; }
.tl-item.is-failed .tl-dot::after { content: '✕'; }

/* 面板标题层级 */
.panel .card-title { font-size: 15px; }

@media (max-width: 560px) {
    .checkout-top { padding: 16px 0 0; }
    .checkout-title { font-size: 21px; }
    .pkg-summary { padding: 14px; gap: 12px; margin-top: 14px; }
    .pkg-summary-thumb { width: 40px; height: 40px; border-radius: 10px; font-size: 13px; }
    .pkg-summary-name { font-size: 15px; }
    .pkg-summary-price { font-size: 20px; }
    .form-step:not(:first-child) { margin-top: 16px; padding-top: 14px; }
    .order-hero-title { font-size: 20px; }
    .bottom-bar .btn { min-width: 132px; }
}

/* ==========================================================================
   17. P1 视觉升级：首页 / 套餐列表 / 我的订单
   ========================================================================== */

/* 页面标题 */
.page-head-title { font-size: 24px; letter-spacing: -.01em; }
.page-head { padding-top: 24px; }
.page-head-sub { margin-top: 4px; }

/* 首页 Hero */
.hero-inner { padding-top: 48px; padding-bottom: 40px; }
.hero-title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.28; letter-spacing: -.02em; }
.hero-sub { max-width: 640px; }
.hero-stats { margin-top: 24px; }

/* 我的订单：状态分组 */
.status-tabs {
    display: inline-flex;
    gap: 4px;
    margin: 4px 0 16px;
    padding: 4px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 100%;
    overflow-x: auto;
}
.status-tab {
    padding: 7px 16px;
    border-radius: 9px;
    font-size: 13px;
    color: var(--text-sub);
    text-decoration: none;
    white-space: nowrap;
}
.status-tab.is-active {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* 订单卡片 */
.order-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.order-card-head { background: var(--surface-soft); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.order-card-body { padding: 14px; }
.order-card-foot {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--surface);
}
.order-club { font-size: 15px; font-weight: 600; }
.order-amount { font-size: 18px; font-weight: 700; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.order-actions .btn { min-height: 34px; }
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-grid { margin-top: 10px; }

@media (max-width: 560px) {
    .page-head { padding-top: 18px; }
    .page-head-title { font-size: 21px; }
    .hero-inner { padding-top: 34px; padding-bottom: 30px; }
    .hero-stats { gap: 8px; }
    .status-tabs { display: flex; width: 100%; }
    .status-tab { flex: 1; text-align: center; padding: 8px 6px; }

}

/* ==========================================================================
   18. 认证页：登录 / 注册
   ========================================================================== */

.auth-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 36px 0 56px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 26px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.auth-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.auth-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}

.auth-title { font-size: 21px; margin: 0; }
.auth-sub { font-size: 13px; color: var(--text-sub); margin: 0; }

.auth-tabs {
    display: flex;
    gap: 4px;
    margin: 18px 0;
    padding: 4px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 11px;
}
.auth-tab {
    flex: 1;
    padding: 9px 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sub);
    text-decoration: none;
}
.auth-tab.is-active {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.auth-card .field { margin-bottom: 14px; }
.auth-card .field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sub);
}
.auth-card .input {
    height: 48px;
    border-radius: 10px;
    font-size: 16px;
}
.auth-card .input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    outline: none;
}
.auth-card .btn-lg {
    height: 50px;
    margin-top: 6px;
    border-radius: 10px;
    font-size: 16px;
}

.auth-foot {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-sub);
}
.auth-back {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}
.auth-back:hover { color: var(--primary); }

@media (max-width: 560px) {
    .auth-wrap { padding: 20px 16px 40px; }
    .auth-card { padding: 22px 18px; border-radius: 14px; }
    .auth-logo { width: 50px; height: 50px; font-size: 22px; }
    .auth-title { font-size: 19px; }
}

/* ==========================================================================
   19. 首页 · 功能入口
   ========================================================================== */

.hub-wrap { max-width: 1040px; margin: 0 auto; padding: 24px 22px 44px; }

.hub-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0 22px;
    border-bottom: 1px solid var(--border);
}

.hub-eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hub-title {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.2;
    letter-spacing: -.03em;
    font-weight: 600;
}

.hub-sub {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-sub);
}

.hub-auth { display: flex; gap: 8px; flex: none; }

.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.hub-tile {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}
.hub-tile:hover { border-color: var(--primary-line); transform: translateY(-2px); }
.hub-tile.is-primary { background: var(--primary-soft); border-color: var(--primary-line); }

.hub-tile-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--primary);
}
.hub-tile.is-primary .hub-tile-ico { border-color: var(--primary-line); }
.hub-tile-ico svg { width: 20px; height: 20px; }

.hub-tile-title { font-size: 14px; font-weight: 600; color: var(--text); }
.hub-tile-sub { font-size: 12px; color: var(--text-muted); }

.hub-sec { margin-top: 36px; }

.hub-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.hub-sec-head h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.hub-sec-head a { font-size: 13px; color: var(--text-sub); text-decoration: none; }
.hub-sec-head a:hover { color: var(--primary); }

.hub-orders { border-top: 1px solid var(--border); }

.hub-order {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
}
.hub-order:hover .hub-order-name { color: var(--primary); }

.hub-order-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hub-order-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-order-meta { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-order-amt { flex: none; font-size: 14px; font-weight: 600; }
.hub-order-go { flex: none; font-size: 15px; color: var(--text-muted); }

.hub-pkgs { border-top: 1px solid var(--border); }

.hub-pkg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
}
.hub-pkg:hover .hub-pkg-name { color: var(--primary); }
.hub-pkg-thumb { flex: none; width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: var(--primary-soft); border: 1px solid var(--border); }
.hub-pkg-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hub-pkg-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-pkg-meta { flex: none; font-size: 12px; color: var(--text-muted); }
.hub-pkg-price { flex: none; min-width: 64px; text-align: right; font-size: 15px; font-weight: 600; }
.hub-pkg-go { flex: none; font-size: 15px; color: var(--text-muted); }

.hub-empty {
    padding: 18px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-sub);
}
.hub-empty a { color: var(--primary); text-decoration: none; }

@media (max-width: 760px) {
    .hub-wrap { padding: 18px 18px 36px; }
    .hub-head { flex-direction: column; align-items: stretch; gap: 12px; }
    .hub-auth .btn { flex: 1; }
    .hub-grid { gap: 8px; margin-top: 16px; }
    .hub-tile { padding: 12px; }
    .hub-tile-ico { width: 30px; height: 30px; margin-bottom: 8px; border-radius: 8px; }
    .hub-tile-ico svg { width: 17px; height: 17px; }
    .hub-tile-title { font-size: 13px; }
    .hub-tile-sub { font-size: 11px; }
    .hub-sec { margin-top: 28px; }
}

/* ==========================================================================
   20. 响应式导航：移动端液态玻璃底栏 / 桌面端左侧菜单
   ========================================================================== */

/* 顶部条：只保留品牌与账号操作 */
.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-sub);
    font-size: 13px;
}
.header-user-link:hover { color: var(--primary); }

/* 桌面端左侧菜单 */
.side-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    z-index: 1000;
    flex-direction: column;
    padding: 22px 14px 18px;
    background: #fbfbfa;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}
.side-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 8px 22px;
    color: var(--text);
    text-decoration: none;
}
.side-brand:hover { color: var(--text); }
.side-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
}
.side-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.side-brand-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
}
.side-brand-sub {
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--text-muted);
}
.side-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.side-link:hover { background: var(--surface-soft); color: var(--text); }
.side-link.is-active { background: var(--primary-soft); color: var(--primary); }
.side-ico {
    display: inline-flex;
    width: 20px;
    height: 20px;
}
.side-ico svg { width: 20px; height: 20px; }

.side-account {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.side-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px 12px;
}
.side-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}
.side-user-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.side-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
}
.side-account .btn { width: 100%; }

/* 移动端悬浮液态玻璃底栏 */
.glass-dock {
    position: fixed;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom));
    transform: translate3d(-50%, 0, 0);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 4px;
    width: calc(100% - 24px);
    max-width: 430px;
    padding: 6px 8px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .58);
    border: 1px solid rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
    will-change: transform;
    backface-visibility: hidden;
}
.dock-pill {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 0;
    z-index: 0;
    border-radius: 19px;
    background: linear-gradient(180deg, #4E8DF7 0%, #2563EB 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, .32), inset 0 1px 0 rgba(255, 255, 255, .38);
    transition: transform .34s cubic-bezier(.32, .72, 0, 1);
    will-change: transform;
    backface-visibility: hidden;
    pointer-events: none;
}
.dock-link {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    border-radius: 19px;
    color: var(--text-sub);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .26s ease;
}
.dock-link.is-active {
    color: #fff;
}
.dock-ico {
    display: inline-flex;
    width: 20px;
    height: 20px;
    transition: transform .26s cubic-bezier(.3, .7, .4, 1);
    will-change: transform;
}
.dock-link.is-active .dock-ico { transform: translateY(-1px) scale(1.04); }
.dock-link:active .dock-ico { transform: scale(.94); transition-duration: .12s; }
.dock-ico svg { width: 20px; height: 20px; }
.dock-text {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .3px;
    line-height: 1;
}

/* ==========================================================================
   22. 我的：账号、数据概览、功能入口
   ========================================================================== */

.mine-wrap { max-width: 720px; margin: 0 auto; padding: 22px 20px 40px; }

.mine-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.mine-avatar {
    width: 56px;
    height: 56px;
    flex: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 24px;
    font-weight: 600;
}
.mine-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mine-info { min-width: 0; flex: 1; }
.mine-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.01em;
}
.mine-id { margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.mine-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-sub);
}
.mine-guest-actions { display: flex; gap: 10px; margin-top: 12px; }
.mine-guest-actions .btn { flex: 1; }

.mine-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.mine-stat {
    display: block;
    padding: 14px 10px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease;
}
.mine-stat:hover { border-color: var(--primary-line); }
.mine-stat b {
    display: block;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.02em;
}
.mine-stat span { font-size: 12px; color: var(--text-muted); }

.mine-sec-title {
    margin: 24px 0 10px;
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--text-muted);
}
.mine-menu {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.mine-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.mine-row:last-child { border-bottom: 0; }
.mine-row:hover { background: var(--surface-soft); }
.mine-row-ico {
    width: 32px;
    height: 32px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--primary);
}
.mine-row-ico svg { width: 18px; height: 18px; }
.mine-row-label { flex: 1; font-size: 14px; font-weight: 500; }
.mine-row-value {
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-muted);
}
.mine-chev { display: flex; flex: none; color: var(--text-muted); }
.mine-chev svg { width: 16px; height: 16px; }
.mine-row-danger .mine-row-label { color: #b91c1c; }
.mine-row-danger .mine-row-ico { background: #fef2f2; color: #dc2626; }

.mine-note {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-muted);
}

@media (max-width: 560px) {
    .mine-wrap { padding: 18px 16px 32px; }
    .mine-profile { padding: 16px; }
    .mine-stats { gap: 8px; }
    .mine-stat { padding: 12px 6px; }
}

/* ==========================================================================
   23. 我的 · 邀请返佣入口
   ========================================================================== */

.mine-invite {
    display: block;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--primary-line);
    border-radius: 14px;
    background: var(--primary-soft);
    color: inherit;
    text-decoration: none;
}
.mine-invite-top { display: flex; align-items: center; justify-content: space-between; }
.mine-invite-title { font-size: 14px; font-weight: 600; color: var(--primary); }
.mine-invite-rate {
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
}
.mine-invite-grid { display: flex; gap: 28px; margin-top: 12px; }
.mine-invite-grid > div b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.mine-invite-grid > div span { font-size: 12px; color: var(--text-sub); }
.mine-invite-cta { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-top: 12px; font-size: 12px; color: var(--primary); }

/* ==========================================================================
   24. 邀请返佣页
   ========================================================================== */

.invite-wrap { max-width: 720px; margin: 0 auto; padding: 22px 20px 40px; }

.invite-flash {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13px;
}
.invite-flash.is-ok { background: var(--ok-soft); border-color: #a7f3d0; color: #047857; }
.invite-flash.is-err { background: var(--danger-soft); border-color: #fecaca; color: #b91c1c; }

.invite-share {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.invite-share-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.invite-share-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.invite-share-rate {
    flex: none;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
}
.invite-share-sub { margin: 8px 0 14px; font-size: 12px; line-height: 1.7; color: var(--text-sub); }
.invite-link-row { display: flex; gap: 8px; }
.invite-link-input { flex: 1; min-width: 0; height: 38px; font-size: 12px; }
.invite-link-row .btn { flex: none; white-space: nowrap; }

.invite-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.invite-stat {
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.invite-stat b { display: block; margin-bottom: 2px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.invite-stat span { font-size: 12px; color: var(--text-muted); }

.invite-money {
    margin-top: 14px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--primary-line);
    border-radius: 16px;
}
.invite-money-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-sub);
}
.invite-money-top b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--primary); }
.invite-money-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.invite-money-rows > div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-muted); }
.invite-money-rows em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--text); }

.invite-withdraw { margin-top: 14px; }
.invite-withdraw-title { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.invite-withdraw .field { margin-bottom: 10px; }
.invite-withdraw-tip { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--text-muted); }

.invite-sec { margin-top: 24px; }
.invite-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.invite-sec-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.invite-sec-head span { font-size: 12px; color: var(--text-muted); }

.invite-list { border-top: 1px solid var(--border); }
.invite-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.invite-item-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.invite-item-main b { font-size: 14px; font-weight: 500; }
.invite-item-main span { font-size: 12px; color: var(--text-muted); }
.invite-item-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.invite-item-side b { font-size: 14px; font-weight: 600; }
.invite-item-side span { font-size: 12px; color: var(--text-muted); }

.invite-badge { padding: 2px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 500; }
.invite-badge-warn { background: var(--warn-soft); color: #b45309; }
.invite-badge-ok { background: var(--ok-soft); color: #047857; }
.invite-badge-err { background: var(--danger-soft); color: #b91c1c; }

.invite-empty {
    padding: 22px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
}
.invite-note { margin-top: 20px; text-align: center; font-size: 12px; color: var(--text-muted); }

@media (max-width: 560px) {
    .invite-wrap { padding: 18px 16px 32px; }
    .invite-share { padding: 16px; }
    .invite-money { padding: 16px; }
    .invite-stats { gap: 8px; }
    .invite-stat { padding: 12px; }
}

@media (max-width: 1024px) {
    body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
    .side-nav { display: none; }
    /* 下单页已有底部支付栏时，让位给支付栏 */
    body.has-bottom-bar { padding-bottom: 0; }
    body.has-bottom-bar .glass-dock { display: none; }
}

@media (min-width: 1025px) {
    .site-header { display: none; }
    .glass-dock { display: none; }
    .side-nav { display: flex; }
    .page-main,
    .site-footer,
    .maintenance-banner { margin-left: 240px; }
    body { padding-bottom: 0; }
}

@media (max-width: 420px) {
    .header-user .nav-user-text { max-width: 72px; }
    .header-user .badge { display: none; }
}




