/* ===== 城闪到 H5 全局样式 ===== */

:root {
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --secondary-light: #ecfdf5;
    --gold: #f59e0b;
    --gold-light: #fef3c7;
    --gold-dark: #d97706;
    --bg: #f6f1e9;
    --bg2: #FFFFFF;
    --ink: #1F2937;
    --muted: #6B7280;
    --muted2: #9CA3AF;
    --rule: #EEF0F4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #2563eb;
    --gradient-primary: linear-gradient(135deg, #2563eb, #3b82f6);
    --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
    --gradient-gold-btn: linear-gradient(135deg, #fb8c00, #f57c00);
    --shadow-sm: 0 2px 10px rgba(31,41,55,0.05);
    --shadow-md: 0 6px 18px rgba(31,41,55,0.08);
    --shadow-lg: 0 8px 24px rgba(31,41,55,0.12);
    --shadow-gold: 0 6px 16px rgba(245,124,0,0.28);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 20px;
    --header-h: 48px;
    --tabbar-h: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* SVG图标全局样式 */
svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.fn-loc-icon svg,
.fn-avatar-btn svg,
.fn-search-icon svg,
.mc-badge svg {
    width: 100%;
    height: 100%;
}

.fn-loc-icon {
    color: #fff;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fn-avatar-btn {
    color: #fff;
}

.fn-search-icon {
    color: var(--muted);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-badge svg {
    color: inherit;
}

/* badge内SVG图标样式 */
.badge svg {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: linear-gradient(180deg, #f8f4ec 0%, #f3eee4 100%);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

#app-header {
    flex-shrink: 0;
}

#app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

#app-tabbar {
    flex-shrink: 0;
}

/* ===== Header ===== */
.app-header {
    height: var(--header-h);
    background: var(--bg2);
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
    border-bottom: 1px solid var(--rule);
    z-index: 10;
}
.app-header.transparent {
    background: transparent;
    border-bottom: none;
}
.app-header.primary {
    background: var(--gradient-primary);
    border-bottom: none;
}
.app-header.home-hidden {
    display: none;
}
.app-header .header-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--ink);
    flex-shrink: 0;
}
.app-header.primary .header-back { color: #fff; }
.app-header .header-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-header.primary .header-title { color: #fff; }
.app-header .header-right {
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 14px;
    color: var(--primary);
    flex-shrink: 0;
    gap: 8px;
}
.app-header.primary .header-right { color: #fff; }

/* ===== TabBar ===== */
.app-tabbar {
    height: calc(var(--tabbar-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--bg2);
    display: flex;
    border-top: 1px solid var(--rule);
    z-index: 100;
}
.tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    color: var(--muted);
    transition: color 0.2s;
}
.tabbar-item.active { color: var(--primary); }
.tabbar-item .tab-icon {
    font-size: 22px;
    line-height: 1;
}
.tabbar-item .tab-label {
    font-size: 10px;
    line-height: 1;
}

/* ===== Page ===== */
.page {
    min-height: 100%;
    padding-bottom: 12px;
}
.page-pad {
    padding: 12px;
}
.page-gray { background: var(--bg); }

/* ===== Section / Card ===== */
.section {
    margin: 12px;
    background: var(--bg2);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.section-flat {
    margin: 0;
    border-radius: 0;
}
.section-title {
    padding: 12px 16px 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-title .more {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}

.card {
    background: var(--bg2);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 12px;
    box-shadow: var(--shadow-sm);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    gap: 6px;
    line-height: 1.2;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}
.btn-secondary {
    background: var(--gradient-gold-btn);
    color: #fff;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink);
}
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-ghost {
    background: var(--primary-light);
    color: var(--primary);
}
.btn-block {
    display: flex;
    width: 100%;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}
.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
}
.btn-disabled, .btn:disabled {
    background: var(--muted2) !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===== Forms ===== */
.form-group {
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    gap: 12px;
}
.form-group:last-child { border-bottom: none; }
.form-label {
    width: 80px;
    font-size: 14px;
    color: var(--muted);
    flex-shrink: 0;
}
.form-label.required::before {
    content: '*';
    color: var(--danger);
    margin-right: 2px;
}
.form-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--ink);
    background: transparent;
    min-width: 0;
}
.form-input::placeholder { color: var(--muted2); }
.form-textarea {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--ink);
    background: transparent;
    resize: none;
    min-height: 60px;
    font-family: inherit;
}
.form-value {
    flex: 1;
    font-size: 14px;
    color: var(--ink);
}
.form-value.placeholder { color: var(--muted2); }
.form-arrow {
    color: var(--muted2);
    font-size: 14px;
}
.form-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Radio / Checkbox chips */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
}
.chip {
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bg);
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.chip.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Switch */
.switch {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--rule);
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.switch.on { background: var(--success); }
.switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: left 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch.on::after { left: 22px; }

/* ===== Badge / Tag ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: rgba(16,185,129,0.12); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.12); color: var(--danger); }
.badge-info { background: rgba(37,99,235,0.12); color: var(--info); }
.badge-gray { background: var(--bg); color: var(--muted); }
.badge-gold { background: rgba(245,158,11,0.12); color: #f59e0b; }

.tag-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
}

/* ===== Order Status ===== */
.status-bar {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.status-text {
    flex: 1;
}
.status-text .status-name {
    font-size: 16px;
    font-weight: 600;
}
.status-text .status-desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* ===== Timeline ===== */
.timeline {
    padding: 12px 16px;
}
.timeline-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background: var(--rule);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--rule);
    flex-shrink: 0;
    margin-top: 4px;
    z-index: 1;
    border: 2px solid var(--bg2);
}
.timeline-dot.active { background: var(--primary); }
.timeline-dot.done { background: var(--success); }
.timeline-content {
    flex: 1;
}
.timeline-content .tl-title {
    font-size: 14px;
    font-weight: 500;
}
.timeline-content .tl-time {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}
.timeline-content .tl-desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* ===== List Item ===== */
.list-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--rule);
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.list-item:active { background: var(--bg); }
.list-item:last-child { border-bottom: none; }
.list-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.list-item-content {
    flex: 1;
    min-width: 0;
}
.list-item-title {
    font-size: 14px;
    color: var(--ink);
}
.list-item-desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}
.list-item-arrow {
    color: var(--muted2);
    font-size: 14px;
    flex-shrink: 0;
}

