/**
 * 分类淘 Web 前端全局样式
 * 扁平化设计，主流电商风格
 *
 * User: TianMing
 * Date: 2026/06/03
 */

/* ── 重置 & 基础 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f7f7f7;
    color: #1a1a1a;
    line-height: 1.5;
    padding-bottom: 60px;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* ── 配色变量 ── */
:root {
    --primary: #FF2442;
    --primary-dark: #E0102E;
    --primary-light: #FF6B81;
    --primary-gradient: linear-gradient(135deg, #FF2442 0%, #FF6B35 100%);
    --primary-bg: rgba(255, 36, 66, 0.06);
    --secondary: #FF6B35;
    --gold: #FFB300;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    --bg: #f7f7f7;
    --card-bg: #fff;
    --text: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --text-white: #fff;
    --border: #f0f0f0;
    --divider: #eee;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.04);
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 顶部导航 ── */
.web-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: 56px;
}
.web-header-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
    padding: 0 16px;
}
.web-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    white-space: nowrap;
    color: var(--primary);
}
.web-logo-icon { font-size: 26px; }
.web-logo-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.web-header-search {
    flex: 1;
    max-width: 480px;
    height: 36px;
    background: #f5f5f5;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.web-header-search .search-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.web-header-search:hover {
    background: #eee;
    border-color: #ddd;
}
.web-header-user {
    display: flex;
    align-items: center;
}
.web-login-btn {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    background: var(--primary-bg);
    border-radius: 20px;
    transition: var(--transition);
}
.web-login-btn:hover {
    background: rgba(255, 36, 66, 0.12);
}
.web-user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

/* ── 主内容区 ── */
.web-main {
    max-width: 1080px;
    margin: 56px auto 0;
    padding: 12px 16px;
}

/* ── 底部导航（移动端） ── */
.web-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(0,0,0,0.06);
}
.web-tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}
.web-tabbar-item.active {
    color: var(--primary);
    font-weight: 600;
}
.tab-icon {
    font-size: 20px;
    font-weight: 600;
}
.tab-icon svg,
svg.tab-icon {
    width: 22px;
    height: 22px;
}
/* 手机端去掉底部tab选中红线 */

/* ── 底部 Footer ── */
.web-footer {
    background: #1a1a1a;
    color: #888;
    padding: 32px 20px;
    margin-top: 48px;
}
.web-footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}
.web-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
}
.web-footer-links a {
    color: #888;
    font-size: 13px;
    transition: var(--transition);
}
.web-footer-links a:hover { color: #fff; }
.web-footer-copyright {
    font-size: 12px;
    color: #555;
}

/* ── 卡片 ── */
.web-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.web-card-title {
    padding: 16px 16px 12px;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
}
.web-card-title .more-link {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
}

/* ── Banner 轮播 ── */
.web-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    line-height: 0;
}
.web-banner-track {
    position: relative;
}
.web-banner-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.web-banner-slide.active {
    display: block;
    opacity: 1;
}
.web-banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.web-banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}
.web-banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}
.web-banner-dot.active {
    width: 18px;
    background: #fff;
}

/* ── 提现播报跑马灯 ── */
.web-broadcast {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}
.web-broadcast-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.web-broadcast-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.web-broadcast-content {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: broadcast-scroll 8s linear infinite;
}
.web-broadcast-item {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}
.web-broadcast-item .web-broadcast-money {
    color: var(--primary);
    font-weight: 600;
}
@keyframes broadcast-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* 鼠标悬停暂停滚动 */
.web-broadcast:hover .web-broadcast-content {
    animation-play-state: paused;
}

