:root {
    --color-primary: #1E40AF;
    --color-secondary: #0F766E;
    --color-cta: #D97706;
    --color-bg: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-text: #0F172A;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;
    --color-success: #059669;
    --color-warning: #D97706;
    --color-danger: #DC2626;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.10);
    --transition: all 0.2s ease;
    --header-h: 56px;
    --tab-h: 60px;
    /* 响应式断点：宽度 < 750px 为移动版，>= 750px 为电脑版 */
    --trade-bp-desktop: 750px;
}

* { box-sizing: border-box; }

body.trade-body {
    font-family: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding-top: var(--header-h);
    min-height: 100vh;
}

body.trade-logged-in,
body.trade-has-tab { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }

.trade-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.trade-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trade-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-primary);
    text-decoration: none;
}

.trade-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #EFF6FF;
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-primary);
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
}

.trade-balance-pill:hover { background: #DBEAFE; }

.trade-balance-value { font-weight: 600; }

.trade-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    min-height: calc(100vh - var(--header-h) - 80px);
}

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

.trade-bottom-tab {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    z-index: 1000;
}

.trade-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 11px;
    transition: var(--transition);
    cursor: pointer;
    min-height: 44px;
}

.trade-tab-item svg { width: 22px; height: 22px; }

.trade-tab-item.active,
.trade-tab-item:hover { color: var(--color-primary); }

/* 移动版 / 电脑版显示切换（断点 750px；勿给 .trade-mobile-only 设 display:block，会覆盖 flex 布局） */
.trade-desktop-only { display: none !important; }
.trade-header-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    padding: 0 12px;
}

@media (min-width: 750px) {
    .trade-mobile-only { display: none !important; }
    .trade-desktop-only { display: block !important; }
    .trade-header-nav { display: flex; }
}

.trade-header-link {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.trade-header-link:hover,
.trade-header-link.active {
    color: var(--color-primary);
    background: #EFF6FF;
}

.trade-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 16px;
}

.trade-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
}

.trade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
}

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

.trade-btn-primary:hover { background: #B45309; color: #fff; }

.trade-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.trade-btn-outline {
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.trade-input-group { margin-bottom: 16px; }

.trade-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.trade-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: var(--transition);
}

.trade-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.trade-input-row {
    display: flex;
    gap: 8px;
}

.trade-input-row .trade-input { flex: 1; }

.trade-auth-wrap {
    max-width: 420px;
    margin: 24px auto;
}

.trade-auth-card { padding: 28px 24px; }

.trade-auth-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.trade-auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 12px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
}

.trade-auth-tabs a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.trade-trust-bar {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.balance-card {
    background: linear-gradient(135deg, #1E40AF 0%, #0F766E 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}

.balance-card-label { font-size: 14px; opacity: 0.9; }

.balance-card-amount {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    margin: 8px 0 16px;
}

.balance-card-actions { display: flex; gap: 12px; }

.balance-card-actions .trade-btn {
    width: auto;
    flex: 1;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}

.balance-card-actions .trade-btn:hover { background: rgba(255,255,255,0.3); }

.trade-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.trade-stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.trade-stat-label { font-size: 13px; color: var(--color-text-muted); }

.trade-stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-top: 4px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (min-width: 750px) {
    .package-grid { grid-template-columns: repeat(3, 1fr); }
}

.package-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.package-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.package-card.selected {
    border-color: var(--color-primary);
    background: #EFF6FF;
}

.package-amount {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.package-money { font-size: 13px; color: var(--color-text-muted); margin-top: 4px; }

.package-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 8px;
    background: var(--color-secondary);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
}

.order-summary {
    background: #F1F5F9;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
    padding: 12px 16px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    z-index: 900;
}

@media (min-width: 750px) {
    .sticky-cta {
        position: static;
        padding: 0;
        border: none;
        background: transparent;
    }
    .trade-bottom-tab { display: none; }
    body.trade-logged-in,
    body.trade-has-tab { padding-bottom: 0; }
    .cart-footer {
        position: static;
        box-shadow: none;
        border-radius: var(--radius-md);
        margin-top: 16px;
        padding: 16px;
    }
    .cart-list { margin-bottom: 0; }
    .checkout-summary { margin-bottom: 0; }
    .recharge-page { padding-bottom: 0; }
}

.pay-page { max-width: 480px; margin: 0 auto; text-align: center; }

.pay-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 16px;
    cursor: pointer;
}

.qrcode-box {
    display: inline-block;
    padding: 16px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 16px 0;
}

.pay-amount {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
}

.pay-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-text-muted);
    margin: 16px 0;
}

.pay-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: payPulse 1.4s infinite ease-in-out both;
}

.pay-dots span:nth-child(1) { animation-delay: -0.32s; }
.pay-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes payPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.pay-countdown { color: var(--color-warning); font-weight: 600; }