/* ===== Price ===== */
.price {
    color: var(--primary);
    font-weight: 600;
}
.price-symbol { font-size: 12px; }
.price-num { font-size: 20px; }
.price-small { font-size: 14px; }
.price-del {
    text-decoration: line-through;
    color: var(--muted2);
    font-size: 12px;
    margin-left: 4px;
}

/* ===== Avatar ===== */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Banner ===== */
.banner {
    margin: 12px 16px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.banner-slide {
    height: 120px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #1e3a8a;
    font-size: 16px;
    font-weight: 600;
    position: relative;
}
.banner-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}
.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(37,99,235,0.25);
    transition: all 0.3s;
}
.banner-dot.active {
    width: 18px;
    background: #2563eb;
}

/* ===== Quick Grid ===== */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px;
}
.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.quick-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.1s;
}
.quick-item:active .quick-icon { transform: scale(0.95); }
.quick-label {
    font-size: 12px;
    color: var(--ink);
}

/* ===== Order Card ===== */
.order-card {
    margin: 12px;
    background: var(--bg2);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.order-card-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--rule);
}
.order-card-body {
    padding: 12px 16px;
}
.order-card-footer {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--rule);
}
.order-info-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}
.order-info-row:last-child { margin-bottom: 0; }
.order-info-label {
    color: var(--muted);
    width: 60px;
    flex-shrink: 0;
}
.order-info-value {
    color: var(--ink);
    flex: 1;
}

/* ===== Photo Upload ===== */
.photo-upload-area {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
}
.photo-box {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--rule);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: var(--muted);
    font-size: 12px;
    background: var(--bg);
    overflow: hidden;
    position: relative;
}
.photo-box.has-photo {
    border-style: solid;
    border-color: var(--rule);
}
.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s;
}
.modal {
    background: var(--bg2);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 320px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.25s;
}
.modal-header {
    padding: 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--rule);
    position: relative;
}
.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
}
.modal-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}
.modal-footer {
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--rule);
}
.modal-footer .btn { flex: 1; }

.modal-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 1000;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUpSheet 0.3s;
}
.modal-sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--rule);
    border-radius: 2px;
    margin: 8px auto;
}

/* ===== Toast ===== */
#toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    pointer-events: none;
}
.toast {
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
    animation: toastIn 0.25s;
    margin-bottom: 8px;
    max-width: 260px;
}

