/* ============================================================
 * FuloMax 消费端样式 v2.0（FuloMa 风格重构）
 * 规范来源：DESIGN-SYSTEM.md v2.0
 * 分区：tokens → base → topbar → footer → 组件 → 页面 → 响应式
 * ============================================================ */

/* ===== 1. Tokens ===== */
:root {
    --bg: #070708;
    --bg-raised: #0D0E11;
    --surface-1: rgba(220, 227, 244, 0.04);
    --surface-2: rgba(220, 227, 244, 0.08);
    --surface-3: rgba(220, 227, 244, 0.12);
    --surface-4: rgba(220, 227, 244, 0.20);
    --line: rgba(220, 227, 244, 0.10);

    --text-1: #FFFFFF;
    --text-2: rgba(229, 232, 241, 0.72);
    --text-3: rgba(229, 232, 241, 0.56);
    --text-4: rgba(229, 232, 241, 0.38);

    --primary: #FFD700;
    --primary-hover: #FFDD33;
    --on-primary: #0A0B0E;
    --success: #6ADF4D;
    --warning: #F6B535;
    --danger: #FF5C5C;
    --info: #5D5AF8;

    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 12px;
    --container: 1232px;
    --topbar-h: 64px;
    --sidebar-w: 240px;
    --sidebar-w-collapsed: 68px;

    --shadow-pop: 0 18px 48px rgba(0, 0, 0, 0.55);
    --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
}

/* ===== 2. Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text-1);
    font-family: "PingFang SC", "HarmonyOS Sans SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body.fx-lock { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: var(--text-1); }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

::selection { background: rgba(255, 215, 0, 0.28); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.fx-main {
    max-width: var(--container);
    margin: 0 auto;
    padding: 24px 24px 80px;
    min-height: calc(100vh - var(--topbar-h) - 320px);
    animation: fadeUp 0.3s var(--ease);
}

.fx-page-title { font-size: 22px; font-weight: 700; line-height: 1.3; }
.fx-page-sub { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.fx-num { font-variant-numeric: tabular-nums; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ===== 3. Sidebar（左侧可收缩导航） ===== */
body.fx-shell { padding-left: var(--sidebar-w); transition: padding-left 0.26s var(--ease); }
body.fx-shell.fx-sidebar-collapsed { padding-left: var(--sidebar-w-collapsed); }

.fx-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg-raised);
    display: flex;
    flex-direction: column;
    z-index: 950;
    transition: width 0.26s var(--ease), transform 0.26s var(--ease);
    overflow: hidden;
}
.fx-sidebar-collapsed .fx-sidebar { width: var(--sidebar-w-collapsed); }

.fx-sidebar__brand {
    height: var(--topbar-h);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 18px;
    white-space: nowrap;
}
.fx-sidebar__logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-sidebar__logo-mark {
    width: 32px; height: 32px; flex-shrink: 0;
    object-fit: contain;
    border-radius: var(--r-md);
    display: block;
}
.fx-sidebar__wordmark { font-size: 16px; font-weight: 700; letter-spacing: 0.2px; transition: opacity 0.18s; }
.fx-sidebar-collapsed .fx-sidebar__brand { padding: 0 18px; }
.fx-sidebar-collapsed .fx-sidebar__logo { gap: 0; }

.fx-sidebar__nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 10px; }

/* ===== v3 侧栏：首页独立项 + 可折叠分组卡片 ===== */
.fx-sidebar__home { margin-bottom: 12px; }
.fx-sidebar__home .fx-sidebar__link.is-active {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.22), rgba(255, 215, 0, 0.03));
}
.fx-sidebar__card {
    background: var(--surface-1);
    border-radius: var(--r-lg);
    padding: 6px;
    margin-bottom: 12px;
}
.fx-sidebar__card-head {
    width: 100%;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border-radius: var(--r-md);
    color: var(--text-1);
    font-size: 13.5px; font-weight: 600;
    white-space: nowrap;
    transition: background 0.16s;
}
.fx-sidebar__card-head:hover { background: var(--surface-2); }
.fx-sidebar__card-head .fx-sidebar__icon { color: var(--text-2); }
.fx-sidebar__chevron {
    margin-left: auto;
    font-size: 11px; color: var(--text-3);
    transition: transform 0.2s var(--ease);
}
.fx-sidebar__card.is-folded .fx-sidebar__card-body { display: none; }
.fx-sidebar__card.is-folded .fx-sidebar__chevron { transform: rotate(180deg); }
.fx-sidebar__card-body { display: flex; flex-direction: column; }
.fx-sidebar__card-body .fx-sidebar__link { padding: 9px 12px; font-size: 13px; }

/* 底部：安装 App 卡 */
.fx-sidebar__app {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-lg);
    background: linear-gradient(95deg, #E9C227 0%, rgba(233, 194, 39, 0.30) 100%);
    color: #fff;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    transition: filter 0.16s;
}
.fx-sidebar__app:hover { filter: brightness(1.06); }
.fx-sidebar__app-logo {
    width: 34px; height: 34px; flex-shrink: 0;
    object-fit: contain;
    background: #0A0B0E;
    border-radius: var(--r-md);
    padding: 3px;
}
.fx-sidebar__app-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 13.5px; }
.fx-sidebar__app > i { flex-shrink: 0; font-size: 13px; }

.fx-sidebar__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 2px;
    border-radius: var(--r-md);
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.16s, color 0.16s;
}
.fx-sidebar__link:hover { background: var(--surface-2); color: var(--text-1); }
.fx-sidebar__link.is-active { background: var(--surface-3); color: var(--text-1); font-weight: 600; }
.fx-sidebar__link.is-active::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 18px;
    border-radius: 0 3px 3px 0;
    background: var(--primary);
}
.fx-sidebar__icon { width: 20px; flex-shrink: 0; text-align: center; font-size: 15px; color: var(--text-3); }
.fx-sidebar__link:hover .fx-sidebar__icon, .fx-sidebar__link.is-active .fx-sidebar__icon { color: var(--primary); }
.fx-sidebar__label { transition: opacity 0.18s; }
.fx-sidebar__badge {
    margin-left: auto;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    display: grid; place-items: center;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 10.5px; font-weight: 700;
}
.fx-sidebar-collapsed .fx-sidebar__label,
.fx-sidebar-collapsed .fx-sidebar__badge {
    /* 完全不占布局：宽度 0 + 隐藏 + 失活，避免 flex gap 继续撑开 */
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    margin-left: 0;
}
.fx-sidebar-collapsed .fx-sidebar__link { justify-content: center; padding: 10px 0; gap: 0; }
/* v3：collapsed 下组卡片退化为纯图标列表 */
.fx-sidebar-collapsed .fx-sidebar__card { background: none; padding: 0; border-radius: 0; }
.fx-sidebar-collapsed .fx-sidebar__card-head { padding: 10px 0; gap: 0; cursor: default; justify-content: center; }
.fx-sidebar-collapsed .fx-sidebar__card-head .fx-sidebar__chevron { width: 0; overflow: hidden; opacity: 0; margin-left: 0; }
.fx-sidebar-collapsed .fx-sidebar__app { padding: 10px 0; gap: 0; justify-content: center; }
.fx-sidebar-collapsed .fx-sidebar__app-text,
.fx-sidebar-collapsed .fx-sidebar__app > i {
    /* flex:1 会吃掉自由空间，必须显式把 grow/basis 归零，只写 width:0 无效 */
    flex: 0 0 0;
    width: 0; overflow: hidden; opacity: 0;
}
.fx-sidebar-collapsed .fx-sidebar__home { margin-bottom: 12px; }
.fx-sidebar-collapsed .fx-sidebar__link:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 10px); top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    border-radius: var(--r-sm);
    background: var(--bg-raised);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-pop);
    color: var(--text-1);
    font-size: 12px;
    z-index: 960;
    pointer-events: none;
}

