/* =========================================================================
   TP 蓝 · 加密商城专业版 — H5 Premium E-Commerce Style

   品牌主色：#1677FF（TokenPocket 原生蓝）
   核心原则：克制用蓝、层次清晰、数据突出、商务专业
   彩色仅限：蓝 + 绿 + 橙 + 红 + 哑光金（5种）
   文字层级：大标题黑、正文深灰、注释浅灰、核心数据蓝
   ========================================================================= */

:root {
    /* —— 核心主蓝梯度（5阶，适配背景/文字/按钮） —— */
    --primary: #1677FF;        /* 主品牌色：按钮、高亮数字、主标签 */
    --primary-hover: #2986FF;  /* Hover / 次级按钮：微调提亮 */
    --primary-mid: #0F68E0;    /* 中度蓝：标题强调、卡片边框、报单商品标识 */
    --primary-dark: #08429C;   /* 深蓝文字：浅蓝背景上正文，保证可读性 */
    --primary-bg: #F0F7FF;     /* 极浅蓝背景：区块、质押卡片、标签底色 */
    --primary-disabled: #94BCF2; /* 禁用灰蓝：按钮置灰、过期标签 */

    --primary-grad: linear-gradient(135deg, #0F68E0 0%, #1677FF 50%, #2986FF 100%);
    --primary-grad-soft: linear-gradient(135deg, #1677FF 0%, #2986FF 100%);

    /* —— 功能辅助色（加密商城专用，低饱和不刺眼） —— */
    --success: #00AA47;        /* 成功：质押完成、到账、提现成功 */
    --success-bg: rgba(0,170,71,0.08);
    --warning: #FF8A29;        /* 待处理/提醒：未质押、待充值BNB */
    --warning-bg: rgba(255,138,41,0.08);
    --danger: #E63946;         /* 危险：余额不足、撤销质押、违规 */
    --danger-bg: rgba(230,57,70,0.08);
    --premium-gold: #C89427;   /* 哑光金：报单商品角标专用，唯一跳色 */
    --premium-gold-bg: rgba(200,148,39,0.10);

    /* —— 中性灰度系统（分层细化） —— */
    --bg: #F9FAFC;             /* 页面全局底色：更干净留白 */
    --card: #FFFFFF;           /* 卡片纯白 */
    --border: #D8DCE5;         /* 分割线重：模块分隔 */
    --border-l: #ECEEF2;       /* 分割线浅 */
    --t3: #818896;             /* 辅助提示文字 */
    --t2: #2E3440;             /* 常规正文：不黑不刺眼 */
    --t1: #111827;             /* 大标题/核心数据文字 */

    /* —— 圆角 —— */
    --r: 10px;
    --r-l: 14px;
    --r-xl: 20px;

    /* —— 阴影（克制，轻量） —— */
    --sh:    0 1px 3px rgba(22,119,255,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --sh-l:  0 6px 20px rgba(22,119,255,0.06), 0 2px 8px rgba(0,0,0,0.04);
    --sh-xl: 0 16px 40px rgba(22,119,255,0.08), 0 6px 18px rgba(0,0,0,0.05);

    /* —— 别名兼容（保留旧变量名） —— */
    --ink: var(--primary);
    --ink-d: var(--primary-dark);
    --ink-l: var(--primary-hover);
    --ink-grad: var(--primary-grad);
    --ink-grad-2: var(--primary-grad-soft);
    --gold: var(--premium-gold);
    --gold-d: var(--premium-gold);
    --gold-l: var(--premium-gold);
    --gold-grad: linear-gradient(135deg, #D4A043 0%, #C89427 50%, #A87B1E 100%);
    --gold-grad-soft: linear-gradient(135deg, #D4A043, #C89427);
    --glow-gold: 0 0 24px rgba(200,148,39,0.15);
    --glow-gold-sm: 0 0 12px rgba(200,148,39,0.20);
    --gold-line: 1px solid rgba(200,148,39,0.25);
    --gold-line-l: 1px solid rgba(200,148,39,0.12);

    --p: var(--primary);
    --p-d: var(--primary-dark);
    --p-l: var(--primary-hover);
    --p-grad: var(--primary-grad);
    --accent: var(--primary);
    --accent-d: var(--primary-dark);
    --accent-grad: var(--primary-grad);
    --primary: var(--primary);
    --text-1: var(--t1);
    --text-2: var(--t2);
    --text-3: var(--t3);
    --radius: var(--r-l);
    --shadow: var(--sh-l);
    --c-primary: var(--primary);
    --c-text-1: var(--t1);
    --c-text-2: var(--t2);
    --c-text-3: var(--t3);
    --c-border: var(--border-l);
    --c-bg: var(--bg);
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { -webkit-text-size-adjust:100%; }
body { font-family:"SF Pro Text",-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; background:var(--bg); color:var(--t2); font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; transition: color .12s; }
a:active { color: var(--primary); }
img { display:block; max-width:100%; }
svg { flex-shrink:0; }

.page { min-height:100vh; padding-bottom:60px; max-width:480px; margin:0 auto; position:relative; }

/* ========================================================================
   Header / Hero：克制用蓝，不做大块满屏蓝
   ======================================================================== */

/* Header — 白底，不做全蓝通栏 */
.hdr, .header {
    background: var(--card);
    color: var(--t1);
    padding: 16px 18px 20px;
    font-size: 18px;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
    box-shadow: 0 1px 0 var(--border-l);
    overflow: hidden;
    border-radius: 0;
}
.hdr a, .header a {
    color: var(--primary)!important;
    font-weight: 600;
}

/* 带Hero的页面头部（首页/购物车/钱包/个人中心）— 浅蓝渐变半透明 */
.home-hero, .cart-hero, .wallet-hero, .profile-hero, .user-header {
    padding: 20px 20px 18px;
    background:
        radial-gradient(circle at 85% 0%, rgba(22,119,255,0.08), transparent 50%),
        linear-gradient(180deg, #F0F7FF 0%, #F9FAFC 100%);
    color: var(--t1);
    border-radius: 0 0 20px 20px;
    box-shadow: none;
    border-bottom: 1px solid var(--border-l);
    position: relative;
    overflow: hidden;
}

.home-kicker, .cart-kicker, .section-kicker, .wallet-kicker {
    font-size: 11px;
    letter-spacing: .12em;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
    text-transform: uppercase;
}

.home-hero h1, .cart-hero h1, .wallet-hero h1, .profile-info .nickname, .user-header .nickname {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--t1);
}

.home-hero p, .cart-hero p, .wallet-hero p, .profile-info .phone, .user-header .phone {
    margin-top: 4px;
    color: var(--t3);
    font-size: 13px;
}

.home-topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.home-user, .cart-back, .wallet-back {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border-l);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sh);
}
.home-user svg, .cart-back svg, .wallet-back svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* Hero搜索框 — 精致胶囊式 */
.home-search {
    margin-top: 20px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 0 6px 0 16px;
    box-shadow:
        0 4px 16px rgba(22,119,255,.10),
        0 1px 3px rgba(0,0,0,.04),
        inset 0 0 0 1px rgba(255,255,255,.6);
    border: 1px solid rgba(22,119,255,.15);
    position: relative;
    z-index: 1;
    transition: all .2s ease;
}
.home-search:focus-within {
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow:
        0 4px 20px rgba(22,119,255,.18),
        0 1px 3px rgba(0,0,0,.04),
        0 0 0 3px rgba(22,119,255,.08);
}
.home-search svg {
    width: 18px;
    height: 18px;
    color: var(--t3);
    flex-shrink: 0;
    transition: color .2s;
}
.home-search:focus-within svg { color: var(--primary); }
.home-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: var(--t1);
    min-width: 0;
    font-weight: 500;
}
.home-search input::placeholder {
    color: var(--t3);
    font-weight: 400;
}
.home-search button {
    flex-shrink: 0;
    border: 0;
    height: 32px;
    padding: 0 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1677FF 0%, #2986FF 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(22,119,255,.30);
    letter-spacing: .5px;
    -webkit-tap-highlight-color: transparent;
}
.home-search button:hover {
    box-shadow: 0 4px 12px rgba(22,119,255,.40);
    transform: translateY(-1px);
}
.home-search button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(22,119,255,.30);
}

/* 深色模式下的搜索框 */
@media (prefers-color-scheme: dark) {
    .home-search {
        background: rgba(22,30,51,.85);
        box-shadow:
            0 4px 16px rgba(0,0,0,.3),
            inset 0 0 0 1px rgba(255,255,255,.04);
    }
    .home-search:focus-within {
        background: var(--card);
    }
}

/* 头像 — 浅蓝底+蓝边（白色Hero上） */
.user-header .top, .profile-top {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.user-header .avatar, .profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid var(--card);
    box-shadow: var(--sh);
    color: var(--primary);
}
.user-header .info, .profile-info { flex: 1; min-width: 0; }
.user-header .nickname, .profile-info .nickname {
    font-size: 19px;
    font-weight: 800;
    color: var(--t1);
}
.user-header .phone, .profile-info .phone {
    font-size: 13px;
    margin-top: 3px;
    color: var(--t3);
}

/* 用户余额块 — 浅蓝底白卡 */
.user-header .balance, .profile-balance {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    background: var(--card);
    border-radius: 18px;
    border: 1px solid var(--border-l);
    box-shadow: var(--sh);
    position: relative;
    z-index: 1;
}
.user-header .balance .label, .profile-balance .label {
    font-size: 12px;
    color: var(--t3);
    font-weight: 600;
}
.user-header .balance .amount, .profile-balance strong {
    font-size: 28px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
    margin-top: 4px;
    display: block;
}
.user-header .balance .amount::before, .profile-balance strong .yen {
    content: '¥';
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    opacity: .8;
}
.profile-balance a, .wallet-balance-card .recharge-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--primary);
    color: #FFFFFF!important;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
}
.profile-balance a:active, .wallet-balance-card .recharge-btn:active {
    background: var(--primary-hover);
}

