/* ============================================================
   心途启境 · 权益商城
   自包含样式：深色奢华渐变 + 金色点缀 + 玻璃拟态
   （不依赖站点 style.css，避免污染其它页面）
   ============================================================ */

:root {
    --bg-0: #070614;
    --bg-1: #0f0c29;
    --bg-2: #302b63;
    --bg-3: #24243e;

    --surface: rgba(255, 255, 255, 0.055);
    --surface-2: rgba(255, 255, 255, 0.085);
    --surface-3: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.12);
    --border-gold: rgba(245, 197, 107, 0.34);

    --text: #f4f1ff;
    --text-dim: rgba(232, 227, 255, 0.74);
    --text-mute: rgba(232, 227, 255, 0.46);

    --purple: #8e44ad;
    --violet: #6c5ce7;
    --indigo: #3498db;
    --pink: #e84393;

    --gold: #f5c56b;
    --gold-deep: #e6b34d;
    --gold-dark: #c9902b;
    --gold-glow: rgba(230, 179, 77, 0.32);

    --green: #2ecc71;
    --green-soft: rgba(46, 204, 113, 0.14);
    --amber: #f39c12;
    --amber-soft: rgba(243, 156, 18, 0.14);
    --red: #ff6b6b;

    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-full: 999px;

    --shadow-xl: 0 30px 80px rgba(3, 1, 16, 0.62);
    --shadow-lg: 0 22px 54px rgba(3, 1, 16, 0.5);
    --shadow-md: 0 12px 30px rgba(3, 1, 16, 0.42);
    --shadow-gold: 0 10px 28px var(--gold-glow);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --container: 1240px;
}

* { box-sizing: border-box; }

/* 统一 hidden 行为：避免 display:flex/grid 覆盖 HTML hidden 属性 */
[hidden] { display: none !important; }

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

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

body.mall-body {
    min-height: 100vh;
    color: var(--text);
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background:
        radial-gradient(1100px 620px at 10% -10%, rgba(108, 92, 231, 0.38), transparent 60%),
        radial-gradient(940px 560px at 92% 2%, rgba(52, 152, 219, 0.20), transparent 62%),
        radial-gradient(820px 620px at 50% 112%, rgba(142, 68, 173, 0.26), transparent 66%),
        linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 34%, var(--bg-2) 70%, var(--bg-3) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body.mall-body ::selection { background: rgba(245, 197, 107, 0.32); color: #fff; }

button, input { font-family: inherit; }

a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ==================== 背景光晕 / 星点 ==================== */
.bg-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.aura {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: auraFloat 16s var(--ease) infinite alternate;
}

.aura-purple {
    width: 560px;
    height: 560px;
    top: -180px;
    left: -120px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.55), transparent 68%);
}

.aura-blue {
    width: 480px;
    height: 480px;
    top: 18%;
    right: -160px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.42), transparent 68%);
    animation-delay: -5s;
}

.aura-gold {
    width: 420px;
    height: 420px;
    bottom: -160px;
    left: 32%;
    background: radial-gradient(circle, rgba(230, 179, 77, 0.26), transparent 66%);
    animation-delay: -9s;
}

@keyframes auraFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(36px, 28px, 0) scale(1.08); }
}

.stardust {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.4px 1.4px at 18% 22%, rgba(255, 255, 255, 0.8), transparent 100%),
        radial-gradient(1.2px 1.2px at 72% 12%, rgba(255, 255, 255, 0.65), transparent 100%),
        radial-gradient(1.6px 1.6px at 44% 38%, rgba(245, 197, 107, 0.8), transparent 100%),
        radial-gradient(1.1px 1.1px at 86% 46%, rgba(255, 255, 255, 0.6), transparent 100%),
        radial-gradient(1.3px 1.3px at 12% 68%, rgba(255, 255, 255, 0.55), transparent 100%),
        radial-gradient(1.5px 1.5px at 62% 74%, rgba(245, 197, 107, 0.65), transparent 100%),
        radial-gradient(1.2px 1.2px at 34% 88%, rgba(255, 255, 255, 0.5), transparent 100%),
        radial-gradient(1.1px 1.1px at 92% 86%, rgba(255, 255, 255, 0.45), transparent 100%);
    opacity: 0.8;
}

/* ==================== 顶部导航 ==================== */
.mall-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 12px clamp(14px, 4vw, 40px);
    background: linear-gradient(180deg, rgba(9, 7, 24, 0.94), rgba(9, 7, 24, 0.62));
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.3s var(--ease);
}

/* 不支持 backdrop-filter 的旧内核：退化为更深的不透明底 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .mall-topbar { background: rgba(9, 7, 24, 0.98); }
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    min-height: 44px;
}

.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
    text-decoration: none;
    transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: var(--surface-2);
    color: var(--gold);
    border-color: var(--border-gold);
    transform: translateY(-1px);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 17px;
    color: #2b1c05;
    background: linear-gradient(135deg, #f9dfa1, var(--gold) 52%, var(--gold-deep));
    box-shadow: 0 6px 20px rgba(230, 179, 77, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 16px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.brand-text em { font-style: normal; font-size: 11.5px; letter-spacing: 3px; color: var(--gold); opacity: 0.92; }

.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.token-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(245, 197, 107, 0.16), rgba(230, 179, 77, 0.07));
    border: 1px solid var(--border-gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    white-space: nowrap;
}

.token-pill i { color: var(--gold); font-size: 14px; }
.token-pill-label { font-size: 11.5px; color: var(--text-mute); letter-spacing: 1px; }
.token-pill-value { font-size: 15px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ==================== 通用按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.2s, border-color 0.2s, opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

.btn i { font-size: 13px; }

.btn-gold {
    color: #2b1c05;
    background: linear-gradient(135deg, #fbe4ad 0%, var(--gold) 42%, var(--gold-deep) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(230, 179, 77, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-ghost {
    color: var(--text-dim);
    background: var(--surface);
    border-color: var(--border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }

.btn:disabled,
.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

.btn.is-loading { pointer-events: none; opacity: 0.75; }

/* ==================== 主容器 ==================== */
.mall-main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 44px) clamp(14px, 4vw, 40px) 64px;
}

/* ==================== Hero ==================== */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: clamp(22px, 3vw, 40px);
    align-items: center;
    padding: clamp(28px, 4.4vw, 56px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        radial-gradient(680px 320px at 88% 8%, rgba(245, 197, 107, 0.18), transparent 62%),
        radial-gradient(560px 320px at 6% 100%, rgba(52, 152, 219, 0.20), transparent 64%),
        linear-gradient(135deg, rgba(142, 68, 173, 0.34), rgba(108, 92, 231, 0.18) 46%, rgba(15, 12, 41, 0.55));
    border: 1px solid rgba(245, 197, 107, 0.20);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 197, 107, 0.22), transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 197, 107, 0.6), transparent);
    pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; min-width: 0; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--gold);
    background: rgba(245, 197, 107, 0.10);
    border: 1px solid rgba(245, 197, 107, 0.28);
}

.hero-eyebrow i { font-size: 12px; }

.hero-title {
    margin: 18px 0 12px;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 900;
    letter-spacing: 6px;
    line-height: 1.08;
    background: linear-gradient(96deg, #ffffff 4%, #f7e6bd 38%, var(--gold) 62%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold);
    text-shadow: 0 18px 48px rgba(230, 179, 77, 0.18);
}

.hero-subtitle {
    margin: 0 0 26px;
    max-width: 520px;
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==================== 玻璃拟态余额卡 ==================== */
.balance-card,
.glass-card {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    padding: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .balance-card,
    .glass-card { background: rgba(26, 22, 52, 0.94); }
}

.balance-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.balance-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    letter-spacing: 1.5px;
    color: var(--text-mute);
}

.balance-label i { color: var(--gold); }

.vip-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-mute);
    background: var(--surface);
    border: 1px solid var(--border);
    white-space: nowrap;
}

.vip-badge.is-vip {
    color: #2b1c05;
    background: linear-gradient(135deg, #fbe4ad, var(--gold-deep));
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(230, 179, 77, 0.3);
}

.balance-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0 2px;
    color: var(--gold);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.balance-amount #balanceNumber {
    font-size: clamp(36px, 4.6vw, 52px);
    line-height: 1.05;
    letter-spacing: 1px;
    text-shadow: 0 10px 30px rgba(230, 179, 77, 0.28);
}

