/* ============================================
   镶桉3D游戏资产商城 - 主样式表
   湖北省镶桉传媒科技有限公司
   ============================================ */

/* CSS变量 - 高端配色方案 */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #111128;
    --bg-card: rgba(20, 20, 50, 0.7);
    --bg-card-hover: rgba(30, 30, 70, 0.85);
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0c0;
    --text-muted: #6a6a8a;
    --accent-1: #ff3d71;
    --accent-2: #ff6b35;
    --accent-3: #ffb347;
    --accent-4: #00d4aa;
    --accent-5: #4facfe;
    --accent-6: #a855f7;
    --accent-7: #f472b6;
    --gradient-1: linear-gradient(135deg, #ff3d71, #ff6b35);
    --gradient-2: linear-gradient(135deg, #4facfe, #00d4aa);
    --gradient-3: linear-gradient(135deg, #a855f7, #f472b6);
    --gradient-4: linear-gradient(135deg, #ffb347, #ff3d71);
    --gradient-hero: linear-gradient(135deg, #0a0a2e 0%, #1a0a3e 25%, #0a1a3e 50%, #1a0a2e 75%, #0a0a2e 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(79, 172, 254, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(79, 172, 254, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   粒子背景画布
   ============================================ */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   顶部导航栏
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(10, 10, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 20px rgba(255, 61, 113, 0.3);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 61, 113, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 61, 113, 0.6); }
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box form {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.search-box form:focus-within {
    border-color: var(--accent-5);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.2);
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 10px 16px;
    width: 200px;
    font-size: 0.9rem;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    background: var(--gradient-2);
    border: none;
    color: white;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    opacity: 0.9;
}

.cart-btn {
    position: relative;
    color: var(--text-primary);
    font-size: 1.3rem;
    text-decoration: none;
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent-1);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* ============================================
   主内容区
   ============================================ */
.main-content {
    position: relative;
    z-index: 1;
    margin-top: 72px;
    min-height: calc(100vh - 72px);
}

/* ============================================
   Hero区域
   ============================================ */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: glowFloat 8s ease-in-out infinite;
}

.hero-bg-glow:nth-child(1) {
    width: 500px;
    height: 500px;
    background: var(--accent-1);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.hero-bg-glow:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--accent-5);
    top: 50%;
    right: -100px;
    animation-delay: -3s;
}

.hero-bg-glow:nth-child(3) {
    width: 350px;
    height: 350px;
    background: var(--accent-6);
    bottom: -50px;
    left: 40%;
    animation-delay: -6s;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-4);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i { color: var(--accent-3); }

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3), var(--accent-5), var(--accent-6));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 61, 113, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 61, 113, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-5);
    background: rgba(79, 172, 254, 0.1);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-add-cart {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.5);
}

/* 统计数字 */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   区块通用样式
   ============================================ */
.section {
    padding: 80px 24px;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-5);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-title .highlight {
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ============================================
   特色卡片
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.feature-card:nth-child(1) .feature-icon { background: rgba(255, 61, 113, 0.15); color: var(--accent-1); }
.feature-card:nth-child(2) .feature-icon { background: rgba(0, 212, 170, 0.15); color: var(--accent-4); }
.feature-card:nth-child(3) .feature-icon { background: rgba(79, 172, 254, 0.15); color: var(--accent-5); }
.feature-card:nth-child(4) .feature-icon { background: rgba(168, 85, 247, 0.15); color: var(--accent-6); }

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   商品网格
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

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

.product-image {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(255,61,113,0.1), rgba(79,172,254,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.product-image .placeholder-3d {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image .icon-large {
    font-size: 4rem;
    opacity: 0.6;
    animation: float3d 4s ease-in-out infinite;
}

@keyframes float3d {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    25% { transform: translateY(-10px) rotateY(10deg); }
    75% { transform: translateY(5px) rotateY(-10deg); }
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.badge-hot { background: var(--accent-1); }
.badge-new { background: var(--accent-4); }
.badge-sale { background: var(--accent-6); }
.badge-best { background: var(--accent-3); }

.product-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.6);
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    backdrop-filter: blur(4px);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.75rem;
    color: var(--accent-5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-stars { color: var(--accent-3); }

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-1);
}

.original-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* ============================================
   分类导航
   ============================================ */
.categories-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.category-chip {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.category-chip:hover,
.category-chip.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(255, 61, 113, 0.3);
}

/* ============================================
   商品详情页
   ============================================ */
.product-detail {
    padding: 40px 24px 80px;
}

.detail-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--accent-5); }

.breadcrumb .sep { color: var(--text-muted); }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.detail-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    aspect-ratio: 16/11;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-main:hover img {
    transform: scale(1.03);
}

.gallery-main .icon-huge {
    font-size: 8rem;
    opacity: 0.5;
    animation: float3d 5s ease-in-out infinite;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.gallery-thumb {
    width: 80px;
    aspect-ratio: 16/11;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--accent-5);
}

.detail-info h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-rating .stars { color: var(--accent-3); font-size: 1.1rem; }
.detail-rating .score { font-weight: 700; font-size: 1.1rem; }
.detail-rating .sales { color: var(--text-muted); font-size: 0.9rem; }

.detail-price-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.detail-price-box .current {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-1);
}