.fx-sidebar__foot { flex-shrink: 0; padding: 12px 10px; }
.fx-sidebar__collapse {
    width: 100%;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border-radius: var(--r-md);
    color: var(--text-3);
    font-size: 13px;
    transition: background 0.16s, color 0.16s;
    white-space: nowrap;
}
.fx-sidebar__collapse:hover { background: var(--surface-2); color: var(--text-1); }
.fx-sidebar__collapse i { width: 20px; text-align: center; font-size: 14px; transition: transform 0.26s var(--ease); }
.fx-sidebar-collapsed .fx-sidebar__collapse { justify-content: center; padding: 10px 0; gap: 0; }
.fx-sidebar-collapsed .fx-sidebar__collapse span {
    width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.fx-sidebar-collapsed .fx-sidebar__collapse i { transform: rotate(180deg); }

/* 收起态 wordmark 同样宽度归零，避免与 logo-mark 形成 shift */
.fx-sidebar-collapsed .fx-sidebar__wordmark {
    width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* 侧栏遮罩（移动端抽屉） */
.fx-sidebar-scrim {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 940;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s;
}
.fx-sidebar-scrim.is-open { opacity: 1; visibility: visible; }

/* ===== 4. Topbar ===== */
.fx-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--topbar-h);
    background: rgba(13, 14, 17, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.fx-topbar__inner {
    max-width: var(--container);
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fx-topbar__left { display: flex; align-items: center; gap: 28px; min-width: 0; }

.fx-topbar__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.fx-topbar__logo-mark {
    width: 32px; height: 32px;
    object-fit: contain;
    border-radius: var(--r-md);
    display: block;
}
.fx-topbar__logo-text { font-size: 17px; font-weight: 700; letter-spacing: 0.2px; }

.fx-topbar__nav { display: flex; align-items: center; gap: 4px; }
.fx-topbar__link {
    padding: 8px 14px;
    border-radius: var(--r-md);
    color: var(--text-2);
    font-size: 14px; font-weight: 500;
    transition: color 0.18s, background 0.18s;
}
.fx-topbar__link:hover { color: var(--text-1); background: var(--surface-2); }
.fx-topbar__link.is-active { color: var(--text-1); background: var(--surface-3); }

.fx-topbar__right { display: flex; align-items: center; gap: 8px; }

.fx-topbar__icon-btn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: var(--r-md);
    color: var(--text-2);
    transition: background 0.18s, color 0.18s;
}
.fx-topbar__icon-btn:hover { background: var(--surface-2); color: var(--text-1); }

/* 地区切换：金色描边胶囊（旗帜 + 代码 + 下拉箭头） */
.fx-topbar__region {
    width: auto; height: 36px;
    display: flex; align-items: center; gap: 7px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.14), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.35);
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.fx-topbar__region:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.22), rgba(255, 215, 0, 0.08));
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.18);
}
.fx-topbar__region::after {
    content: "\f078"; /* fa-chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 9px;
    color: var(--text-3);
}
.fx-topbar__flag { font-size: 16px; line-height: 1; }
.fx-topbar__region-code { font-size: 12.5px; font-weight: 800; color: var(--primary); letter-spacing: 0.5px; }

.fx-topbar__balance {
    display: flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 14px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-weight: 700; font-size: 13px;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.18s;
}
.fx-topbar__balance:hover { border-color: var(--surface-4); }
.fx-topbar__balance i { color: var(--primary); font-size: 13px; }

.fx-topbar__auth { display: flex; gap: 8px; }

.fx-topbar__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--primary);
    font-weight: 700; font-size: 15px;
    display: grid; place-items: center;
    transition: background 0.18s;
}
.fx-topbar__avatar:hover { background: var(--surface-4); }

.fx-user-menu { position: relative; }
.fx-user-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 232px;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-pop);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s var(--ease);
    z-index: 950;
}
.fx-user-menu__panel.is-open { opacity: 1; visibility: visible; transform: none; }
.fx-user-menu__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.fx-user-menu__name { font-weight: 700; font-size: 14px; }
.fx-user-menu__email { font-size: 12px; color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.fx-user-menu__panel > a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-size: 13.5px;
    transition: background 0.15s, color 0.15s;
}
.fx-user-menu__panel > a i { width: 16px; text-align: center; font-size: 13px; color: var(--text-3); }
.fx-user-menu__panel > a:hover { background: var(--surface-2); color: var(--text-1); }
.fx-user-menu__panel > a.is-danger { color: var(--danger); }
.fx-user-menu__panel > a.is-danger i { color: var(--danger); }
.fx-user-menu__panel > a.is-danger:hover { background: rgba(255, 92, 92, 0.10); }
.fx-user-menu__divider { height: 1px; background: var(--line); margin: 6px 4px; }

.fx-topbar__burger { display: none; }

/* ===== 4.1 Topbar 搜索（图标 ↔ 展开式输入框） ===== */
.fx-topbar__search {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
}
.fx-topbar__search-toggle { border-radius: var(--r-md); }

.fx-topbar__search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 0;
    height: 40px;
    padding: 0;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: width 0.26s var(--ease), opacity 0.2s, padding 0.2s, border-color 0.18s;
}
.fx-search-open .fx-topbar__search-toggle { display: none; }
.fx-search-open .fx-topbar__search-form {
    width: 320px;
    padding: 0 6px 0 14px;
    opacity: 1;
    visibility: visible;
    border-color: var(--surface-4);
}
.fx-topbar__search-icon { color: var(--text-3); font-size: 14px; flex-shrink: 0; }
.fx-topbar__search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: none;
    border: 0;
    outline: 0;
    color: var(--text-1);
    font-size: 14px;
    padding: 0;
}
.fx-topbar__search-input::placeholder { color: var(--text-4); }
.fx-topbar__search-input:focus { outline: 0; }
.fx-topbar__search-close {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    color: var(--text-3);
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.fx-topbar__search-close:hover { background: var(--surface-3); color: var(--text-1); }

/* 搜索下拉：历史 / 热门 */
.fx-topbar__search-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-pop);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    z-index: 950;
    max-height: 480px;
    overflow-y: auto;
}
.fx-search-open .fx-topbar__search-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.fx-search-panel__hint {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    color: var(--text-3);
    font-size: 13px;
    border: 1px dashed var(--line);
    margin: 4px 4px 8px;
}
.fx-search-panel__hint b { color: var(--primary); margin-left: auto; }

/* 状态徽章（aftersale 记录等） */
.fx-badge {
    display: inline-flex; align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.3px;
}
.fx-badge--success { background: rgba(106, 223, 77, 0.14); color: var(--success); }
.fx-badge--info { background: rgba(93, 90, 248, 0.16); color: #9B99FF; }
.fx-badge--warning { background: rgba(246, 181, 53, 0.14); color: var(--warning); }
.fx-badge--danger { background: rgba(255, 92, 92, 0.14); color: var(--danger); }
.fx-badge--muted { background: var(--surface-3); color: var(--text-3); }
.fx-search-panel__hint i { font-size: 12px; color: var(--text-4); }
.fx-search-panel__section { padding: 4px 4px 4px; }
.fx-search-panel__label {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px 4px;
    color: var(--text-3);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.fx-search-panel__clear {
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-4);
    padding: 3px 8px;
    border-radius: var(--r-sm);
    transition: background 0.15s, color 0.15s;
}
.fx-search-panel__clear:hover { color: var(--primary); background: var(--surface-2); }
.fx-search-panel__item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px;
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-size: 13.5px;
    transition: background 0.15s, color 0.15s;
}
.fx-search-panel__item:hover { background: var(--surface-2); color: var(--text-1); }
.fx-search-panel__item i { width: 14px; color: var(--text-4); font-size: 12px; }
.fx-search-panel__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 6px; }
.fx-search-panel__chip {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 12.5px;
    border: 1px solid var(--line);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.fx-search-panel__chip:hover { background: var(--surface-3); color: var(--text-1); border-color: var(--surface-4); }
.fx-search-panel__empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-4);
    font-size: 13px;
}

/* ===== 4.2 Footer ===== */
.fx-footer { background: var(--bg-raised); margin-top: 40px; }
.fx-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 44px 24px 32px;
    display: grid;
    grid-template-columns: 1.4fr 2.6fr;
    gap: 48px;
}
.fx-footer__brand p { color: var(--text-3); font-size: 13px; margin-top: 14px; max-width: 300px; line-height: 1.6; }
.fx-footer__cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.fx-footer__col { display: flex; flex-direction: column; gap: 10px; }
.fx-footer__col h4 { font-size: 13px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.fx-footer__col a { color: var(--text-3); font-size: 13px; transition: color 0.15s; }
.fx-footer__col a:hover { color: var(--primary); }
.fx-footer__bar {
    padding: 18px 24px;
    text-align: center;
    color: var(--text-4);
    font-size: 12px;
}

/* ===== 5. 组件：按钮 ===== */
.fx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
    user-select: none;
}
.fx-btn:active { transform: scale(0.98); }

.fx-btn--primary { background: var(--primary); color: var(--on-primary); }
.fx-btn--primary:hover { background: var(--primary-hover); }
.fx-btn--primary:disabled { background: var(--surface-3); color: var(--text-4); cursor: not-allowed; }

.fx-btn--tonal { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.fx-btn--tonal:hover { color: var(--text-1); border-color: var(--surface-4); }

.fx-btn--ghost { background: transparent; color: var(--text-2); }
.fx-btn--ghost:hover { background: var(--surface-2); color: var(--text-1); }

.fx-btn--danger { background: transparent; color: var(--danger); border: 1px solid rgba(255, 92, 92, 0.4); }
.fx-btn--danger:hover { background: rgba(255, 92, 92, 0.10); }

.fx-btn.is-off { opacity: 0.45; cursor: not-allowed; }
.fx-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.fx-btn--lg { height: 48px; padding: 0 28px; font-size: 15px; }
.fx-btn--block { width: 100%; }

/* ===== 6. 组件：卡片 / 商品卡 ===== */
.fx-card {
    background: var(--surface-1);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: border-color 0.18s, transform 0.18s var(--ease);
}

/* 商品卡（FuloMa 游戏卡同构） */
.fx-card--product {
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.fx-card--product:hover { border-color: var(--surface-4); transform: translateY(-2px); }
.fx-card--product.is-soldout { cursor: not-allowed; }
.fx-card--product.is-soldout:hover { transform: none; border-color: var(--line); }

.fx-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--surface-2);
    overflow: hidden;
}
.fx-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.22s var(--ease);
}
.fx-card--product:hover .fx-card__media img { transform: scale(1.04); }

