/* ================================================
   博曼优选 - 全新UI设计 v2.0
   现代化设计系统 | Glassmorphism | 响应式
   ================================================ */

/* ========== 设计令牌 ========== */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --primary-bg: rgba(16, 185, 129, 0.08);
    
    --accent: #6366f1;
    --accent-light: #818cf8;
    
    --warning: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-light: #cbd5e1;
    
    --bg-body: #f1f5f9;
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --bg-glass-dark: rgba(15, 23, 42, 0.04);
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-focus: #10b981;
    
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);
    --shadow-primary: 0 8px 24px rgba(16, 185, 129, 0.25);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========== 重置与基础 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 顶部条 ========== */
.top-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    font-size: 12px;
    line-height: 36px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .welcome {
    opacity: 0.9;
}

.top-bar-links {
    display: flex;
    gap: 4px;
}

.top-bar-links a {
    color: #cbd5e1;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.top-bar-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ========== 顶部用户栏 ========== */
.user-top-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 38px;
    height: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.user-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.user-top-welcome {
    opacity: 0.85;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.user-top-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.user-top-links a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0 16px;
    transition: var(--transition);
    position: relative;
}

.user-top-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.user-top-links a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}

/* ========== 头部 ========== */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: var(--shadow-primary);
    transition: var(--transition-bounce);
}

.logo:hover .logo-icon {
    transform: rotate(-6deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

/* 搜索框 */
.header-middle {
    flex: 1;
    max-width: 560px;
}

.search-box {
    display: flex;
    background: #f1f5f9;
    border-radius: var(--radius-full);
    padding: 4px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.search-box:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-bg);
}

.search-box input {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: none;
    font-size: 14px;
    color: var(--text-primary);
}

.search-box input::placeholder {
    color: var(--text-tertiary);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 10px 28px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-primary);
}

/* 购物车按钮 */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    animation: bounce-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounce-in {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ========== 主导航 ========== */
.main-nav-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.main-nav-list {
    display: flex;
    gap: 4px;
    padding: 8px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav-list::-webkit-scrollbar { display: none; }

.main-nav-list li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav-list li a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.main-nav-list li a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

/* ========== 分类导航 ========== */
.category-nav {
    background: #fff;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.category-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.category-list::-webkit-scrollbar { display: none; }

.cat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f8fafc;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
}

.cat-pill:hover {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.cat-pill.active-cat {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

.cat-pill-icon {
    font-size: 18px;
}

/* ========== 轮播图 ========== */
.banner-section {
    padding: 24px 0;
}

.banner-carousel {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.2) 0%, transparent 60%);
}

.slide-1 { background: linear-gradient(135deg, #10b981 0%, #059669 50%, #065f46 100%); }
.slide-2 { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #3730a3 100%); }
.slide-3 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%); }

.carousel-content {
    text-align: center;
    color: #fff;
    z-index: 1;
    padding: 40px;
}

.carousel-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.carousel-content p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 24px;
}

.carousel-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #fff;
    color: var(--text-primary);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    width: 24px;
    background: #fff;
}

/* ========== 资讯条 ========== */
.news-brief {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    margin: 20px 0;
    overflow: hidden;
}

.news-brief-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
}

.news-brief-content {
    display: flex;
    gap: 32px;
    flex: 1;
    overflow: hidden;
}

