/**
 * ==========================================
 * 汇森科技 - 全局样式规范 v2.0
 * 对标九机网专业电商风格
 * ==========================================
 */

/* ========== 全局CSS变量 ========== */
:root {
    /* 品牌色彩规范 */
    --brand-red: #D32F2F;
    --brand-red-hover: #B71C1C;
    --brand-red-light: #FFEBEE;
    --brand-red-dark: #C62828;

    /* 辅助色 */
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #999999;
    --bg-gray: #F5F5F5;
    --bg-light: #FAFAFA;
    --border-gray: #E0E0E0;
    --border-light: #EEEEEE;

    /* 功能色 */
    --success-green: #4CAF50;
    --success-light: #E8F5E9;
    --warning-orange: #FF9800;
    --warning-light: #FFF3E0;
    --info-blue: #2196F3;
    --info-light: #E3F2FD;
    --error-red: #F44336;

    /* 会员等级色 */
    --level-normal: #9E9E9E;
    --level-gold: #FFC107;
    --level-partner: #D32F2F;

    /* 字体规范 */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;

    /* 字号规范 */
    --text-xs: 12px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-lg: 16px;
    --text-xl: 18px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;

    /* 行间距 */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* 间距规范 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 48px;

    /* 圆角规范 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* 阴影规范 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    --shadow-hover: 0 12px 32px rgba(0,0,0,0.15);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.06);

    /* 动画规范 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ========== 基础重置 ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    color: var(--dark-gray);
    background: var(--bg-gray);
    line-height: var(--leading-normal);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-red);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========== 价格专用样式（等宽字体）========== */
.price, .price-main, .price-current, [class*="price"] {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.price-main {
    font-size: var(--text-2xl);
    color: var(--brand-red);
    line-height: 1;
}

.price-main .symbol {
    font-size: 0.6em;
    margin-right: 2px;
}

.price-original {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--light-gray);
    text-decoration: line-through;
}

.price-save {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--success-light);
    color: var(--success-green);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

/* ========== 顶部窄条 ========== */
.top-bar {
    background: var(--dark-gray);
    color: rgba(255,255,255,0.9);
    font-size: var(--text-xs);
    height: 32px;
    line-height: 32px;
}

.top-bar .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: rgba(255,255,255,0.8);
    transition: color var(--transition-fast);
}

.top-bar a:hover {
    color: white;
}

.top-bar .divider {
    margin: 0 var(--spacing-sm);
    opacity: 0.3;
}

.top-bar .phone-icon {
    color: var(--brand-red);
    margin-right: 4px;
}

/* ========== 公告条 ========== */
.announcement-bar {
    background: linear-gradient(90deg, var(--brand-red) 0%, #E53935 100%);
    color: white;
    padding: var(--spacing-sm) 0;
    font-size: var(--text-sm);
}

.announcement-bar .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-bar .promo-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ========== 主导航栏 ========== */
.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    height: 64px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.main-header .logo {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--brand-red);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.main-header .logo-subtitle {
    font-size: var(--text-xs);
    color: var(--light-gray);
    font-weight: 400;
}

/* 搜索框 */
.search-box {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.search-box .input-wrapper {
    display: flex;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.search-box .input-wrapper:focus-within {
    border-color: var(--brand-red);
}

.search-box input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    outline: none;
    font-size: var(--text-base);
}

.search-box button {
    padding: 0 var(--spacing-xl);
    background: var(--brand-red);
    color: white;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.search-box button:hover {
    background: var(--brand-red-hover);
}

/* 热搜词下拉 */
.hot-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-sm);
    display: none;
    z-index: 200;
}

.search-box:focus-within .hot-search-dropdown {
    display: block;
}

.hot-search-dropdown .label {
    font-size: var(--text-xs);
    color: var(--light-gray);
    margin-bottom: var(--spacing-sm);
}

.hot-search-dropdown .tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.hot-search-dropdown .tag {
    padding: 6px 14px;
    background: var(--bg-gray);
    color: var(--medium-gray);
    font-size: var(--text-sm);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hot-search-dropdown .tag:hover {
    background: var(--brand-red-light);
    color: var(--brand-red);
}

.hot-search-dropdown .tag.hot {
    background: #FFF3E0;
    color: #E65100;
}

.hot-search-dropdown .tag.hot::before {
    content: '🔥';
    margin-right: 4px;
}

/* 导航链接 */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--text-base);
    color: var(--medium-gray);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--brand-red);
    background: var(--brand-red-light);
}

.nav-link.active {
    color: var(--brand-red);
    font-weight: 600;
}

.nav-link .badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--brand-red);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== 产品卡片（九机网风格）========== */
.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-gray);
}

.product-card .image-wrapper {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    overflow: hidden;
}

.product-card .image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.product-card:hover .image-wrapper img {
    transform: scale(1.05);
}