/* 色块卡（电子卡密 / 直充） */
.fx-card__face {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    color: #fff;
    font-size: 22px; font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.fx-card__soldout {
    position: absolute;
    inset: 0;
    display: grid; place-items: center;
    background: rgba(0, 0, 0, 0.56);
    color: #fff;
    font-size: 13px; font-weight: 700;
    letter-spacing: 1px;
}

.fx-card__tag {
    position: absolute;
    top: 8px; left: 8px;
    padding: 3px 8px;
    border-radius: var(--r-sm);
    background: rgba(7, 7, 8, 0.72);
    color: var(--primary);
    font-size: 11px; font-weight: 700;
    backdrop-filter: blur(4px);
}

.fx-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.fx-card__name {
    font-size: 13px; font-weight: 600; color: var(--text-1);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fx-card__brand { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-card__price { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.fx-card__price small { font-size: 11px; font-weight: 600; color: var(--text-3); text-decoration: line-through; margin-left: 6px; }

/* ===== 7. 组件：标签 / 药丸 / Tabs / Chips ===== */
.fx-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.fx-pill--success { color: var(--success); background: rgba(106, 223, 77, 0.12); }
.fx-pill--warning { color: var(--warning); background: rgba(246, 181, 53, 0.12); }
.fx-pill--danger  { color: var(--danger);  background: rgba(255, 92, 92, 0.12); }
.fx-pill--info    { color: #8B89FF; background: rgba(93, 90, 248, 0.16); }
.fx-pill--muted   { color: var(--text-3); background: var(--surface-2); }

.fx-tabs { display: flex; gap: 4px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px; width: fit-content; }
.fx-tab {
    padding: 8px 18px;
    border-radius: 8px;
    color: var(--text-2);
    font-size: 13.5px; font-weight: 500;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}
.fx-tab:hover { color: var(--text-1); }
.fx-tab.is-active { background: var(--surface-3); color: var(--text-1); font-weight: 600; }
.fx-tab .fx-tab__count { margin-left: 6px; font-size: 11px; color: var(--text-3); }
.fx-tab.is-active .fx-tab__count { color: var(--primary); }

.fx-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fx-chip {
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--surface-1);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 13px;
    transition: all 0.18s;
}
.fx-chip:hover { color: var(--text-1); border-color: var(--surface-4); }
.fx-chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }

/* ===== 8. 组件：表单 ===== */
.fx-field { display: flex; flex-direction: column; gap: 8px; }
.fx-field__label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.fx-field__label em { color: var(--danger); font-style: normal; margin-left: 2px; }

.fx-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s, background 0.18s;
    color: var(--text-1);
}
.fx-input::placeholder { color: var(--text-4); }
.fx-input:focus { border-color: var(--primary); background: var(--surface-1); }
.fx-input.is-error { border-color: var(--danger); animation: shake 0.3s; }

.fx-input-wrap { position: relative; }
.fx-input-wrap > i {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-4); font-size: 14px;
    pointer-events: none;
}
.fx-input-wrap .fx-input { padding-left: 40px; }

select.fx-input { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.fx-select-wrap { position: relative; display: inline-flex; }
.fx-select-wrap::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    font-size: 11px; color: var(--text-4);
    pointer-events: none;
}
.fx-select-wrap select option { background: var(--bg-raised); color: var(--text-1); }

.fx-field__error { font-size: 12px; color: var(--danger); min-height: 16px; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===== 9. 组件：Modal / Toast / Confirm ===== */
.fx-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}
.fx-modal-overlay.is-open { opacity: 1; }

.fx-modal {
    width: 100%;
    max-width: 480px;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-pop);
    animation: modalIn 0.24s var(--ease);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
}

.fx-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line);
}
.fx-modal__title { font-size: 16px; font-weight: 700; }
.fx-modal__close {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    color: var(--text-3);
    transition: background 0.15s, color 0.15s;
}
.fx-modal__close:hover { background: var(--surface-2); color: var(--text-1); }
.fx-modal__body { padding: 20px; overflow-y: auto; }
.fx-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px 20px; }

/* 确认框 */
.fx-confirm { max-width: 380px; padding: 24px; }
.fx-confirm__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.fx-confirm__body { color: var(--text-2); font-size: 14px; line-height: 1.65; margin-bottom: 24px; white-space: pre-line; }
.fx-confirm__actions { display: flex; justify-content: flex-end; gap: 10px; }

/* 地区/语言弹窗 */
.fx-region-modal { max-width: 640px; }
.fx-region-tabs { display: flex; gap: 4px; }
.fx-region-tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px; font-weight: 600;
    color: var(--text-3);
    transition: background 0.18s, color 0.18s;
}
.fx-region-tab:hover { color: var(--text-1); }
.fx-region-tab.is-active { background: var(--surface-3); color: var(--text-1); }
.fx-region-panel { padding: 18px 20px 22px; overflow-y: auto; }
.fx-region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fx-region-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    background: var(--surface-1);
    border: 1px solid var(--line);
    transition: all 0.18s;
    text-align: left;
}
.fx-region-item:hover { border-color: var(--surface-4); background: var(--surface-2); }
.fx-region-item.is-active { border-color: var(--primary); background: rgba(255, 215, 0, 0.08); }
.fx-region-item__flag { font-size: 18px; }
.fx-region-item__name { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--text-1); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-region-item__cur { font-size: 11px; color: var(--text-3); font-weight: 600; }

/* Toast */
.fx-toast-container {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.fx-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: var(--r-md);
    background: var(--bg-raised);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-pop);
    font-size: 13.5px;
    font-weight: 500;
    animation: fadeUp 0.3s var(--ease);
    max-width: 420px;
}
.fx-toast i { font-size: 15px; }
.fx-toast--success { border-color: rgba(106, 223, 77, 0.4); } .fx-toast--success i { color: var(--success); }
.fx-toast--error   { border-color: rgba(255, 92, 92, 0.4); } .fx-toast--error i { color: var(--danger); }
.fx-toast--warning { border-color: rgba(246, 181, 53, 0.4); } .fx-toast--warning i { color: var(--warning); }
.fx-toast--info    { border-color: rgba(93, 90, 248, 0.4); } .fx-toast--info i { color: #8B89FF; }
.fx-toast--out { animation: fadeUp 0.26s var(--ease) reverse forwards; }

/* ===== 10. 组件：步骤条 / 空态 / 表格 ===== */
.fx-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.fx-step { display: flex; align-items: center; gap: 8px; color: var(--text-4); font-size: 13px; }
.fx-step__dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface-2);
    font-size: 12px; font-weight: 700;
}
.fx-step.is-done { color: var(--text-2); }
.fx-step.is-done .fx-step__dot { background: rgba(106, 223, 77, 0.16); color: var(--success); }
.fx-step.is-active { color: var(--text-1); font-weight: 600; }
.fx-step.is-active .fx-step__dot { background: var(--primary); color: var(--on-primary); }
.fx-steps__bar { flex: 1; height: 1px; background: var(--line); max-width: 64px; }

.fx-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 72px 20px;
    text-align: center;
}
.fx-empty__icon {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text-4);
    font-size: 24px;
    margin-bottom: 18px;
}
.fx-empty__title { font-size: 16px; font-weight: 700; color: var(--text-2); }
.fx-empty__desc { font-size: 13px; color: var(--text-4); margin-top: 6px; margin-bottom: 22px; }

.fx-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fx-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-3);
    font-size: 12px; font-weight: 600;
    border-bottom: 1px solid var(--line);
}
.fx-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.fx-table tbody tr { cursor: pointer; transition: background 0.15s; }
.fx-table tbody tr:hover { background: var(--surface-2); }
.fx-table tbody tr:last-child td { border-bottom: none; }

/* ===== 11. 页面：index 首页 ===== */
.fx-hero {
    position: relative;
    height: 292px;
    border-radius: 16px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 90% at 78% 18%, rgba(255, 215, 0, 0.16), transparent 58%),
        radial-gradient(ellipse 52% 80% at 12% 88%, rgba(93, 90, 248, 0.16), transparent 58%),
        linear-gradient(120deg, #101218 0%, #0A0B0E 62%, #070708 100%);
    display: flex;
    align-items: center;
    padding: 0 56px;
    margin-bottom: 16px;
}
.fx-hero__content { max-width: 560px; }
.fx-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px; }
.fx-hero__eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--primary); border-radius: 2px; }
.fx-hero__title { font-size: 34px; font-weight: 800; line-height: 1.18; letter-spacing: -0.4px; }
.fx-hero__title em { font-style: normal; color: var(--primary); }
.fx-hero__desc { margin-top: 12px; color: var(--text-3); font-size: 14.5px; line-height: 1.6; }
.fx-hero__actions { margin-top: 24px; display: flex; gap: 12px; }
.fx-hero__dots { position: absolute; bottom: 18px; left: 56px; display: flex; gap: 6px; }
.fx-hero__dot { width: 18px; height: 4px; border-radius: 4px; background: var(--surface-3); transition: background 0.2s; cursor: pointer; }
.fx-hero__dot.is-active { background: var(--primary); }

.fx-section { margin-bottom: 34px; }
.fx-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fx-section__title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.fx-section__title i { color: var(--primary); font-size: 15px; }
.fx-section__more { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; transition: color 0.15s; }
.fx-section__more:hover { color: var(--primary); }

.fx-hscroll-wrap { position: relative; }
.fx-hscroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 168px;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.fx-hscroll::-webkit-scrollbar { display: none; }
.fx-hscroll .fx-card--product { width: 168px; }
.fx-hscroll__nav {
    position: absolute;
    top: 34%; transform: translateY(-50%);
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    color: var(--text-2);
    display: grid; place-items: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s, background 0.15s;
    z-index: 5;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.fx-hscroll-wrap:hover .fx-hscroll__nav { opacity: 1; }
.fx-hscroll__nav:hover { color: var(--text-1); border-color: var(--surface-4); }
.fx-hscroll__nav--prev { left: -12px; }
.fx-hscroll__nav--next { right: -12px; }

/* ===== 12. 页面：products 商品列表 ===== */
.fx-lobby-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.fx-lobby-head__back {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    color: var(--text-2);
    transition: all 0.18s;
}
.fx-lobby-head__back:hover { color: var(--text-1); border-color: var(--surface-4); }
.fx-lobby-head__count { color: var(--text-3); font-size: 13px; margin-left: auto; }
.fx-lobby-head__count b { color: var(--primary); }

.fx-lobby-filter { display: flex; gap: 12px; margin-bottom: 14px; }
/* 搜索框独占一行（分类/排序已移至下行 chips 与按钮组） */
.fx-lobby-filter .fx-input-wrap { flex: 1; max-width: none; }

.fx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 14px;
}