/* ===== Loading ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.loading-overlay.hidden { display: none; }
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--rule);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.loading-text {
    font-size: 14px;
    color: var(--muted);
}

/* ===== Empty State ===== */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}
.empty-icon {
    font-size: 56px;
    margin-bottom: 12px;
    opacity: 0.3;
}
.empty-text {
    font-size: 14px;
    color: var(--muted);
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    background: var(--bg2);
    border-bottom: 1px solid var(--rule);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tab {
    flex: 1;
    min-width: 70px;
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s;
}
.tab.active {
    color: var(--primary);
    font-weight: 600;
}
.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
}

/* ===== Membership Card ===== */
.member-card {
    margin: 12px 16px;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
}
.member-card.active {
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
}
.member-card .mc-main { flex: 1; min-width: 0; }
.member-card .mc-badge {
    flex-shrink: 0;
    font-size: 34px;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.member-card .mc-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}
.member-card .mc-desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}
.member-card .mc-price {
    font-size: 26px;
    font-weight: 700;
    margin-top: 8px;
    color: var(--primary);
}
.member-card .mc-price .mc-unit {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}
.member-card .mc-arrow {
    flex-shrink: 0;
    color: var(--muted2);
    font-size: 16px;
}

/* ===== Coupon ===== */
.coupon-card {
    margin: 12px;
    background: var(--bg2);
    border-radius: var(--radius-md);
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.coupon-left {
    width: 90px;
    background: var(--primary-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    padding: 12px;
    position: relative;
}
.coupon-left::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg);
}
.coupon-amount {
    font-size: 24px;
    font-weight: 700;
}
.coupon-amount .coupon-symbol { font-size: 14px; }
.coupon-type {
    font-size: 11px;
    margin-top: 2px;
}
.coupon-right {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.coupon-name {
    font-size: 14px;
    font-weight: 500;
}
.coupon-desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}
.coupon-expire {
    font-size: 11px;
    color: var(--muted2);
    margin-top: 6px;
}
.coupon-card.expired .coupon-left {
    background: var(--bg);
    color: var(--muted2);
}
.coupon-card.expired .coupon-name {
    color: var(--muted);
}

/* ===== Price Detail ===== */
.price-detail {
    padding: 12px 16px;
}
.price-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
}
.price-detail-row.total {
    border-top: 1px solid var(--rule);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 600;
}
.price-detail-row .pd-label { color: var(--muted); }
.price-detail-row.total .pd-label { color: var(--ink); font-weight: 600; }
.price-detail-row .pd-value { color: var(--ink); }
.price-detail-row .pd-value.discount { color: var(--success); }
.price-detail-row.total .pd-value { color: var(--primary); }

/* ===== Rider Order Card ===== */
.rider-order-card {
    margin: 12px;
    background: var(--bg2);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.rider-order-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rider-order-route {
    padding: 0 16px 12px;
    position: relative;
}
.route-point {
    display: flex;
    gap: 10px;
    padding: 6px 0;
}
.route-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.route-dot.start { background: var(--secondary); }
.route-dot.end { background: var(--primary); }
.route-info {
    flex: 1;
}
.route-info .ri-title { font-size: 14px; font-weight: 500; }
.route-info .ri-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.route-line {
    position: absolute;
    left: 23px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: var(--rule);
    z-index: 0;
}
.rider-order-footer {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--rule);
}

/* ===== Earnings Stats ===== */
.earnings-hero {
    background: var(--gradient-primary);
    padding: 24px 16px;
    color: #fff;
    text-align: center;
}
.earnings-hero .eh-amount {
    font-size: 36px;
    font-weight: 700;
}
.earnings-hero .eh-label {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}
.earnings-stats {
    display: flex;
    padding: 16px;
    gap: 12px;
}
.earnings-stat {
    flex: 1;
    text-align: center;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
}
.earnings-stat .es-num {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
}
.earnings-stat .es-label {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

/* ===== Location Bar ===== */
.location-bar {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg2);
    cursor: pointer;
}
.location-bar .loc-icon { font-size: 18px; color: var(--primary); }
.location-bar .loc-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.location-bar .loc-arrow { color: var(--muted2); }

