/* ============================================
   H5 商城 - 专业设计系统
   ============================================ */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* 品牌色 - 轻奢雅致风（玫瑰金主色 + 藏蓝辅色） */
    --primary: #E5AA70;            /* 玫瑰金 - 主按钮/价格/主标题 */
    --primary-hover: #D4954D;      /* 玫瑰金深 - hover */
    --primary-active: #B87A3A;     /* 玫瑰金更深 - active */
    --primary-light: #FBF0E0;      /* 玫瑰金浅 - 状态背景 */
    --primary-bg: #FDF8F0;         /* 玫瑰金极浅 - 大面积背景 */
    --primary-rgb: 229, 170, 112;  /* 玫瑰金 RGB - 用于 rgba() */
    --gold: #C89427;               /* 哑光金 - 5BNB 报单角标专用（重奢特权） */
    --gold-light: #FBF6E8;
    --navy: #1A237E;               /* 藏蓝 - 副标题/图标描边 */
    --navy-rgb: 26, 35, 126;

    /* 功能色 */
    --danger: #FF4D4F;
    --danger-light: #FFF2F0;
    --success: #52C41A;
    --success-light: #F6FFED;
    --warning: #FAAD14;
    --warning-light: #FFFBE6;

    /* 中性色 - 柔和不刺眼 */
    --text: #2C2C2C;               /* 深炭灰 - 正文 */
    --text-title: #1A1A1A;         /* 墨黑 - 主标题 */
    --text-secondary: #5A5A5A;     /* 中灰 - 次要文字 */
    --text-light: #888888;         /* 浅灰 - 辅助文字 */
    --text-muted: #B8B8B8;         /* 更浅灰 - 占位 */
    --bg: #F8F5F2;                 /* 哑光米白 - 页面底 */
    --bg-warm: #E8E1D9;            /* 浅杏色 - 首页 banner 分层 */
    --bg-cool: #E0E6F1;            /* 浅灰蓝 - 功能卡片 + 磨砂玻璃 */
    --bg-card: #FFFFFF;            /* 商品卡保持纯白 */
    --border: #E8E1D9;             /* 边框 - 与基底同色系 */
    --border-light: #F0EBE3;       /* 浅边框 */

    /* 阴影 - 玫瑰金光晕（暖色调） */
    --shadow-sm: 0 1px 2px rgba(120, 80, 40, 0.04);
    --shadow: 0 2px 8px rgba(120, 80, 40, 0.06);
    --shadow-md: 0 4px 16px rgba(120, 80, 40, 0.08);
    --shadow-lg: 0 8px 32px rgba(120, 80, 40, 0.1);
    --shadow-primary: 0 4px 14px rgba(229, 170, 112, 0.3);

    /* 圆角 */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* 过渡 */
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

input, textarea, button, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229,170,112,0.1);
}

/* ---------- 容器 ---------- */
.h5-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    padding-bottom: 70px;
    position: relative;
}

/* ---------- 顶部导航 ---------- */
.h5-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}
/* 主页面头部 */
.h5-topbar.topbar-main {
    height: 52px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}
.h5-topbar .h5-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    margin-left: -4px;
    color: var(--primary);
    background: rgba(229, 170, 112, 0.08);
    border: 1px solid rgba(229, 170, 112, 0.12);
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.h5-topbar .h5-back:hover {
    background: rgba(229, 170, 112, 0.14);
    color: var(--primary);
}
.h5-topbar .h5-back:active {
    transform: scale(0.9);
    background: rgba(229, 170, 112, 0.2);
}
.h5-topbar .h5-back:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 170, 112, 0.28);
}
.h5-topbar .h5-back svg { flex-shrink: 0; display: block; }
.h5-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.2px;
    text-align: center;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.h5-placeholder { min-width: 36px; }

/* 右上角首页按钮（与返回按钮对称的圆形按钮） */
.h5-topbar .h5-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    margin-right: -4px;
    color: var(--primary);
    background: rgba(229, 170, 112, 0.08);
    border: 1px solid rgba(229, 170, 112, 0.12);
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s, transform .1s;
}
.h5-topbar .h5-home-btn:hover { background: rgba(229, 170, 112, 0.14); color: var(--primary); }
.h5-topbar .h5-home-btn:active { transform: scale(0.9); background: rgba(229, 170, 112, 0.2); }
.h5-topbar .h5-home-btn svg { flex-shrink: 0; display: block; }

/* 品牌 Logo 区域 */
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 54px;
}
.brand-icon { font-size: 22px; line-height: 1; }
.brand-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

/* ---------- 内容区 ---------- */
.h5-content { padding: 0 0 24px; }
body.has-topbar .h5-content { padding-top: 16px; }

/* ---------- 底部导航 ---------- */
.h5-tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    z-index: 100;
}
.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-light);
    gap: 3px;
    transition: color var(--transition);
    position: relative;
}
.tab-item.active { color: var(--primary); font-weight: 600; }
.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}
.tab-icon { width: 22px; height: 22px; flex-shrink: 0; }
.tab-icon svg { display: block; width: 100%; height: 100%; }

/* ---------- 搜索栏 ---------- */
.search-bar {
    padding: 12px 16px;
    background: var(--bg-card);
}
/* 首页搜索栏浅杏色分层 */
.page-index .search-bar {
    background: var(--bg-warm);
}
.search-bar form {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1.5px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229,170,112,0.1);
}
.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px 18px;
    font-size: 14px;
    color: var(--text);
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    cursor: pointer;
    transition: background var(--transition);
}
.search-bar button:active { background: var(--primary-hover); }

/* ---------- 轮播图 ---------- */
.banner-swiper {
    position: relative;
    overflow: hidden;
    margin: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.product-detail .banner-swiper {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.banner-list {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.banner-item { flex-shrink: 0; width: 100%; aspect-ratio: 2 / 1; }
.product-detail .banner-item { aspect-ratio: 1 / 1; }
.banner-item img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 6px;
}
.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
}
.banner-dot.active {
    width: 20px;
    background: #fff;
}
.product-detail .banner-dot { background: rgba(0,0,0,0.2); }
.product-detail .banner-dot.active { background: var(--primary); }
.banner-index {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ---------- 分类导航 ---------- */
.category-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 16px;
    background: var(--bg-card);
    margin: 0 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.category-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform var(--transition);
}
.category-nav a:active { transform: scale(0.95); }
.category-nav .cat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary-light), #D6EBFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: transform var(--transition);
}
.category-nav .cat-name { font-size: 11px; color: var(--text-secondary); font-weight: 500; }

/* ---------- 商品网格 ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 16px;
}
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.product-card:active { transform: scale(0.98); }
.product-card .card-cover {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}
.product-card .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-card:active .card-cover img { transform: scale(1.05); }
.product-card .card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: #fff;
    z-index: 2;
}
.product-card .card-badge.hot { background: linear-gradient(135deg, #FF4D4F, #FF7875); }
.product-card .card-badge.new { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); }
.product-card .card-badge.gold { background: linear-gradient(135deg, var(--gold), #D4A745); }
.product-card .card-info { padding: 10px 12px 12px; }
.product-card .card-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    min-height: 39px;
}
.product-card .card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 8px;
}
.product-card .price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.product-card .price-current::before { content: '¥'; font-size: 12px; font-weight: 600; }
.product-card .price-original {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-card .card-sales {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-card);
    color: var(--text);
    user-select: none;
    -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.btn-primary:active {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-active) 100%);
}
.btn-primary:active::before { left: 120%; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:active { background: var(--primary-light); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-secondary); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; font-weight: 600; }

/* ---------- 表单 ---------- */
.form-group { padding: 0 16px; margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-label .required { color: var(--danger); margin-right: 2px; }
.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--bg-card);
    color: var(--text);
}
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    min-height: 90px;
    resize: vertical;
    background: var(--bg-card);
    color: var(--text);
}
.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--bg-card);
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 6px; padding: 0 16px; }