.fx-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; }
.fx-page-btn {
    min-width: 34px; height: 34px;
    padding: 0 6px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-size: 13px; font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: all 0.15s;
}
.fx-page-btn:hover { background: var(--surface-2); color: var(--text-1); }
.fx-page-btn.is-active { background: var(--primary); color: var(--on-primary); }
.fx-page-btn:disabled { color: var(--text-4); cursor: not-allowed; }
.fx-page-dots { color: var(--text-4); padding: 0 2px; }

/* ===== 13. 页面：product-detail 详情 ===== */
.fx-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-4); margin-bottom: 20px; }
.fx-breadcrumb a { color: var(--text-3); transition: color 0.15s; }
.fx-breadcrumb a:hover { color: var(--primary); }
.fx-breadcrumb i { font-size: 9px; }

.fx-detail { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; margin-bottom: 28px; }
.fx-gallery { display: flex; flex-direction: column; gap: 12px; }
.fx-gallery__main {
    aspect-ratio: 16 / 10;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    display: grid; place-items: center;
}
.fx-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.fx-gallery__thumbs { display: flex; gap: 10px; }
/* 商品介绍面板：与主图同列（gallery 下方） */
.fx-gallery__panel { margin-top: 16px; }
.fx-gallery__thumb {
    width: 72px; height: 72px;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 2px solid var(--line);
    cursor: pointer;
    background: var(--surface-2);
    transition: border-color 0.18s;
    padding: 0;
}
.fx-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fx-gallery__thumb.is-active { border-color: var(--primary); }

.fx-buy { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; height: fit-content; position: sticky; top: calc(var(--topbar-h) + 24px); }
.fx-buy__brand { font-size: 12.5px; color: var(--primary); font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.fx-buy__name { font-size: 21px; font-weight: 700; line-height: 1.3; margin-top: 6px; }
.fx-buy__price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; padding: 14px 16px; background: var(--surface-2); border-radius: var(--r-md); }
.fx-buy__price { font-size: 26px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.fx-buy__price-orig { font-size: 13px; color: var(--text-4); text-decoration: line-through; }
.fx-buy__stock { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.fx-buy__stock.is-low { color: var(--warning); }

.fx-sku { margin-top: 20px; }
.fx-sku__label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.fx-sku__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-sku-item {
    padding: 11px 12px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--line);
    text-align: left;
    transition: all 0.16s;
}
.fx-sku-item:hover { border-color: var(--surface-4); }
.fx-sku-item.is-active { border-color: var(--primary); background: rgba(255, 215, 0, 0.08); }
.fx-sku-item.is-disabled { opacity: 0.38; cursor: not-allowed; text-decoration: line-through; }
.fx-sku-item__spec { font-size: 12.5px; font-weight: 600; color: var(--text-1); }
.fx-sku-item__price { font-size: 12px; color: var(--text-3); margin-top: 3px; font-variant-numeric: tabular-nums; }
.fx-sku-item.is-active .fx-sku-item__price { color: var(--primary); }

.fx-qty { display: flex; align-items: center; gap: 0; margin-top: 20px; }
.fx-qty__btn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 12px;
    transition: all 0.15s;
}
.fx-qty__btn:hover { color: var(--text-1); border-color: var(--surface-4); }
.fx-qty__btn:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.fx-qty__btn:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.fx-qty__val { width: 56px; height: 40px; text-align: center; background: var(--surface-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: none; border-right: none; outline: none; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-qty__hint { margin-left: 14px; font-size: 12px; color: var(--text-4); }

.fx-buy__actions { display: flex; gap: 10px; margin-top: 22px; }
.fx-buy__actions .fx-btn { flex: 1; }
.fx-btn--grow { flex: 1; }
/* 收藏：40px 图标按钮（立即购买右侧） */
.fx-fav-btn {
    width: 48px; height: 48px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text-3); font-size: 17px;
    transition: all 0.16s;
}
.fx-fav-btn:hover { border-color: var(--surface-4); color: var(--text-1); }
.fx-fav-btn.is-on { color: var(--danger); border-color: rgba(255, 92, 92, 0.45); background: rgba(255, 92, 92, 0.08); }
/* 服务保障：立即购买下方（buy 卡内） */
.fx-buy__guarantee { margin-top: 18px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }

.fx-panels { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
.fx-panel { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.fx-panel__title { font-size: 14.5px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.fx-panel__title i { color: var(--primary); font-size: 13px; }
.fx-panel__text { color: var(--text-3); font-size: 13px; line-height: 1.7; }
.fx-guarantees { display: flex; flex-direction: column; gap: 12px; }
.fx-guarantee { display: flex; align-items: flex-start; gap: 12px; }
.fx-guarantee i { color: var(--success); font-size: 14px; margin-top: 2px; }
.fx-guarantee b { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.fx-guarantee span { font-size: 12px; color: var(--text-4); }

/* ===== 14. 页面：order-confirm 确认订单 ===== */
.fx-section-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 14px; }
.fx-section-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fx-section-card__title { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.fx-section-card__title i { color: var(--primary); font-size: 14px; }

.fx-confirm-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.fx-confirm-left { display: flex; flex-direction: column; gap: 14px; }
.fx-confirm-right { position: sticky; top: calc(var(--topbar-h) + 24px); }
.fx-summary { padding: 24px; }

.fx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.fx-order-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fx-order-item:last-child { border-bottom: none; }
.fx-order-item__img { width: 52px; height: 52px; border-radius: var(--r-md); object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.fx-order-item__face { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.fx-order-item__info { flex: 1; min-width: 0; }
.fx-order-item__name { font-size: 13.5px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-order-item__spec { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.fx-order-item__price { text-align: right; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.fx-order-item__qty { font-size: 12px; color: var(--text-4); font-weight: 400; }

.fx-coupon-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px dashed var(--surface-4);
    transition: border-color 0.18s;
    text-align: left;
}
.fx-coupon-row:hover { border-color: var(--primary); }
.fx-coupon-row__left { display: flex; align-items: center; gap: 12px; }
.fx-coupon-row__left i { color: var(--primary); font-size: 17px; }
.fx-coupon-row__state { font-size: 13px; color: var(--text-2); font-weight: 500; }
.fx-coupon-row__state.has-coupon { color: var(--success); }
.fx-coupon-row > i.fa-chevron-right { color: var(--text-4); font-size: 12px; }

.fx-pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--line);
    text-align: left;
    transition: all 0.16s;
}
.fx-pay-option:hover { border-color: var(--surface-4); }
.fx-pay-option.is-active { border-color: var(--primary); background: rgba(255, 215, 0, 0.07); }
.fx-pay-option i { font-size: 17px; color: var(--text-2); }
.fx-pay-option.is-active i { color: var(--primary); }
.fx-pay-option__name { font-size: 13.5px; font-weight: 600; }
.fx-pay-option__desc { font-size: 11.5px; color: var(--text-4); margin-top: 2px; }
.fx-pay-option__check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--surface-4); display: grid; place-items: center; color: transparent; font-size: 9px; transition: all 0.16s; }
.fx-pay-option.is-active .fx-pay-option__check { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* 在线支付：本地渠道列表（按国家/地区） */
.fx-local-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.fx-pay-channel__badge {
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: var(--r-md);
    display: grid; place-items: center;
    color: #fff; font-size: 15px; font-weight: 800;
}
.fx-pay-option.is-active .fx-pay-channel__badge { outline: 2px solid rgba(255, 215, 0, 0.55); outline-offset: 1px; }

.fx-price-detail { display: flex; flex-direction: column; gap: 10px; }
.fx-price-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-3); }
.fx-price-row b { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-price-row--total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.fx-price-row--total span { color: var(--text-1); font-weight: 700; }
.fx-price-row--total b { color: var(--primary); font-size: 20px; font-weight: 800; }
.fx-price-row .is-minus { color: var(--success); }

/* ===== 15. 页面：payment 支付 ===== */
.fx-pay-wrap { max-width: 520px; margin: 0 auto; }
.fx-pay-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.fx-pay-amount { text-align: center; padding: 8px 0 22px; }
.fx-pay-amount__label { font-size: 12.5px; color: var(--text-3); }
.fx-pay-amount__value { font-size: 36px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 6px; }
.fx-pay-order-no { text-align: center; font-size: 12.5px; color: var(--text-4); margin-bottom: 20px; }

.fx-countdown {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 11px;
    border-radius: var(--r-md);
    background: rgba(246, 181, 53, 0.09);
    border: 1px solid rgba(246, 181, 53, 0.28);
    color: var(--warning);
    font-size: 13px; font-weight: 600;
    margin-bottom: 22px;
    font-variant-numeric: tabular-nums;
}
.fx-countdown.is-expired { background: rgba(255, 92, 92, 0.09); border-color: rgba(255, 92, 92, 0.28); color: var(--danger); }

.fx-otp { display: flex; gap: 10px; justify-content: center; margin: 6px 0 10px; }
.fx-otp__cell {
    width: 48px; height: 56px;
    text-align: center;
    font-size: 22px; font-weight: 700;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    outline: none;
    transition: border-color 0.18s;
    color: var(--text-1);
}
.fx-otp__cell:focus { border-color: var(--primary); background: var(--surface-1); }

.fx-pay-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

.fx-pay-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--text-4); font-size: 12px; }
.fx-pay-secure i { color: var(--success); }

.fx-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(10, 11, 14, 0.3); border-top-color: var(--on-primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 16. 页面：payment-result 结果 ===== */
.fx-result { max-width: 440px; margin: 40px auto 0; text-align: center; }
.fx-result__icon { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; }
.fx-result__icon--success { background: rgba(106, 223, 77, 0.12); color: var(--success); }
.fx-result__icon--fail { background: rgba(255, 92, 92, 0.12); color: var(--danger); }
.fx-result__title { font-size: 22px; font-weight: 800; }
.fx-result__amount { font-size: 30px; font-weight: 800; color: var(--primary); margin-top: 12px; font-variant-numeric: tabular-nums; }
.fx-result__order { font-size: 13px; color: var(--text-3); margin-top: 10px; }
.fx-result__order b { color: var(--text-2); font-variant-numeric: tabular-nums; }
.fx-result__actions { display: flex; gap: 12px; margin-top: 30px; }
.fx-result__actions .fx-btn { flex: 1; }

/* ===== 17. 页面：orders 订单列表 ===== */
.fx-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 16px; }
.fx-toolbar__spacer { flex: 1; }

.fx-order-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 14px; overflow: hidden; transition: border-color 0.18s; }
.fx-order-card:hover { border-color: var(--surface-4); }
.fx-order-card__head { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface-1); }
.fx-order-card__no { font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.fx-order-card__time { font-size: 12px; color: var(--text-4); }
.fx-order-card__head .fx-pill { margin-left: auto; }
.fx-order-card__body { padding: 6px 20px; cursor: pointer; }
.fx-order-card__foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 13px 20px; border-top: 1px solid var(--line); }
.fx-order-card__total { margin-right: auto; font-size: 13px; color: var(--text-3); }
.fx-order-card__total b { color: var(--text-1); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-order-card__total b em { font-style: normal; color: var(--primary); }

/* ===== 18. 页面：order-detail 详情 ===== */
.fx-status-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 26px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    margin-bottom: 16px;
}
.fx-status-banner__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.fx-status-banner__icon--success { background: rgba(106, 223, 77, 0.12); color: var(--success); }
.fx-status-banner__icon--warning { background: rgba(246, 181, 53, 0.12); color: var(--warning); }
.fx-status-banner__icon--danger { background: rgba(255, 92, 92, 0.12); color: var(--danger); }
.fx-status-banner__icon--info { background: rgba(93, 90, 248, 0.16); color: #8B89FF; }
.fx-status-banner__icon--muted { background: var(--surface-2); color: var(--text-3); }
.fx-status-banner__title { font-size: 18px; font-weight: 800; }
.fx-status-banner__desc { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.fx-status-banner__actions { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; }

/* 订单进度：横向 stepper（对齐 9/1 前版本：34px 圆节点 + emoji + 卡片容器） */
.fx-timeline {
    display: flex; align-items: flex-start;
    padding: 20px;
    background: var(--surface-1);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow-x: auto;
}
.fx-timeline__item { position: relative; flex: 1; min-width: 80px; text-align: center; padding: 0 4px; }
/* 连接线：从上一个节点中心到本节点中心（跨相邻 item 各半） */
.fx-timeline__item + .fx-timeline__item::before {
    content: "";
    position: absolute;
    top: 17px; left: calc(-50% + 17px);
    width: calc(100% - 34px); height: 3px;
    border-radius: 2px;
    background: var(--surface-3);
}
.fx-timeline__item.is-done::before,
.fx-timeline__item.is-current::before { background: linear-gradient(90deg, var(--primary), rgba(255, 215, 0, 0.45)); }
.fx-timeline__dot {
    position: relative; z-index: 1;
    width: 34px; height: 34px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    color: var(--text-4);
    transition: all 0.25s var(--ease);
}
.fx-timeline__item.is-done .fx-timeline__dot,
.fx-timeline__item.is-current .fx-timeline__dot {
    background: linear-gradient(135deg, var(--primary), rgba(255, 215, 0, 0.55));
    color: var(--on-primary);
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.28);
}
.fx-timeline__item.is-current .fx-timeline__dot { animation: fxPulse 2s infinite; }
@keyframes fxPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.fx-timeline__name { font-size: 12.5px; font-weight: 600; color: var(--text-4); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-timeline__item.is-done .fx-timeline__name { color: var(--text-2); }
.fx-timeline__item.is-current .fx-timeline__name { color: var(--text-1); }
.fx-timeline__time { font-size: 11px; color: var(--text-4); margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fx-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.fx-info-cell__label { font-size: 12px; color: var(--text-4); }
.fx-info-cell__value { font-size: 13.5px; color: var(--text-2); margin-top: 3px; word-break: break-all; }
.fx-info-cell__value.is-mono { font-variant-numeric: tabular-nums; }

.fx-copy-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text-3);
    font-size: 12px;
    transition: all 0.15s;
    margin-left: 8px;
}
.fx-copy-btn:hover { color: var(--text-1); border-color: var(--surface-4); }

.fx-cardcode-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px dashed var(--surface-4);
    margin-top: 10px;
}
.fx-cardcode-row__code { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--primary); font-variant-numeric: tabular-nums; }
/* 卡密锁定态（密码验证前） */
.fx-codelock {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 28px 16px;
    border: 1px dashed var(--line);
    border-radius: var(--r-md);
    background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(220,227,244,0.025) 8px, rgba(220,227,244,0.025) 16px);
}
.fx-codelock i { font-size: 22px; color: var(--text-4); }
.fx-codelock p { font-size: 12.5px; color: var(--text-3); }