/* ── 热门搜索 ── */
.web-hot-search {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}
.web-hot-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.web-hot-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 14px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition);
}
.web-hot-tag:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* ── 分类入口图标 ── */
.web-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px 4px;
    padding: 16px 12px;
}
.web-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 4px;
    border-radius: var(--radius);
}
.web-category-item:hover { transform: translateY(-2px); }
.web-category-item:active { transform: scale(0.95); }
.web-category-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: var(--transition);
}
.web-category-icon svg {
    width: 28px;
    height: 28px;
}
.web-category-name {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

/* ── 商品卡片 ── */
.web-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 0 12px 12px;
}
.web-product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.03);
}
.web-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.web-product-card:active {
    transform: scale(0.98);
}
.web-product-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f8f8f8;
}
.web-product-info {
    padding: 10px 12px 12px;
}
.web-product-title {
    font-size: 13px;
    color: var(--text);
    line-height: 1.45;
    height: 2.9em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
    font-weight: 500;
}
.web-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}
.web-product-price {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.web-product-price::before {
    content: '¥';
    font-size: 12px;
    font-weight: 600;
}
.web-product-original-price {
    color: #ccc;
    font-size: 12px;
    text-decoration: line-through;
}
.web-product-rebate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #FFF5F5, #FFECEC);
    color: var(--primary);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.web-product-coupon {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 4px;
    font-weight: 600;
}
.web-product-sales {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ── 提现公告 ── */
.web-notice {
    background: linear-gradient(135deg, #FFF8E1, #FFF3CD);
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #E65100;
    overflow: hidden;
    border: 1px solid rgba(230, 81, 0, 0.08);
}
.web-notice-icon { font-size: 16px; }
.web-notice-list {
    flex: 1;
    overflow: hidden;
    height: 20px;
}
.web-notice-item {
    height: 20px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── 搜索页 ── */
.web-search-bar {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}
.web-search-wrap {
    flex: 1;
    position: relative;
}
.web-search-input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0 36px 0 16px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: #f8f8f8;
}
.web-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #ccc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.web-search-clear:hover {
    background: #999;
}
.web-search-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
}
.web-search-btn {
    height: 40px;
    padding: 0 24px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.web-search-btn:hover { opacity: 0.9; transform: scale(1.02); }
.web-search-btn:active { transform: scale(0.98); }
.web-search-tabs {
    background: #fff;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    display: flex;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
}
.web-search-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    font-weight: 500;
}
.web-search-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
    background: var(--primary-bg);
}

/* 排序按钮 */
.sort-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.sort-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}
.sort-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ── 登录页 ── */
.web-auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.web-auth-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}
.web-auth-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text);
}
.web-auth-subtitle {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 32px;
}
.web-auth-btn {
    width: 100%;
    height: 50px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}
.web-auth-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.web-auth-btn:active { transform: scale(0.98); }
.web-auth-btn-taobao {
    background: linear-gradient(135deg, #FF6B35 0%, #FF4444 100%);
}
.web-auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 13px;
}
.web-auth-divider::before,
.web-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--divider);
}

/* ── 分类页 ── */
.web-category-page {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-height: 60vh;
    border: 1px solid rgba(0,0,0,0.04);
}
.web-category-sidebar {
    width: 100px;
    background: #f8f8f8;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: calc(100vh - 56px - 60px);
    overflow-y: auto;
}
.web-category-sidebar::-webkit-scrollbar { width: 0; }
.web-category-sidebar-item {
    padding: 14px 8px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: var(--transition);
    font-weight: 500;
}
.web-category-sidebar-item.active {
    background: #fff;
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}
.web-category-content {
    flex: 1;
    padding: 16px;
}

/* ── 用户中心 ── */
.web-user-header {
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.web-user-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.web-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
}
.web-user-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.4);
}
.web-user-name {
    font-size: 18px;
    font-weight: 700;
}
.web-user-vip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gold-gradient);
    color: #5D4037;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    margin-top: 4px;
}
.web-user-stats {
    display: flex;
    gap: 0;
    position: relative;
}
.web-user-stat {
    flex: 1;
    text-align: center;
    padding: 8px 0;
}
.web-user-stat-value {
    font-size: 22px;
    font-weight: 700;
}
.web-user-stat-label {
    font-size: 12px;
    opacity: 0.8;
}
.web-user-menu {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}
.web-user-menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.web-user-menu-item:last-child { border-bottom: none; }
.web-user-menu-item:hover { background: #fafafa; }
.web-user-menu-item:active { background: #f5f5f5; }
.web-user-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
}
.web-user-menu-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}
.web-user-menu-arrow {
    color: #ccc;
    font-size: 14px;
}

/* ── 空状态 ── */
.web-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.web-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.web-empty-text {
    font-size: 14px;
}

/* ── 加载状态 ── */
.web-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.web-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast 轻提示 ── */
.web-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    max-width: 80vw;
    text-align: center;
}
.web-toast.show { opacity: 1; }

/* ── 返回按钮 ── */
.web-back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 8px;
    margin-left: -8px;
}
.web-back-btn:hover { background: rgba(0,0,0,0.04); }