/* ---------- 商品详情 ---------- */
.product-detail .detail-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f0f2f5;
}
.product-detail .detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .detail-info {
    padding: 20px 16px;
    background: var(--bg-card);
    margin: -12px 0 0;
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
    z-index: 1;
}
.product-detail .detail-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    letter-spacing: -0.3px;
}
.product-detail .detail-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}
.product-detail .detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #FFF5F5, #FFF1F0);
    border-radius: var(--radius);
}
.detail-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--danger);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.detail-price::before { content: '¥'; font-size: 18px; font-weight: 600; }
.detail-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.detail-sales { font-size: 12px; color: var(--text-light); margin-left: auto; }
.product-detail .detail-section {
    padding: 20px 16px;
    background: var(--bg-card);
    margin-top: 10px;
}
.product-detail .detail-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
    color: var(--text);
    letter-spacing: -0.2px;
}
.product-detail .detail-section .detail-body { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.product-detail .detail-section .detail-body img { max-width: 100%; border-radius: var(--radius-sm); margin: 8px 0; }
.product-detail .detail-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.detail-meta {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    font-size: 12px;
}
.stock-tag, .freight-tag {
    padding: 3px 10px;
    border-radius: 10px;
    background: #F5F5F5;
    color: var(--text-light);
}
.stock-tag.out { background: #FFF1F0; color: var(--danger); }
.freight-tag { background: #FFF7E6; color: #FA8C16; }
.detail-panel {
    background: var(--bg-card);
    margin-top: 10px;
}
.panel-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.panel-item:last-child { border-bottom: none; }
.panel-label {
    color: var(--text-light);
    width: 50px;
    flex-shrink: 0;
}
.panel-value { color: var(--text); flex: 1; }

/* ---------- 商品详情底部操作栏 ---------- */
.detail-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 56px;
    padding: 0 12px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}
.db-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0 6px;
    font-size: 10px;
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    gap: 2px;
}
.db-icon svg { width: 22px; height: 22px; stroke: var(--text-light); }
.db-icon:active { opacity: 0.6; }
.db-badge {
    position: absolute;
    top: -2px;
    right: 0;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    text-align: center;
}
.db-btn {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}
.db-btn:active { opacity: 0.85; }
.db-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.db-btn-cart {
    background: linear-gradient(135deg, #FFB800, #FF9500);
}
.db-btn-buy {
    background: linear-gradient(135deg, #FF4D4F, #F5222D);
}

/* SKU 弹层 */
.sku-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
}
.sku-mask.show { display: block; }
.sku-popup {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 201;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s 0.3s;
    visibility: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.sku-popup.show {
    transform: translateX(-50%) translateY(0);
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s 0s;
}
.sku-top {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}
.sku-img {
    width: 90px;
    height: 90px;
    border-radius: var(--radius);
    object-fit: cover;
    margin-top: -30px;
    border: 4px solid #fff;
    box-shadow: var(--shadow-sm);
}
.sku-info { flex: 1; padding-top: 8px; }
.sku-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--danger);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.sku-price::before { content: '¥'; font-size: 15px; font-weight: 600; }
.sku-stock { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.sku-selected { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.sku-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sku-section { padding: 16px; }
.sku-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

/* SKU 弹层主体（规格选择区可滚动） */
.sku-body { max-height: 50vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sku-spec-section { padding: 12px 16px 4px; }
.sku-spec-section .sku-section-title { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.sku-spec-values { display: flex; flex-wrap: wrap; gap: 8px; }
.sku-spec-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    font-family: inherit;
}
.sku-spec-btn:active { transform: scale(0.96); }
.sku-spec-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-active);
    font-weight: 600;
}

/* 购物车/结算/订单 规格名显示 */
.cart-sku-name, .cp-sku-name, .od-pd-sku {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 3px;
    line-height: 1.4;
}
.cart-sku-name { margin-top: 4px; }
.od-pd-sku { margin-bottom: 4px; }
.sku-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.sku-qty .qty-btn {
    width: 36px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    font-size: 18px;
    color: var(--text);
    cursor: pointer;
}
.sku-qty .qty-btn:active { background: #e8e8e8; }
.sku-qty .qty-input {
    width: 50px;
    height: 32px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    background: #fff;
    color: var(--text);
    -moz-appearance: textfield;
}
.sku-qty .qty-input::-webkit-outer-spin-button,
.sku-qty .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sku-actions {
    display: flex;
    gap: 0;
    padding: 8px 16px 16px;
}
.sku-btn {
    flex: 1;
    height: 44px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}
.sku-btn:active { opacity: 0.85; }
.sku-btn-cart {
    background: linear-gradient(135deg, #FFB800, #FF9500);
    border-radius: 22px 0 0 22px;
}
.sku-btn-buy {
    background: linear-gradient(135deg, #FF4D4F, #F5222D);
    border-radius: 0 22px 22px 0;
}
.sku-btn-cart[style*="none"] + .sku-btn-buy,
.sku-btn-buy[style*="none"] + .sku-btn-cart { border-radius: 22px; }
.sku-btn[style*="none"] { display: none !important; }

/* ---------- 底部操作栏 ---------- */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 56px;
    padding: 0 16px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}
.bottom-bar .btn { flex: 1; height: 40px; font-size: 15px; }
.bottom-bar .btn-outline { border-width: 1.5px; }
/* 有 tabbar 的页面，内容底部留空间（tabbar 高 56px） */
body.has-tabbar .h5-content { padding-bottom: 70px; padding-bottom: calc(70px + env(safe-area-inset-bottom, 0)); }
/* cart 页面同时有 bottom-bar，bottom-bar 上移到 tabbar 之上 */
body.has-tabbar .bottom-bar { bottom: 56px; padding-bottom: 0; }
body.page-cart .h5-content { padding-bottom: 120px; padding-bottom: calc(120px + env(safe-area-inset-bottom, 0)); }
/* 无 tabbar 页面，有底部操作栏的留空间 */
body:not(.has-tabbar) .h5-content { padding-bottom: 70px; padding-bottom: calc(70px + env(safe-area-inset-bottom, 0)); }

/* ---------- 订单列表 ---------- */
.order-tabs {
    display: flex;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 48px;
    z-index: 99;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.order-tabs::-webkit-scrollbar { display: none; }
.order-tabs a {
    flex-shrink: 0;
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
    white-space: nowrap;
}
.order-tabs a.active {
    color: var(--primary);
    font-weight: 600;
}
.order-tabs a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.order-card {
    background: var(--bg-card);
    margin: 12px 16px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.order-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}
.order-card .order-no { color: var(--text-secondary); font-size: 12px; }
.order-card .order-status {
    font-weight: 600;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}
.order-card .order-status.status-0 { color: #FAAD14; background: var(--warning-light); }
.order-card .order-status.status-1 { color: var(--primary); background: var(--primary-light); }
.order-card .order-status.status-2 { color: #E5AA70; background: #FBF0E0; }
.order-card .order-status.status-3 { color: var(--success); background: var(--success-light); }
.order-card .order-status.status-4 { color: var(--text-light); background: var(--bg); }
.order-card .order-product {
    display: flex;
    padding: 14px 16px;
    gap: 12px;
}
.order-card .order-product img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.order-card .order-product-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.order-card .order-product-name {
    font-size: 14px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}
.order-card .order-product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-card .order-product-price .price { font-size: 16px; font-weight: 700; color: var(--text); }
.order-card .order-product-price .price::before { content: '¥'; font-size: 12px; }
.order-card .order-product-price .qty { font-size: 12px; color: var(--text-light); }
.order-card .order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px 14px;
}
.order-card .order-total { font-size: 13px; color: var(--text-secondary); }
.order-card .order-total .amount { font-size: 16px; font-weight: 700; color: var(--danger); margin-left: 4px; }
.order-card .order-total .amount::before { content: '¥'; font-size: 12px; }

/* ---------- 订单详情 ---------- */
.od-status {
    position: relative;
    padding: 32px 20px 40px;
    color: #fff;
    overflow: hidden;
}
.od-status-bg {
    position: absolute;
    inset: 0;
    background: var(--status-color);
    z-index: 0;
}
.od-status-bg::before,
.od-status-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}
.od-status-bg::before {
    width: 200px;
    height: 200px;
    right: -60px;
    top: -80px;
}
.od-status-bg::after {
    width: 120px;
    height: 120px;
    right: 40px;
    bottom: -60px;
}
.od-status-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}
.od-status-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.od-status-icon svg { width: 28px; height: 28px; stroke: #fff; }
.od-status-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}
.od-status-desc {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 6px;
}

.od-section {
    background: var(--bg-card);
    margin: -20px 12px 12px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.od-section:not(:first-of-type) {
    margin-top: 12px;
}
.od-sec-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
}
.od-sec-head svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary);
}

/* 收货地址 */
.od-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}
.od-addr-ic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FBF0E0, #F5DDB8);
    color: #E5AA70;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.od-addr-ic svg { width: 16px; height: 16px; }
.od-addr-body { flex: 1; min-width: 0; }
.od-addr-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.od-addr-name { font-size: 15px; font-weight: 600; color: var(--text); }
.od-addr-mobile { font-size: 13px; color: var(--text-secondary); }
.od-addr-detail { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* 物流信息 */
.od-shipping {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}
.od-ship-ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #E0E6F1, #C5D0E8);
    color: #1A237E;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.od-ship-ic svg { width: 18px; height: 18px; }
.od-ship-body { flex: 1; min-width: 0; }
.od-ship-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.od-ship-company { font-size: 15px; font-weight: 600; color: var(--text); }
.od-ship-no { font-size: 18px; font-weight: 700; color: #1A237E; letter-spacing: 0.5px; margin-bottom: 2px; font-family: 'SF Mono', 'Menlo', monospace; }
.od-ship-tip { font-size: 12px; color: #52C41A; }

/* 商品 */
.od-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}
.od-product:last-of-type { border-bottom: none; }
.od-product img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.od-pd-info { flex: 1; min-width: 0; }
.od-pd-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.od-pd-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.od-pd-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.od-pd-price::before { content: '¥'; font-size: 12px; font-weight: 600; }
.od-pd-qty { font-size: 13px; color: var(--text-light); }

/* 金额 */
.od-amounts {
    padding: 12px 16px;
    background: #FAFBFC;
    border-top: 1px dashed var(--border-light);
}
.od-am-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
}
.od-am-row.total {
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}
.od-am-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--danger);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.od-am-total::before { content: '¥'; font-size: 14px; font-weight: 600; }

/* 订单信息 */
.od-info-list { padding: 4px 0; }
.od-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 16px;
    font-size: 13px;
    gap: 12px;
}
.od-info-label { color: var(--text-light); flex-shrink: 0; }
.od-info-value {
    color: var(--text);
    text-align: right;
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}
.od-copy {
    flex-shrink: 0;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    cursor: pointer;
    line-height: 1.4;
    font-family: inherit;
}
.od-copy:active { background: var(--primary-bg); }

/* 底部操作栏 */
.od-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 56px;
    padding: 0 16px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    z-index: 100;
}
.od-btn-ghost, .od-btn-primary {
    height: 38px;
    padding: 0 20px;
    border-radius: 19px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    font-family: inherit;
    transition: all 0.2s;
}
.od-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}
.od-btn-ghost:active { background: #f5f5f5; }
.od-btn-primary {
    background: linear-gradient(135deg, var(--primary), #D4954D);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(229,170,112,0.3);
}
.od-btn-primary:active { opacity: 0.85; transform: scale(0.98); }

/* ---------- 购物车 ---------- */
.cart-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 12px;
}
.chb-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}
.chb-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    margin-left: 2px;
}
.chb-edit {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 16px;
    background: var(--bg-card);
    text-decoration: none;
    transition: all 0.2s;
}
.chb-edit:active {
    background: var(--primary-bg);
    color: var(--danger);
}
.cart-list {
    padding: 0 16px 120px;
}
.cart-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-card);
    border-radius: 14px;
    padding: 14px 12px 14px 14px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: transform 0.25s, box-shadow 0.2s;
}
.cart-card:active { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.cart-check {
    display: flex;
    align-items: center;
    padding-top: 28px;
    flex-shrink: 0;
    cursor: pointer;
}
.cart-check-input { display: none; }
.cart-check-box {
    width: 22px;
    height: 22px;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    background: #fff;
    box-sizing: border-box;
}
.cart-check-input:checked + .cart-check-box {
    background: var(--primary);
    border-color: var(--primary);
}
.cart-check-input:checked + .cart-check-box::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px,-1px);
}
.cart-img-wrap {
    width: 92px;
    height: 92px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--bg);
}
.cart-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-img-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    line-height: 16px;
}
.cart-detail {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}
.cart-pro-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}
.cart-stock-tag {
    display: inline-block;
    font-size: 11px;
    color: #FF7D00;
    background: #FFF7E6;
    padding: 1px 8px;
    border-radius: 4px;
    margin-top: 6px;
    align-self: flex-start;
}
.cart-stock-tag.out {
    color: var(--danger);
    background: #FFF1F0;
}
.cart-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}
.cart-price {
    display: flex;
    align-items: baseline;
    color: var(--danger);
}
.cp-symbol {
    font-size: 12px;
    font-weight: 600;
}
.cp-num {
    font-size: 18px;
    font-weight: 800;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.qty-stepper {
    display: flex;
    align-items: center;
    background: #F5F6F8;
    border-radius: 6px;
    overflow: hidden;
}
.qty-step {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background 0.15s;
    padding: 0;
}
.qty-step:active { background: #E8E9ED; color: var(--text); }
.qty-num {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    user-select: none;
}
.cart-del-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    transition: all 0.2s;
    opacity: 0;
}
.cart-card:hover .cart-del-btn,
.cart-card:active .cart-del-btn { opacity: 1; }
.cart-del-btn:active { background: #FFF1F0; color: var(--danger); }

/* 购物车结算栏 */
.cart-settle-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 60px;
    padding: 0 16px 0 12px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    z-index: 100;
    gap: 8px;
}
body.has-tabbar .cart-settle-bar { bottom: 56px; }
.cart-check-all-wrap { padding-top: 0 !important; gap: 6px; }
.cart-check-label {
    font-size: 13px;
    color: var(--text-secondary);
}
.cart-settle-info {
    flex: 1;
    text-align: right;
    padding-right: 4px;
}
.csi-total {
    font-size: 12px;
    color: var(--text-secondary);
}
.csi-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--danger);
    margin-left: 2px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.csi-yen {
    font-size: 13px;
    font-weight: 600;
}
.cart-settle-btn {
    height: 40px;
    padding: 0 22px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--danger), #FF6B35);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,77,79,0.3);
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.cart-settle-btn:active { opacity: 0.85; transform: scale(0.97); }
.cart-settle-btn.disabled {
    background: #D1D5DB;
    box-shadow: none;
    cursor: not-allowed;
}