/* ===== 18b. 页面：order-detail 层级重构（页头 + 双栏：主内容 / 订单摘要） ===== */
.od-back { margin-bottom: 14px; }

/* 页头：状态 + 描述 + 主操作 + 紧凑步骤条 */
.od-head { padding: 22px 24px 18px; }
.od-head__main { display: flex; align-items: flex-start; gap: 16px; }
.od-head__icon { width: 46px; height: 46px; font-size: 18px; flex-shrink: 0; }
.od-head__body { flex: 1; min-width: 0; }
.od-head__title { font-size: 19px; font-weight: 800; color: var(--text-1); line-height: 1.25; }
.od-head__desc { font-size: 13px; color: var(--text-3); margin-top: 5px; }
.od-head__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 11px; }
.od-head__tip { font-size: 12px; color: var(--text-4); }
.od-head__actions { display: flex; gap: 10px; flex-shrink: 0; margin-left: 12px; }
.od-head__steps { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* 紧凑步骤条：收进页头，不再独占卡片 */
.fx-timeline--compact { padding: 0; background: transparent; border: 0; border-radius: 0; }
.fx-timeline--compact .fx-timeline__item + .fx-timeline__item::before {
    top: 14px; left: calc(-50% + 14px); width: calc(100% - 28px); height: 2px;
}
.fx-timeline--compact .fx-timeline__dot { width: 28px; height: 28px; font-size: 13px; margin-bottom: 6px; }
.fx-timeline--compact .fx-timeline__name { font-size: 12px; margin-top: 6px; }
.fx-timeline--compact .fx-timeline__time { font-size: 10.5px; }

/* 双栏布局：主内容（商品交付/售后） + 右侧 sticky 订单摘要 */
.od-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.od-col-main { min-width: 0; }
.od-col-side { position: sticky; top: calc(var(--topbar-h) + 20px); min-width: 0; }
.od-col-side .fx-section-card { margin-bottom: 0; }

/* 交付区：电子卡密内嵌于商品清单卡，紧跟商品 */
.od-delivery__hint {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
    font-size: 12.5px; color: var(--text-4);
}
.od-delivery__sub {
    display: flex; align-items: center; gap: 8px;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
    font-size: 13.5px; font-weight: 700; color: var(--text-2);
}
.od-delivery__sub i { color: var(--primary); font-size: 13px; }
.od-delivery__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.od-delivery__tip { font-size: 12px; color: var(--text-4); }
.od-delivery .fx-codelock { margin-top: 12px; }
.od-codegroup { margin-top: 14px; }
.od-codegroup__name { font-size: 13px; font-weight: 600; color: var(--text-2); }
.od-codegroup__name span { color: var(--text-4); font-weight: 400; margin-left: 6px; }
.od-delivery__warn { margin-top: 12px; font-size: 12px; color: var(--text-4); }
.od-delivery__warn i { margin-right: 6px; }

/* 右侧订单摘要：金额明细 / 收货信息 / 订单信息 */
.od-summary__label { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.od-summary .fx-price-detail { margin-top: 12px; }
.od-summary__divider { height: 1px; background: var(--line); margin: 18px 0 14px; }
#fyRecvRows, #fyInfoRows { margin-top: 10px; }
.od-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6.5px 0; font-size: 13px; }
.od-kv:first-child { padding-top: 2px; }
.od-kv > span { color: var(--text-4); flex-shrink: 0; }
.od-kv > b {
    display: flex; align-items: center; justify-content: flex-end; gap: 2px;
    color: var(--text-2); font-weight: 500; text-align: right; word-break: break-all;
    font-variant-numeric: tabular-nums;
}

/* 售后卡：退款摘要条（引用右侧价格，不重复计算） */
.od-refund-strip { background: var(--surface-2); border-radius: var(--r-md); padding: 6px 14px; margin-top: 4px; }
.od-refund-strip .od-kv { padding: 8px 0; }
.od-refund-strip .od-kv + .od-kv { border-top: 1px dashed var(--line); }
.od-refund-strip__amt { color: var(--primary); font-weight: 800 !important; font-size: 14.5px; }
.od-verdict {
    display: flex; align-items: center; gap: 8px; margin-top: 12px;
    padding: 10px 12px; border-radius: var(--r-md);
    background: rgba(106, 223, 77, 0.08); border: 1px solid rgba(106, 223, 77, 0.25);
    color: var(--success); font-size: 12.5px;
}

/* 移动端底部主操作条（页头操作在 ≤768px 隐藏，摘要降为单栏） */
.od-actionbar { display: none; }
@media (max-width: 768px) {
    .od-head { padding: 18px 16px 14px; }
    .od-head__icon { width: 42px; height: 42px; }
    .od-head__title { font-size: 17px; }
    .od-head__actions { display: none; }
    .od-layout { grid-template-columns: 1fr; gap: 0; }
    .od-col-side { position: static; }
    body.od-bar-on .fx-main { padding-bottom: calc(150px + var(--mobnav-pad)); }
    body.od-bar-on .od-actionbar {
        display: flex; gap: 10px;
        position: fixed; left: 0; right: 0;
        bottom: calc(var(--mobnav-h) + var(--mobnav-pad));
        padding: 10px 16px;
        background: var(--bg-raised);
        border-top: 1px solid var(--line);
        z-index: 945;
    }
    .od-actionbar .fx-btn { flex: 1; justify-content: center; }
}

/* ===== 19. 页面：balance 钱包 ===== */
.fx-wallet-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}
.fx-wallet-main {
    grid-column: span 4;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 16px;
}
.fx-wallet-card {
    padding: 26px 28px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 70% 120% at 85% 0%, rgba(255, 215, 0, 0.10), transparent 55%),
        linear-gradient(135deg, #12141A 0%, #0B0C10 100%);
    border: 1px solid var(--line);
}
.fx-wallet-card__label { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.fx-wallet-card__label i { color: var(--primary); }
.fx-wallet-card__value { font-size: 34px; font-weight: 800; margin-top: 10px; font-variant-numeric: tabular-nums; }
.fx-wallet-card__actions { display: flex; gap: 10px; margin-top: 20px; }
.fx-wallet-card__eye { margin-left: auto; color: var(--text-4); cursor: pointer; transition: color 0.15s; }
.fx-wallet-card__eye:hover { color: var(--text-1); }

.fx-stat {
    padding: 18px 20px;
    border-radius: var(--r-lg);
    background: var(--surface-1);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fx-stat__label { font-size: 12px; color: var(--text-4); }
.fx-stat__value { font-size: 19px; font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; }
.fx-stat__value.is-in { color: var(--success); }
.fx-stat__value.is-out { color: var(--text-1); }
.fx-stat__value.is-frozen { color: var(--warning); }

.fx-txn-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background 0.15s;
}
.fx-txn-row:hover { background: var(--surface-2); }
.fx-txn-row:last-child { border-bottom: none; }
.fx-txn-row__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.fx-txn-row__icon--recharge { background: rgba(106, 223, 77, 0.12); color: var(--success); }
.fx-txn-row__icon--consume { background: rgba(93, 90, 248, 0.16); color: #8B89FF; }
.fx-txn-row__icon--withdraw { background: rgba(246, 181, 53, 0.12); color: var(--warning); }
.fx-txn-row__icon--refund { background: rgba(255, 215, 0, 0.12); color: var(--primary); }
.fx-txn-row__info { flex: 1; min-width: 0; }
.fx-txn-row__title { font-size: 13.5px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-txn-row__time { font-size: 12px; color: var(--text-4); margin-top: 3px; font-variant-numeric: tabular-nums; }
.fx-txn-row__amount { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.fx-txn-row__amount.is-in { color: var(--success); }
.fx-txn-row__amount.is-out { color: var(--text-1); }
.fx-txn-row__amount.is-pending { color: var(--warning); }

.fx-quick-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.fx-amount-chip {
    padding: 13px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 14.5px; font-weight: 700;
    color: var(--text-2);
    text-align: center;
    transition: all 0.16s;
    font-variant-numeric: tabular-nums;
}
.fx-amount-chip:hover { border-color: var(--surface-4); }
.fx-amount-chip.is-active { border-color: var(--primary); color: var(--primary); background: rgba(255, 215, 0, 0.07); }

/* ===== 20. 页面：coupons 优惠券 ===== */
.fx-coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.fx-coupon {
    position: relative;
    display: flex;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: var(--surface-1);
    overflow: hidden;
    min-height: 118px;
}
.fx-coupon--used, .fx-coupon--expired { opacity: 0.45; }
.fx-coupon--expired .fx-coupon__value, .fx-coupon--used .fx-coupon__value { color: var(--text-3); }
.fx-coupon__value {
    width: 108px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.14), rgba(255, 215, 0, 0.03));
    border-right: 1px dashed var(--surface-4);
    color: var(--primary);
    padding: 14px 8px;
}
.fx-coupon__amount { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-coupon__amount small { font-size: 12px; font-weight: 600; }
.fx-coupon__cond { font-size: 11px; color: var(--text-4); }
.fx-coupon__info { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.fx-coupon__name { font-size: 14px; font-weight: 700; }
.fx-coupon__scope { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.fx-coupon__expiry { font-size: 11.5px; color: var(--text-4); margin-top: auto; padding-top: 8px; font-variant-numeric: tabular-nums; }
.fx-coupon__action { position: absolute; right: 12px; bottom: 12px; }
.fx-coupon__stamp {
    position: absolute;
    top: 10px; right: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-4);
    border: 1px solid var(--text-4);
    border-radius: 4px;
    padding: 2px 8px;
    transform: rotate(8deg);
    letter-spacing: 1px;
}

/* ===== 21. 页面：profile 个人中心 ===== */
.fx-profile-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    border-radius: var(--r-lg);
    background:
        radial-gradient(ellipse 50% 100% at 90% 10%, rgba(255, 215, 0, 0.10), transparent 60%),
        linear-gradient(135deg, #12141A, #0B0C10);
    border: 1px solid var(--line);
    margin-bottom: 14px;
}
.fx-profile-head__avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    display: grid; place-items: center;
    font-size: 28px; font-weight: 800;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
}
.fx-profile-head__avatar:hover { transform: scale(1.04); box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.18); }
.fx-profile-head__avatar:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.fx-profile-head__name { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.fx-profile-head__email { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.fx-level-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px; font-weight: 700;
    background: linear-gradient(135deg, rgba(246, 181, 53, 0.18), rgba(246, 181, 53, 0.06));
    color: var(--warning);
    border: 1px solid rgba(246, 181, 53, 0.3);
}
.fx-profile-head__actions { margin-left: auto; }

.fx-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.fx-quick-card {
    padding: 18px 16px;
    border-radius: var(--r-lg);
    background: var(--surface-1);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 13px;
    transition: all 0.18s;
    cursor: pointer;
}
.fx-quick-card:hover { border-color: var(--surface-4); background: var(--surface-2); }
.fx-quick-card__icon { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.fx-quick-card__icon--warning { background: rgba(246, 181, 53, 0.12); color: var(--warning); }
.fx-quick-card__icon--info { background: rgba(93, 90, 248, 0.16); color: #8B89FF; }
.fx-quick-card__icon--success { background: rgba(106, 223, 77, 0.12); color: var(--success); }
.fx-quick-card__icon--danger { background: rgba(255, 92, 92, 0.12); color: var(--danger); }
.fx-quick-card__label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.fx-quick-card__count { font-size: 17px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }

.fx-menu-list { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px; }
.fx-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
    width: 100%;
}
.fx-menu-item:last-child { border-bottom: none; }
.fx-menu-item:hover { background: var(--surface-2); }
.fx-menu-item i:first-child { width: 20px; text-align: center; color: var(--text-3); font-size: 15px; }
.fx-menu-item__label { font-size: 14px; font-weight: 500; color: var(--text-1); }
.fx-menu-item__hint { font-size: 12px; color: var(--text-4); }
/* chevron 永远贴右（hint 紧随其后），无 hint 的行也对齐右侧 */
.fx-menu-item > i.fa-chevron-right { color: var(--text-4); font-size: 11px; width: auto; margin-left: auto; }
.fx-menu-item.is-danger i:first-child, .fx-menu-item.is-danger .fx-menu-item__label { color: var(--danger); }

/* ===== 22. 页面：customer-service 客服 ===== */
.fx-faq-search { max-width: 560px; margin: 0 auto 30px; }
.fx-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.fx-acc { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fx-acc-item { border-bottom: 1px solid var(--line); }
.fx-acc-item:last-child { border-bottom: none; }
.fx-acc-item__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    text-align: left;
    transition: color 0.15s;
}
.fx-acc-item__q:hover { color: var(--text-1); }
.fx-acc-item.is-open .fx-acc-item__q { color: var(--text-1); }
.fx-acc-item__q i { font-size: 11px; color: var(--text-4); transition: transform 0.2s; }
.fx-acc-item.is-open .fx-acc-item__q i { transform: rotate(180deg); color: var(--primary); }
.fx-acc-item__a { display: none; padding: 0 20px 18px; font-size: 13px; color: var(--text-3); line-height: 1.7; }
.fx-acc-item.is-open .fx-acc-item__a { display: block; }

.fx-contact-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.fx-contact-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.fx-contact-row:last-child { border-bottom: none; }
/* 可跳转的联系行（X / Telegram / Facebook）：不加左右 padding，保持图标与其他行对齐 */
a.fx-contact-row--link { text-decoration: none; cursor: pointer; }
a.fx-contact-row--link .fx-contact-row__label { transition: color 0.15s; }
a.fx-contact-row--link .fa-arrow-up-right-from-square { transition: color 0.15s, transform 0.15s; }
a.fx-contact-row--link:hover .fx-contact-row__label { color: var(--primary); }
a.fx-contact-row--link:hover .fa-arrow-up-right-from-square { color: var(--primary); transform: translate(1px, -1px); }
.fx-contact-row__icon { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--surface-2); display: grid; place-items: center; color: var(--primary); font-size: 15px; flex-shrink: 0; }
.fx-contact-row__label { font-size: 13px; font-weight: 600; }
.fx-contact-row__value { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* 客服会话抽屉 */
.fx-chat-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1100; opacity: 0; visibility: hidden; transition: all 0.25s; }
.fx-chat-scrim.is-open { opacity: 1; visibility: visible; }
.fx-chat {
    position: fixed;
    top: 0; right: -420px;
    width: 400px; max-width: 92vw;
    height: 100vh;
    background: var(--bg-raised);
    border-left: 1px solid var(--line);
    z-index: 1101;
    display: flex;
    flex-direction: column;
    transition: right 0.28s var(--ease);
}
.fx-chat.is-open { right: 0; }
.fx-chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.fx-chat__head-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: 15px; }
.fx-chat__title { font-size: 14.5px; font-weight: 700; }
.fx-chat__sub { font-size: 11.5px; color: var(--success); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.fx-chat__sub::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.fx-chat__body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.fx-msg { max-width: 78%; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.fx-msg--bot { align-self: flex-start; background: var(--surface-2); color: var(--text-2); border-bottom-left-radius: 4px; }
.fx-msg--user { align-self: flex-end; background: rgba(255, 215, 0, 0.14); color: var(--text-1); border-bottom-right-radius: 4px; }
.fx-chat__input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.fx-chat__input .fx-input { height: 42px; }
.fx-chat__input .fx-btn { width: 42px; padding: 0; }

/* ===== 23. 页面：login / register（独立页） ===== */
.fx-auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(ellipse 55% 45% at 50% -8%, rgba(255, 215, 0, 0.08), transparent 62%),
        radial-gradient(ellipse 45% 40% at 88% 100%, rgba(93, 90, 248, 0.07), transparent 60%),
        var(--bg);
}
.fx-auth__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.fx-auth__logo-mark { width: 44px; height: 44px; border-radius: 13px; object-fit: contain; display: block; }
.fx-auth__logo-text { font-size: 22px; font-weight: 800; }
.fx-auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-pop);
    animation: fadeUp 0.35s var(--ease);
}
.fx-auth-card__title { font-size: 21px; font-weight: 800; }
.fx-auth-card__sub { font-size: 13px; color: var(--text-3); margin-top: 6px; margin-bottom: 26px; }
.fx-auth-card form { display: flex; flex-direction: column; gap: 16px; }
.fx-auth-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.fx-auth-row a, .fx-auth-row label { color: var(--text-3); cursor: pointer; }
.fx-auth-row a { color: var(--primary); font-weight: 600; }
.fx-auth-row a:hover { text-decoration: underline; }
.fx-auth-foot { text-align: center; font-size: 13.5px; color: var(--text-3); margin-top: 22px; }
.fx-auth-foot a { color: var(--primary); font-weight: 600; }
.fx-auth-foot a:hover { text-decoration: underline; }
.fx-auth-legal { margin-top: 26px; font-size: 12px; color: var(--text-4); text-align: center; }
.fx-auth-legal a { color: var(--text-3); }
.fx-auth-legal a:hover { color: var(--primary); }

.fx-checkbox { display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.fx-checkbox input { display: none; }
.fx-checkbox__box { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--surface-4); display: grid; place-items: center; color: transparent; font-size: 9px; transition: all 0.15s; flex-shrink: 0; }
.fx-checkbox input:checked + .fx-checkbox__box { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.fx-checkbox__text { font-size: 13px; color: var(--text-3); }

/* 验证码 */
.fx-code-row { display: flex; gap: 10px; }
.fx-code-row .fx-input, .fx-code-row .fx-input-wrap { flex: 1; min-width: 0; }
.fx-code-btn {
    height: 48px;
    padding: 0 16px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--primary);
    font-size: 13px; font-weight: 600;
    white-space: nowrap;
    transition: all 0.15s;
    min-width: 108px;
}
.fx-code-btn:hover:not(:disabled) { border-color: var(--primary); }
.fx-code-btn:disabled { color: var(--text-4); cursor: not-allowed; }

/* 密码强度 */
.fx-strength { display: flex; gap: 6px; margin-top: 8px; }
.fx-strength__bar { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-2); transition: background 0.2s; }
.fx-strength__bar.is-1 { background: var(--danger); }
.fx-strength__bar.is-2 { background: var(--warning); }
.fx-strength__bar.is-3 { background: var(--success); }
.fx-strength__text { font-size: 11.5px; color: var(--text-4); margin-top: 6px; }