.news-brief-content a {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.news-brief-content a:hover {
    color: var(--primary);
}

.news-brief-more {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    flex-shrink: 0;
}

/* ========== 服务保障 ========== */
.services-section {
    padding: 16px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.service-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.service-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.service-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ========== 特色区域 ========== */
.features-section {
    padding: 40px 0;
}

.features-header {
    text-align: center;
    margin-bottom: 32px;
}

.features-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.features-header p {
    font-size: 15px;
    color: var(--text-tertiary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: #fff;
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== 商品分区 ========== */
.product-section {
    padding: 32px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

.section-more {
    font-size: 14px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.section-more:hover {
    color: var(--primary);
}

/* ========== 商品网格 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ========== 商品卡片 ========== */
.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-light);
    animation: fade-in-up 0.5s backwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card:hover .product-img {
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
}

.product-card:hover .product-emoji {
    transform: scale(1.15) rotate(-5deg);
}

.product-card:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover .product-name {
    color: var(--primary);
}

/* 商品图片区 */
.product-img {
    height: 220px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.product-emoji {
    font-size: 72px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.product-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-real-img {
    transform: scale(1.08);
}

/* 商品信息 */
.product-info {
    padding: 16px;
}

.product-brand {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    color: var(--danger);
    font-size: 20px;
    font-weight: 700;
}

.product-price small {
    font-size: 13px;
    margin-right: 1px;
}

.product-sales {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* 加入购物车按钮 */
.add-to-cart-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(10px);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-primary);
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    padding: 0 12px;
}

.pagination a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.pagination .active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

/* ========== 面包屑 ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 16px 0;
}

.breadcrumb a {
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ========== 筛选栏 ========== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.filter-info strong {
    color: var(--primary);
    font-weight: 600;
}

.sort-options {
    display: flex;
    gap: 8px;
}

.sort-btn {
    padding: 8px 16px;
    background: #fff;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.sort-btn:hover,
.sort-btn.active {
    background: var(--primary);
    color: #fff;
}

/* ========== 商品详情页 ========== */
.product-detail {
    padding: 24px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image .product-emoji {
    font-size: 160px;
}

.detail-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.detail-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--danger);
    margin-bottom: 24px;
    padding: 20px 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

.detail-price small {
    font-size: 18px;
    margin-right: 4px;
}

.detail-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.spec-item {
    display: flex;
    gap: 8px;
}

.spec-label {
    color: var(--text-tertiary);
    font-size: 14px;
    min-width: 60px;
}

.spec-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.qty-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.qty-control {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.qty-input {
    width: 56px;
    height: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-actions {
    display: flex;
    gap: 16px;
}

.btn-add-cart,
.btn-buy-now {
    flex: 1;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-cart {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-add-cart:hover {
    background: var(--primary-bg);
    transform: translateY(-2px);
}

.btn-buy-now {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* 详情标签页 */
.detail-tabs {
    margin-top: 40px;
}

.tabs-header {
    display: flex;
    gap: 4px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-xs);
}

.tab-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
}

.tab-content {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-xs);
    min-height: 200px;
}

/* 相关推荐 */
.related-products {
    margin-top: 40px;
}

/* ========== 购物车页 ========== */
.cart-page {
    padding: 32px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

.cart-items {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xs);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-thumb {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.cart-item-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 14px;
    color: var(--text-tertiary);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.cart-qty-btn:hover {
    background: var(--primary);
    color: #fff;
}

.cart-qty-input {
    width: 48px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-item-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger);
    min-width: 80px;
    text-align: right;
}

.cart-remove {
    color: var(--text-tertiary);
    font-size: 13px;
    transition: color 0.2s;
    margin-top: 4px;
}

.cart-remove:hover {
    color: var(--danger);
}

/* 购物车合计 */
.cart-summary {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-light);
    font-size: 18px;
    font-weight: 700;
}

.summary-total .amount {
    color: var(--danger);
    font-size: 24px;
}

.cart-checkout-btn {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.cart-empty h3 {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cart-empty p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.cart-empty-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

/* ========== Toast 提示 ========== */
.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--text-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 10000;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ========== 页脚 ========== */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    padding: 48px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 16px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ========== 侧边购物车 ========== */
.side-cart {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100%;
    background: #fff;
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.side-cart.open {
    right: 0;
}

.side-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}

.side-cart-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.side-cart-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.side-cart-close:hover {
    background: var(--danger);
    color: #fff;
}

.side-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.side-cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.side-cart-thumb {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #f0fdf4, #dcfce7);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.side-cart-info h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-cart-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--danger);
}

.side-cart-remove {
    color: var(--text-tertiary);
    font-size: 18px;
    transition: color 0.2s;
}

.side-cart-remove:hover {
    color: var(--danger);
}

.side-cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

.side-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.side-cart-total span {
    font-size: 14px;
    color: var(--text-secondary);
}

.side-cart-total strong {
    font-size: 24px;
    color: var(--danger);
}

.side-cart-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.side-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.side-cart-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1500;
}

.side-cart-mask.show {
    opacity: 1;
    pointer-events: auto;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-img {
        height: 160px;
    }
    
    .product-emoji {
        font-size: 56px;
    }
    
    .product-card {
        animation-duration: 0.4s;
    }
    
    .add-to-cart-btn {
        opacity: 1;
        transform: none;
    }
    
    .carousel-slide {
        height: 220px;
    }
    
    .carousel-content h2 {
        font-size: 24px;
    }
    
    .carousel-content p {
        font-size: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header-middle {
        order: 3;
        width: 100%;
        max-width: none;
    }
    
    .search-box {
        width: 100%;
    }
    
    .news-brief {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .news-brief-content {
        flex-direction: column;
        gap: 4px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .detail-layout {
        padding: 20px;
        gap: 24px;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }
    
    .cart-item-total {
        grid-column: 1 / -1;
        text-align: left;
        padding-left: 80px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .side-cart {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-name {
        font-size: 13px;
        height: 38px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .add-to-cart-btn {
        width: calc(100% - 24px);
        margin: 8px 12px 12px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .cat-pill {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .logo-title {
        font-size: 16px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ========== 滚动条美化 ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========== 文本选中 ========== */
::selection {
    background: rgba(16, 185, 129, 0.2);
    color: var(--text-primary);
}

/* ========== 占位符 ========== */
::placeholder {
    color: var(--text-tertiary);
}

/* ========== 无障碍 ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* 焦点可见性 */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========== JS动态生成的样式 ========== */

/* 侧边栏购物车 - 缩略图 */
.cart-item-mini {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.cart-mini-img {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #f0fdf4, #dcfce7);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cart-item-mini .name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-mini .price {
    font-size: 13px;
    color: var(--danger);
    font-weight: 600;
}

.cart-item-mini .price small {
    color: var(--text-tertiary);
    font-weight: normal;
}

.del-mini {
    width: 24px;
    height: 24px;
    background: #f1f5f9;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.del-mini:hover {
    background: var(--danger);
    color: #fff;
}

/* 空购物车状态 */
.cart-empty-box {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty-box .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.cart-empty-box h3 {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cart-empty-box p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* 购物车表格 */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
    padding: 12px 8px;
    border-bottom: 2px solid var(--border-light);
}

.cart-table td {
    padding: 16px 8px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.cart-col-img {
    width: 80px;
}

.cart-product-img {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #f0fdf4, #dcfce7);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.cart-product-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-price-cell {
    color: var(--text-secondary);
    font-size: 14px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-control button {
    width: 30px;
    height: 30px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-control button:hover {
    background: var(--primary);
    color: #fff;
}

.qty-control input {
    width: 48px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-subtotal {
    color: var(--danger);
    font-size: 16px;
    font-weight: 700;
}

.btn-delete {
    color: var(--text-tertiary);
    font-size: 13px;
    transition: color 0.2s;
    padding: 4px 8px;
}

.btn-delete:hover {
    color: var(--danger);
}

/* 店铺卡片 */
.store-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.store-card:hover {
    box-shadow: var(--shadow-md);
}

.store-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.store-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    font-weight: 700;
}

/* 移动端适配 - 表格 */
@media (max-width: 768px) {
    .cart-table {
        font-size: 13px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 12px 4px;
    }
    
    .cart-product-name {
        max-width: 100px;
    }
    
    .cart-col-img {
        width: 50px;
    }
    
    .cart-product-img {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* ========== 购物车页面专用样式 ========== */
.cart-page-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xs);
}

.cart-page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

#cartPageBody {
    min-height: 200px;
}

/* 购物车底部汇总条 */
.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fbfb 0%, #f0f8f7 100%);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    gap: 16px;
}

.cart-summary-left {
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-summary-left .item-count {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

.cart-summary-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cart-summary-right .total-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-summary-right .total-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--danger);
}

.cart-summary-actions {
    display: flex;
    gap: 12px;
}

.btn-clear-cart,
.btn-checkout {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-clear-cart {
    background: #fff;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-clear-cart:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-checkout {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* 商品分区背景交替 */
.product-section:nth-child(even) {
    background: linear-gradient(180deg, transparent 0%, rgba(241, 245, 249, 0.5) 50%, transparent 100%);
}

/* 内容区 */
.content-section {
    padding: 24px 0;
}

/* 无商品提示 */
.no-products {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-tertiary);
}

.no-products .icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.no-products h3 {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.no-products p {
    font-size: 14px;
}

/* ========== 页脚样式 ========== */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    padding: 48px 0 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.8;
    margin: 16px 0;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-contact-item .fc-icon {
    flex-shrink: 0;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.icp-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #64748b;
}

.icp-info a:hover {
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .icp-info {
        flex-direction: column;
        gap: 8px;
    }
}

/* ========== 侧边购物车 ========== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100%;
    background: #fff;
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.close-cart {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 20px;
    transition: var(--transition);
}

.close-cart:hover {
    background: var(--danger);
    color: #fff;
}

.cart-sidebar .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.cart-sidebar .cart-empty {
    text-align: center;
    color: var(--text-tertiary);
    padding: 40px 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-total span {
    font-size: 24px;
    font-weight: 700;
    color: var(--danger);
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 12px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.view-cart-link {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.view-cart-link:hover {
    text-decoration: underline;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1500;
}

.cart-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}