/* 等级徽章 — 哑光金（唯一跳色） */
.h5-level-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    margin-top: 8px;
    color: #FFFFFF;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--premium-gold);
    box-shadow: 0 2px 8px rgba(200,148,39,0.25);
}

/* Tabbar — 白底，选中蓝，无大面积蓝 */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 62px;
    background: var(--card);
    border-top: 1px solid var(--border-l);
    display: flex;
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(22,119,255,0.04);
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(62px + env(safe-area-inset-bottom));
}
.page { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }

.tabbar a {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--t3);
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-weight: 500;
    position: relative;
    transition: color .15s;
}
.tabbar a svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
    transition: transform .15s;
}
.tabbar a.active {
    color: #1677FF;
}
.tabbar a.active svg {
    stroke: #1677FF;
    transform: translateY(-1px);
}
.tabbar a.active::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: #1677FF;
}

/* ========================================================================
   内容区域：干净白卡 + 浅蓝点缀
   ======================================================================== */

/* 搜索栏 */
.search-bar {
    background: var(--card);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-l);
}
.search-bar form {
    display: flex;
    gap: 8px;
    height: 42px;
    align-items: center;
    background: var(--bg);
    border-radius: 14px;
    padding: 0 6px 0 14px;
    border: 1px solid var(--border-l);
}
.search-bar input {
    flex: 1;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--t1);
    outline: none;
}
.search-bar input::placeholder { color: var(--t3); }
.search-bar input:focus { outline: none; }
.search-bar button {
    padding: 0 18px;
    height: 32px;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.search-bar button:active { background: var(--primary-hover); }

/* 分类导航胶囊 */
.cat-nav {
    background: var(--card);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-l);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
    white-space: nowrap;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--bg);
    font-size: 13px;
    color: var(--t2);
    transition: all .15s;
    font-weight: 500;
    border: 1px solid var(--border-l);
}
.cat-nav a.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(22,119,255,0.25);
}