/* 密码显隐切换按钮（输入框右侧） */
.fx-pwd-toggle {
    position: absolute; right: 6px; top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 8px;
    color: var(--text-4); font-size: 14px;
    transition: color 0.15s, background 0.15s;
}
.fx-pwd-toggle:hover { color: var(--text-1); background: var(--surface-2); }
.fx-input.has-toggle { padding-right: 50px; }

/* 协议勾选行（复选框 + 带链接说明文字） */
.fx-agree { display: flex; align-items: flex-start; gap: 9px; }
.fx-agree__text { font-size: 13px; color: var(--text-3); line-height: 1.6; }
.fx-agree__text a { color: var(--primary); }
.fx-agree__text a:hover { text-decoration: underline; }

/* 语言快捷切换行 */
.fx-auth__langs { margin-top: 20px; }

/* 演示账号提示条 */
.fx-auth-demo {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    margin-bottom: 18px;
    border-radius: var(--r-md);
    background: rgba(255, 215, 0, 0.07);
    border: 1px dashed rgba(255, 215, 0, 0.35);
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.5;
}
.fx-auth-demo i { color: var(--primary); flex-shrink: 0; }

/* ===== 24. 页面：agreement / privacy 法务 ===== */
.fx-legal { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.fx-legal__toc { position: sticky; top: calc(var(--topbar-h) + 24px); display: flex; flex-direction: column; gap: 2px; }
.fx-legal__toc a {
    padding: 9px 14px;
    border-radius: var(--r-sm);
    color: var(--text-3);
    font-size: 13px;
    border-left: 2px solid transparent;
    transition: all 0.15s;
}
.fx-legal__toc a:hover { color: var(--text-1); background: var(--surface-2); }
.fx-legal__toc a.is-active { color: var(--primary); border-left-color: var(--primary); background: rgba(255, 215, 0, 0.05); }
.fx-legal__article h2 { font-size: 17px; font-weight: 700; margin: 32px 0 12px; scroll-margin-top: calc(var(--topbar-h) + 20px); }
.fx-legal__article h2:first-child { margin-top: 0; }
.fx-legal__article p, .fx-legal__article li { font-size: 13.5px; color: var(--text-3); line-height: 1.8; margin-bottom: 10px; }
.fx-legal__article ul { padding-left: 18px; list-style: disc; }
.fx-legal__article code {
    padding: 1px 6px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--primary);
    font-size: 12px;
    font-family: "SF Mono", Menlo, Consolas, monospace;
}
.fx-legal__meta { font-size: 12.5px; color: var(--text-4); padding: 12px 16px; background: var(--surface-1); border-radius: var(--r-md); margin-bottom: 24px; }