/* 空购物车 */
.empty-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}
.empty-visual { margin-bottom: 20px; }
.empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.empty-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
}
.empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), #D4954D);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 22px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(229,170,112,0.3);
    transition: all 0.2s;
}
.empty-btn:active { opacity: 0.85; transform: scale(0.97); }

/* ---------- 用户中心 ---------- */
.user-header {
    position: relative;
    background: linear-gradient(135deg, #E5AA70 0%, #D4954D 40%, #E8B547 100%);
    padding: 36px 20px 44px;
    color: #fff;
    overflow: hidden;
}
.user-header-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.header-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.header-circle.c1 {
    width: 200px; height: 200px;
    top: -80px; right: -60px;
}
.header-circle.c2 {
    width: 120px; height: 120px;
    top: 40px; left: -40px;
}
.header-circle.c3 {
    width: 80px; height: 80px;
    bottom: -20px; right: 40%;
}
.user-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}
.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.9);
    outline: 2px solid rgba(232,181,71,0.45);
    outline-offset: -1px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #F8F5F2 0%, #EDE6DC 100%);
    box-shadow: 0 6px 20px rgba(212,149,77,0.35), inset 0 1px 2px rgba(255,255,255,0.6);
    position: relative;
}
.user-avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5), transparent 50%);
    pointer-events: none;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