/* Tab栏 */
.tab-bar {
    background: var(--card);
    display: flex;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-l);
    position: sticky;
    top: 0;
    z-index: 50;
    overflow-x: auto;
}
.tab-bar a {
    flex: 1;
    text-align: center;
    padding: 13px 4px;
    font-size: 13px;
    color: var(--t2);
    border-bottom: 2px solid transparent;
    transition: all .15s;
    font-weight: 500;
    min-width: 72px;
}
.tab-bar a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* ========================================================================
   商品卡片 — 普通商品 / 报单商品 差异化
   ======================================================================== */

.goods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
}

/* 普通商品卡片 — 简约柔和 */
.goods-card {
    background: var(--card);
    border-radius: var(--r-l);
    overflow: hidden;
    box-shadow: var(--sh);
    transition: transform .15s ease, box-shadow .15s ease;
    border: 1px solid var(--border-l);
    position: relative;
}
.goods-card:active { transform: scale(0.97); }
.goods-card img, .goods-card .no-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--bg);
}
.goods-card .no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t3);
    font-size: 12px;
    border-bottom: 1px solid var(--border-l);
}
.goods-card .info { padding: 10px 12px 12px; }
.goods-card .name {
    font-size: 13px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    color: var(--t1);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.goods-card .price {
    font-size: 18px;
    font-weight: 700;
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
}
.goods-card .price::before {
    content: '¥';
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}
.goods-card .sales {
    color: var(--t3);
    font-size: 11px;
    margin-top: 3px;
}

/* 报单商品（高权重）— 顶部渐变条 + 加粗蓝边 + 哑光金角标 */
.goods-card.premium {
    border: 1.5px solid var(--primary-mid);
    box-shadow: 0 4px 16px rgba(15,104,224,0.12);
}
.goods-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-grad);
    z-index: 2;
}
.goods-card .premium-badge {
    position: absolute;
    top: 10px;
    right: 8px;
    z-index: 3;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    background: var(--premium-gold);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(200,148,39,0.30);
    letter-spacing: .5px;
}

/* Premium 商品网格（首页精选） */
.premium-goods-grid { padding: 0; gap: 14px; }
.premium-goods-card {
    border: 1px solid var(--border-l);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--sh-l);
    overflow: hidden;
    position: relative;
}
.premium-goods-card .thumb {
    margin: 8px 8px 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border-l);
}
.premium-goods-card img, .premium-goods-card .no-img {
    aspect-ratio: 1.05;
    width: 100%;
    object-fit: cover;
}
.premium-goods-card .info { padding: 12px 13px 14px; }
.premium-goods-card .name {
    height: 38px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--t1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.premium-goods-card .meta-line {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}
.premium-goods-card .price {
    margin: 0;
    font-size: 20px;
    line-height: 1;
    color: var(--primary);
    font-weight: 800;
}
.premium-goods-card .price::before {
    content: '¥';
    font-size: 12px;
    margin-right: 1px;
}
.premium-goods-card .sales {
    font-size: 11px;
    color: var(--t3);
    white-space: nowrap;
}

/* 商品操作栏 — 白底，不做金/蓝大色块 */
.goods-bar, .cart-bar, .premium-cart-bar {
    position: fixed;
    bottom: 62px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 60px;
    background: var(--card);
    border-top: 1px solid var(--border-l);
    display: flex;
    padding: 0 16px;
    gap: 10px;
    align-items: center;
    z-index: 90;
    box-shadow: 0 -4px 16px rgba(22,119,255,0.04);
}

/* 普通商品按钮：空心蓝边框，弱化权重 */
.goods-card .btn-normal {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 0;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

/* 报单商品按钮：实心蓝，高权重 */
.goods-card.premium .btn-premium {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 9px 0;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 8px rgba(22,119,255,0.25);
}

/* ========================================================================
   购物车
   ======================================================================== */

.cart-hero {
    margin: 0 0 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.cart-list, .premium-cart-list {
    background: var(--card);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-l);
    border-top: 1px solid var(--border-l);
}
.cart-item, .premium-cart-item {
    display: flex;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-l);
    align-items: center;
    gap: 12px;
    position: relative;
}
.cart-item:last-child, .premium-cart-item:last-child { border-bottom: none; }
.cart-item img, .cart-item .no-img, .cart-thumb img, .cart-thumb .no-img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg);
    border: 1px solid var(--border-l);
}
.cart-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
    border: 1px solid var(--border-l);
}
.cart-thumb img, .cart-thumb .no-img { width: 100%; height: 100%; border: none; border-radius: 0; }
.cart-item .info, .cart-info { flex: 1; min-width: 0; }
.cart-item .name, .cart-name {
    font-size: 14px;
    color: var(--t1);
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cart-item .price, .cart-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}
.cart-item .price::before, .cart-price::before { content: '¥'; font-size: 11px; }
.cart-sub { margin-top: 4px; font-size: 12px; color: var(--t3); }
.cart-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 8px; }

.cart-item .qty, .premium-qty {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border-l);
    overflow: hidden;
}
.cart-item .qty button, .premium-qty button {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    font-size: 16px;
    color: var(--t2);
    cursor: pointer;
    font-weight: 600;
}
.cart-item .qty button:disabled, .premium-qty button:disabled { opacity: 0.3; cursor: default; }
.cart-item .qty span, .premium-qty span {
    min-width: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
}
.cart-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t3);
    font-size: 20px;
}

/* 购物车操作栏 */
.cart-bar { justify-content: space-between; }
.cart-bar .total, .premium-cart-bar .total { font-size: 14px; color: var(--t3); }
.cart-bar .total span, .premium-cart-bar .total span {
    font-weight: 800;
    font-size: 22px;
    color: var(--primary);
    display: block;
}
.cart-bar .total span::before, .premium-cart-bar .total span::before {
    content: '¥';
    font-size: 13px;
}
.cart-bar .btn, .premium-cart-bar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 32px;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: 21px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22,119,255,0.25);
    transition: all .15s;
}
.cart-bar .btn:active, .premium-cart-bar .btn:active {
    background: var(--primary-hover);
    transform: translateY(1px);
}