.balance-amount small { font-size: 13px; font-weight: 500; color: var(--text-mute); letter-spacing: 1px; }

.balance-expire { margin: 0 0 4px; min-height: 18px; font-size: 12px; color: var(--text-mute); }

.balance-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: var(--text-mute);
}

.balance-hint { min-width: 0; }

.balance-detail-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
}

.balance-detail-link:hover { opacity: 0.8; transform: translateX(2px); }

/* ==================== 区块标题 ==================== */
.section { margin-top: clamp(40px, 5vw, 64px); scroll-margin-top: 84px; }

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

.section-head--wrap { flex-wrap: wrap; }

.section-heading { min-width: 0; }

.section-eyebrow {
    display: block;
    font-size: 11.5px;
    letter-spacing: 3px;
    color: var(--gold);
    opacity: 0.9;
    margin-bottom: 6px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(21px, 2.6vw, 27px);
    font-weight: 700;
    letter-spacing: 1px;
}

.section-heading h2::after {
    content: '';
    display: inline-block;
    width: 42px;
    height: 3px;
    margin-left: 12px;
    border-radius: 3px;
    vertical-align: middle;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-tip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-mute);
    white-space: nowrap;
}

.section-tip i { color: var(--gold); }

/* ==================== 任务中心 ==================== */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 18px;
}

.task-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.task-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.task-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 197, 107, 0.5), transparent);
    opacity: 0.7;
}

.task-head { display: flex; align-items: flex-start; gap: 12px; }

.task-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 19px;
    color: var(--gold);
    background: linear-gradient(135deg, rgba(245, 197, 107, 0.18), rgba(142, 68, 173, 0.22));
    border: 1px solid rgba(245, 197, 107, 0.26);
    flex-shrink: 0;
}

.task-head-text { min-width: 0; flex: 1; }

.task-title {
    margin: 0 0 3px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
}

.task-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-mute);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-reward {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
    flex-shrink: 0;
}

.task-progress { display: flex; flex-direction: column; gap: 6px; }

.progress-track {
    position: relative;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--violet), var(--gold));
    box-shadow: 0 0 14px rgba(245, 197, 107, 0.4);
    transition: width 0.6s var(--ease);
}

.task-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-mute);
    font-variant-numeric: tabular-nums;
}

.task-actions { margin-top: auto; display: flex; }

.task-actions .btn { width: 100%; }

.btn--claimed {
    color: #0d2c1a;
    background: linear-gradient(135deg, #7fe0a8, var(--green) 60%, #23a55a);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 22px rgba(46, 204, 113, 0.24);
    opacity: 1;
}

.btn--claimed:disabled { opacity: 0.9; }

.btn--progress {
    color: var(--text-mute);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ==================== 分类 Tab ==================== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-mute);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.22s, background 0.22s, border-color 0.22s, transform 0.22s var(--ease);
}

.cat-tab i { font-size: 12px; }

.cat-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.cat-tab.is-active {
    color: #2b1c05;
    background: linear-gradient(135deg, #fbe4ad, var(--gold) 55%, var(--gold-deep));
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 6px 18px rgba(230, 179, 77, 0.28);
    font-weight: 600;
}

/* ==================== 商品网格 ==================== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.item-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.item-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-gold);
    box-shadow: 0 30px 64px rgba(2, 1, 12, 0.55), 0 0 0 1px rgba(245, 197, 107, 0.12);
}

/* hover 光泽扫过 */
.item-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.18) 46%, transparent 60%);
    transform: translateX(-140%);
    transition: transform 0.85s var(--ease);
}

.item-card:hover::after { transform: translateX(140%); }

.item-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    font-size: 42px;
    color: #fff;
    overflow: hidden;
}

.item-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120px 90px at 50% 0%, rgba(255, 255, 255, 0.28), transparent 70%),
        linear-gradient(180deg, transparent 55%, rgba(7, 6, 20, 0.4));
}

.item-cover i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
    transition: transform 0.35s var(--ease);
}

.item-card:hover .item-cover i { transform: scale(1.08) rotate(-3deg); }