.user-info { flex: 1; min-width: 0; }
.user-nickname { font-size: 22px; font-weight: 700; letter-spacing: 0.5px; }
.user-mobile { font-size: 13px; opacity: 0.8; margin-top: 2px; }
.user-level {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    margin-top: 6px;
}

/* 资产卡片 */
.asset-cards {
    display: flex;
    gap: 12px;
    margin: -20px 16px 0;
    position: relative;
    z-index: 2;
}
.asset-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 16px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.asset-card .asset-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.asset-card .asset-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.asset-card .asset-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* 积分中心入口 */
.pc-entry {
    display: flex;
    align-items: center;
    margin: -12px 16px 0;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(26,35,126,0.1);
    transition: transform .2s;
    position: relative;
    z-index: 2;
}
.pc-entry:active { transform: scale(0.98); }
.pc-entry-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #E5AA70, #D4954D);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}
.pc-entry-body { flex: 1; }
.pc-entry-title { font-size: 16px; font-weight: 700; color: #1A1A1A; }
.pc-entry-desc { font-size: 12px; color: #888; margin-top: 2px; }
.pc-entry-desc strong { color: #C89427; font-weight: 700; }
.pc-entry-arrow { color: #C89427; font-size: 22px; font-weight: 300; }

/* 消费层级卡片 */
.consumption-tier-card {
    background: var(--bg-card);
    margin: 16px 16px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.consumption-tier-card .ct-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 0;
}
.consumption-tier-card .ct-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.consumption-tier-card .ct-icon {
    color: var(--gold);
    display: flex;
}
.consumption-tier-card .ct-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.consumption-tier-card .ct-tier-badge {
    background: linear-gradient(135deg, #E5AA70, #D4954D);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(229,170,112,0.3);
}
.consumption-tier-card .ct-body {
    padding: 12px 18px 16px;
}
.consumption-tier-card .ct-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 12px;
}
.consumption-tier-card .ct-stat {
    flex: 1;
    text-align: center;
}
.consumption-tier-card .ct-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.consumption-tier-card .ct-stat-label {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}
.consumption-tier-card .ct-divider {
    width: 1px;
    height: 28px;
    background: var(--border-light, #E5E7EB);
}
.consumption-tier-card .ct-progress-wrap {
    margin-top: 4px;
}
.consumption-tier-card .ct-progress-bar {
    height: 6px;
    background: #F1F5F9;
    border-radius: 3px;
    overflow: hidden;
}
.consumption-tier-card .ct-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E5AA70, #D4954D);
    border-radius: 3px;
    transition: width .4s ease;
}
.consumption-tier-card .ct-progress-text {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 6px;
    text-align: center;
}

/* 等级升级进度卡片 */
.level-upgrade-card {
    background: var(--bg-card);
    margin: 16px 16px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}
.level-upgrade-card .lu-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.level-upgrade-card .lu-badge {
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    background: color-mix(in srgb, var(--lv-color) 15%, transparent);
    color: var(--lv-color);
    border: 1px solid color-mix(in srgb, var(--lv-color) 30%, transparent);
}
.level-upgrade-card .lu-badge-next {
    background: var(--lv-color);
    color: #fff;
    border-color: var(--lv-color);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--lv-color) 40%, transparent);
}
.level-upgrade-card .lu-arrow-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}
.level-upgrade-card .lu-arrow-line {
    width: 12px;
    height: 2px;
    background: linear-gradient(90deg, var(--text-muted), var(--primary));
    border-radius: 1px;
}
.level-upgrade-card .lu-arrow-icon {
    color: var(--primary);
}
.level-upgrade-card .lu-done-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-light);
    background: #F1F5F9;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}
.level-upgrade-card .lu-max-text {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    margin-left: 8px;
}
.level-upgrade-card .lu-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.level-upgrade-card .lu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.level-upgrade-card .lu-item-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.level-upgrade-card .lu-item-content {
    flex: 1;
    min-width: 0;
}
.level-upgrade-card .lu-item-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}
.level-upgrade-card .lu-item-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.level-upgrade-card .lu-item-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
}
.level-upgrade-card .lu-item-value small {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 400;
}
.level-upgrade-card .lu-item-bar {
    height: 6px;
    background: #F1F5F9;
    border-radius: 3px;
    overflow: hidden;
}
.level-upgrade-card .lu-item-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: 3px;
    transition: width .5s ease;
}
.level-upgrade-card .lu-item-done .lu-item-fill {
    background: linear-gradient(90deg, #52C41A, #73D13D);
}
.level-upgrade-card .lu-check {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(82,196,26,.4);
}

/* 订单统计 */
.order-stats {
    display: flex;
    background: var(--bg-card);
    margin: 16px 16px 0;
    border-radius: var(--radius);
    padding: 18px 0;
    box-shadow: var(--shadow-sm);
}
.order-stats a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    position: relative;
}
.order-stats a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border-light);
}
.order-stats .stat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 6px;
}
.order-stats .stat-num { font-size: 22px; font-weight: 800; color: var(--text-title); line-height: 1; }
.order-stats .stat-label { font-size: 11px; color: var(--text-light); }

/* 用户菜单 */
.user-menu {
    margin: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
    color: var(--text);
    transition: background var(--transition);
}
.menu-item:active { background: var(--bg); }
.menu-item:last-child { border-bottom: none; }
.menu-item .menu-left { display: flex; align-items: center; gap: 12px; }
.menu-item .menu-right { display: flex; align-items: center; gap: 8px; }
.menu-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.menu-icon-box svg { display: block; }
.menu-badge {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}
.menu-arrow { font-size: 14px; color: var(--text-muted); }
.menu-divider { height: 1px; background: var(--border-light); margin: 0 16px; }

/* 推荐码 */
.referral-card {
    margin: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--gold-light), #FDF6E3);
    border-radius: var(--radius);
    border: 1px solid rgba(200,148,39,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}