/* ===== 25. 响应式 ===== */
@media (max-width: 1279px) {
    .fx-topbar__inner, .fx-main, .fx-footer__inner { max-width: 100%; }
}

@media (max-width: 1024px) {
    .fx-detail { grid-template-columns: 1fr; }
    .fx-buy { position: static; }
    .fx-confirm-grid { grid-template-columns: 1fr; }
    .fx-confirm-right { position: static; }
    .fx-footer__inner { grid-template-columns: 1fr; gap: 32px; }
    .fx-legal { grid-template-columns: 1fr; }
    .fx-legal__toc { position: static; flex-direction: row; flex-wrap: wrap; }
    .fx-panels { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body.fx-shell, body.fx-shell.fx-sidebar-collapsed { padding-left: 0; }
    .fx-sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; box-shadow: var(--shadow-pop); }
    .fx-sidebar.is-open { transform: none; }
    .fx-sidebar__label, .fx-sidebar__badge, .fx-sidebar__wordmark { opacity: 1 !important; pointer-events: auto !important; width: auto !important; min-width: 0 !important; }
    .fx-sidebar__card { background: var(--surface-1); padding: 6px; }
    .fx-sidebar__card-head .fx-sidebar__chevron { width: auto; opacity: 1; }
    .fx-sidebar__app { padding: 10px 12px; }
    .fx-sidebar__app-text, .fx-sidebar__app > i { width: auto; opacity: 1; }
    .fx-sidebar__link { justify-content: flex-start !important; padding: 10px 12px !important; }
    .fx-sidebar__collapse { display: none; }
    .fx-topbar__nav, .fx-topbar__balance, .fx-topbar__region { display: none; }
    /* 横向订单进度在窄屏可横滑（售后单 7 步不挤压） */
    .fx-timeline { overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .fx-timeline::-webkit-scrollbar { display: none; }
    .fx-timeline__item { min-width: 68px; }
    .fx-topbar__burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); color: var(--text-2); }
    /* 搜索在窄屏自适应宽度 + 面板 fixed 跟随视口 */
    .fx-search-open .fx-topbar__search-form { width: min(320px, calc(100vw - 130px)); }
    .fx-topbar__search-panel {
        position: fixed;
        top: calc(var(--topbar-h) + 8px);
        left: 12px; right: 12px;
        width: auto;
        max-width: 360px;
        margin-left: auto;
    }
    .fx-main { padding: 18px 16px 60px; }
    .fx-hero { height: auto; padding: 34px 26px; }
    .fx-hero__title { font-size: 25px; }
    .fx-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .fx-form-row, .fx-pay-options { grid-template-columns: 1fr; }
    .fx-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .fx-wallet-main { grid-template-columns: 1fr 1fr; }
    /* 底部 5 列窄屏改 2 列，避免挤压重叠 */
    .fx-footer__cols { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
    .fx-footer__col h4 { margin-bottom: 8px; }
    .fx-wallet-card { grid-column: span 2; }
    .fx-faq-grid { grid-template-columns: 1fr; }
    .fx-region-grid { grid-template-columns: repeat(2, 1fr); }
    .fx-status-banner { flex-direction: column; align-items: flex-start; }
    .fx-status-banner__actions { margin-left: 0; }
    .fx-otp__cell { width: 42px; height: 50px; }
    .fx-lobby-filter { flex-direction: column; }
    .fx-lobby-filter .fx-input-wrap { max-width: none; }
    /* —— 移动端适配补强（2026-09-10）—— */
    .fx-topbar__inner { padding: 0 14px; gap: 8px; }
    .fx-topbar__icon-btn { width: 38px; height: 38px; }
    .fx-topbar__avatar { width: 38px; height: 38px; font-size: 14px; }
    .fx-status-banner { padding: 18px 20px; gap: 14px; }
    .fx-status-banner__icon { width: 44px; height: 44px; font-size: 20px; }
    .fx-status-banner__title { font-size: 16px; }
    .fx-wallet-card { padding: 22px 20px; }
    .fx-wallet-card__value { font-size: 28px; }
    .fx-section { margin-bottom: 28px; }
    .fx-section__title { font-size: 16px; }
    .fx-section__more { font-size: 12.5px; }
    .fx-buy { padding: 18px; }
    .fx-buy__name { font-size: 18px; }
    .fx-buy__price { font-size: 22px; }
    .fx-btn { height: 42px; }
    .fx-input { height: 44px; }
    .fx-menu-item { padding: 14px 18px; }
    .fx-acc-item__q { padding: 14px 18px; }
    .fx-acc-item__a { padding: 0 18px 16px; }
    .fx-order-card__head, .fx-order-card__body, .fx-order-card__foot { padding-left: 16px; padding-right: 16px; }
    .fx-txn-row { padding: 13px 16px; gap: 12px; }
    /* 商品横滑条：移动端减小卡片宽度 */
    .fx-hscroll { grid-auto-columns: 152px; gap: 10px; }
    .fx-hscroll .fx-card--product { width: 152px; }
    .fx-hscroll__nav { display: none; }  /* 移动端禁用横向箭头按钮，用手指滑动 */
    /* 个人中心四宫格：2 列已 OK */
    /* 抽屉 / 弹窗：移动端全屏 */
    .fx-modal-overlay { padding: 16px; }
    .fx-modal { max-width: none; }
    /* Toast 移动端：缩窄左右距离 */
    .fx-toast-container { left: 16px; right: 16px; transform: none; }
    .fx-toast { max-width: none; }
    /* 客服抽屉：移动端全屏宽 */
    .fx-chat { width: 100%; max-width: 100%; }
    /* 商品卡更紧凑 */
    .fx-card__body { padding: 9px 10px 11px; }
    .fx-card__name { font-size: 12.5px; }
    .fx-card__price { font-size: 13px; }
    /* 钱包快捷金额 chips 2 列（保留 3 列也行）*/
    .fx-quick-amounts { gap: 8px; }
}