.cover-vip { background: linear-gradient(135deg, #6c5ce7, #8e44ad 58%, #c0392b); }
.cover-token { background: linear-gradient(135deg, #f5c56b, #e6b34d 48%, #b97e1f); }
.cover-badge { background: linear-gradient(135deg, #3498db, #2c3e93 62%, #6c5ce7); }
.cover-service { background: linear-gradient(135deg, #00b894, #0984e3 65%, #6c5ce7); }
.cover-default { background: linear-gradient(135deg, #6c5ce7, #302b63); }

.item-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 18px;
}

.item-name {
    margin: 0;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.3px;
    overflow-wrap: anywhere;
}

.item-desc {
    margin: 0;
    min-height: 42px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--text-mute);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.item-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: var(--gold);
    font-weight: 700;
}

.item-price i { font-size: 14px; }

.item-price-value {
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 6px 18px rgba(230, 179, 77, 0.24);
}

.item-price-unit { font-size: 11.5px; font-weight: 500; color: var(--text-mute); }

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 11.5px;
    color: var(--text-mute);
}

.item-meta span { white-space: nowrap; }

.item-meta i { margin-right: 3px; opacity: 0.85; }

.item-benefit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    max-width: 100%;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--gold);
    background: rgba(245, 197, 107, 0.10);
    border: 1px solid rgba(245, 197, 107, 0.24);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-actions { margin-top: auto; padding-top: 4px; display: flex; }

.item-actions .btn { width: 100%; }

.btn--insufficient,
.btn--soldout,
.btn--limit {
    color: var(--text-mute);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* ==================== 我的兑换 ==================== */
.exchanges-panel {
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.exchanges-list { display: flex; flex-direction: column; }

.exchange-row {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) 0.8fr 1fr 1.15fr 0.95fr 1.3fr;
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s;
}

.exchange-row:last-child { border-bottom: none; }

.exchange-row:hover { background: rgba(255, 255, 255, 0.03); }

.exchange-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.exchange-name {
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.exchange-remark { font-size: 11.5px; color: var(--text-mute); overflow-wrap: anywhere; }

.exchange-cell { font-size: 13px; color: var(--text-dim); min-width: 0; }

.exchange-cell--cost { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }

.exchange-cell .cell-label { display: none; font-size: 11px; color: var(--text-mute); }

.exchange-cell--time { font-size: 12px; color: var(--text-mute); white-space: nowrap; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.status-badge--ok { color: #7fe0a8; background: var(--green-soft); border-color: rgba(46, 204, 113, 0.3); }
.status-badge--pending { color: var(--gold); background: var(--amber-soft); border-color: rgba(243, 156, 18, 0.3); }
.status-badge--fail { color: #ff9b8f; background: rgba(231, 76, 60, 0.14); border-color: rgba(231, 76, 60, 0.3); }
.status-badge--mute { color: var(--text-mute); background: var(--surface); border-color: var(--border); }

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pager-info {
    font-size: 12.5px;
    color: var(--text-mute);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ==================== 状态面板 / 空状态 ==================== */
.state-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: clamp(30px, 5vw, 52px) 20px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.14);
}

.state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 26px;
    color: var(--gold);
    background: radial-gradient(circle at 32% 26%, rgba(245, 197, 107, 0.24), rgba(142, 68, 173, 0.18));
    border: 1px solid rgba(245, 197, 107, 0.26);
    box-shadow: 0 10px 30px rgba(230, 179, 77, 0.14);
}

.state-icon.is-error { color: #ff9b8f; background: rgba(231, 76, 60, 0.12); border-color: rgba(231, 76, 60, 0.3); box-shadow: none; }

.state-title { margin: 0; font-size: 16px; font-weight: 700; }

.state-desc { margin: 0; max-width: 460px; font-size: 13px; line-height: 1.7; color: var(--text-mute); }

.state-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px; }

/* ==================== 骨架屏 ==================== */
.skeleton-card {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 18px;
    overflow: hidden;
}

.sk {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
}

.sk::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    to { transform: translateX(100%); }
}

.sk-cover { height: 130px; border-radius: 14px; margin-bottom: 16px; }
.sk-line { height: 12px; margin-bottom: 10px; }
.sk-line.w40 { width: 40%; }
.sk-line.w60 { width: 60%; }
.sk-line.w80 { width: 80%; }
.sk-line.w100 { width: 100%; }
.sk-btn { height: 38px; border-radius: var(--radius-full); margin-top: 14px; }
.sk-icon { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; }
.sk-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.skeleton-task { height: 190px; }

/* ==================== 弹窗 ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(4, 3, 14, 0.62);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(14px) saturate(120%);
    animation: overlayIn 0.25s var(--ease);
    overflow-y: auto;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .modal-overlay { background: rgba(4, 3, 14, 0.9); }
}

.modal-overlay[hidden] { display: none; }

@keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    position: relative;
    width: min(440px, 100%);
    margin: auto;
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(43, 36, 82, 0.96), rgba(18, 15, 38, 0.98));
    border: 1px solid rgba(245, 197, 107, 0.22);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    padding: 24px;
    animation: cardIn 0.32s var(--ease);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-mute);
    cursor: pointer;
    transition: color 0.2s, background 0.2s, transform 0.2s var(--ease);
    z-index: 2;
}

.modal-close:hover { color: var(--text); background: var(--surface-2); transform: rotate(90deg); }

.modal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-right: 30px; }

.modal-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 22px;
    color: #2b1c05;
    background: linear-gradient(135deg, #fbe4ad, var(--gold) 55%, var(--gold-deep));
    box-shadow: 0 10px 26px rgba(230, 179, 77, 0.3);
    flex-shrink: 0;
}

.modal-head-text { min-width: 0; }

.modal-title { margin: 0 0 3px; font-size: 18px; font-weight: 700; letter-spacing: 1px; }

.modal-item-name {
    margin: 0;
    font-size: 13px;
    color: var(--text-mute);
    overflow-wrap: anywhere;
}

.modal-body { display: flex; flex-direction: column; gap: 12px; }

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    color: var(--text-dim);
}

.summary-row strong { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }

.summary-row--total {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-row--total strong { font-size: 20px; }

.summary-row--balance strong { color: var(--text); font-size: 14px; }

.stepper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border);
}

.step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--surface-2);
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s var(--ease), opacity 0.2s;
}

.step-btn:hover { background: rgba(245, 197, 107, 0.22); }

.step-btn:active { transform: scale(0.92); }

.step-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.stepper input {
    width: 46px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text);
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
    appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stepper input:focus { outline: none; }

.modal-error {
    margin: 2px 0 0;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: #ffb3a8;
    background: rgba(231, 76, 60, 0.13);
    border: 1px solid rgba(231, 76, 60, 0.28);
    overflow-wrap: anywhere;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.modal-actions .btn { flex: 1; }

.modal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 18px 4px 6px;
    animation: successIn 0.4s var(--ease);
}

@keyframes successIn {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.success-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    font-size: 34px;
    color: #0d2c1a;
    background: linear-gradient(135deg, #8ef0b6, var(--green) 60%, #23a55a);
    box-shadow: 0 0 0 12px rgba(46, 204, 113, 0.10), 0 18px 44px rgba(46, 204, 113, 0.3);
    animation: ringPulse 0.6s var(--ease);
}

@keyframes ringPulse {
    0% { transform: scale(0.4); opacity: 0; }
    65% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

.success-title { margin: 6px 0 0; font-size: 19px; font-weight: 700; }

.success-text { margin: 0 0 10px; font-size: 13px; color: var(--text-mute); overflow-wrap: anywhere; }

.modal-success .btn { min-width: 160px; }

/* ==================== Toast ==================== */
.toast-stack {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(92vw, 440px);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    max-width: 100%;
    padding: 11px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: rgba(26, 22, 52, 0.94);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    animation: toastIn 0.3s var(--ease);
    overflow-wrap: anywhere;
    pointer-events: auto;
}

.toast.is-out { animation: toastOut 0.28s var(--ease) forwards; }

.toast i { font-size: 14px; flex-shrink: 0; }

.toast--success { border-color: rgba(46, 204, 113, 0.36); }
.toast--success i { color: var(--green); }
.toast--error { border-color: rgba(231, 76, 60, 0.4); }
.toast--error i { color: var(--red); }
.toast--info i { color: var(--gold); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateY(-10px) scale(0.96); }
}

/* ==================== 页脚 ==================== */
.mall-footer {
    margin-top: clamp(48px, 6vw, 72px);
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-bottom: 14px;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s var(--ease);
}

.footer-nav a i { color: var(--gold); font-size: 12px; }

.footer-nav a:hover { color: var(--gold); transform: translateY(-1px); }

.footer-terms { margin: 0 0 6px; font-size: 11.5px; color: var(--text-mute); }

.footer-copy { margin: 0; font-size: 11px; color: rgba(232, 227, 255, 0.32); letter-spacing: 0.5px; }

/* ==================== 响应式 ==================== */
@media (max-width: 1199px) {
    .items-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .exchange-row { grid-template-columns: minmax(0, 2fr) 0.7fr 0.9fr 1fr 0.9fr 1.2fr; }
}

@media (max-width: 899px) {
    .items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { grid-template-columns: minmax(0, 1fr); }
    .balance-card { max-width: 420px; }
    .exchange-row { grid-template-columns: minmax(0, 1.6fr) 0.7fr 0.9fr 1fr; }
    .exchange-cell--benefit, .exchange-cell--time { grid-column: span 2; }
    .exchange-cell .cell-label { display: inline; }
}

@media (max-width: 640px) {
    body.mall-body { font-size: 14px; }
    .hero { padding: 24px 20px; border-radius: var(--radius-lg); }
    .hero-title { letter-spacing: 3px; }
    .category-tabs { width: 100%; justify-content: flex-start; border-radius: var(--radius-md); }
    .section-head { align-items: flex-start; }
    .exchange-row { grid-template-columns: minmax(0, 1fr) repeat(2, auto); row-gap: 6px; padding: 14px 16px; }
    .exchange-main { grid-column: 1 / -1; }
    .exchange-cell--benefit, .exchange-cell--time { grid-column: auto; }
    .exchange-cell--time { grid-column: 1 / -1; }
    .modal-card { padding: 20px; }
    .toast-stack { top: 12px; }
}

@media (max-width: 420px) {
    .items-grid { grid-template-columns: minmax(0, 1fr); }
    .tasks-grid { grid-template-columns: minmax(0, 1fr); }
    .topbar-inner { gap: 8px; }
    .brand-text em { display: none; }
    .token-pill-label { display: none; }
    .hero-actions .btn { flex: 1 1 100%; }
    .item-cover { height: 110px; font-size: 36px; }
}

/* ==================== 减少动效 ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .aura { animation: none; }
    .item-card::after { display: none; }
    .progress-fill { transition: none; }
}

/* ============================================================
   R12 视觉再升级（PC + 移动端）
   ============================================================ */
:root { --topbar-h: 68px; }

/* 品牌移动端缩写 */
.brand-compact { display: none; }

/* ---- 自定义滚动条（深色 + 金色滑块） ---- */
* { scrollbar-width: thin; scrollbar-color: rgba(230, 179, 77, 0.5) rgba(255, 255, 255, 0.05); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 999px; }
::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid transparent;
    background: linear-gradient(180deg, rgba(245, 197, 107, 0.85), rgba(230, 179, 77, 0.45));
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f5c56b, #e6b34d);
    background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: transparent; }

/* ---- 选中文本 / 焦点 ---- */
body.mall-body ::selection { background: rgba(245, 197, 107, 0.38); color: #fff; }
body.mall-body :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---- Hero：流动光晕 + 微光扫过 ---- */
.hero-aura,
.hero-sheen { position: absolute; pointer-events: none; z-index: 0; }
.hero-aura {
    inset: -32% -12%;
    background: conic-gradient(from 0deg,
        rgba(108, 92, 231, 0) 0deg,
        rgba(245, 197, 107, 0.22) 68deg,
        rgba(108, 92, 231, 0) 148deg,
        rgba(52, 152, 219, 0.24) 246deg,
        rgba(108, 92, 231, 0) 360deg);
    filter: blur(42px);
    opacity: 0.55;
    transform-origin: 52% 60%;
    animation: heroAuraSpin 24s linear infinite;
    will-change: transform;
}
.hero-sheen {
    top: 0;
    left: -46%;
    width: 58%;
    height: 100%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.16) 46%, transparent 68%);
    transform: skewX(-14deg);
    mix-blend-mode: screen;
    opacity: 0;
    animation: heroSheenSweep 9.5s ease-in-out infinite;
    will-change: transform, opacity;
}
@keyframes heroAuraSpin {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.07); }
}
@keyframes heroSheenSweep {
    0%, 52% { transform: translateX(0) skewX(-14deg); opacity: 0; }
    62% { opacity: 0.55; }
    100% { transform: translateX(300%) skewX(-14deg); opacity: 0; }
}
.hero-copy,
.hero > .balance-card { position: relative; z-index: 2; }

/* ---- Hero 标题金色微光扫过 ---- */
.hero-title {
    background-size: 220% 100%;
    animation: heroTitleShine 7.5s ease-in-out infinite;
}
@keyframes heroTitleShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---- 余额卡玻璃层次 + VIP 金属徽章 ---- */
.balance-card {
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 0 0 0 1px rgba(245, 197, 107, 0.14),
        0 0 44px rgba(230, 179, 77, 0.10);
    overflow: hidden;
}
.balance-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 60% at 50% -10%, rgba(255, 255, 255, 0.24), transparent 62%);
    pointer-events: none;
}
.balance-card::after {
    content: '';
    position: absolute;
    top: -38%;
    right: -24%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 197, 107, 0.20), transparent 66%);
    pointer-events: none;
}
.vip-badge.is-vip {
    background: linear-gradient(135deg, #fff3d1 0%, #f5c56b 38%, #e6b34d 72%, #c9902b 100%);
    box-shadow: 0 4px 16px rgba(230, 179, 77, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ---- 区块标题：金色短划线 + 副标题 ---- */
.section-sub {
    margin: 7px 0 0;
    font-size: 12.5px;
    letter-spacing: 0.4px;
    color: var(--text-mute);
}
.section-heading h2::after {
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), rgba(245, 197, 107, 0));
    box-shadow: 0 0 10px rgba(245, 197, 107, 0.45);
}

/* ---- 任务进度条发光端点 ---- */
.progress-fill { position: relative; }
.progress-fill::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 26%, #f5c56b 54%, rgba(245, 197, 107, 0) 74%);
    box-shadow: 0 0 12px rgba(245, 197, 107, 0.85);
}