.referral-card .ref-left { flex: 1; min-width: 0; }
.referral-card .ref-label { font-size: 11px; color: var(--gold); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.referral-card .ref-code {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold);
    font-family: monospace;
    letter-spacing: 3px;
    margin: 4px 0;
    line-height: 1.2;
}
.referral-card .ref-tip { font-size: 11px; color: #B8963E; }
.referral-card .ref-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.referral-card .ref-actions .btn {
    font-size: 12px;
    padding: 6px 14px;
    white-space: nowrap;
}

/* 退出登录 */
.logout-wrap { padding: 16px 16px 36px; }
.logout-btn {
    border-color: #E8ECF1;
    color: var(--text-light);
    background: var(--bg-card);
    font-size: 14px;
    height: 44px;
}
.logout-btn:active { background: #FFF2F0; color: var(--danger); border-color: #FFCCC7; }

/* ---------- 个人资料页面 ---------- */
.page-profile { padding-top: 12px; }

/* ---------- 个人资料 ---------- */
.profile-card {
    background: var(--bg-card);
    margin: 0 16px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px 16px;
    text-align: center;
}
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-light);
    position: relative;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition);
}
.profile-avatar:active { transform: scale(0.95); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--transition);
}
.profile-avatar:hover .avatar-overlay,
.profile-avatar:active .avatar-overlay { opacity: 1; }
.avatar-overlay span { font-size: 11px; color: #fff; }
.avatar-loading {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.profile-name { font-size: 18px; font-weight: 600; color: var(--text); }

.form-card {
    background: var(--bg-card);
    margin: 0 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.form-card-header {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
}
.form-card .form-card-header + .form-group { margin-top: 16px; }
.form-card .form-group:last-child { margin-bottom: 20px; }
.form-card .form-input:disabled {
    background: var(--bg);
    color: var(--text-light);
    cursor: not-allowed;
}

/* ---------- 积分明细页面 ---------- */
.page-points-logs { padding-top: 12px; }
.points-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #F6FFED 0%, #ECFDF5 100%);
    margin: 0 16px 16px;
    border-radius: var(--radius);
    border: 1px solid #B7EB8F;
}
.points-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(82,196,26,0.1);
    flex-shrink: 0;
}
.points-icon svg { stroke: #52C41A; }
.points-info { flex: 1; }
.points-label { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.points-value {
    font-size: 28px;
    font-weight: 800;
    color: #52C41A;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.summary-cards {
    display: flex;
    gap: 10px;
    margin: -8px 16px 16px;
}
.summary-card {
    flex: 1;
    background: #fff;
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.summary-label { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.summary-num {
    font-size: 20px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.summary-num.in { color: var(--success); }
.summary-num.out { color: var(--danger); }

/* ---------- 余额明细页面 ---------- */
.page-balance-logs { padding-top: 12px; }
.balance-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #FBF0E0 0%, #F0F7FF 100%);
    margin: 0 16px 16px;
    border-radius: var(--radius);
    border: 1px solid #D6EBFF;
}
.balance-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(229,170,112,0.1);
    flex-shrink: 0;
}
.balance-info { flex: 1; }
.balance-label { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.balance-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- 流水列表 ---------- */
.transfer-info {
    text-align: center;
    padding: 28px 20px 26px;
    background: linear-gradient(135deg, #E5AA70 0%, #E8B547 100%);
    margin: 0 16px 20px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(229, 170, 112, 0.28);
    position: relative;
    overflow: hidden;
}
.transfer-info::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
}
.transfer-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.transfer-points {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    text-shadow: 0 2px 8px rgba(120, 70, 20, 0.18);
    line-height: 1.1;
}

.points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 16px 20px;
}
.points-cell {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 16px 14px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.points-cell::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
}
.points-cell:nth-child(1)::before { background: linear-gradient(90deg, #E5AA70, #E8B547); }
.points-cell:nth-child(2)::before { background: linear-gradient(90deg, #1A237E, #3949AB); }
.points-cell-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.points-cell-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.2;
}
.points-cell-hint {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.log-list { margin: 0 16px; }
.log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}
.log-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.log-type {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.log-type.type-in { background: #F6FFED; color: #52C41A; }
.log-type.type-out { background: #FFF2F0; color: #FF4D4F; }
.log-info { flex: 1; min-width: 0; }
.log-remark { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-time { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.log-amount {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 12px;
}
.log-amount.amount-in { color: #52C41A; }
.log-amount.amount-out { color: #FF4D4F; }

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 16px;
}
.page-info { font-size: 13px; color: var(--text-light); }

/* 表单成功提示 */
.form-success {
    margin: 0 16px 16px;
    padding: 10px 14px;
    background: #F6FFED;
    border: 1px solid #B7EB8F;
    color: #52C41A;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

/* 互转提示 */
.transfer-tip {
    margin: 24px 16px;
    padding: 16px 16px 16px 18px;
    background: #E0E6F1;
    border-radius: 14px;
    font-size: 12px;
    color: var(--text-light);
    border-left: 3px solid var(--primary);
}
.transfer-tip .tip-title { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 10px; letter-spacing: 0.5px; }
.transfer-tip ul { padding-left: 18px; }
.transfer-tip li { margin-bottom: 6px; line-height: 1.7; }
.transfer-tip li::marker { color: var(--primary); }

/* ---------- 团队 ---------- */
.team-stat {
    background: linear-gradient(135deg, #E5AA70, #E8B547);
    margin: 16px;
    padding: 24px;
    border-radius: var(--radius);
    color: #fff;
    text-align: center;
}
.team-stat .stat-num { font-size: 36px; font-weight: 800; }
.team-stat .stat-label { font-size: 13px; opacity: 0.85; margin-top: 4px; }
.team-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    margin: 0 16px 8px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.team-member .member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.team-member .member-avatar img { width: 44px; height: 44px; object-fit: cover; display: block; }
.team-member .member-info { flex: 1; min-width: 0; }
.team-member .member-name { font-size: 14px; font-weight: 600; color: var(--text); }
.team-member .member-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.team-member .member-level {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* ---------- 地址 ---------- */
.address-card {
    background: var(--bg-card);
    margin: 12px 16px;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1.5px solid transparent;
    transition: border-color var(--transition);
}
.address-card.selected { border-color: var(--primary); background: var(--primary-bg); }
.address-card .addr-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.address-card .addr-name { font-size: 15px; font-weight: 600; color: var(--text); }
.address-card .addr-mobile { font-size: 13px; color: var(--text-secondary); }
.address-card .addr-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: auto;
}
.address-card .addr-detail { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.address-card .addr-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}
.address-card .addr-actions a { font-size: 13px; color: var(--primary); font-weight: 500; }

/* ---------- 结算页 ---------- */
.checkout-section {
    background: var(--bg-card);
    margin: 12px 16px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.checkout-section .section-title {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
}
.checkout-product {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}
.checkout-product:last-child { border-bottom: none; }
.checkout-product img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.checkout-product .cp-info { flex: 1; min-width: 0; }
.checkout-product .cp-name { font-size: 13px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.checkout-product .cp-price { font-size: 15px; font-weight: 700; color: var(--danger); margin-top: 4px; }
.checkout-product .cp-price::before { content: '¥'; font-size: 11px; }
.checkout-product .cp-qty { font-size: 12px; color: var(--text-light); }

/* 结算页收货地址 */
.co-address {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}
.co-address-empty { color: var(--text-light); }
.co-addr-ic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FBF0E0, #F5DDB8);
    color: #E5AA70;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.co-addr-ic svg { width: 18px; height: 18px; }
.co-addr-body { flex: 1; min-width: 0; }
.co-addr-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.co-addr-name { font-size: 15px; font-weight: 600; color: var(--text); }
.co-addr-mobile { font-size: 13px; color: var(--text-secondary); }
.co-addr-detail {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.co-addr-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}
.co-addr-arrow svg { width: 18px; height: 18px; }

/* 地址选择弹层 */
.addr-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
}
.addr-mask.show { display: block; }
.addr-popup {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 201;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s 0.3s;
    visibility: hidden;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.addr-popup.show {
    transform: translateX(-50%) translateY(0);
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s 0s;
}
.addr-popup-title {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    flex-shrink: 0;
}
.addr-popup-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
}
.addr-popup-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}
.addr-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.addr-option:active { background: #f5f5f5; }
.addr-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}
.addr-radio span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    transform: scale(0);
    transition: transform 0.2s;
}
.addr-option.selected .addr-radio { border-color: var(--primary); }
.addr-option.selected .addr-radio span { transform: scale(1); }
.addr-opt-body { flex: 1; min-width: 0; }
.addr-opt-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.addr-opt-name { font-size: 15px; font-weight: 600; color: var(--text); }
.addr-opt-mobile { font-size: 13px; color: var(--text-secondary); }
.addr-opt-detail { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.addr-popup-add {
    display: block;
    text-align: center;
    padding: 14px 16px;
    margin: 8px 16px 12px;
    border: 1.5px dashed var(--primary);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    flex-shrink: 0;
}
.addr-popup-add:active { background: var(--primary-bg); }

/* ---------- 支付弹层 ---------- */
.pay-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
}
.pay-mask.show { display: block; }
.pay-popup {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    background: #F7F8FA;
    border-radius: 16px 16px 0 0;
    z-index: 201;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s 0.3s;
    visibility: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.pay-popup.show {
    transform: translateX(-50%) translateY(0);
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s 0s;
}
.pay-popup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    background: #fff;
    border-radius: 16px 16px 0 0;
}
.pay-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}
.pay-popup-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
}
.pay-popup-amount {
    text-align: center;
    padding: 20px 16px 24px;
    background: #fff;
    border-bottom: 8px solid #F7F8FA;
}
.pay-amount-label {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}
.pay-amount-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--danger);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.pay-amount-value::before {
    content: '¥';
    font-size: 18px;
    font-weight: 600;
    margin-right: 2px;
}

/* 积分抵扣区域 */
.pay-points-section {
    background: var(--primary-bg);
    border-bottom: 8px solid #F7F8FA;
}
.pay-points-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}
.pay-points-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.pay-points-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pay-points-icon svg { width: 20px; height: 20px; }
.pay-points-text { flex: 1; min-width: 0; }
.pay-points-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-title);
}
.pay-points-desc {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
    line-height: 1.4;
}
/* 开关 */
.pay-switch {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #D8D8D8;
    position: relative;
    cursor: pointer;
    transition: background 0.25s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.pay-switch span {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.25s;
}
.pay-switch.on {
    background: var(--primary);
}
.pay-switch.on span {
    transform: translateX(20px);
}
.pay-switch.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/* 积分抵扣明细 */
.pay-points-detail {
    padding: 0 16px 12px;
    display: block;
}
.ppd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.ppd-points {
    color: var(--success);
    font-weight: 600;
}
.ppd-online {
    color: var(--danger);
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.pay-methods {
    background: #fff;
    padding: 4px 0;
}
.pay-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.pay-method:active { background: #f5f5f5; }
.pay-method + .pay-method { border-top: 1px solid var(--border-light); }
.pm-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pm-icon svg { width: 22px; height: 22px; }
.pm-wechat {
    background: #07C160;
    color: #fff;
}
.pm-balance {
    background: linear-gradient(135deg, #FF7D00, #FF9A2E);
    color: #fff;
}
.pm-body { flex: 1; min-width: 0; }
.pm-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}
.pm-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}
.pm-radio {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}
.pm-radio span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    transform: scale(0);
    transition: transform 0.2s;
}
.pay-method.selected .pm-radio { border-color: var(--primary); }
.pay-method.selected .pm-radio span { transform: scale(1); }
.pay-confirm-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 20px 16px;
    height: 48px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary), #D4954D);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(229,170,112,0.35);
    font-family: inherit;
    transition: all 0.2s;
}
.pay-confirm-btn:active { opacity: 0.85; transform: scale(0.98); }
.pay-confirm-btn.disabled {
    background: #D1D5DB;
    box-shadow: none;
    cursor: not-allowed;
}
.pay-confirm-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ---------- 空状态 ---------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-light);
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.6; }
.empty-state .empty-text { font-size: 15px; color: var(--text-light); margin-bottom: 4px; }
.empty-state .empty-sub { font-size: 12px; color: var(--text-muted); }
.empty-state .btn { margin-top: 20px; }

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.pagination a:active { background: var(--bg); }
.pagination a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.78);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    pointer-events: none;
    animation: toastIn 0.3s ease;
    text-align: center;
    max-width: 80%;
    backdrop-filter: blur(8px);
}
@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ---------- 加载动画 ---------- */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}
.loading::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 骨架屏 ---------- */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { padding: 12px 16px; display: flex; gap: 12px; }
.skeleton-img { width: 88px; height: 88px; flex-shrink: 0; }
.skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 14px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.xshort { width: 40%; }

/* ---------- 登录页 ---------- */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(160deg, #FDF8F0 0%, #F8F5F2 40%, #F0EBE3 100%);
    position: relative;
    overflow: hidden;
}
/* 装饰性背景光斑 */
.login-page::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(229,170,112,0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.login-page::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(26,35,126,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.login-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #E5AA70 0%, #D4954D 100%);
    box-shadow: 0 8px 24px rgba(229,170,112,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.login-brand {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}
.login-sub {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}
.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px 28px 28px;
    box-shadow: 0 12px 40px rgba(120,80,40,0.1), 0 2px 8px rgba(120,80,40,0.04);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.6);
}
.login-card .form-group { padding: 0; margin-bottom: 18px; }
.login-card .form-group:last-of-type { margin-bottom: 0; }
.login-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.login-card .form-input {
    height: 48px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: #FAFAF8;
    font-size: 15px;
    transition: all var(--transition);
    padding: 0 14px;
}
.login-card .form-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(229,170,112,0.1);
}
.login-card .btn-primary {
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #E5AA70 0%, #D4954D 100%);
    box-shadow: 0 4px 14px rgba(229,170,112,0.35);
    border: none;
    transition: all var(--transition);
}
.login-card .btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(229,170,112,0.3);
}
.login-card .btn-primary[disabled] {
    opacity: 0.65;
    box-shadow: none;
}

/* 微信登录按钮 */
.login-card .wx-login-btn {
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    background: #07C160;
    border: none;
    box-shadow: 0 4px 14px rgba(7,193,96,0.25);
    transition: all var(--transition);
}
.login-card .wx-login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(7,193,96,0.2);
}