/* 成色标签（左上角） */
.product-card .condition-tag {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    padding: 4px 10px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

/* 品牌标签（右上角） */
.product-card .brand-tag {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    padding: 4px 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

/* SKU数量角标 */
.product-card .sku-count {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    padding: 4px 10px;
    background: var(--info-blue);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.product-card .info {
    padding: var(--spacing-lg);
}

.product-card .brand-name {
    font-size: var(--text-xs);
    color: var(--light-gray);
    margin-bottom: 4px;
}

.product-card .product-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--dark-gray);
    line-height: var(--leading-tight);
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.product-card .price-row {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.product-card .price-main {
    font-size: var(--text-xl);
}

.product-card .price-suffix {
    font-size: var(--text-sm);
    color: var(--brand-red);
    font-weight: 500;
}

.product-card .subsidy-tag {
    margin-left: auto;
    padding: 3px 8px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
}

.product-card .action-btn {
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--brand-red) 0%, #E53935 100%);
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.product-card .action-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(211,47,47,0.35);
}

/* ========== 信任徽章 ========== */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--success-light) 0%, var(--info-light) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(76,175,80,0.2);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
}

.trust-badge .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: var(--text-lg);
}

.trust-badge .icon.green { background: var(--success-light); }
.trust-badge .icon.blue { background: var(--info-light); }
.trust-badge .icon.orange { background: var(--warning-light); }
.trust-badge .icon.purple { background: #F3E5F5; }

.trust-badge .text .title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--dark-gray);
}

.trust-badge .text .desc {
    font-size: var(--text-xs);
    color: var(--light-gray);
}

/* ========== 会员等级 ========== */
.member-level {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

.member-level.normal {
    background: #F5F5F5;
    color: #757575;
}

.member-level.gold {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    color: #FF8F00;
    border: 1px solid #FFD54F;
}

.member-level.partner {
    background: linear-gradient(135deg, var(--brand-red-light) 0%, #FFCDD2 100%);
    color: var(--brand-red);
    border: 1px solid #EF9A9A;
}

/* 等级进度条 */
.level-progress {
    background: var(--bg-gray);
    border-radius: var(--radius-full);
    height: 8px;
    overflow: hidden;
}

.level-progress .bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-red) 0%, #E53935 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* ========== 筛选器 ========== */
.filter-panel {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--spacing-xl);
}

.filter-row {
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-light);
}

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

.filter-label {
    width: 80px;
    flex-shrink: 0;
    font-size: var(--text-sm);
    color: var(--medium-gray);
    padding-top: 8px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    flex: 1;
}

.filter-option {
    padding: 8px 18px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--medium-gray);
    background: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-option:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.filter-option.active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
}

/* ========== 侧边悬浮工具栏 ========== */
.sidebar-tools {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.sidebar-tool-item {
    width: 56px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-tool-item:last-child {
    border-bottom: none;
}

.sidebar-tool-item:hover {
    background: var(--brand-red);
    color: white;
}

.sidebar-tool-item .icon {
    font-size: 20px;
    line-height: 1;
}

.sidebar-tool-item .label {
    font-size: 10px;
    color: var(--light-gray);
    margin-top: 2px;
}

.sidebar-tool-item:hover .label {
    color: white;
}

.sidebar-tool-item .badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    background: var(--brand-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.sidebar-tool-item:hover .badge {
    background: white;
    color: var(--brand-red);
}

/* 弹出面板 */
.sidebar-popup {
    position: absolute;
    right: 66px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
}

.sidebar-popup::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: white;
}

.sidebar-tool-item:hover .sidebar-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ========== 骨架屏 ========== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-gray) 25%, var(--bg-light) 50%, var(--bg-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: var(--spacing-lg);
}

.skeleton-image {
    aspect-ratio: 1;
    margin-bottom: var(--spacing-md);
}

.skeleton-text {
    height: 14px;
    margin-bottom: var(--spacing-sm);
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.long { width: 100%; }

.skeleton-price {
    height: 24px;
    width: 40%;
    margin-top: var(--spacing-md);
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-red) 0%, #E53935 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(211,47,47,0.35);
}

.btn-secondary {
    background: white;
    color: var(--brand-red);
    border: 2px solid var(--brand-red);
}

.btn-secondary:hover {
    background: var(--brand-red-light);
}

.btn-ghost {
    background: transparent;
    color: var(--medium-gray);
    border: 1px solid var(--border-gray);
}

.btn-ghost:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--text-lg);
    border-radius: var(--radius-lg);
}

.btn-full {
    width: 100%;
}

.btn-round {
    border-radius: var(--radius-full);
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.empty-state .illustration {
    width: 160px;
    height: 160px;
    margin: 0 auto var(--spacing-xl);
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.empty-state .title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
}

.empty-state .description {
    font-size: var(--text-base);
    color: var(--light-gray);
    margin-bottom: var(--spacing-xl);
}

/* ========== 页脚 ========== */
.site-footer {
    background: #1A1A1A;
    color: white;
    margin-top: var(--spacing-3xl);
}

.site-footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-lg);
}