/* ===== Role Switch ===== */
.role-switch-banner {
    margin: 12px 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.role-switch-banner .rsb-text {
    font-size: 14px;
}
.role-switch-banner .rsb-text .rsb-title { font-weight: 600; font-size: 15px; color: var(--primary); }
.role-switch-banner .rsb-text .rsb-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.role-switch-banner .rsb-arrow { color: var(--muted2); font-size: 16px; }

/* ===== Rider Entry Button (首页「我是骑手」) ===== */
.rider-entry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, transform 0.1s;
}
.rider-entry-btn:active { transform: scale(0.97); opacity: 0.9; }

/* ===== Agreement Checkbox ===== */
.agreement-row {
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
    background: var(--bg);
    margin: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.agreement-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #c0c4cc;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.25s;
    background: #fff;
}
.agreement-checkbox:active {
    transform: scale(0.92);
}
.agreement-checkbox.checked {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(0,122,255,0.3);
}
.agreement-checkbox.checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.agreement-row a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ===== Utility ===== */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-sm { font-size: 12px; }
.text-md { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-bold { font-weight: 600; }
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hidden { display: none !important; }
.pb-tabbar { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px); }

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Page Transition ===== */
.page-enter {
    animation: pageEnter 0.25s ease-out;
}
@keyframes pageEnter {
    from { transform: translateX(100%); opacity: 0.5; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== Scrollbar Hide ===== */
#app-content::-webkit-scrollbar { display: none; }
.tabs::-webkit-scrollbar { display: none; }

/* ===== Admin / Station Table ===== */
.table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    -webkit-overflow-scrolling: touch;
}
.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 400px;
}
.table-wrap thead th {
    background: var(--bg);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--muted);
    position: sticky;
    top: 0;
    z-index: 1;
}
.table-wrap tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
}
.table-wrap tbody tr:active {
    background: var(--bg);
}

/* ===== Stat Grid (Admin) ===== */
.stat-grid {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.stat-card {
    background: var(--bg2);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-sm);
}
.stat-card .sc-label {
    font-size: 12px;
    color: var(--muted);
}
.stat-card .sc-value {
    font-size: 22px;
    font-weight: 700;
    margin-top: 6px;
}
.stat-card .sc-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* ===== Mini Bar Chart ===== */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding: 16px;
}
.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.bar-val {
    font-size: 12px;
    font-weight: 600;
}
.bar-fill {
    width: 100%;
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.3s;
}
.bar-label {
    font-size: 12px;
    color: var(--muted);
}

/* ===== Progress Bar ===== */
.progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

/* ===== Role Entry Card ===== */
.role-entry-grid {
    margin: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.role-entry-card {
    padding: 14px;
    background: var(--bg2);
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.1s;
}
.role-entry-card:active { transform: scale(0.97); }
.role-entry-card .rec-icon { font-size: 28px; }
.role-entry-card .rec-title { font-size: 13px; font-weight: 600; margin-top: 4px; }
.role-entry-card .rec-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ===== Plan Card (SaaS) ===== */
.plan-card {
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
}
.plan-card.featured {
    border-color: var(--primary);
}
.plan-card .plan-badge {
    position: absolute;
    top: -8px;
    right: 12px;
}
.plan-card .plan-name {
    font-size: 16px;
    font-weight: 600;
}
.plan-card .plan-price {
    margin-top: 4px;
}
.plan-card .plan-price .pp-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}
.plan-card .plan-price .pp-unit {
    color: var(--muted);
    font-size: 14px;
}
.plan-card .plan-features {
    margin-top: 12px;
}
.plan-card .plan-feature {
    font-size: 13px;
    margin-bottom: 4px;
}
.plan-card .plan-limit {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

/* ===== 城闪到 成熟C端APP首页 ===== */
/* 沉浸式头部 - 蓝色渐变 */
.fn-header {
    background: linear-gradient(180deg, #1e5ade 0%, #3b82f6 70%, #4f8ff7 100%);
    padding: 12px 16px 80px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
/* 头部装饰气泡 */
.fn-header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -30px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.fn-header::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.fn-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}
/* 定位区域 */
.fn-location {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}
.fn-location .fn-loc-icon {
    font-size: 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.fn-location .fn-loc-text {
    flex: 1;
    min-width: 0;
}
.fn-location .fn-city {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 4px;
}
.fn-location .fn-city::after {
    content: '▾';
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
}
.fn-location .fn-addr {
    font-size: 11px;
    opacity: 0.8;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}
/* 右侧消息/头像 */
.fn-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.15);
}
.fn-avatar-btn:active {
    background: rgba(255,255,255,0.3);
    transform: scale(0.92);
}
/* 搜索栏（在头部下方悬浮） */
.fn-search-bar {
    margin: 12px 0 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.15s;
}
.fn-search-bar:active {
    transform: scale(0.99);
}
.fn-search-icon {
    font-size: 15px;
    color: var(--muted2);
}
.fn-search-text {
    font-size: 13px;
    color: var(--muted);
    flex: 1;
}
.fn-search-tag {
    font-size: 11px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}
/* 天气小标签 */
.fn-weather {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
}

/* 营销Banner - 大圆角轮播卡片 */
#home-banner {
    margin: -50px 12px 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(30,90,222,0.15) !important;
    position: relative;
    z-index: 4;
    overflow: hidden !important;
}
#home-banner .banner-slide {
    height: 100px;
    border-radius: 0;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    color: #fff !important;
}
#home-banner .banner-slide svg {
    color: #fff;
}
#home-banner .banner-slide::before {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
#home-banner .banner-slide::after {
    content: '';
    position: absolute;
    right: 20px;
    bottom: -30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.banner-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}