.premium-cart-bar {
    justify-content: space-between;
    padding: 10px 18px;
    height: 70px;
}
.premium-cart-bar .total { display: flex; flex-direction: column; gap: 2px; }
.premium-cart-bar .total small { font-size: 11px; }

/* 购物车面板 / 结算 */
.cart-panel, .cart-summary-card {
    margin: 0 16px 16px;
    background: var(--card);
    border: 1px solid var(--border-l);
    border-radius: var(--r-xl);
    box-shadow: var(--sh);
    overflow: hidden;
}
.cart-panel-head {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-l);
}
.cart-panel-head span { font-weight: 700; color: var(--t1); font-size: 16px; }
.cart-panel-head a { color: var(--t3); font-size: 12px; }

.cart-summary-card { padding: 16px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--t2);
    font-size: 14px;
}
.summary-row strong { color: var(--t1); font-weight: 600; }
.summary-row.total-row {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--border-l);
}
.summary-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary)!important;
}
.summary-price::before { content: '¥'; font-size: 12px; }

/* 空购物车 */
.premium-empty-cart, .empty {
    margin: 30px 18px 0;
    background: var(--card);
    border: 1px solid var(--border-l);
    border-radius: var(--r-xl);
    padding: 40px 22px;
    text-align: center;
    box-shadow: var(--sh);
}
.premium-empty-cart h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--t1);
}
.premium-empty-cart p { margin: 8px 0 20px; color: var(--t3); }
.premium-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 30px;
    border-radius: 22px;
    background: var(--primary);
    color: #FFFFFF!important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(22,119,255,0.25);
    text-decoration: none;
}

/* ========================================================================
   表单 & 按钮
   ======================================================================== */

.form-group {
    background: var(--card);
    padding: 14px 16px;
    margin-bottom: 8px;
    border-top: 1px solid var(--border-l);
    border-bottom: 1px solid var(--border-l);
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--t1);
    font-size: 13px;
    font-weight: 600;
}
.form-group input, .form-group textarea, .form-group select,
input[type=text], input[type=password], input[type=tel], input[type=email], input[type=number] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-size: 14px;
    background: var(--bg);
    color: var(--t1);
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder, input::placeholder {
    color: var(--t3);
}
.form-group input:focus, .form-group textarea:focus,
input[type=text]:focus, input[type=password]:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22,119,255,0.10);
    background: var(--card);
}

/* 主按钮：TP蓝 */
.btn-primary, button.btn-primary, input[type=submit].btn-primary {
    display: block;
    width: calc(100% - 32px);
    height: 48px;
    margin: 16px auto;
    background: var(--primary)!important;
    color: #FFFFFF!important;
    border: 0;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(22,119,255,0.25);
    transition: all .15s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary:active, button.btn-primary:active {
    background: var(--primary-hover);
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(22,119,255,0.20);
}
.btn-primary[disabled], .btn-primary:disabled {
    background: var(--primary-disabled)!important;
    box-shadow: none!important;
    cursor: not-allowed;
    color: #FFFFFF!important;
    opacity: .7;
}

.btn-link {
    display: block;
    text-align: center;
    color: var(--primary);
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
}

.btn-block {
    width: calc(100% - 32px);
    margin: 16px auto;
}

/* 表单卡片（地址编辑等） */
.form-card {
    background: var(--card);
    border-radius: var(--r-xl);
    padding: 16px 18px;
    margin: 12px 16px;
    box-shadow: var(--sh);
    border: 1px solid var(--border-l);
}
.form-card .form-group {
    background: transparent;
    padding: 0;
    margin-bottom: 14px;
    border: 0;
}
.form-card .form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: flex;
    gap: 10px;
}
.form-row .form-group {
    flex: 1;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}
.form-check input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}
.form-check label {
    font-size: 14px;
    color: var(--t2);
    cursor: pointer;
}

.address-form, .profile-form {
    padding-bottom: 16px;
}

/* 表单辅助样式 */
.input-disabled {
    background: var(--bg)!important;
    color: var(--t3)!important;
    cursor: not-allowed;
}
.input-mono {
    font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
}
.form-hint {
    font-size: 11px;
    color: var(--t3);
    margin-top: 6px;
    line-height: 1.5;
}

/* 地址列表 */
.address-list {
    padding: 12px;
}
.address-card {
    background: var(--card);
    border-radius: var(--r-xl);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--sh);
    border: 1px solid var(--border-l);
    position: relative;
    transition: all .15s ease;
}
.address-card.is-default {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(22,119,255,0.12);
}
.address-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.address-person {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.address-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--t1);
}
.address-phone {
    font-size: 13px;
    color: var(--t3);
}
.default-badge {
    background: var(--primary-bg);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}
.address-detail {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.6;
    margin-bottom: 12px;
}
.address-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.addr-btn {
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--t2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all .12s ease;
}
.addr-btn-secondary {
    border-color: var(--border-l);
    color: var(--t2);
}
.addr-btn-secondary:active {
    background: var(--bg);
}
.addr-btn-danger {
    border-color: rgba(230,57,70,0.3);
    color: var(--danger);
    background: var(--danger-bg);
}
.addr-btn-danger:active {
    background: rgba(230,57,70,0.15);
}
.addr-btn-primary {
    margin-left: auto;
    background: var(--primary-grad);
    color: #FFFFFF;
    border: 0;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(22,119,255,0.25);
}
.addr-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(22,119,255,0.20);
}

.address-footer {
    padding: 0 12px 20px;
}

/* 空地址状态 */
.empty-address {
    text-align: center;
    padding: 60px 24px;
}
.empty-address .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.empty-address .empty-text {
    font-size: 15px;
    color: var(--t3);
    margin-bottom: 20px;
}

/* 空状态统一样式 */
.empty-cart-section {
    padding: 60px 24px;
    text-align: center;
}
.empty-cart-section .empty-illustration {
    margin-bottom: 20px;
}
.empty-cart-section .empty-illustration svg {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}
.empty-cart-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 8px;
}
.empty-cart-section p {
    font-size: 14px;
    color: var(--t3);
    margin-bottom: 24px;
}