/* ========== 响应式适配 ========== */
@media (max-width: 1024px) {
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar .links {
        display: none;
    }

    .main-header .container {
        height: 56px;
        gap: var(--spacing-md);
    }

    .search-box {
        display: none;
    }

    .nav-links {
        gap: var(--spacing-sm);
    }

    .sidebar-tools {
        right: 10px;
        bottom: 80px;
        top: auto;
        transform: none;
    }

    .sidebar-tool-item {
        width: 48px;
        height: 48px;
    }

    .sidebar-popup {
        display: none !important;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 12px;
        --spacing-xl: 16px;
    }

    .product-card .info {
        padding: var(--spacing-md);
    }

    .product-card .product-name {
        font-size: var(--text-sm);
        height: 36px;
    }

    .product-card .price-main {
        font-size: var(--text-lg);
    }
}

/* ========== 增强移动端适配 ========== */

/* 移动端底部导航栏 */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav .nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 10px;
    transition: color var(--transition-fast);
}

.mobile-bottom-nav .nav-item .icon {
    font-size: 20px;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--brand-red);
}

.mobile-bottom-nav .nav-item .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    background: var(--brand-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }

    /* 隐藏桌面端侧边栏 */
    .sidebar-tools {
        display: none;
    }

    /* 移动端搜索框 */
    .mobile-search {
        display: block;
        padding: 12px 16px;
        background: white;
        border-bottom: 1px solid var(--border-light);
    }

    .mobile-search .search-wrapper {
        display: flex;
        align-items: center;
        background: var(--bg-gray);
        border-radius: var(--radius-full);
        padding: 10px 16px;
        gap: 8px;
    }

    .mobile-search input {
        flex: 1;
        border: none;
        background: transparent;
        outline: none;
        font-size: var(--text-base);
    }

    .mobile-search .search-icon {
        color: var(--light-gray);
    }

    /* 移动端筛选器 */
    .filter-panel {
        padding: var(--spacing-md);
    }

    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-label {
        width: 100%;
        padding-bottom: var(--spacing-sm);
    }

    .filter-options {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--spacing-sm);
        -webkit-overflow-scrolling: touch;
    }

    .filter-option {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* 移动端产品网格 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .product-card {
        border-radius: var(--radius-md);
    }

    .product-card .image-wrapper {
        padding: var(--spacing-md);
    }

    .product-card .condition-tag,
    .product-card .brand-tag {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* 移动端会员卡片 */
    .member-card {
        padding: 20px;
        border-radius: 12px;
    }

    .member-card .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 移动端表格 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive table {
        min-width: 600px;
    }

    /* 移动端弹窗 */
    .modal-content {
        margin: 16px;
        max-height: calc(100vh - 32px);
        border-radius: var(--radius-lg);
    }

    /* 移动端按钮 */
    .btn-group-mobile {
        position: fixed;
        bottom: 70px;
        left: 0;
        right: 0;
        padding: 12px 16px;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        display: flex;
        gap: 12px;
        z-index: 999;
    }

    .btn-group-mobile .btn {
        flex: 1;
    }
}

/* 平板端适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-header .container {
        gap: var(--spacing-lg);
    }

    .nav-link {
        padding: var(--spacing-sm);
    }

    .nav-link span:not(.badge) {
        display: none;
    }
}

/* 大屏幕适配 */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ========== 骨架屏样式 ========== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-gray) 25%, var(--bg-light) 50%, var(--bg-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: var(--spacing-lg);
}

.skeleton-image {
    aspect-ratio: 1;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 14px;
    margin-bottom: var(--spacing-sm);
}

.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 70%; }
.skeleton-text.long { width: 100%; }

.skeleton-price {
    height: 24px;
    width: 50%;
    margin-top: var(--spacing-md);
}

.skeleton-button {
    height: 40px;
    width: 100%;
    margin-top: var(--spacing-md);
    border-radius: var(--radius-full);
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 1024px) {
    .skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 骨架屏淡出动画 */
.skeleton-fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* 内容淡入动画 */
.content-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

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

/* ========== 触摸优化 ========== */
@media (hover: none) and (pointer: coarse) {
    /* 移动端触摸优化 */
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow-card);
    }

    .product-card:active {
        transform: scale(0.98);
    }

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

    .filter-option:active {
        background: var(--brand-red-light);
    }

    /* 增大点击区域 */
    .nav-link {
        min-height: 44px;
        min-width: 44px;
    }

    .filter-option {
        min-height: 44px;
        padding: 12px 18px;
    }
}

/* ========== 暗色模式支持（可选）========== */
@media (prefers-color-scheme: dark) {
    /* 可以在这里添加暗色模式样式 */
}