.detail-price-box .original {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 12px;
}

.detail-price-box .discount {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 61, 113, 0.15);
    color: var(--accent-1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 12px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.detail-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1.05rem;
}

.detail-features {
    margin-bottom: 32px;
}

.detail-features h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 6px 16px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-5);
}

.detail-description {
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.detail-description h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.detail-description p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.detail-specs {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.detail-specs h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.spec-label { color: var(--text-muted); }
.spec-value { font-weight: 600; }

/* ============================================
   购物车页面
   ============================================ */
.cart-page {
    padding: 40px 24px 80px;
}

.cart-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.cart-empty {
    text-align: center;
    padding: 80px 24px;
}

.cart-empty i {
    font-size: 5rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: block;
}

.cart-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.cart-empty p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--border-glow);
}

.cart-item-image {
    width: 100px;
    aspect-ratio: 16/10;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-info .cat {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-1);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--accent-1);
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.cart-summary-row.total {
    border-bottom: none;
    font-size: 1.3rem;
    font-weight: 800;
    padding-top: 20px;
}

.cart-summary-row.total .price {
    color: var(--accent-1);
}

.cart-summary .btn {
    width: 100%;
    justify-content: center;
    margin-top: 24px;
    padding: 16px;
    font-size: 1.1rem;
}

/* ============================================
   结算页面
   ============================================ */
.checkout-page {
    padding: 40px 24px 80px;
}

.checkout-inner {
    max-width: 800px;
    margin: 0 auto;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% - 100px);
    right: calc(50% - 100px);
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.checkout-step.active .step-circle {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
}

.checkout-step.done .step-circle {
    background: var(--accent-4);
    border-color: transparent;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkout-step.active .step-label { color: var(--text-primary); }

.payment-methods {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.payment-method {
    flex: 1;
    padding: 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover,
.payment-method.selected {
    border-color: var(--accent-5);
    background: rgba(79, 172, 254, 0.05);
}

.payment-method i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.payment-method:nth-child(1) i { color: #1677ff; }
.payment-method:nth-child(2) i { color: #07c160; }
.payment-method:nth-child(3) i { color: var(--accent-3); }

.payment-qr {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.payment-qr .qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 0.85rem;
}

.payment-qr .amount {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-1);
}

/* ============================================
   关于我们页面
   ============================================ */
.about-page {
    padding: 40px 24px 80px;
}

.about-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.about-hero {
    text-align: center;
    padding: 60px 0;
}

.about-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-card h3 i { color: var(--accent-5); }

.about-card p, .about-card li {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.about-card ul {
    list-style: none;
    padding: 0;
}

.about-card ul li::before {
    content: '▸';
    color: var(--accent-5);
    margin-right: 8px;
}

/* ============================================
   联系页面
   ============================================ */
.contact-page {
    padding: 40px 24px 80px;
}

.contact-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--border-glow);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-card:nth-child(1) .contact-card-icon { background: rgba(255,61,113,0.15); color: var(--accent-1); }
.contact-card:nth-child(2) .contact-card-icon { background: rgba(0,212,170,0.15); color: var(--accent-4); }
.contact-card:nth-child(3) .contact-card-icon { background: rgba(79,172,254,0.15); color: var(--accent-5); }
.contact-card:nth-child(4) .contact-card-icon { background: rgba(168,85,247,0.15); color: var(--accent-6); }

.contact-card-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-card-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.contact-form-card h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-5);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   底部
   ============================================ */
.site-footer {
    background: rgba(5, 5, 15, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 60px 24px 30px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-5);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-info li i {
    width: 20px;
    color: var(--accent-5);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* ============================================
   分页
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination a:hover,
.pagination span.current {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
}

/* ============================================
   通知提示
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    padding: 14px 28px;
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.95rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.toast.success { border-color: var(--accent-4); }
.toast.error { border-color: var(--accent-1); }

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .main-nav { display: none; }
    .search-box input { width: 140px; }
    .mobile-menu-btn { display: block; }
    .mobile-menu.active { display: flex; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 30px; flex-wrap: wrap; }
    .stat-value { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .checkout-steps { gap: 30px; }
}

@media (max-width: 600px) {
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .search-box input { width: 100px; }
    .hero-title { font-size: 2rem; }
    .detail-actions { flex-direction: column; }
    .header-inner { padding: 0 12px; }
    .section { padding: 60px 16px; }
    .payment-methods { flex-direction: column; }
}