/* Buy bar 兼容 */
.buy-bar .btn, .buy-bar button {
    border-radius: 24px;
    font-weight: 600;
}
.buy-bar .btn-buy {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(22,119,255,0.25);
}
.buy-bar .btn-cart {
    background: var(--bg);
    color: var(--t2);
    border: 1px solid var(--border);
}

/* ========================================================================
   钱包 / 余额 / 质押 — 核心加密板块重点优化
   ======================================================================== */

.wallet-hero {
    margin: 0 0 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* 钱包余额卡 — 浅蓝底白卡，数据突出 */
.wallet-balance-card {
    margin: -6px 16px 16px;
    padding: 22px 20px;
    border-radius: var(--r-xl);
    background:
        radial-gradient(circle at 85% 0%, rgba(22,119,255,0.08), transparent 50%),
        linear-gradient(135deg, #F0F7FF 0%, #FFFFFF 100%);
    border: 1px solid rgba(22,119,255,0.15);
    box-shadow: var(--sh-l);
    position: relative;
    overflow: hidden;
}
.wallet-balance-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-grad);
}
.wallet-balance-card .label {
    color: var(--t3);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
}
.wallet-balance-card .amount {
    margin-top: 6px;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
}
.wallet-balance-card .amount::before {
    content: '¥';
    font-size: 18px;
    margin-right: 3px;
    opacity: .8;
    font-weight: 600;
}
.wallet-balance-card .recharge-btn {
    position: absolute;
    right: 18px;
    bottom: 20px;
    z-index: 1;
}

/* 钱包流水 / 记录 */
.wallet-log-panel {
    margin: 0 16px 20px;
    background: var(--card);
    border: 1px solid var(--border-l);
    border-radius: var(--r-xl);
    box-shadow: var(--sh);
    overflow: hidden;
}
.wallet-log-panel .panel-head {
    padding: 16px 18px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-l);
}
.wallet-log-panel .panel-head span {
    font-size: 16px;
    font-weight: 700;
    color: var(--t1);
}
.wallet-log-panel .panel-head small {
    color: var(--t3);
    font-size: 12px;
}
.wallet-log-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-l);
}
.wallet-log-item:last-child { border-bottom: none; }
.log-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}
.log-icon.income { background: var(--success-bg); color: var(--success); }
.log-icon.expense { background: var(--danger-bg); color: var(--danger); }
.log-icon.pending { background: var(--warning-bg); color: var(--warning); }
.log-main { flex: 1; min-width: 0; }
.log-main .remark {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.log-main .time { margin-top: 3px; font-size: 12px; color: var(--t3); }
.log-amount {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.log-amount.income { color: var(--success); }
.log-amount.expense { color: var(--danger); }
.log-amount.pending { color: var(--warning); }

/* 订单 */
.order-card {
    background: var(--card);
    margin: 12px 16px;
    border-radius: var(--r-l);
    padding: 14px 16px;
    box-shadow: var(--sh);
    border: 1px solid var(--border-l);
}
.order-card .head {
    display: flex;
    justify-content: space-between;
    color: var(--t3);
    font-size: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-l);
}
.order-card .body { display: flex; gap: 12px; }
.order-card .body img, .order-card .body .no-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg);
    border: 1px solid var(--border-l);
}
.order-card .body .info { flex: 1; min-width: 0; }
.order-card .body .info .name {
    font-size: 13px;
    color: var(--t1);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.order-card .body .info .price {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    margin-top: 4px;
}
.order-card .foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-l);
}
.order-card .foot .total {
    font-size: 14px;
    color: var(--t2);
}
.order-card .foot .total strong {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}
.order-card .foot .total strong::before { content: '¥'; font-size: 12px; }
.order-card .foot .btn {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* 订单状态色 */
.status-0 { color: var(--warning); }
.status-1 { color: var(--primary); }
.status-2 { color: var(--success); }
.status-3 { color: var(--t3); }
.status-4 { color: var(--t3); }
.status-5 { color: var(--danger); }

/* 卡密信息框 */
.card-box {
    background: var(--card);
    border: 1px solid var(--border-l);
    border-radius: var(--r-l);
    padding: 16px;
    margin: 12px 16px;
    box-shadow: var(--sh);
    position: relative;
    overflow: hidden;
}
.card-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-grad);
}
.card-box-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-box .card-item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-l);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--t1);
    word-break: break-all;
}
.card-box .card-item:last-child { border-bottom: none; }

/* 加密支付卡 */
.crypto-pay-card {
    background: var(--card);
    border-radius: var(--r-l);
    padding: 18px;
    margin: 14px 16px;
    box-shadow: var(--sh-l);
    border: 1px solid var(--border-l);
    position: relative;
    overflow: hidden;
}
.crypto-pay-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-grad);
}

/* ========================================================================
   用户中心 / 菜单
   ======================================================================== */

.user-menu, .profile-menu-card {
    background: var(--card);
    margin: 12px 16px;
    border-radius: var(--r-l);
    overflow: hidden;
    box-shadow: var(--sh);
    border: 1px solid var(--border-l);
}
.user-menu a, .profile-menu-card a {
    display: flex;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-l);
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--t1);
    font-weight: 500;
}
.user-menu a:last-child, .profile-menu-card a:last-child { border-bottom: none; }
.user-menu a:active, .profile-menu-card a:active { background: var(--bg); }
.user-menu a .arrow, .profile-menu-card b {
    color: var(--t3);
    font-size: 18px;
    font-weight: 400;
}

.menu-left { display: flex; align-items: center; gap: 12px; }
.menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    color: var(--primary);
}
.menu-icon svg { width: 18px; height: 18px; }
.menu-icon.notice { background: var(--warning-bg); color: var(--warning); }
.menu-icon.help { background: var(--primary-bg); color: var(--primary); }
.menu-icon.logout { background: var(--danger-bg); color: var(--danger); }