/* ---- 商品价格 Token 胶囊 ---- */
.item-price-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(245, 197, 107, 0.16), rgba(230, 179, 77, 0.05));
    border: 1px solid rgba(245, 197, 107, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.item-price-pill .item-price-value { font-size: 20px; }

/* ---- 分类图标区渐变（vip 紫金 / token 蓝青 / badge 金橙 / service 紫蓝） ---- */
.cover-vip { background: linear-gradient(135deg, #6c5ce7 0%, #8e44ad 48%, #e6b34d 132%); }
.cover-token { background: linear-gradient(135deg, #2980b9 0%, #3498db 46%, #00d2d3 120%); }
.cover-badge { background: linear-gradient(135deg, #f5c56b 0%, #e67e22 66%, #d35400 128%); }
.cover-service { background: linear-gradient(135deg, #6c5ce7 0%, #3498db 72%, #00cec9 130%); }

/* ---- 图片图标（mall_icons 上传图） ---- */
.mall-item-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.item-cover .mall-item-icon-img {
    width: 86px;
    height: 86px;
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.task-icon .mall-item-icon-img { border-radius: 13px; }
.modal-item-icon .mall-item-icon-img { border-radius: 16px; }
.modal-item-icon.is-image {
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* ---- 商品卡 hover：金色描边 + 缓动优化 ---- */
.item-card { transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.34s var(--ease), border-color 0.34s; }
.item-card:hover { border-color: rgba(245, 197, 107, 0.5); }

/* ---- 我的兑换：桌面行 hover 高亮 + 状态徽章玻璃金属质感 ---- */
.exchange-row:hover { background: linear-gradient(90deg, rgba(245, 197, 107, 0.06), rgba(255, 255, 255, 0.03)); }
.status-badge {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.status-badge--ok { background: linear-gradient(135deg, rgba(46, 204, 113, 0.22), rgba(46, 204, 113, 0.10)); }
.status-badge--pending { background: linear-gradient(135deg, rgba(243, 156, 18, 0.22), rgba(243, 156, 18, 0.08)); }

/* ---- 兑换弹窗：桌面最大宽 440px + 成功对勾描边扩散 ---- */
.modal-card { max-width: 440px; }
.modal-card.mall-sheet { max-width: 440px; }
.success-ring { position: relative; box-shadow: 0 0 0 12px rgba(46, 204, 113, 0.10); }
.success-ring::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid rgba(46, 204, 113, 0.45);
    animation: successRingRipple 1.9s ease-out 0.15s infinite;
    pointer-events: none;
}
@keyframes successRingRipple {
    0% { transform: scale(0.86); opacity: 0.9; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes sheetSlideUp {
    from { transform: translateY(100%); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---- 分类 Tab 容器（桌面常规流；移动端 sticky 横滚） ---- */
.category-tabs-wrap { margin: 0 0 22px; }
.sheet-handle { display: none; }

/* ---- 兑换骨架行（与卡片布局同步） ---- */
.exchange-skeleton-row { margin: 0 16px 12px; }
.exchange-skeleton-row:first-child { margin-top: 16px; }

/* ============================================================
   移动端适配（≤768 / ≤480）
   ============================================================ */
@media (max-width: 768px) {
    :root { --topbar-h: 60px; }

    /* 顶栏紧凑 */
    .mall-topbar { padding: 9px 14px; }
    .topbar-inner { min-height: 42px; }
    .brand-mark { width: 34px; height: 34px; font-size: 15px; border-radius: 11px; }
    .brand-text strong { font-size: 15px; letter-spacing: 0.5px; }

    /* Hero 单列 + 余额卡全宽 */
    .hero { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
    .hero-title { font-size: clamp(34px, 9.5vw, 46px); letter-spacing: 3px; }
    .hero-subtitle { margin-bottom: 20px; }
    .hero-aura { filter: blur(30px); opacity: 0.42; }
    .hero-sheen { display: none; }
    .balance-card { max-width: none; width: 100%; }
    .balance-amount #balanceNumber { font-size: clamp(32px, 9vw, 44px); }
    .hero-actions .btn { min-height: 44px; flex: 1 1 auto; }

    /* 分类 Tab：sticky 横滚 + 边缘渐隐提示 */
    .category-tabs-wrap {
        position: sticky;
        top: var(--topbar-h);
        z-index: 40;
        margin: 0 0 14px;
        padding: 8px 0 10px;
        background: linear-gradient(180deg, rgba(9, 7, 24, 0.96) 62%, rgba(9, 7, 24, 0));
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
    .category-tabs-wrap::after {
        content: '';
        position: absolute;
        right: 0;
        top: 8px;
        bottom: 10px;
        width: 30px;
        background: linear-gradient(90deg, rgba(15, 12, 41, 0), rgba(15, 12, 41, 0.92));
        pointer-events: none;
        border-radius: 0 999px 999px 0;
    }
    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        scrollbar-width: none;
    }
    .category-tabs::-webkit-scrollbar { display: none; }
    .cat-tab { flex: 0 0 auto; min-height: 44px; padding: 10px 18px; }

    /* 商品卡 2 列 + 44px 触控 */
    .items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .item-cover { height: 112px; }
    .item-cover .mall-item-icon-img { width: 72px; height: 72px; border-radius: 20px; }
    .item-body { padding: 14px; gap: 9px; }
    .item-name { font-size: 15px; }
    .item-desc { min-height: 40px; }
    .item-price-value { font-size: 19px; }
    .item-actions .btn { min-height: 44px; }
    .item-card:hover { transform: none; }

    /* 任务卡单列 + 按钮全宽 */
    .tasks-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .task-actions .btn { min-height: 44px; }

    /* 我的兑换：卡片列表（每单一张卡） */
    .exchanges-panel {
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }
    .exchanges-list { gap: 12px; }
    .exchange-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        position: relative;
        padding: 16px 16px 14px 18px;
        border-radius: 16px;
        background: linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
        border: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .exchange-row::before {
        content: '';
        position: absolute;
        left: 0;
        top: 16px;
        bottom: 16px;
        width: 3px;
        border-radius: 3px;
        background: linear-gradient(180deg, var(--gold), rgba(245, 197, 107, 0));
        opacity: 0.85;
    }
    .exchange-main { padding-right: 96px; }
    .exchange-name { font-size: 15px; }
    .exchange-remark { font-size: 11.5px; }
    .exchange-cell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-left: 4px;
        font-size: 12.5px;
    }
    .exchange-cell .cell-label { display: inline; color: var(--text-mute); }
    .exchange-cell--status {
        position: absolute;
        top: 14px;
        right: 14px;
        padding: 0;
    }
    .exchange-cell--status .cell-label { display: none; }
    .exchange-cell--time { order: 10; font-size: 11.5px; color: var(--text-mute); }
    .exchange-skeleton-row { margin: 0; }
    .exchanges-list { padding: 0; }
    .pager { border-top: none; padding: 16px 0 0; }

    /* 兑换弹窗：底部弹出 sheet */
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal-card,
    .modal-card.mall-sheet {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 22px 22px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
        animation: sheetSlideUp 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
    }
    .modal-card.mall-sheet .modal-close { top: 10px; right: 10px; width: 36px; height: 36px; }
    .sheet-handle {
        display: block;
        width: 44px;
        height: 5px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.3);
        margin: 0 auto 12px;
    }
    .modal-head { margin-top: 2px; }
    .modal-actions {
        position: sticky;
        bottom: 0;
        gap: 10px;
        margin-top: 18px;
        padding-bottom: 2px;
        background: linear-gradient(180deg, rgba(24, 20, 50, 0), rgba(24, 20, 50, 0.9) 42%);
    }
    .modal-actions .btn { min-height: 44px; }
    .step-btn { width: 40px; height: 40px; }
    .stepper input { height: 40px; }
    .modal-success .btn { min-height: 44px; }

    /* toast / 页脚安全区 */
    .toast-stack { top: calc(10px + env(safe-area-inset-top, 0px)); }
    .mall-main { padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px)); }
    .mall-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
    .footer-nav { gap: 8px 16px; }
    .footer-nav a { min-height: 40px; align-items: center; display: inline-flex; }
}

@media (max-width: 480px) {
    :root { --topbar-h: 56px; }

    /* 顶栏：品牌缩写 + 余额胶囊 */
    .mall-topbar { padding: 8px 12px; }
    .topbar-inner { min-height: 40px; gap: 8px; }
    .topbar-left { gap: 10px; }
    .brand { gap: 8px; }
    .brand-mark { width: 32px; height: 32px; font-size: 14px; border-radius: 10px; }
    .brand-text strong,
    .brand-text em { display: none; }
    .brand-compact {
        display: inline-block;
        font-size: 14.5px;
        font-weight: 700;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    .icon-btn { width: 38px; height: 38px; }
    .token-pill { padding: 6px 12px; gap: 6px; }
    .token-pill-label { display: none; }
    .topbar-right .btn-sm { min-height: 36px; padding: 7px 14px; }

    /* 商品卡 1 列 / 图标区自适应 */
    .items-grid { grid-template-columns: minmax(0, 1fr); }
    .item-cover { height: auto; aspect-ratio: 16 / 9; min-height: 104px; }
    .item-cover .mall-item-icon-img { width: 76px; height: 76px; border-radius: 20px; }
    .hero { padding: 22px 16px; border-radius: 20px; }
    .hero-title { letter-spacing: 2px; }
    .hero-eyebrow { font-size: 11px; padding: 5px 11px; }
    .balance-card { padding: 18px; }
    .balance-card-foot { flex-wrap: wrap; gap: 8px; }
    .section-heading h2 { font-size: 20px; }
    .section-sub { font-size: 12px; }
    .cat-tab { padding: 9px 14px; font-size: 12.5px; }
    .exchange-row { padding: 14px 14px 12px 16px; }
    .exchange-main { padding-right: 90px; }
    .status-badge { font-size: 11px; padding: 3px 8px; }
    .toast { font-size: 12.5px; padding: 10px 14px; }
}

/* 顶部安全区（刘海屏） */
@supports (padding-top: env(safe-area-inset-top)) {
    .mall-topbar { padding-top: calc(9px + env(safe-area-inset-top, 0px)); }
}

/* ==================== 减少动效（新增动画） ==================== */
@media (prefers-reduced-motion: reduce) {
    .hero-aura,
    .hero-sheen,
    .hero-title,
    .success-ring::after { animation: none !important; }
    .item-card { transition: none; }
    .category-tabs { scroll-behavior: auto; }
    .modal-card,
    .modal-card.mall-sheet { animation: none; }
}

/* ============================================================
   v3 体验与视觉精修（保持 v2 基调，不推翻）
   ============================================================ */

/* ---- Hero 三统计块（玻璃小卡） ---- */
.balance-amount { font-weight: 900; letter-spacing: 0.5px; }
.balance-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 2px;
}
.stat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    padding: 10px 8px;
    border-radius: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.stat-value {
    max-width: 100%;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-value.is-gold { text-shadow: 0 4px 14px rgba(245, 197, 107, 0.35); }
.stat-label {
    font-size: 10.5px;
    letter-spacing: 0.3px;
    color: var(--text-mute);
    white-space: nowrap;
}
.stat-label i { margin-right: 2px; opacity: 0.8; }

/* ---- 区块工具区 / 一键领取 ---- */
.section-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
#claimAllBtn { min-height: 36px; }

/* ---- 任务卡状态：可领取呼吸描边 / 已领取降饱和 + 对勾 ---- */
.task-card.is-claimable {
    border-color: rgba(245, 197, 107, 0.45);
    animation: claimBreathe 2.6s ease-in-out infinite;
}
@keyframes claimBreathe {
    0%, 100% { box-shadow: 0 0 0 1px rgba(245, 197, 107, 0.18), var(--shadow-md); }
    50% { box-shadow: 0 0 0 4px rgba(245, 197, 107, 0.10), var(--shadow-md); }
}
.task-card.is-claimed { opacity: 0.82; filter: saturate(0.72); }
.task-card.is-claimed::before { opacity: 0.25; }
.task-title-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.task-title-row .task-title { margin: 0; }
.task-claimed-icon { color: var(--green); font-size: 13px; flex-shrink: 0; }

/* ---- 商城工具栏：搜索 + 排序 ---- */
.mall-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 18px;
}
.mall-search {
    position: relative;
    flex: 1 1 240px;
    min-width: 0;
    display: flex;
    align-items: center;
}
.mall-search > i {
    position: absolute;
    left: 14px;
    font-size: 13px;
    color: var(--text-mute);
    pointer-events: none;
}
.mall-search input {
    width: 100%;
    height: 42px;
    padding: 0 38px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.mall-search input::placeholder { color: var(--text-mute); }
.mall-search input:focus {
    border-color: rgba(245, 197, 107, 0.5);
    box-shadow: 0 0 0 3px rgba(245, 197, 107, 0.12);
}
.search-clear {
    position: absolute;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-mute);
    cursor: pointer;
}
.mall-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 13px;
}
.mall-sort select {
    border: none;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}
.mall-sort select option { background: #1a1634; color: var(--text); }

/* ---- 分类 Tab 数量徽章 ---- */
.cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-dim);
}
.cat-tab.is-active .cat-count { background: rgba(43, 28, 5, 0.22); color: #2b1c05; }

/* ---- 商品卡：已兑徽章 / 不可用态 / 去赚取去充值 ---- */
.item-name-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}
.item-name-row .item-name { flex: 1 1 auto; margin: 0; }
.item-owned-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(245, 197, 107, 0.12);
    border: 1px solid rgba(245, 197, 107, 0.3);
    white-space: nowrap;
}
.item-card.is-soldout .item-cover { filter: grayscale(0.75) brightness(0.8); }
.item-card.is-limit .item-cover { filter: grayscale(0.45); }
.item-card.is-insufficient .item-cover { filter: saturate(0.55); }
.item-insufficient-tips {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    font-size: 12px;
}
.item-insufficient-tips a { color: var(--gold); text-decoration: none; white-space: nowrap; }
.item-insufficient-tips a:hover { text-decoration: underline; }

/* ---- 兑换弹窗：库存/限购 + 数量 chips + 提示 ---- */
.modal-card { position: relative; }
.modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.85;
    pointer-events: none;
}
.summary-row--stock strong { color: var(--text-dim); font-weight: 600; }
.qty-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px; }
.qty-chip {
    min-width: 44px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.qty-chip:hover { border-color: rgba(245, 197, 107, 0.4); color: var(--gold); }
.qty-chip.is-active {
    background: linear-gradient(135deg, #fbe4ad, var(--gold-deep));
    border-color: transparent;
    color: #2b1c05;
    font-weight: 700;
}
.modal-tip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--text-mute);
}
.modal-tip i { color: var(--gold); }
.modal-tip a { color: var(--gold); text-decoration: none; }
.modal-tip a:hover { text-decoration: underline; }
.success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.success-actions .btn { min-width: 140px; }

/* ---- 我的兑换：状态筛选 / 刷新 / 金额等宽右对齐 ---- */
.exchange-filter {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}
.filter-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-mute);
    font-size: 12.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.is-active {
    background: linear-gradient(135deg, #fbe4ad, var(--gold-deep));
    color: #2b1c05;
    font-weight: 700;
}
.filter-hint { font-size: 11.5px; color: var(--text-mute); }
.refresh-btn.is-loading i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.exchange-cell--cost { text-align: right; font-variant-numeric: tabular-nums; }
.exchange-cell--time { font-variant-numeric: tabular-nums; }

/* ---- 回到顶部 ---- */
.back-to-top {
    position: fixed;
    right: calc(18px + env(safe-area-inset-right, 0px));
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(245, 197, 107, 0.4);
    background: linear-gradient(135deg, #fbe4ad, var(--gold-deep));
    color: #2b1c05;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(230, 179, 77, 0.4);
    transition: transform 0.2s var(--ease), box-shadow 0.2s, opacity 0.2s;
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(230, 179, 77, 0.5); }
.back-to-top[hidden] { display: none !important; }

/* ---- 区块滚动进场 ---- */
.reveal-ready .hero,
.reveal-ready .section,
.reveal-ready .mall-footer {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-ready .is-revealed { opacity: 1; transform: none; }

/* ============================================================
   v3 移动端适配
   ============================================================ */
@media (max-width: 768px) {
    .balance-stats { gap: 6px; }
    .stat-chip { padding: 8px 6px; border-radius: 10px; }
    .stat-value { font-size: 15px; }
    .stat-label { font-size: 10px; }
    .section-tools { width: 100%; justify-content: space-between; }
    #claimAllBtn { flex: 1 1 100%; min-height: 44px; justify-content: center; margin-top: 6px; }
    .mall-toolbar { gap: 10px; }
    .mall-search { flex: 1 1 100%; }
    .mall-sort { flex: 1 1 100%; justify-content: space-between; }
    .mall-sort select { flex: 1; }
    .qty-chip { min-height: 36px; }
    .exchange-filter { order: 2; }
    .filter-hint { order: 1; width: 100%; }
    .refresh-btn { order: 3; }
    .task-card.is-claimable { animation: none; }
    .back-to-top {
        width: 44px;
        height: 44px;
        right: calc(14px + env(safe-area-inset-right, 0px));
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .exchange-cell--cost { text-align: right; }
    .modal-card::before { height: 2px; }
    .success-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
    .balance-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat-label { letter-spacing: 0; }
    .cat-count { margin-left: 4px; padding: 0 5px; min-width: 18px; }
    .success-actions .btn { flex: 1 1 100%; min-width: 0; }
    .modal-tip { gap: 8px; }
    .search-clear { width: 30px; height: 30px; }
}

/* ==================== v3 减少动效 ==================== */
@media (prefers-reduced-motion: reduce) {
    .task-card.is-claimable { animation: none; }
    .refresh-btn.is-loading i { animation: none; }
    .back-to-top { transition: none; }
    .reveal-ready .hero,
    .reveal-ready .section,
    .reveal-ready .mall-footer { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   v4 我的权益卡券 / 置顶卡使用（叠加于 v3，不推翻）
   ============================================================ */

/* ---- 商品卡「卡券」标签 ---- */
.item-coupon-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    color: #2b1c05;
    background: linear-gradient(135deg, #fbe4ad, var(--gold-deep));
    box-shadow: 0 3px 10px rgba(230, 179, 77, 0.28);
    white-space: nowrap;
}

/* ---- 我的权益卡券区块 ---- */
.cards-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.my-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(245, 197, 107, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(245, 197, 107, 0.28);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.my-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.16) 48%, transparent 62%);
    transform: translateX(-140%);
    transition: transform 0.8s var(--ease);
}
.my-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 197, 107, 0.5);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(245, 197, 107, 0.12);
}
.my-card:hover::after { transform: translateX(140%); }
.my-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 20px;
    color: #2b1c05;
    background: linear-gradient(135deg, #fbe4ad, var(--gold-deep));
    box-shadow: 0 8px 20px rgba(230, 179, 77, 0.32);
    flex-shrink: 0;
}
.my-card-main { flex: 1; min-width: 0; }
.my-card-name {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.my-card-meta { margin: 0; font-size: 12px; color: var(--text-mute); }
.my-card-meta strong { color: var(--gold); }
.my-card .btn { flex-shrink: 0; }
.my-card-skeleton { height: 86px; border-radius: var(--radius-lg); }

/* ---- 使用置顶卡弹窗 ---- */
.use-card-hint { margin: 0 0 4px; font-size: 12.5px; color: var(--text-mute); }
.post-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 46vh;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
}
.post-pick {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.post-pick:hover { border-color: rgba(245, 197, 107, 0.4); }
.post-pick.is-selected {
    border-color: rgba(245, 197, 107, 0.75);
    background: rgba(245, 197, 107, 0.10);
    box-shadow: 0 0 0 2px rgba(245, 197, 107, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.post-pick-radio {
    position: relative;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}
.post-pick.is-selected .post-pick-radio { border-color: var(--gold); }
.post-pick.is-selected .post-pick-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--gold);
}
.post-pick-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.post-pick-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-pick-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-size: 11.5px;
    color: var(--text-mute);
}
.post-top-badge {
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    color: #2b1c05;
    background: linear-gradient(135deg, #fbe4ad, var(--gold-deep));
    white-space: nowrap;
}
.pager--compact { padding: 10px 0 0; border-top: none; }
.state-panel--compact { padding: 26px 16px; gap: 8px; }
.use-card-modal .modal-tip { margin-top: 4px; }
.use-card-modal .modal-actions { margin-top: 16px; }

/* ---- 我的兑换：置顶卡使用状态 ---- */
.exchange-usage { display: flex; margin-top: 5px; }
.usage-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}
.usage-badge--pending {
    color: #2b1c05;
    background: linear-gradient(135deg, #fbe4ad, var(--gold-deep));
    box-shadow: 0 3px 10px rgba(230, 179, 77, 0.26);
}
.usage-badge--used {
    color: var(--text-mute);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    font-weight: 500;
}

/* ---- v4 移动端 ---- */
@media (max-width: 768px) {
    .cards-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .my-card { padding: 16px; }
    .my-card .btn { min-height: 44px; }
    .post-picker { max-height: 40vh; }
    .post-pick { min-height: 44px; }
    .state-panel--compact { padding: 22px 14px; }
}
@media (max-width: 480px) {
    .my-card { flex-wrap: wrap; }
    .my-card .btn { width: 100%; }
    .post-pick-meta { gap: 3px 8px; }
}

/* ---- v4 减少动效 ---- */
@media (prefers-reduced-motion: reduce) {
    .my-card { transition: none; }
    .my-card::after { display: none; }
}

/* ============================================================
   v5 视觉精修：搜索/排序工具栏 + 我的兑换 + 全页设计语言统一
   （叠加于 v3/v4，不改变功能逻辑）
   ============================================================ */

/* ---------- 设计令牌（统一间距 / 圆角 / 边框 / 阴影 / 缓动） ---------- */
:root {
    --v5-section-gap: clamp(40px, 5vw, 64px);
    --v5-card-pad: 20px;
    --v5-card-radius: var(--radius-lg);
    --v5-hover-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --v5-hover-lift: -6px;
    --v5-border-glass: rgba(255, 255, 255, 0.13);
    --v5-shadow-card: 0 18px 44px rgba(3, 1, 16, 0.42);
    --v5-shadow-card-hover: 0 28px 62px rgba(3, 1, 16, 0.52), 0 0 0 1px rgba(245, 197, 107, 0.18);
}

/* ---------- 统一区块节奏与标题组件 ---------- */
.section { margin-top: var(--v5-section-gap); }
.section-head { align-items: flex-end; margin-bottom: 20px; }
.section-heading h2 {
    margin: 0;
    font-size: clamp(21px, 2.5vw, 27px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
}
.section-heading h2::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 3px;
    margin-left: 12px;
    border-radius: 3px;
    vertical-align: middle;
    background: linear-gradient(90deg, var(--gold), rgba(245, 197, 107, 0));
    box-shadow: 0 0 10px rgba(245, 197, 107, 0.45);
}
.section-eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: 11.5px;
    letter-spacing: 3px;
    color: var(--gold);
    opacity: 0.92;
}
.section-eyebrow i { margin-right: 5px; font-size: 11px; }
.section-sub { margin: 7px 0 0; font-size: 12.5px; letter-spacing: 0.4px; color: var(--text-mute); }
.section-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }

/* ---------- 徽章 / 标签体系统一 ---------- */
.item-owned-badge,
.item-coupon-badge,
.cat-count,
.usage-badge,
.status-badge,
.post-top-badge,
.vip-badge {
    border-radius: 999px;
    letter-spacing: 0.3px;
}

/* ---------- 玻璃卡统一 ---------- */
.task-card,
.item-card,
.my-card,
.exchanges-panel,
.skeleton-card {
    border-color: var(--v5-border-glass);
}
.task-card:hover { transform: translateY(var(--v5-hover-lift)); transition-timing-function: var(--v5-hover-ease); }
.item-card { transition: transform 0.34s var(--v5-hover-ease), box-shadow 0.34s var(--v5-hover-ease), border-color 0.34s; }
.my-card { transition: transform 0.3s var(--v5-hover-ease), box-shadow 0.3s var(--v5-hover-ease), border-color 0.3s; }

/* ---------- A) 搜索 / 排序工具栏 ---------- */
.mall-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 20px;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--v5-border-glass);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 28px rgba(3, 1, 16, 0.28);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .mall-toolbar { background: rgba(26, 22, 52, 0.94); }
}
.mall-search {
    position: relative;
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    align-items: center;
}
.mall-search > i.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-mute);
    font-size: 13px;
    pointer-events: none;
    transition: color 0.2s;
}
.mall-search input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.20);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.mall-search input::placeholder { color: rgba(232, 227, 255, 0.42); }
.mall-search input:hover { border-color: rgba(255, 255, 255, 0.22); }
.mall-search input:focus {
    border-color: rgba(245, 197, 107, 0.6);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(245, 197, 107, 0.16), 0 0 22px rgba(245, 197, 107, 0.18), inset 0 2px 6px rgba(0, 0, 0, 0.24);
}
.mall-search:focus-within > i.search-icon { color: var(--gold); }
.search-clear {
    right: 8px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s var(--v5-hover-ease);
}
.search-clear:hover {
    color: #2b1c05;
    background: linear-gradient(135deg, #fbe4ad, var(--gold-deep));
    border-color: transparent;
    transform: scale(1.05);
}
.toolbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}
.mall-sort {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 36px 0 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.22);
    color: var(--text-dim);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.mall-sort:hover { border-color: rgba(245, 197, 107, 0.4); }
.mall-sort:focus-within {
    border-color: rgba(245, 197, 107, 0.6);
    box-shadow: 0 0 0 3px rgba(245, 197, 107, 0.16), inset 0 2px 5px rgba(0, 0, 0, 0.22);
}
.mall-sort > i:first-of-type { color: var(--text-mute); font-size: 12px; }
.mall-sort .sort-label { font-size: 12px; color: var(--text-mute); white-space: nowrap; }
.mall-sort select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    padding: 0 2px 0 0;
}
.mall-sort select option { background: #1a1634; color: #f4f1ff; }
.mall-sort .sort-arrow {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 11px;
    pointer-events: none;
}
.result-count {
    padding: 0 2px;
    font-size: 12.5px;
    color: var(--text-mute);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s;
}
.result-count.is-filtered { color: var(--gold); }
.clear-filters-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(245, 197, 107, 0.38);
    background: rgba(245, 197, 107, 0.10);
    color: var(--gold);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s var(--v5-hover-ease);
}
.clear-filters-chip i { font-size: 11px; }
.clear-filters-chip:hover {
    background: rgba(245, 197, 107, 0.18);
    border-color: rgba(245, 197, 107, 0.55);
    transform: translateY(-1px);
}
.clear-filters-chip[hidden] { display: none !important; }

/* ---------- B) 我的兑换 ---------- */
.exchanges-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--v5-border-glass);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .exchanges-toolbar { background: rgba(26, 22, 52, 0.94); }
}
.exchanges-toolbar .exchange-filter {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}
.exchanges-toolbar .filter-btn { min-height: 32px; padding: 6px 14px; }
.exchanges-toolbar .filter-btn.is-active {
    background: linear-gradient(135deg, #fbe4ad, var(--gold-deep));
    color: #2b1c05;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(230, 179, 77, 0.28);
}
.btn-toolbar-glass {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-toolbar-glass i { font-size: 12px; }
.btn-toolbar-glass:hover {
    color: var(--gold);
    border-color: rgba(245, 197, 107, 0.4);
    background: rgba(245, 197, 107, 0.08);
}
.btn-toolbar-glass.is-loading i { animation: spin 1s linear infinite; }
.btn-toolbar-glass:disabled { opacity: 0.5; cursor: not-allowed; }
.filter-hint { font-size: 11px; color: var(--text-mute); opacity: 0.85; }

.exchanges-panel {
    border-radius: var(--v5-card-radius);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
    border: 1px solid var(--v5-border-glass);
    box-shadow: var(--v5-shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.exchanges-head {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) 0.8fr 1fr 1.15fr 0.95fr 1.3fr;
    gap: 12px;
    padding: 14px 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--text-mute);
    text-transform: uppercase;
}
.exchanges-head span:nth-child(2),
.exchanges-head span:nth-child(3) { text-align: right; }
.exchange-row { transition: background 0.2s, box-shadow 0.2s; }
.exchange-row:nth-child(even) { background: rgba(255, 255, 255, 0.016); }
.exchange-row:hover {
    background: linear-gradient(90deg, rgba(245, 197, 107, 0.075), rgba(255, 255, 255, 0.03));
    box-shadow: inset 2px 0 0 rgba(245, 197, 107, 0.55);
}
.exchange-name { font-weight: 700; }
.exchange-remark {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.exchange-cell--cost {
    justify-content: flex-end;
    text-align: right;
    color: var(--gold);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.exchange-cell--time { color: var(--text-mute); }
.status-badge {
    border-radius: 999px;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.status-badge--ok {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.24), rgba(46, 204, 113, 0.10));
    border-color: rgba(46, 204, 113, 0.38);
}
.status-badge--pending {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.26), rgba(243, 156, 18, 0.10));
    border-color: rgba(243, 156, 18, 0.4);
}
.pager {
    gap: 14px;
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.pager .btn {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.13);
}
.pager .btn:not(:disabled):hover { border-color: rgba(245, 197, 107, 0.4); color: var(--gold); }
.pager .btn:disabled { opacity: 0.4; box-shadow: none; }
.pager-info { color: var(--gold); opacity: 0.9; font-variant-numeric: tabular-nums; }

/* ---------- C) 全页协调 ---------- */
/* 按钮体系统一 */
.btn {
    transition: transform 0.18s var(--v5-hover-ease), box-shadow 0.25s var(--v5-hover-ease), background 0.25s, color 0.2s, border-color 0.2s;
}
.btn-ghost {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover {
    color: var(--gold);
    border-color: rgba(245, 197, 107, 0.4);
    background: rgba(245, 197, 107, 0.08);
}
.btn:disabled,
.btn[disabled] { opacity: 0.45; box-shadow: none; }
/* focus-visible 金环 */
body.mall-body :focus-visible {
    outline: 2px solid rgba(245, 197, 107, 0.85);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(245, 197, 107, 0.14);
}
/* Hero 过渡与页脚 */
.hero { transition: box-shadow 0.4s var(--v5-hover-ease); }
.hero + .section { margin-top: clamp(32px, 4vw, 52px); }
.mall-footer { margin-top: var(--v5-section-gap); padding-top: 28px; }
.footer-nav a { min-height: 36px; }
/* 空态 / 错误态 / 骨架统一 */
.state-panel {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    gap: 12px;
}
.skeleton-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 255, 255, 0.08);
}