.banner-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
}
.banner-dot.active {
    width: 16px;
    border-radius: 3px;
    background: #fff;
}

/* 标签切换栏 - 帮取/帮送/帮买  改为在内容区 */
.fn-tabs-wrap {
    margin: 12px 16px 0;
}
.fn-tabs {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: relative;
}
.fn-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    z-index: 1;
}
.fn-tab.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

/* 地址输入卡片 */
.fn-address-card {
    margin: 12px 12px 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}
.fn-addr-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.fn-addr-row:active {
    background: #f8fafc;
}
.fn-addr-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
}
.fn-addr-dot.pickup {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 3px 10px rgba(37,99,235,0.3);
}
.fn-addr-dot.receive {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    box-shadow: 0 3px 10px rgba(249,115,22,0.3);
}
.fn-addr-body { flex: 1; min-width: 0; }
.fn-addr-label {
    font-size: 11px;
    color: var(--muted2);
    font-weight: 500;
}
.fn-addr-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fn-addr-value.placeholder {
    color: var(--muted2);
    font-weight: 400;
}
.fn-addr-arrow {
    color: var(--muted2);
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.fn-addr-row:active .fn-addr-arrow {
    transform: translateX(2px);
}
.fn-addr-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rule) 10%, var(--rule) 90%, transparent);
    margin-left: 60px;
    margin-right: 20px;
}
/* 地址连线（竖向小竖线） */
.fn-addr-connector {
    position: absolute;
    left: 31px;
    top: 44px;
    width: 2px;
    height: 16px;
    background: repeating-linear-gradient(
        to bottom,
        var(--muted2) 0,
        var(--muted2) 3px,
        transparent 3px,
        transparent 6px
    );
}

/* 下单大按钮 - 高转化橙红渐变 */
.fn-order-btn {
    display: block;
    width: calc(100% - 24px);
    margin: 14px 12px 0;
    padding: 16px 0;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #fb8c00 100%);
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255,107,53,0.35), 0 2px 8px rgba(247,147,30,0.2);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.fn-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: btnShine 3s infinite;
}
@keyframes btnShine {
    0% { left: -60%; }
    60%, 100% { left: 120%; }
}
.fn-order-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

/* 金刚区功能入口 - 5列彩色渐变图标 */
.fn-quick {
    margin: 16px 12px 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 18px 8px 14px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}