.profile-menu-title {
    padding: 14px 18px 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t3);
    letter-spacing: .05em;
}
.profile-menu-card.danger { margin-bottom: 80px; }
.profile-menu-card.danger a { color: var(--danger); }

/* 快捷入口 */
.profile-quick-grid {
    margin: -2px 16px 14px;
    padding: 16px 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    background: var(--card);
    border: 1px solid var(--border-l);
    border-radius: var(--r-xl);
    box-shadow: var(--sh);
}
.profile-quick-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 6px 0;
}
.profile-quick-grid em {
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    color: var(--t2);
    white-space: nowrap;
}
.quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    color: var(--primary);
    transition: transform .15s;
}
.quick-icon svg { width: 20px; height: 20px; }
.quick-icon.order { background: var(--primary-bg); color: var(--primary); }
.quick-icon.wallet { background: var(--success-bg); color: var(--success); }
.quick-icon.recharge { background: var(--warning-bg); color: var(--warning); }
.quick-icon.cart { background: var(--danger-bg); color: var(--danger); }
.quick-icon.ref { background: var(--premium-gold-bg); color: var(--premium-gold); }
.profile-quick-grid a:active .quick-icon { transform: scale(.92); }

/* ========================================================================
   消息 / 状态 / 空态
   ======================================================================== */

.msg {
    padding: 12px 16px;
    margin: 12px 16px;
    border-radius: var(--r);
    font-size: 13px;
    text-align: center;
    font-weight: 500;
}
.msg-ok {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0,170,71,0.20);
}
.msg-err {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(230,57,70,0.20);
}
.msg-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(255,138,41,0.20);
}

.empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--t3);
    font-size: 14px;
    margin: 16px;
}
.empty a {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.wallet-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--t3);
}
.wallet-empty .empty-dot {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-bg);
    margin: 0 auto 12px;
}
.wallet-empty p { margin-bottom: 12px; }
.wallet-empty a { color: var(--primary); font-weight: 600; }

/* 分页 */
.page-nav, .pagination-bar {
    text-align: center;
    padding: 16px;
    font-size: 14px;
    color: var(--t3);
    margin: 0 16px 16px;
    background: var(--card);
    border-radius: var(--r-l);
    border: 1px solid var(--border-l);
    box-shadow: var(--sh);
}
.page-nav a, .pagination-bar a {
    color: var(--primary)!important;
    font-weight: 600;
    padding: 0 8px;
}

/* 信息卡 */
.info-card {
    background: var(--card);
    margin: 12px 16px;
    border-radius: var(--r-l);
    padding: 16px 18px;
    box-shadow: var(--sh);
    border: 1px solid var(--border-l);
}
.info-card .row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-l);
}
.info-card .row:last-child { border-bottom: none; }
.info-card .row .label { color: var(--t3); font-weight: 500; }
.info-card .row .value { color: var(--t1); font-weight: 600; }
.info-card .section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-l);
}
.info-card .section-label {
    color: var(--t3);
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

/* 支付页 */
.pay-goods-list {
    background: var(--card);
    margin: 10px 16px;
    border-radius: var(--r-l);
    overflow: hidden;
    box-shadow: var(--sh);
    border: 1px solid var(--border-l);
}
.pay-amount-card {
    background: var(--card);
    margin: 12px 16px;
    border-radius: var(--r-l);
    padding: 18px;
    box-shadow: var(--sh-l);
    border: 1px solid var(--border-l);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pay-amount-label {
    color: var(--t3);
    font-size: 13px;
    margin-bottom: 4px;
}
.pay-amount-value {
    color: var(--primary);
    font-size: 26px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.pay-balance-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--t1);
}

.empty-pay-methods {
    text-align: center;
    padding: 40px 24px;
}
.empty-pay-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--warning-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-pay-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 8px;
}
.empty-pay-desc {
    font-size: 14px;
    color: var(--t3);
    line-height: 1.8;
    margin-bottom: 20px;
}

.pay-methods-panel {
    margin: 12px 16px;
    background: var(--card);
    border-radius: var(--r-l);
    padding: 16px;
    box-shadow: var(--sh);
    border: 1px solid var(--border-l);
}
.pay-methods-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--t1);
}
.pay-method-item {
    display: flex;
    align-items: center;
    padding: 14px;
    margin-bottom: 10px;
    border: 2px solid var(--border-l);
    border-radius: var(--r);
    cursor: pointer;
    transition: all 0.2s;
}
.pay-method-item:last-child {
    margin-bottom: 0;
}
.pay-method-item:active,
.pay-method-item.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
}
.pay-icon {
    font-size: 28px;
    margin-right: 12px;
}
.pay-info {
    flex: 1;
}
.pay-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--t1);
}
.pay-desc {
    font-size: 12px;
    color: var(--t3);
    margin-top: 2px;
}
.pay-arrow {
    font-size: 24px;
    color: var(--t3);
}

.pay-confirm-bar {
    padding: 10px 16px 20px;
}

/* 二维码支付弹窗 */
.qrcode-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.qrcode-modal-content {
    background: var(--card);
    border-radius: 16px;
    padding: 24px 20px;
    max-width: 90%;
    width: 320px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.qrcode-modal-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--t1);
}
.qrcode-img {
    width: 100%;
    border-radius: 8px;
    background: var(--bg);
}
.qrcode-instruction {
    margin: 16px 0 8px;
    font-size: 14px;
    color: var(--t3);
}
.qrcode-amount {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}
.qrcode-btns {
    display: flex;
    gap: 10px;
}
.qrcode-btn {
    flex: 1;
    padding: 11px 16px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all .15s ease;
}
.qrcode-btn:active {
    transform: translateY(1px);
}
.qrcode-btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(22,119,255,0.25);
}
.qrcode-btn-primary:active {
    background: var(--primary-hover);
}
.qrcode-btn-secondary {
    background: var(--bg);
    color: var(--t2);
    border: 1px solid var(--border-l);
}
.qrcode-msg {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}
.qrcode-msg.msg-info {
    background: var(--primary-bg);
    color: var(--primary-dark);
}
.qrcode-msg.msg-success {
    background: var(--success-bg);
    color: var(--success);
}
.qrcode-msg.msg-error {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ========================================================================
   首页区块
   ======================================================================== */

.home-section { margin: 0 16px 20px; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 12px;
}
.section-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--t1);
    letter-spacing: -.02em;
}
.section-kicker { color: var(--primary); opacity: 1; margin-bottom: 2px; }
.section-note { font-size: 12px; color: var(--t3); }