/* ── 商品详情页 ── */
.web-detail-img-wrap {
    width: 100%;
    background: #fff;
    margin-bottom: 12px;
}
.web-detail-img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.web-detail-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.web-detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}
.web-detail-price {
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}
.web-detail-price::before {
    content: '¥';
    font-size: 16px;
    font-weight: 600;
}
.web-detail-original-price {
    color: #ccc;
    font-size: 14px;
    text-decoration: line-through;
}
.web-detail-title {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 500;
}
.web-detail-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}
.web-detail-rebate-box {
    background: linear-gradient(135deg, #FFF5F5, #FFECEC);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.web-detail-rebate-label {
    font-size: 13px;
    color: var(--text-secondary);
}
.web-detail-rebate-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.web-detail-rebate-value::before {
    content: '¥';
    font-size: 14px;
}
.web-detail-coupon-box {
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    background: var(--primary-bg);
}
.web-detail-coupon-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}
.web-detail-coupon-amount::before {
    content: '¥';
    font-size: 18px;
}
.web-detail-coupon-text {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}
.web-detail-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.web-detail-desc li {
    padding: 2px 0;
}
.web-detail-bottom {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0,0,0,0.06);
    z-index: 50;
    display: flex;
    gap: 12px;
    max-width: 1080px;
    margin: 0 auto;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.web-detail-buy-btn {
    flex: 1;
    height: 50px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}