/* 登录页分隔线 */
.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 12px;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.login-divider span {
    padding: 0 14px;
    white-space: nowrap;
}

/* 协议勾选 */
.login-agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 20px;
    max-width: 380px;
    line-height: 1.6;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 1;
}
.login-agreement input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 登录页底部注册链接 */
.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}
.login-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* 错误提示 */
.login-error {
    background: var(--danger-light);
    border: 1px solid #FFCCC7;
    color: var(--danger);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 380px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.login-error::before {
    content: '⚠';
    flex-shrink: 0;
}

/* ---------- 注册页 ---------- */
.register-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(180deg, #FBF0E0 0%, #F5F6FA 50%);
}
.register-card {
    width: 100%;
    max-width: 360px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.register-icon { font-size: 48px; margin-bottom: 8px; }
.register-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.register-card > p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.register-tip {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 16px;
    text-align: left;
}
.register-tip .tip-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.register-tip .tip-text { font-size: 12px; color: var(--text-light); line-height: 1.6; }

/* 推荐人信息 */
.ref-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--gold-light), #FDF6E3);
    border-radius: var(--radius);
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid rgba(200,148,39,0.15);
}
.ref-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(200,148,39,0.15);
}
.ref-avatar img { width: 44px; height: 44px; object-fit: cover; display: block; }
.ref-text { flex: 1; min-width: 0; }
.ref-name { font-size: 14px; font-weight: 600; color: var(--text); }
.ref-code { font-size: 12px; color: var(--gold); margin-top: 2px; font-family: monospace; }

/* 错误提示 */
.form-error {
    background: var(--danger-light);
    border: 1px solid #FFCCC7;
    color: var(--danger);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin: 0 16px 16px;
    font-size: 13px;
    text-align: left;
}

/* 注册页底部 */
.register-footer {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
}
.register-footer a {
    color: var(--primary);
    font-weight: 500;
}

.register-card .form-group { padding: 0; text-align: left; }
.register-card .btn { font-size: 15px; height: 44px; }

/* ---------- 响应式 ---------- */
.section-header {
    display: flex;
    align-items: center;
    padding: 16px 16px 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
}
.section-header::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--navy);
    border-radius: 2px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ---------- 分类筛选横滚 ---------- */