/* ===== 23. 页面：profile 个人中心（四宫格升级 / 账号安全卡） ===== */
.fx-quick-card { flex-direction: column; align-items: stretch; gap: 12px; }
.fx-quick-card__top { display: flex; align-items: center; gap: 10px; }
.fx-quick-card__top .fx-quick-card__icon { width: 32px; height: 32px; font-size: 14px; }
.fx-quick-card__chevron { margin-left: auto; color: var(--text-4); font-size: 11px; transition: color 0.18s, transform 0.18s; }
.fx-quick-card__count { font-size: 27px; font-weight: 800; margin-top: 0; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text-1); transition: color 0.18s; }
.fx-quick-card__sub { font-size: 12px; color: var(--text-4); margin-top: 2px; line-height: 1.4; }
.fx-quick-card:hover { border-color: var(--primary); background: var(--surface-2); }
.fx-quick-card:hover .fx-quick-card__count { color: var(--primary); }
.fx-quick-card:hover .fx-quick-card__chevron { color: var(--primary); transform: translateX(2px); }

.fx-menu-list__title {
    padding: 14px 20px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-4);
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--line);
}
.fx-menu-list__title + .fx-menu-item { border-top: none; }

/* ===== 24. v2 增量：菜单项静态行（div 而非 button） + iOS 风开关 ===== */
.fx-menu-item--static {
    /* 继承 .fx-menu-item 的 flex / padding / border；按钮态不需要 cursor pointer，禁用 hover 高亮 */
    cursor: default;
    background: transparent;
    text-align: left;
}
.fx-menu-item--static:hover { background: transparent; }

.fx-toggle {
    margin-left: auto;
    position: relative;
    width: 60px;
    height: 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background-color 0.22s ease;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
}
.fx-toggle:focus-visible { box-shadow: 0 0 0 3px rgba(93, 90, 248, 0.35); }
.fx-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: left 0.22s ease, background-color 0.22s ease;
}
.fx-toggle.is-on { background: var(--primary); border-color: var(--primary); }
.fx-toggle.is-on .fx-toggle__thumb { left: 31px; }
.fx-toggle.is-off { background: rgba(255, 255, 255, 0.10); border-color: var(--line); }

/* ===== 26. 移动端框架（底部 Tab Bar + 顶栏精简 + 安全区） ===== */
/* 命名约定：.fx-tabbar*（沿用 fx- 前缀）
 * 设计意图：≤768px 视图切移动端原生体验（底部 5 项 Tab Bar + 顶栏精简为汉堡+Logo+搜索+头像）
 * 桌面端（≥769px）全部隐藏，零回归风险。 */

/* 26.1 顶部状态条提示高度（iOS safe-area-top，默认 0）；目前未使用，仅预留 */
:root {
    --mobnav-h: 56px;
    --mobnav-pad: env(safe-area-inset-bottom, 0px);
}

/* 26.2 顶栏：移动端 logo（桌面端被侧栏替代，移动端要显示） */
.fx-topbar__logo--mobile { display: none; align-items: center; gap: 8px; flex-shrink: 0; min-width: 0; }
.fx-topbar__logo--mobile img { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; display: block; flex-shrink: 0; }
.fx-topbar__logo--mobile span { font-size: 15px; font-weight: 700; letter-spacing: 0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 26.3 底部 Tab Bar：默认桌面端隐藏，仅移动端显示 */
.fx-tabbar {
    display: none;
}

/* 26.4 移动端（≤768px）激活态：本体、布局、安全区 */
@media (max-width: 768px) {
    /* 顶栏 left 间距收紧（汉堡 + logo 紧凑排） */
    .fx-topbar__left { gap: 10px; }
    /* 顶部 logo 在移动端显示 */
    .fx-topbar__logo--mobile { display: flex; }
    /* 主体给 Tab Bar 留出空间：底部 56 + 安全区 */
    body.fx-shell { padding-bottom: calc(var(--mobnav-h) + var(--mobnav-pad)); }
    .fx-main { padding-bottom: calc(80px + var(--mobnav-pad)); }
    /* 沉浸式支付页（data-standalone / payment-*）保持原样不主动加 */
    body[data-standalone] { padding-bottom: 0; }
    /* 底部 Tab Bar 浮现 */
    .fx-tabbar {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        height: calc(var(--mobnav-h) + var(--mobnav-pad));
        padding-bottom: var(--mobnav-pad);
        background: rgba(7, 7, 8, 0.92);
        -webkit-backdrop-filter: blur(18px) saturate(180%);
        backdrop-filter: blur(18px) saturate(180%);
        border-top: 1px solid var(--line);
        z-index: 950;
        justify-content: space-around;
        align-items: stretch;
        font-family: inherit;
    }
    .fx-tabbar__item {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 6px 2px 4px;
        color: var(--text-4);
        text-decoration: none;
        background: none;
        border: 0;
        cursor: pointer;
        transition: color 0.16s;
        -webkit-tap-highlight-color: transparent;
    }
    .fx-tabbar__item i { font-size: 18px; line-height: 1; }
    .fx-tabbar__item span {
        font-size: 10.5px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0.2px;
        white-space: nowrap;
    }
    .fx-tabbar__item:hover { color: var(--text-2); }
    .fx-tabbar__item.is-active { color: var(--primary); }
    .fx-tabbar__item.is-active i { filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.45)); }
    /* 当前页 crumb：隐藏 Tab Bar（避免重复入口，仅 5 个主入口常驻） */
    body[data-page="order-confirm"] .fx-tabbar,
    body[data-page="payment-processing"] .fx-tabbar,
    body[data-page="payment-result"] .fx-tabbar,
    body[data-page="login"] .fx-tabbar,
    body[data-page="register"] .fx-tabbar { display: none; }
    body[data-page="order-confirm"] .fx-main,
    body[data-page="payment-processing"] .fx-main,
    body[data-page="payment-result"] .fx-main { padding-bottom: 60px; }
}

/* 分类浏览 chips 行（带数字徽章）：移动端横滑，桌面端折行 */
.fx-cat-chips {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.fx-cat-chips::-webkit-scrollbar { display: none; }
.fx-cat-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: var(--r-md);
    background: var(--surface-1);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.16s;
    text-decoration: none;
    white-space: nowrap;
}
.fx-cat-chip:hover {
    color: var(--text-1);
    border-color: var(--surface-4);
    background: var(--surface-2);
}
.fx-cat-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--text-3);
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