/* ---------- A/B 移动端适配（v5） ---------- */
@media (max-width: 768px) {
    .mall-toolbar { padding: 10px 12px; border-radius: 16px; }
    .mall-search { flex: 1 1 100%; }
    .mall-search input { height: 44px; }
    .toolbar-right {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
    }
    .mall-sort { width: 100%; height: 44px; justify-content: space-between; }
    .result-count { justify-self: end; white-space: nowrap; }
    .clear-filters-chip { grid-column: 1 / -1; justify-self: start; min-height: 36px; }
    .exchanges-head { display: none; }
    .section-tools { width: 100%; justify-content: space-between; }
    .exchanges-toolbar {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
        border-radius: 16px;
    }
    .exchanges-toolbar .exchange-filter { display: inline-flex; flex-wrap: wrap; gap: 4px; }
    .exchanges-toolbar .filter-btn { min-height: 44px; }
    .btn-toolbar-glass { min-height: 44px; }
    .exchange-cell--cost span:last-child { font-size: 15px; font-weight: 800; color: var(--gold); }
    .exchange-cell .cell-label { font-size: 11px; letter-spacing: 0.5px; color: var(--text-mute); }
    .pager { padding: 16px 0 0; gap: 10px; }
    .pager .btn { min-height: 44px; }
}
@media (max-width: 480px) {
    .result-count { font-size: 12px; }
    .exchanges-toolbar { padding: 5px; }
    .mall-toolbar { padding: 9px 10px; }
}