.pay-countdown.urgent { color: var(--color-danger); }

.trade-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.trade-list-item:last-child { border-bottom: none; }

.trade-list-title { font-weight: 500; }

.trade-list-meta { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }

.trade-list-amount { font-weight: 600; white-space: nowrap; }

.trade-list-amount.plus { color: var(--color-success); }

.trade-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.trade-status-paid { background: #D1FAE5; color: var(--color-success); }
.trade-status-paying { background: #FEF3C7; color: var(--color-warning); }
.trade-status-closed { background: #F1F5F9; color: var(--color-text-muted); }

.trade-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--color-text-muted);
}

.trade-sidebar { display: none; }

@media (min-width: 750px) {
    .trade-layout-with-sidebar {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 24px;
    }
    .trade-sidebar {
        display: block;
    }
    .trade-sidebar .list-group-item {
        border: none;
        border-radius: var(--radius-sm);
        margin-bottom: 4px;
    }
    .trade-sidebar .list-group-item.active {
        background: #EFF6FF;
        color: var(--color-primary);
    }
}

.trade-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.trade-success-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    max-width: 320px;
    margin: 16px;
}

.trade-success-icon {
    width: 64px;
    height: 64px;
    background: #D1FAE5;
    color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Header extras */
.trade-brand { display: inline-flex; align-items: center; gap: 8px; }
.trade-brand-icon { width: 22px; height: 22px; }
.trade-header-right { display: flex; align-items: center; gap: 8px; }
.trade-btn-header {
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
    text-decoration: none; color: var(--color-primary); border: 1px solid var(--color-border);
    transition: var(--transition); cursor: pointer;
}
.trade-btn-header:hover { background: #EFF6FF; }
.trade-btn-header-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.trade-btn-header-primary:hover { background: #1E3A8A; color: #fff; }

/* Homepage Hero */
.home-hero {
    background: linear-gradient(135deg, #1E40AF 0%, #0F766E 100%);
    border-radius: var(--radius-lg); padding: 28px 20px; margin-bottom: 20px; color: #fff; box-shadow: var(--shadow-md);
}
.home-hero-badge { display: inline-block; padding: 4px 10px; background: rgba(255,255,255,0.15); border-radius: 999px; font-size: 12px; margin-bottom: 12px; }
.home-hero-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(24px, 5vw, 32px); font-weight: 700; margin: 0 0 8px; }
.home-hero-desc { font-size: 14px; opacity: 0.9; margin: 0 0 20px; line-height: 1.5; }
.home-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.trade-btn-white { background: #fff; color: var(--color-primary); width: auto; flex: 1; min-width: 120px; }
.trade-btn-white:hover { background: #F1F5F9; color: var(--color-primary); }
.trade-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); width: auto; flex: 1; min-width: 120px; }
.trade-btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.home-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: var(--radius-sm); padding: 4px 4px 4px 14px; box-shadow: var(--shadow-sm); }
.home-search svg { width: 18px; height: 18px; color: var(--color-text-muted); flex-shrink: 0; }
.home-search-input { flex: 1; border: none; outline: none; font-size: 16px; min-width: 0; background: transparent; color: var(--color-text); height: 40px; }
.home-search-btn { background: var(--color-cta); color: #fff; border: none; border-radius: 6px; padding: 0 16px; height: 40px; font-weight: 600; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.home-search-btn:hover { background: #B45309; }
.page-search { margin-bottom: 16px; background: var(--color-surface); border: 1px solid var(--color-border); }
.home-section { margin-bottom: 24px; }
.home-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.home-section-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 600; margin: 0; }
.home-section-more { font-size: 13px; color: var(--color-primary); text-decoration: none; cursor: pointer; }
.page-head { margin-bottom: 16px; }
.page-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 700; margin: 0; }
.page-subtitle { color: var(--color-text-muted); font-size: 14px; margin: 4px 0 0; }
.category-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-scroll-compact { margin-bottom: 16px; }
.category-chip { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 10px 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; text-decoration: none; color: var(--color-text); font-size: 14px; font-weight: 500; transition: var(--transition); cursor: pointer; }
.category-chip:hover, .category-chip.active { border-color: var(--color-primary); background: #EFF6FF; color: var(--color-primary); }
.category-chip-icon { width: 28px; height: 28px; border-radius: 50%; display: block; flex-shrink: 0; }
.category-chip-icon-1 { background: linear-gradient(135deg, #1E40AF, #3B82F6); }
.category-chip-icon-2 { background: linear-gradient(135deg, #0F766E, #14B8A6); }
.category-chip-icon-3 { background: linear-gradient(135deg, #D97706, #F59E0B); }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 750px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.product-grid-compact { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 750px) { .product-grid-compact { grid-template-columns: repeat(4, 1fr); } }
.product-card { background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-card-image { position: relative; aspect-ratio: 1; background: #F1F5F9; overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-tag { position: absolute; top: 8px; left: 8px; background: var(--color-cta); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.product-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-card-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-sub { font-size: 12px; color: var(--color-text-muted); margin: 0 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.product-card-price { display: flex; align-items: baseline; gap: 6px; }
.price-current { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 700; color: var(--color-primary); }
.price-original { font-size: 12px; color: var(--color-text-muted); text-decoration: line-through; }
.product-card-sales { font-size: 11px; color: var(--color-text-muted); }
.trust-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; background: var(--color-surface); border-radius: var(--radius-md); padding: 16px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
@media (min-width: 750px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
.trust-strip-compact { grid-template-columns: repeat(3, 1fr); padding: 12px; margin-bottom: 16px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-text-muted); }
.trust-item svg { width: 18px; height: 18px; color: var(--color-secondary); flex-shrink: 0; }
.home-recharge-cta { background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%); border: 1px solid #FDE68A; border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; }
.home-recharge-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.home-recharge-inner h3 { margin: 0 0 4px; font-size: 16px; }
.home-recharge-inner p { margin: 0; font-size: 13px; color: var(--color-text-muted); }
.product-detail { max-width: 800px; margin: 0 auto; }
.product-detail-gallery { position: relative; margin-bottom: 16px; }
.product-detail-image { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); background: #F1F5F9; box-shadow: var(--shadow-md); }
.product-detail-tag { display: inline-block; margin: 4px 4px 0 0; padding: 4px 10px; background: #EFF6FF; color: var(--color-primary); border-radius: 999px; font-size: 12px; }
.product-detail-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.product-detail-sub { color: var(--color-text-muted); margin: 0 0 16px; font-size: 14px; }
.product-detail-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.product-detail-price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 28px; font-weight: 700; color: var(--color-primary); }
.product-save-badge { background: #FEE2E2; color: var(--color-danger); font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.product-detail-meta { display: flex; gap: 16px; font-size: 13px; color: var(--color-text-muted); margin-bottom: 20px; }
.product-detail-actions { display: flex; flex-direction: column; gap: 10px; }
.product-detail-actions form { margin: 0; }
.product-balance-tip { font-size: 13px; color: var(--color-warning); margin: 0; text-align: center; }
.product-content-body { font-size: 14px; line-height: 1.7; color: var(--color-text); }
.product-content-body ul { padding-left: 20px; }
.recharge-page { max-width: 640px; margin: 0 auto; padding-bottom: 80px; }
.recharge-hero-mini { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.recharge-hero-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #1E40AF, #0F766E); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.recharge-hero-icon svg { width: 24px; height: 24px; }
.recharge-current-balance { margin-left: auto; text-align: right; background: #EFF6FF; padding: 8px 14px; border-radius: var(--radius-sm); font-size: 12px; color: var(--color-text-muted); }
.recharge-current-balance strong { display: block; font-size: 18px; color: var(--color-primary); }
.package-grid-enhanced { margin-top: 8px; }
.package-card-enhanced { text-align: left; padding: 16px; }
.package-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.package-name { font-size: 13px; color: var(--color-text-muted); font-weight: 500; }
.package-card-enhanced .package-amount { text-align: left; font-size: 28px; }
.package-card-enhanced .package-money { text-align: left; }
.order-summary-enhanced { margin-top: 16px; border: 1px dashed var(--color-border); background: #fff; }
.summary-highlight { color: var(--color-primary); font-size: 18px; }
.summary-success { color: var(--color-success); font-size: 18px; }
#btn-recharge { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pagination-wrap { margin-top: 20px; text-align: center; }
.pagination-wrap .pagination { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, .product-card:focus-visible, .category-chip:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Header cart */
.trade-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}
.trade-cart-link:hover { background: #EFF6FF; color: var(--color-primary); }
.trade-cart-link svg { width: 22px; height: 22px; }
.trade-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--color-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 999px;
}

/* Cart */
.cart-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 100px; }
.cart-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; }
.cart-item-invalid { opacity: 0.55; }
.cart-check, .cart-check-all { display: flex; align-items: center; flex-shrink: 0; padding-top: 28px; }
.cart-check input, .cart-check-all input { width: 18px; height: 18px; accent-color: var(--color-primary); cursor: pointer; }
.cart-item-image { width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; background: #F1F5F9; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { display: block; font-size: 14px; font-weight: 600; color: var(--color-text); text-decoration: none; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item-price { font-size: 14px; color: var(--color-primary); font-weight: 600; margin: 0 0 8px; }
.cart-invalid-tip { font-size: 12px; color: var(--color-danger); margin: 0; }
.cart-qty-row { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn { width: 32px; height: 32px; border: none; background: #F8FAFC; font-size: 16px; cursor: pointer; color: var(--color-text); transition: var(--transition); }
.qty-btn:hover { background: #EFF6FF; color: var(--color-primary); }
.qty-input { width: 40px; height: 32px; border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); text-align: center; font-size: 14px; background: #fff; }
.cart-item-right { text-align: right; flex-shrink: 0; }
.cart-item-subtotal { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.cart-remove-btn { border: none; background: none; color: var(--color-text-muted); font-size: 12px; cursor: pointer; padding: 4px; }
.cart-remove-btn:hover { color: var(--color-danger); }
.cart-footer { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding: 14px 16px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -4px 20px rgba(15,23,42,0.08); z-index: 900; max-width: 1200px; margin: 0 auto; }
.cart-footer-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; }
.cart-footer-total strong { color: var(--color-primary); font-size: 18px; }

/* Checkout */
.checkout-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.checkout-item { display: flex; align-items: center; gap: 12px; padding: 14px; }
.checkout-item-image { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; background: #F1F5F9; flex-shrink: 0; }
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.checkout-item-meta { font-size: 12px; color: var(--color-text-muted); }
.checkout-item-subtotal { font-weight: 700; color: var(--color-primary); flex-shrink: 0; }
.checkout-summary { margin-bottom: 80px; }
.checkout-warning { margin-top: 12px; padding: 10px 12px; background: #FEF3C7; border-radius: var(--radius-sm); font-size: 13px; color: #92400E; }
.checkout-warning a { color: var(--color-primary); font-weight: 600; }
.order-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--color-border); }
.order-summary-row:last-child { border-bottom: none; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding: 12px 16px; background: var(--color-surface); border-top: 1px solid var(--color-border); z-index: 900; }
.sticky-cta .trade-btn { margin: 0; }

/* Orders */
.order-card { display: block; text-decoration: none; color: inherit; margin-bottom: 12px; padding: 0; overflow: hidden; cursor: pointer; transition: var(--transition); }
.order-card:hover { box-shadow: var(--shadow-md); }
.order-card-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--color-border); font-size: 13px; }
.order-no { color: var(--color-text-muted); font-family: monospace; }
.trade-status { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.trade-status-paid { background: #D1FAE5; color: var(--color-success); }
.order-card-body { padding: 12px 14px; }
.order-card-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.order-card-item img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: #F1F5F9; }
.order-card-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #F8FAFC; font-size: 13px; color: var(--color-text-muted); }
.order-card-foot strong { color: var(--color-primary); font-size: 16px; }
.order-detail-head { margin-bottom: 16px; }
.order-detail-status { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: #D1FAE5; color: var(--color-success); border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.order-detail-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.order-detail-item { display: flex; gap: 12px; padding: 14px; }
.order-detail-item img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: #F1F5F9; }
.trade-empty { text-align: center; padding: 40px 20px; }
.trade-empty p { color: var(--color-text-muted); margin: 12px 0 0; }
.trade-stat-link { text-decoration: none; color: inherit; cursor: pointer; transition: var(--transition); }
.trade-stat-link:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }

/* Product actions */
.product-action-form { margin: 0; }
.product-action-row { display: flex; gap: 10px; }
.product-action-row .trade-btn { flex: 1; }
.product-qty-picker { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.product-qty-picker label { font-size: 14px; color: var(--color-text-muted); }

/* Jump / result page */
body.jump-page { padding-top: 0; padding-bottom: 0; display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(160deg, #EFF6FF 0%, #F8FAFC 50%, #ECFDF5 100%); }
.jump-wrap { width: 100%; max-width: 420px; padding: 24px 16px; text-align: center; }
.jump-card { padding: 32px 24px; }
.jump-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.jump-icon svg { width: 32px; height: 32px; }
.jump-icon-success { background: #D1FAE5; color: var(--color-success); }
.jump-icon-error { background: #FEE2E2; color: var(--color-danger); }
.jump-icon-info { background: #EFF6FF; color: var(--color-primary); }
.jump-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 700; margin: 0 0 8px; line-height: 1.4; }
.jump-desc { font-size: 14px; color: var(--color-text-muted); margin: 0 0 24px; }
.jump-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.jump-actions .trade-btn { width: auto; min-width: 120px; flex: 1; max-width: 160px; }
.jump-footer { margin-top: 20px; font-size: 12px; color: var(--color-text-muted); }

/* Order result / success */
.result-page { text-align: center; padding: 24px 0 16px; }
.result-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.result-icon svg { width: 36px; height: 36px; }
.result-icon-success { background: #D1FAE5; color: var(--color-success); }
.result-actions { display: flex; gap: 10px; margin-top: 20px; }
.result-actions .trade-btn { flex: 1; }