.home-notice {
    margin: 4px 16px 14px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--primary-bg);
    border-radius: var(--r-l);
    color: var(--primary-dark);
    font-size: 13px;
    line-height: 1.55;
    border: 1px solid rgba(22,119,255,0.12);
}
.home-notice svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.home-notice span { flex: 1; }

/* Banner */
.premium-banner {
    margin: 0 16px 20px;
    border-radius: var(--r-xl);
    overflow: hidden;
    position: relative;
    background: var(--card);
    box-shadow: var(--sh-l);
    border: 1px solid var(--border-l);
}
.premium-banner-track {
    display: flex;
    transition: transform .38s cubic-bezier(.2,.8,.2,1);
}
.premium-banner-slide {
    min-width: 100%;
    position: relative;
    height: 160px;
    display: block;
}
.premium-banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.premium-banner-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(22,119,255,.45) 100%);
}
.premium-banner-title {
    position: absolute;
    left: 16px;
    bottom: 14px;
    right: 60px;
    color: #FFFFFF;
    z-index: 1;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.premium-banner-dots {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    gap: 5px;
    align-items: center;
}
.premium-banner-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 10px;
    background: rgba(255,255,255,.4);
}
.premium-banner-dots .dot.active {
    width: 18px;
    background: #FFFFFF;
}

.premium-cat-nav {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    gap: 8px;
}
.premium-cat-nav a {
    background: var(--card);
    border: 1px solid var(--border-l);
    box-shadow: var(--sh);
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--t2);
}
.premium-cat-nav a.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(22,119,255,0.20);
}

.product-section { padding-bottom: 16px; }

/* 文章 */
.article-list { padding: 12px 16px!important; }
.article-card {
    display: flex;
    background: var(--card);
    border-radius: var(--r-l);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--sh);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-l);
}
.article-card .cover {
    width: 110px;
    min-width: 110px;
    height: 80px;
    object-fit: cover;
    background: var(--bg);
    border-right: 1px solid var(--border-l);
}
.article-card .main { flex: 1; padding: 10px 12px; min-width: 0; }
.article-card .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.article-card .meta { font-size: 11px; color: var(--t3); margin-top: 6px; }

.article-detail {
    margin: 16px!important;
    border-radius: var(--r-xl)!important;
    box-shadow: var(--sh)!important;
    border: 1px solid var(--border-l)!important;
    padding: 20px!important;
    background: var(--card)!important;
}
.article-detail .title {
    font-size: 20px!important;
    font-weight: 800;
    color: var(--t1)!important;
}
.article-detail .meta {
    color: var(--t3);
    font-size: 12px;
    margin: 8px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-l);
}
.article-detail .content {
    color: var(--t2);
    line-height: 1.8;
    font-size: 14px;
}

/* ========================================================================
   交互细节 / 组件
   ======================================================================== */

/* 复选框 / 单选框 */
input[type=checkbox], input[type=radio] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

/* 滚动条 */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
    opacity: .6;
}
::-webkit-scrollbar-track { background: transparent; }

/* 骨架屏 */
.skeleton-line {
    background: linear-gradient(90deg, var(--bg) 0%, var(--card) 50%, var(--bg) 100%);
    background-size: 200% 100%;
    animation: shine 1.4s ease-in-out infinite;
    border-radius: 8px;
}
@keyframes shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 数字字体等宽 */
.num, .price, .balance, .addr-mono {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Auth 表单 */
.auth-shell, .premium-form-shell {
    margin: 16px;
    padding: 22px 18px 18px;
    background: var(--card);
    border-radius: var(--r-xl);
    box-shadow: var(--sh);
    border: 1px solid var(--border-l);
}
.premium-tip {
    margin: 0 16px 14px;
    padding: 14px 16px;
    border-radius: var(--r-l);
    background: var(--primary-bg);
    border: 1px solid rgba(22,119,255,0.12);
    color: var(--primary-dark);
    line-height: 1.7;
    font-size: 13px;
}

/* 钱包登录区 */
.wallet-login-section {
    margin-top: 24px;
}
.divider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.divider-text {
    font-size: 12px;
    color: var(--t3);
    white-space: nowrap;
}
.wallet-login-card {
    background: var(--primary-bg);
    border: 1px solid rgba(22,119,255,0.15);
    border-radius: 14px;
    padding: 14px;
}
.wallet-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.wallet-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(22,119,255,0.25);
}
.wallet-icon-wrap-sm {
    width: 34px;
    height: 34px;
}
.wallet-card-title {
    flex: 1;
    min-width: 0;
}
.wallet-card-title-main {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
}
.wallet-card-title-sub {
    font-size: 12px;
    color: var(--primary);
    opacity: .8;
    margin-top: 2px;
}
.wallet-provider-list {
    background: rgba(255,255,255,.6);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.wallet-provider-title {
    font-size: 13px;
    color: var(--primary-dark);
    line-height: 1.7;
    margin-bottom: 10px;
}
.wallet-provider-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.wallet-provider-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.wallet-provider-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--card);
    border: 1px solid var(--border-l);
}
.wallet-provider-name {
    font-size: 11px;
    color: var(--primary-dark);
    font-weight: 600;
}

.wallet-has-provider {
    /* JS 控制显示 */
}
.wallet-detected-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.wallet-detected-info {
    flex: 1;
    min-width: 0;
}
.wallet-detected-label {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.2;
    opacity: .8;
}
.wallet-detected-addr {
    font-size: 12px;
    color: var(--primary-dark);
    font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
    word-break: break-all;
    line-height: 1.4;
    margin-top: 2px;
}