/* ---------- v5 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
    .search-clear,
    .clear-filters-chip,
    .mall-toolbar,
    .exchanges-toolbar,
    .btn-toolbar-glass,
    .exchange-row,
    .task-card,
    .my-card,
    .item-card,
    .hero { transition: none; }
    .search-clear:hover,
    .clear-filters-chip:hover { transform: none; }
}

/* ============================================================
   v6 去玻璃化 · 高对比重做：搜索/排序工具栏 + 我的兑换筛选
   （覆盖 v5 玻璃方案；表格/卡片/分页/空态保持 R15）
   ============================================================ */

/* ---------- A. 搜索 + 排序工具栏（单条实心，无 blur） ---------- */
.mall-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 20px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #16122f;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.mall-search {
    position: relative;
    flex: 1 1 260px;
    min-width: 0;
    display: flex;
    align-items: center;
}
.mall-search > i.search-icon {
    position: absolute;
    left: 16px;
    color: #e6b34d;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
}
.mall-search input {
    width: 100%;
    height: 46px;
    padding: 0 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #0f0c24;
    box-shadow: none;
    color: #ffffff;
    font-size: 14.5px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.mall-search input::placeholder { color: rgba(255, 255, 255, 0.34); }
.mall-search input:hover { border-color: rgba(255, 255, 255, 0.16); }
.mall-search input:focus,
.mall-search:focus-within input {
    border-color: rgba(230, 179, 77, 0.75);
    box-shadow: 0 0 0 3px rgba(230, 179, 77, 0.14);
    background: #0f0c24;
}
.mall-search:focus-within > i.search-icon { color: #f3c96b; }
.search-clear {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.search-clear:hover { color: #e6b34d; background: rgba(255, 255, 255, 0.12); }
.search-clear[hidden] { display: none !important; }

/* 排序：分段控件（替代原生 select） */
.sort-segmented {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 12px;
    background: #0f0c24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.sort-seg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.sort-seg i { font-size: 11px; }
.sort-seg:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.sort-seg.is-active {
    color: #f3c96b;
    background: rgba(230, 179, 77, 0.15);
    border-color: rgba(230, 179, 77, 0.40);
    font-weight: 600;
}
.sort-seg:focus-visible { outline: 2px solid rgba(230, 179, 77, 0.8); outline-offset: 2px; }

/* 结果计数（工具栏右端） */
.result-count {
    margin-left: auto;
    padding: 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s;
}
.result-count.is-filtered { color: #f3c96b; }

/* 清除筛选：极简文字按钮 */
.clear-filters-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding: 0 2px;
    border: none;
    background: none;
    color: rgba(230, 179, 77, 0.85);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
}
.clear-filters-link i { font-size: 11px; }
.clear-filters-link:hover { color: #f3c96b; text-decoration: underline; text-underline-offset: 3px; }
.clear-filters-link[hidden] { display: none !important; }

/* ---------- B. 我的兑换右上：下划线 Tab + 圆形刷新 ---------- */
.exchanges-tools {
    display: flex;
    align-items: center;
    gap: 18px;
}
.exchange-tabs {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    height: 40px;
}
.exchanges-tools .filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s;
}
.exchanges-tools .filter-btn::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.18s;
}
.exchanges-tools .filter-btn:hover { color: #ffffff; }
.exchanges-tools .filter-btn.is-active,
.exchanges-tools .filter-btn.is-active:hover {
    color: #f3c96b;
    background: transparent;
    font-weight: 600;
    box-shadow: none;
}
.exchanges-tools .filter-btn.is-active::after {
    background: linear-gradient(90deg, #e6b34d, #f3c96b);
}
.filter-hint {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.30);
    opacity: 1;
}
.refresh-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.refresh-circle:hover {
    color: #e6b34d;
    border-color: rgba(230, 179, 77, 0.55);
    background: rgba(230, 179, 77, 0.08);
}
.refresh-circle.is-loading i { animation: spin 1s linear infinite; }
.refresh-circle:disabled { opacity: 0.45; cursor: not-allowed; }
.refresh-circle:focus-visible { outline: 2px solid rgba(230, 179, 77, 0.8); outline-offset: 2px; }

/* ---------- C. 移动端 ---------- */
@media (max-width: 768px) {
    .mall-toolbar { padding: 10px 12px; gap: 10px; }
    .mall-search { flex: 1 1 100%; }
    .mall-search input { height: 46px; }
    .sort-segmented {
        order: 2;
        max-width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .sort-segmented::-webkit-scrollbar { display: none; }
    .sort-seg { min-height: 44px; padding: 0 12px; }
    .result-count { order: 3; margin-left: auto; }
    .clear-filters-link {
        order: 4;
        flex: 1 1 100%;
        justify-content: flex-start;
        min-height: 44px;
    }
    .exchanges-tools {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    .exchange-tabs {
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        height: 44px;
    }
    .exchange-tabs::-webkit-scrollbar { display: none; }
    .exchanges-tools .filter-btn { min-height: 44px; font-size: 13px; }
    .refresh-circle { width: 44px; height: 44px; }
}

/* ---------- v6 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
    .mall-toolbar,
    .mall-search input,
    .search-clear,
    .sort-seg,
    .result-count,
    .clear-filters-link,
    .exchanges-tools .filter-btn,
    .exchanges-tools .filter-btn::after,
    .refresh-circle { transition: none; }
    .refresh-circle.is-loading i { animation: none; }
}