.web-detail-buy-btn:hover { opacity: 0.9; }
.web-detail-buy-btn:active { transform: scale(0.98); }
.web-detail-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
@media (min-width: 769px) {
    .web-detail-bottom {
        bottom: 0;
        padding: 16px 24px;
        border-radius: var(--radius) var(--radius) 0 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    }
    .web-detail-buy-btn {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ── 购买引导弹窗 ── */
.web-buy-modal-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.web-buy-modal {
    background: #fff;
    border-radius: 16px;
    width: 320px;
    max-width: 90vw;
    padding: 28px 24px 20px;
    text-align: center;
    animation: slideUp 0.25s ease;
}
.web-buy-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.web-buy-modal-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}
.web-buy-modal-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}
.web-buy-modal-tpwd {
    background: #f5f5f5;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    word-break: break-all;
    margin-bottom: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.web-buy-modal-tpwd:active { background: #eee; }
.web-buy-modal-copy {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: opacity 0.2s;
}
.web-buy-modal-copy:active { opacity: 0.8; }
.web-buy-modal-h5 {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #999;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 8px;
}
.web-buy-modal-close {
    font-size: 12px;
    color: #ccc;
    cursor: pointer;
    padding: 4px 12px;
}
.web-buy-modal-countdown {
    color: var(--primary);
    font-weight: 600;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ── 订单卡片 ── */
.web-order-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.web-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.web-order-time {
    font-size: 12px;
    color: var(--text-light);
}
.web-order-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.web-order-status-12 { background: #FFF3E0; color: #E65100; }
.web-order-status-14 { background: #E8F5E9; color: #2E7D32; }
.web-order-status-13 { background: #F5F5F5; color: #999; }
.web-order-status-3  { background: #E8F5E9; color: #2E7D32; }
.web-order-body {
    display: flex;
    gap: 12px;
}
.web-order-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #f5f5f5;
    flex-shrink: 0;
}
.web-order-info {
    flex: 1;
    min-width: 0;
}
.web-order-title {
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.web-order-price {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}
.web-order-rebate {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

/* ── 登录页扩展 ── */
.web-auth-page--login {
    background: linear-gradient(135deg, #FF6B35 0%, #FF4444 100%);
    min-height: 100vh;
    padding-bottom: 0;
}
.web-auth-error {
    background: #FFF3E0;
    color: #E65100;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}
.web-auth-home-link {
    text-align: center;
    margin-top: 24px;
}
.web-auth-home-link a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}
.web-auth-home-link a:hover { color: #fff; }

/* ── 用户中心订单统计 ── */
.web-user-orders {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.web-user-order-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}
.web-user-order-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.web-user-order-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.web-user-order-label {
    font-size: 12px;
    color: var(--text-light);
}

/* ── 响应式 ── */
@media (max-width: 768px) {
    .web-header-search { max-width: none; }
    .web-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 4px 12px;
    }
    .web-category-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .web-footer { display: none; }
    .web-main { margin-top: 60px; padding: 8px 12px; }
    .web-header-inner { padding: 0 12px; }
    /* 分类页：移动端隐藏原sidebar，用JS创建固定横栏 */
    .web-category-page {
        display: block;
    }
    .web-category-sidebar {
        display: none !important;
    }
    .web-catbar {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        z-index: 50;
        background: #fff;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .web-catbar::-webkit-scrollbar { height: 0; }
    .web-catbar-item {
        flex-shrink: 0;
        padding: 10px 14px;
        text-align: center;
        font-size: 14px;
        color: var(--text-secondary);
        cursor: pointer;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
        transition: var(--transition);
        font-weight: 500;
    }
    .web-catbar-item.active {
        color: var(--primary);
        border-bottom-color: var(--primary);
        font-weight: 600;
    }
    .web-category-content {
        padding: 48px 4px 0;
    }
}
@media (min-width: 769px) {
    .web-tabbar { display: none; }
    body { padding-bottom: 0; }
    .web-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* ── 电脑端大屏优化 ── */
@media (min-width: 1024px) {
    .web-main { padding: 16px 24px; }
    .web-header-inner { padding: 0 24px; }
    .web-footer { padding: 32px 24px; }
    .web-banner img {
        height: auto;
        aspect-ratio: 2.8 / 1;
    }
    .web-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .web-main { padding: 16px 32px; }
    .web-header-inner { padding: 0 32px; }
    .web-footer { padding: 32px 32px; }
}

/* ── 置顶按钮 ── */
.web-back-top {
    position: fixed;
    right: 16px;
    bottom: 72px;
    width: 52px;
    height: 52px;
    background: var(--card-bg);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
}
.web-back-top:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transform: translateY(-2px);
}
.web-back-top:active {
    transform: scale(0.9);
    background: var(--border);
}
@media (min-width: 769px) {
    .web-back-top {
        bottom: 32px;
        right: max(16px, calc(50% - 556px));
    }
}

/* ── 搜索栏点击反馈 ── */
.web-header-search:active {
    transform: scale(0.98);
    opacity: 0.8;
}

/* ── 退出登录按钮 ── */
.web-logout-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    color: #FF4444;
    font-size: 15px;
    font-weight: 500;
    background: #FFF5F5;
    border: 1px solid #FFD0D0;
    border-radius: 8px;
    transition: var(--transition);
}
.web-logout-btn:hover {
    background: #FF4444;
    color: #fff;
    border-color: #FF4444;
}
.web-logout-btn:active {
    transform: scale(0.98);
}

/* ── 订单页面 Tab ── */
.web-order-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.web-order-tab {
    flex-shrink: 0;
    padding: 6px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.web-order-tab.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
.web-order-tab:active {
    transform: scale(0.95);
}

/* ── 订单状态标签 ── */
.web-order-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.web-order-status.status-settled {
    background: #E8F5E9;
    color: #2E7D32;
}
.web-order-status.status-pending {
    background: #FFF3E0;
    color: #E65100;
}
.web-order-status.status-failed {
    background: #FFEBEE;
    color: #C62828;
}
.web-order-status.status-default {
    background: #F5F5F5;
    color: #757575;
}

/* ── 提现记录卡片 ── */
.web-withdraw-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.web-withdraw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.web-withdraw-money {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.web-withdraw-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #E8F5E9;
    color: #2E7D32;
    font-weight: 500;
}
.web-withdraw-body {
    display: flex;
    align-items: center;
}
.web-withdraw-info {
    flex: 1;
}
.web-withdraw-account {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.web-withdraw-time {
    font-size: 12px;
    color: var(--text-light);
}

/* ── 加载更多按钮 ── */
.web-load-more-btn {
    padding: 10px 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.web-load-more-btn:hover {
    background: #f5f5f5;
}
.web-load-more-btn:active {
    transform: scale(0.95);
}

/* ── 收益明细卡片 ── */
.web-earning-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.web-earning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.web-earning-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.web-earning-amount {
    font-size: 16px;
    font-weight: 700;
}
.web-earning-amount.income {
    color: #4CAF50;
}
.web-earning-amount.expense {
    color: var(--primary);
}
.web-earning-body {
    display: flex;
    align-items: center;
}
.web-earning-time {
    font-size: 12px;
    color: var(--text-light);
}

/* ── 用户统计点击效果 ── */
.web-user-stat {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.web-user-stat:active {
    opacity: 0.7;
    transform: scale(0.95);
}