.wallet-login-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border-radius: 12px;
    border: 0;
    background: var(--primary-grad);
    color: #FFFFFF;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(22,119,255,0.30);
    transition: all .15s ease;
}
.wallet-login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(22,119,255,0.20);
}
.wallet-login-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.wallet-login-msg {
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
    line-height: 1.6;
}
.wallet-login-msg.msg-info {
    color: var(--primary-dark);
}
.wallet-login-msg.msg-success {
    color: var(--success);
}
.wallet-login-msg.msg-warning {
    text-align: left;
}
.wallet-login-msg.msg-error {
    color: var(--danger);
}
.wallet-msg-card {
    background: var(--warning-bg);
    border: 1px solid rgba(255,138,41,0.25);
    border-radius: 8px;
    padding: 10px;
    text-align: left;
}
.wallet-msg-title {
    font-weight: 700;
    color: var(--warning);
    margin-bottom: 4px;
    font-size: 13px;
}
.wallet-msg-addr {
    font-size: 11px;
    color: var(--warning);
    font-family: monospace;
    word-break: break-all;
    margin-bottom: 6px;
    opacity: .9;
}
.wallet-msg-text {
    font-size: 12px;
    color: var(--t2);
    line-height: 1.6;
}
.wallet-msg-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* 标签 */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: var(--primary-bg);
    color: var(--primary-dark);
}
.tag-success { background: var(--success-bg); color: var(--success); }
.tag-warning { background: var(--warning-bg); color: var(--warning); }
.tag-danger { background: var(--danger-bg); color: var(--danger); }
.tag-premium { background: var(--premium-gold-bg); color: var(--premium-gold); }

/* 等级价格标签（商品详情/购物车/结算页） */
.level-price-tag {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 11px;
}

/* ========================================================================
   深色模式基础支持
   ======================================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0B101D;
        --card: #161E33;
        --border: #2A344E;
        --border-l: #222B42;
        --t1: #F0F2F5;
        --t2: #C8CFDD;
        --t3: #7A8499;
        --primary-bg: rgba(22,119,255,0.12);
        --success-bg: rgba(0,170,71,0.12);
        --warning-bg: rgba(255,138,41,0.12);
        --danger-bg: rgba(230,57,70,0.12);
        --premium-gold-bg: rgba(200,148,39,0.12);

        --sh:    0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
        --sh-l:  0 6px 20px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
        --sh-xl: 0 16px 40px rgba(0,0,0,0.4), 0 6px 18px rgba(0,0,0,0.3);
    }

    body { background: var(--bg); color: var(--t2); }

    .hdr, .header {
        background: var(--card);
        box-shadow: 0 1px 0 var(--border-l);
    }

    .home-hero, .cart-hero, .wallet-hero, .profile-hero, .user-header {
        background:
            radial-gradient(circle at 85% 0%, rgba(22,119,255,0.10), transparent 50%),
            linear-gradient(180deg, rgba(22,119,255,0.06) 0%, var(--bg) 100%);
        border-bottom: 1px solid var(--border-l);
    }

    .home-search, .search-bar form, .cat-nav a, .profile-quick-grid,
    .user-menu, .profile-menu-card, .info-card, .order-card,
    .wallet-log-panel, .cart-panel, .cart-summary-card,
    .premium-empty-cart, .empty, .auth-shell, .article-card, .article-detail,
    .premium-banner, .goods-card, .card-box, .crypto-pay-card,
    .wallet-balance-card, .form-card, .address-card,
    .pay-goods-list, .pay-amount-card, .pay-methods-panel,
    .wallet-login-card, .wallet-provider-list,
    .qrcode-modal-content {
        background: var(--card);
        border-color: var(--border-l);
    }

    .pay-method-item, .addr-btn-secondary,
    .qrcode-btn-secondary, .wallet-provider-icon {
        background: var(--bg);
        border-color: var(--border);
        color: var(--t2);
    }

    .wallet-provider-name, .wallet-card-title-main,
    .wallet-detected-addr, .wallet-login-msg.msg-info {
        color: #6FA8FF;
    }
    .wallet-card-title-sub, .wallet-detected-label {
        color: var(--primary);
    }
    .wallet-msg-text {
        color: var(--t2);
    }

    .form-group input, .form-group textarea,
    input[type=text], input[type=password] {
        background: var(--bg);
        border-color: var(--border);
        color: var(--t1);
    }
    .form-group input::placeholder, input::placeholder { color: var(--t3); }
    .form-group input:focus, input:focus {
        background: var(--card);
        box-shadow: 0 0 0 3px rgba(22,119,255,0.20);
    }

    .tabbar {
        background: var(--card);
        border-top-color: var(--border-l);
    }
    .tabbar a svg { stroke: currentColor; fill: none; }
    .tabbar a.active { color: #1677FF; }
    .tabbar a.active svg { stroke: #1677FF; }
    .tabbar a.active::after { background: #1677FF; }

    .goods-bar, .cart-bar, .premium-cart-bar {
        background: var(--card);
        border-top-color: var(--border-l);
    }
    .goods-bar .btn-cart, .buy-bar .btn-cart {
        background: var(--bg);
        border-color: var(--border);
        color: var(--t2);
    }

    .premium-goods-card .thumb, .goods-card .no-img,
    .cart-thumb, .cart-item img, .order-card .body img,
    .article-card .cover, .premium-banner-slide {
        background: var(--bg);
        border-color: var(--border-l);
    }

    .home-notice {
        background: var(--primary-bg);
        border-color: rgba(22,119,255,0.20);
        color: #6FA8FF;
    }
    .home-notice svg { color: var(--primary); }

    .premium-tip {
        background: var(--primary-bg);
        border-color: rgba(22,119,255,0.20);
        color: #6FA8FF;
    }
}

/* 安全区补充 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .tabbar { height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
    .page { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
    .page:has(.goods-detail-page) { padding-bottom: 0; }
    .goods-bar { padding-bottom: env(safe-area-inset-bottom); }
}