.category-filter {
    display: flex;
    overflow-x: auto;
    padding: 10px 16px;
    gap: 8px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-filter::-webkit-scrollbar { display: none; }
.category-filter .filter-chip {
    flex-shrink: 0;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all var(--transition);
    cursor: pointer;
}
.category-filter .filter-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

/* ---------- 排序Tab ---------- */
.sort-tabs {
    display: flex;
    padding: 0 16px 10px;
    gap: 16px;
    font-size: 13px;
}
.sort-tabs a {
    color: var(--text-secondary);
    font-weight: 400;
    transition: color var(--transition);
}
.sort-tabs a.active {
    color: var(--primary);
    font-weight: 600;
}

/* ---------- 购物车工具栏（旧，已替换） ---------- */

/* ---------- 库存信息 ---------- */
.stock-info { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.stock-info.out { color: var(--danger); }

/* ---------- 响应式 ---------- */
@media (min-width: 481px) {
    .h5-container {
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
        box-shadow: 0 0 40px rgba(0,0,0,0.05);
    }
}

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

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1A1A2E;
        --bg-card: #242438;
        --text: #E8E8F0;
        --text-secondary: #A0A0B8;
        --text-light: #6B6B80;
        --text-muted: #555568;
        --border: #333350;
        --border-light: #2A2A42;
        --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
        --shadow: 0 2px 8px rgba(0,0,0,0.3);
        --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
        --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    }
    .h5-topbar { background: rgba(36,36,56,0.9); }
    .h5-topbar.topbar-main { background: #242438; }
    .h5-tabbar, .bottom-bar, .cart-footer, .cart-settle-bar { background: rgba(36,36,56,0.95); border-top-color: #333350; }
    .detail-bar, .sku-popup { background: #242438; }
    .db-icon { color: #A0A0B8; }
    .db-icon svg { stroke: #A0A0B8; }
    .sku-top { border-bottom-color: #333350; }
    .sku-close { color: #A0A0B8; }
    .detail-panel { background: #242438; }
    .panel-item { border-bottom-color: #333350; }
    .chb-edit { background: #242438; }
    .chb-edit:active { background: #333350; }
    .cart-card { background: #242438; box-shadow: none; }
    .cart-check-box { background: #1A1A2E; border-color: #4A4A6A; }
    .cart-img-wrap { background: #1A1A2E; }
    .qty-stepper { background: #1A1A2E; }
    .qty-step:active { background: #333350; }
    .cart-stock-tag { background: #3A2F1A; color: #FFAB40; }
    .cart-stock-tag.out { background: #3A1F1F; color: #FF6B6B; }
    .cart-settle-btn.disabled { background: #3F3F5C; box-shadow: none; }
    .empty-visual circle { fill: #2A2A3E; }
    .empty-visual path:first-of-type { fill: #1A1A2E; }
    .sku-qty .qty-btn { background: #333350; color: #E8E8F0; }
    .sku-qty .qty-input { background: #242438; color: #E8E8F0; border-color: #333350; }
    .co-addr-ic { background: rgba(229,170,112,0.15); }
    .addr-popup { background: #242438; }
    .addr-popup-title { border-bottom-color: #333350; }
    .addr-popup-close { color: #A0A0B8; }
    .addr-popup-add { border-color: var(--primary); }
    .addr-option:active { background: #333350; }
    .pay-popup { background: #1A1A2E; }
    .pay-popup-header { background: #242438; }
    .pay-popup-close { color: #A0A0B8; }
    .pay-popup-amount { background: #242438; border-bottom-color: #1A1A2E; }
    .pay-methods { background: #242438; }
    .pay-method + .pay-method { border-top-color: #333350; }
    .pay-method:active { background: #333350; }
    .pay-confirm-btn.disabled { background: #3F3F5C; }
    .search-bar form { background: #2A2A42; }
    .search-bar input { color: #E8E8F0; }
    .skeleton { background: linear-gradient(90deg, #2A2A42 25%, #333350 50%, #2A2A42 75%); background-size: 200% 100%; }
    .product-detail .detail-info { background: #242438; }
    .product-detail .detail-price-row { background: linear-gradient(135deg, #3A2020, #2A1A1A); }
    .order-tabs a { color: #A0A0B8; }
    .order-info-card { background: #242438; }
    .od-section { background: #242438; box-shadow: none; }
    .od-sec-head { border-bottom-color: #333350; }
    .od-addr-ic { background: rgba(229,170,112,0.15); }
    .od-product { border-bottom-color: #333350; }
    .od-amounts { background: #1F1F35; border-top-color: #333350; }
    .od-am-row.total { border-top-color: #333350; }
    .od-copy { border-color: var(--primary); }
    .od-btn-ghost { color: #A0A0B8; border-color: #333350; }
    .od-btn-ghost:active { background: #333350; }
    .od-bottom-bar { background: rgba(36,36,56,0.97); border-top-color: #333350; }
    .login-page { background: linear-gradient(180deg, #1A2A3A 0%, #1A1A2E 50%); }
    .register-page { background: linear-gradient(180deg, #1A2A3A 0%, #1A1A2E 50%); }
    .referral-card { background: linear-gradient(135deg, #2A2218, #1E1A10); border-color: rgba(200,148,39,0.3); }
    .referral-card .ref-code { color: var(--gold); }
    .referral-card .ref-label { color: #D4A745; }
    .referral-card .ref-tip { color: #A08030; }
}

/* ============================================
   首页 - 轻奢雅致风专属样式
   ============================================ */

/* 顶部品牌区 */
.home-brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 8px;
    background: linear-gradient(180deg, #FBF0E0 0%, #F8F5F2 100%);
}
.brand-left { display: flex; align-items: center; gap: 10px; }
.brand-logo {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-light, #E8C158) 0%, var(--gold, #C89427) 60%, #B87A1F 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(200,148,39,0.32), inset 0 1px 0 rgba(255,255,255,0.4);
}
.brand-logo svg { width: 22px; height: 22px; }
.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: 1px;
}
.brand-right { display: flex; align-items: center; gap: 8px; }
.brand-icon-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    color: #1A237E;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(26,35,126,0.12);
    -webkit-tap-highlight-color: transparent;
    transition: all .2s;
}
.brand-icon-btn:active { transform: scale(0.92); }
.brand-icon-btn svg { width: 18px; height: 18px; }

/* 搜索栏（首页增强） */
.page-index .search-bar {
    margin: 0 12px 12px;
    background: #fff;
    border: 1px solid #F0E0C8;
    box-shadow: 0 2px 8px rgba(200,148,39,0.06);
}
.page-index .search-bar form { border-color: #E5AA70; align-items: center; }
.page-index .search-bar .search-icon {
    width: 16px; height: 16px;
    color: #C89427;
    margin-left: 14px;
    margin-right: 6px;
    flex-shrink: 0;
    align-self: center;
}
.page-index .search-bar input { flex: 1; padding-left: 4px; }
.page-index .search-bar button {
    background: linear-gradient(135deg, #E5AA70, #D4954D);
    border: none;
    color: #fff;
    font-weight: 600;
}

/* 公告跑马灯 */
.home-notice {
    display: flex;
    align-items: center;
    margin: 0 12px 12px;
    padding: 10px 12px;
    background: linear-gradient(90deg, #FBF6E8 0%, #FDF8F0 100%);
    border: 1px solid #F0E0C8;
    border-radius: 12px;
    overflow: hidden;
    gap: 10px;
}
.notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #C89427, #B87A1F);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.notice-badge svg { width: 12px; height: 12px; }
.notice-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-track {
    display: inline-block;
    padding-left: 100%;
    font-size: 13px;
    color: #6B4F1A;
    animation: home-marquee 22s linear infinite;
    font-weight: 500;
}
@keyframes home-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* 会员权益卡 */
.home-vip-card {
    position: relative;
    margin: 0 12px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #E5AA70 0%, #D4954D 60%, #B87A3A 100%);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(229,170,112,0.28);
}
.home-vip-card.guest {
    background: linear-gradient(135deg, #F5E0C3 0%, #E8C158 100%);
}
.vip-bg-deco {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.28) 0%, transparent 70%);
    pointer-events: none;
}
.vip-main {
    position: relative;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.vip-user { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.vip-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.5);
    flex-shrink: 0;
}
.vip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vip-avatar.guest-avatar { background: rgba(200,148,39,0.25); }
.vip-avatar.guest-avatar svg { width: 24px; height: 24px; }
.vip-info { min-width: 0; flex: 1; }
.vip-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.home-vip-card.guest .vip-name { color: #5A4218; }
.vip-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.vip-tag-level, .vip-tag-tier {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,0.25);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
}
.home-vip-card.guest .vip-tag-tier {
    background: rgba(200,148,39,0.2);
    color: #5A4218;
    border-color: rgba(200,148,39,0.3);
}
.vip-points {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
    text-decoration: none;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.vp-item { text-align: center; }
.vp-num {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.vp-label {
    font-size: 10px;
    color: rgba(255,255,255,0.85);
    margin-top: 2px;
}
.vp-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.4);
}
.vp-arrow { color: #fff; display: flex; }
.vp-arrow svg { width: 14px; height: 14px; }
.vip-login-btn {
    padding: 8px 16px;
    background: #fff;
    color: #C89427;
    font-size: 13px;
    font-weight: 700;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

/* 快捷功能金刚位 */
.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
    padding: 4px 12px 18px;
}
.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s;
}
.quick-item:active { transform: scale(0.92); }
.quick-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.quick-icon svg { width: 22px; height: 22px; }
.quick-label {
    font-size: 11.5px;
    color: #2C2C2C;
    font-weight: 500;
}

/* 首页通用区块 */
.home-section {
    margin: 0 12px 18px;
}
.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 2px;
}
.home-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    gap: 6px;
}
.title-accent {
    color: #E5AA70;
    font-size: 15px;
}
.home-section-more {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* 分类导航（首页增强） */
.page-index .category-nav {
    background: linear-gradient(135deg, #FBF6E8 0%, #FDF8F0 100%);
    border: 1px solid #F0E0C8;
    border-radius: 14px;
    padding: 14px 8px;
    margin: 0;
}
.page-index .category-nav .cat-icon {
    background: #fff;
    box-shadow: 0 2px 6px rgba(200,148,39,0.12);
    border: 1px solid #F0E0C8;
}

/* 限时秒杀区 */
.flash-section .flash-head {
    background: linear-gradient(135deg, #FFF1E6 0%, #FFE0C2 100%);
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #FFD591;
}
.flash-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #D46B08;
}
.flash-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(250,140,22,0.4));
}
.flash-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #C85A1F;
}
.ft-label { font-weight: 600; margin-right: 4px; }
.ft-num {
    background: #D46B08;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    font-size: 12px;
    font-family: monospace;
}
.ft-colon { color: #D46B08; font-weight: 700; }
.flash-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.flash-list::-webkit-scrollbar { display: none; }
.flash-card {
    flex-shrink: 0;
    width: 110px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s;
}
.flash-card:active { transform: scale(0.96); }
.flash-cover {
    position: relative;
    width: 110px;
    height: 110px;
    background: #f5f5f5;
}
.flash-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flash-save {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #C89427, #B87A1F);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(200,148,39,0.4);
}
.flash-name {
    font-size: 12px;
    color: #2C2C2C;
    padding: 6px 8px 2px;
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.flash-price {
    padding: 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fp-now {
    font-size: 15px;
    font-weight: 700;
    color: #FA541C;
}
.fp-old {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

/* 新品上架区 */
.new-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.new-list::-webkit-scrollbar { display: none; }
.new-card {
    flex-shrink: 0;
    width: 130px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s;
}
.new-card:active { transform: scale(0.96); }
.new-cover {
    position: relative;
    width: 130px;
    height: 130px;
    background: #f5f5f5;
}
.new-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.new-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #C89427, #B87A1F);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(200,148,39,0.4);
}
.new-info { padding: 8px; }
.new-name {
    font-size: 12.5px;
    color: #2C2C2C;
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
}
.new-price {
    font-size: 15px;
    font-weight: 700;
    color: #E5AA70;
    margin-bottom: 2px;
}
.new-sales {
    font-size: 10.5px;
    color: #999;
}

/* 热门推荐（继承现有 .product-grid 样式） */
.page-index .product-grid {
    margin: 0;
}

/* 平台数据 */
.home-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0 12px 16px;
    padding: 16px 12px;
    background: linear-gradient(135deg, #1A237E 0%, #2A358F 100%);
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26,35,126,0.2);
}
.hs-item { text-align: center; flex: 1; }
.hs-num {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.hs-label {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
    letter-spacing: 0.5px;
}
.hs-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.2);
}

/* 品牌保障 */
.home-guarantees {
    display: flex;
    justify-content: space-around;
    margin: 0 12px 16px;
    padding: 14px 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.g_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.g_icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
}
.g_icon svg { width: 24px; height: 24px; }
.g_text {
    font-size: 11px;
    color: #2C2C2C;
    font-weight: 500;
}

/* 关于我们入口 */
.home-about-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 12px 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #FBF6E8 0%, #F5E9C8 100%);
    border: 1px solid #F0E0C8;
    border-radius: 12px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s;
}
.home-about-entry:active { transform: scale(0.98); }
.about-left { display: flex; align-items: center; gap: 12px; }
.about-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #C89427, #B87A1F);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(200,148,39,0.3);
}
.about-icon svg { width: 18px; height: 18px; }
.about-title {
    font-size: 14px;
    font-weight: 700;
    color: #5A4218;
    margin-bottom: 2px;
}
.about-sub {
    font-size: 11px;
    color: #8B6A1F;
}
.about-arrow { color: #C89427; display: flex; }
.about-arrow svg { width: 16px; height: 16px; }

/* 首页底部 */
.home-footer {
    text-align: center;
    padding: 24px 16px 32px;
    color: #999;
}
.hf-brand {
    font-size: 13px;
    color: #C89427;
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: 1px;
}
.hf-copy {
    font-size: 11px;
    color: #BFBFBF;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .home-brand-bar { background: linear-gradient(180deg, #2A2218 0%, #1A1A2E 100%); }
    .brand-name { color: #E8E8F0; }
    .brand-icon-btn { background: rgba(36,36,56,0.7); color: #E5AA70; border-color: rgba(229,170,112,0.2); }
    .page-index .search-bar { background: #242438; border-color: #333350; }
    .home-notice { background: linear-gradient(90deg, #2A2218 0%, #1F1A10 100%); border-color: #333350; }
    .marquee-track { color: #D4A745; }
    .home-section-title { color: #E8E8F0; }
    .quick-label { color: #E8E8F0; }
    .page-index .category-nav { background: linear-gradient(135deg, #2A2218 0%, #1F1A10 100%); border-color: #333350; }
    .page-index .category-nav .cat-icon { background: #242438; border-color: #333350; }
    .flash-card, .new-card { background: #242438; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
    .flash-name, .new-name { color: #E8E8F0; }
    .new-sales, .flash-name { color: #A0A0B8; }
    .home-guarantees { background: #242438; box-shadow: none; }
    .g_text { color: #E8E8F0; }
    .home-about-entry { background: linear-gradient(135deg, #2A2218 0%, #1F1A10 100%); border-color: #333350; }
    .about-title { color: #D4A745; }
    .about-sub { color: #A08030; }
    .home-footer { color: #6B6B80; }
    .hf-copy { color: #555568; }
}

/* prefers-reduced-motion 适配（关闭跑马灯动画） */
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; padding-left: 0; }
}

/* ---------- 未关注公众号引导弹窗 ---------- */
.wx-subscribe-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    animation: wxFadeIn .25s ease;
}
@keyframes wxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.wx-subscribe-dialog {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 24px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    position: relative;
    animation: wxSlideUp .3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
@keyframes wxSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.wx-subscribe-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: all .2s;
}
.wx-subscribe-close:active {
    background: #f0f0f0;
    color: #666;
}
.wx-subscribe-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #07C160, #06AD56);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(7,193,96,0.3);
}
.wx-subscribe-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 6px;
}
.wx-subscribe-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
}
.wx-subscribe-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    background: #fff;
}
.wx-subscribe-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.wx-subscribe-tip {
    font-size: 12px;
    color: #07C160;
    font-weight: 500;
    margin-bottom: 20px;
}
.wx-subscribe-later {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 21px;
    background: #F5F5F5;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}
.wx-subscribe-later:active {
    background: #eee;
}