.fn-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 0;
    transition: transform 0.15s;
}
.fn-quick-item:active {
    transform: scale(0.92);
}
.fn-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.2s;
    position: relative;
}
/* 给不同位置的图标不同渐变色 */
.fn-quick-item:nth-child(1) .fn-quick-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.fn-quick-item:nth-child(2) .fn-quick-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.fn-quick-item:nth-child(3) .fn-quick-icon { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #16a34a; }
.fn-quick-item:nth-child(4) .fn-quick-icon { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #db2777; }
.fn-quick-item:nth-child(5) .fn-quick-icon { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4f46e5; }
.fn-quick-label {
    font-size: 11px;
    color: var(--ink);
    font-weight: 500;
}

/* 营销活动双列卡片 */
.fn-promo-row {
    margin: 12px 12px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.fn-promo-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform 0.15s;
    position: relative;
    overflow: hidden;
}
.fn-promo-card:active { transform: scale(0.97); }
.fn-promo-card.promo-red {
    background: linear-gradient(135deg, #fff5f5, #ffe4e4);
}
.fn-promo-card.promo-blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}
.fn-promo-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.fn-promo-desc {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}
.fn-promo-tag {
    display: inline-block;
    font-size: 10px;
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    margin-top: 8px;
    font-weight: 600;
}
.fn-promo-card.promo-blue .fn-promo-tag {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
}

/* 首页整体背景 & 无内边距 */
.page:has(.fn-header) {
    padding: 0 !important;
    padding-bottom: calc(var(--tabbar-h) + 16px) !important;
    background: #f5f7fa;
}
/* 首页所有卡片都有的"悬浮"基底 */
.page:has(.fn-header) .section-title {
    padding: 18px 16px 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.page:has(.fn-header) .section-title .more {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}

/* 会员卡 - 黑金高转化营销卡片 */
.page:has(.fn-header) .member-card {
    margin: 4px 12px 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(201,169,110,0.3);
    box-shadow: 0 6px 20px rgba(15,52,96,0.25);
    padding: 18px;
    position: relative;
    overflow: hidden;
    color: #f0e6d3;
}
.page:has(.fn-header) .member-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(201,169,110,0.15) 0%, transparent 65%);
    pointer-events: none;
}
.page:has(.fn-header) .member-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,110,0.5), transparent);
}
.page:has(.fn-header) .member-card.active {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(201,169,110,0.3);
}
.page:has(.fn-header) .member-card .mc-badge {
    background: linear-gradient(135deg, #c9a96e, #e0c992);
    box-shadow: 0 4px 12px rgba(201,169,110,0.3);
    font-size: 26px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    color: #1a1a2e;
}
.page:has(.fn-header) .member-card .mc-title {
    color: #f0e6d3;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.page:has(.fn-header) .member-card .mc-desc {
    color: rgba(201,169,110,0.8);
    font-size: 12px;
}
.page:has(.fn-header) .member-card .mc-price {
    color: #c9a96e;
    font-size: 24px;
    font-weight: 800;
}
.page:has(.fn-header) .member-card .mc-price .mc-unit {
    color: rgba(201,169,110,0.7);
    font-size: 12px;
}
.page:has(.fn-header) .member-card .mc-arrow {
    color: #c9a96e;
    background: rgba(201,169,110,0.15);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
/* 会员"省"字角标 */
.mc-save-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #c9a96e, #e0c992);
    color: #1a1a2e;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    z-index: 2;
}

/* 进行中订单卡片 */
.fn-order-card {
    margin: 4px 12px 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 16px;
    cursor: pointer;
    transition: transform 0.15s;
}
.fn-order-card:active { transform: scale(0.98); }
.fn-order-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.fn-order-status.status-wait {
    background: #fef3c7;
    color: #d97706;
}
.fn-order-status.status-ing {
    background: #dbeafe;
    color: #2563eb;
}
.fn-order-status.status-done {
    background: #dcfce7;
    color: #16a34a;
}
.fn-order-route {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.fn-order-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fn-order-dot.start { background: var(--primary); }
.fn-order-dot.end { background: #f97316; }
.fn-order-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #f97316);
    border-radius: 1px;
    position: relative;
}
.fn-order-line::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 60%;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    animation: riderMove 2s ease-in-out infinite;
}
@keyframes riderMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}
.fn-order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed var(--rule);
}
.fn-order-meta {
    font-size: 12px;
    color: var(--muted);
}
.fn-order-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}

/* 底部导航 - APP质感 */
.tabbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    padding-bottom: var(--safe-bottom);
}
.tabbar-item {
    padding-top: 8px;
    padding-bottom: 4px;
    transition: all 0.2s;
    position: relative;
}
.tabbar-item.active {
    color: var(--primary) !important;
}
.tabbar-item.active .tab-icon {
    transform: translateY(-2px) scale(1.1);
}
.tabbar-item .tab-icon {
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.tabbar-item .tab-label {
    font-size: 10px;
    margin-top: 3px;
    font-weight: 500;
    transition: all 0.2s;
}
.tabbar-item.active .tab-label {
    font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .role-entry-grid { grid-template-columns: 1fr 1fr; }
}
