:root {
    --primary-color: #ef4444;
    --primary-dark: #dc2626;
    --secondary-color: #1a1a2e;
    --accent-color: #fbbf24;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-light: #fff5f5;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: rgba(239, 68, 68, 0.3);
    --gradient-primary: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --font-primary: 'Poppins', 'Microsoft YaHei', sans-serif;
    --font-secondary: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-secondary); background: var(--bg-dark); color: var(--text-primary); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.header { position: fixed; top: 0; width: 100%; background: rgba(15, 15, 26, 0.95); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid var(--border-color); }
.header .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--primary-color); font-family: var(--font-primary); font-size: 24px; font-weight: 700; text-decoration: none; }
.logo i { font-size: 28px; }
.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-link { color: var(--text-primary); text-decoration: none; font-size: 15px; transition: color 0.3s; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary-color); transition: width 0.3s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.hamburger span { width: 25px; height: 2px; background: var(--primary-color); transition: all 0.3s; }

.hero { min-height: 100vh; display: flex; align-items: center; padding: 100px 0 50px; background: linear-gradient(135deg, rgba(15,15,26,0.85), rgba(26,26,46,0.8)), url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?w=1920') center/cover; }
.hero-content { max-width: 600px; }
.hero-content h1 { font-size: 43px; margin-bottom: 20px; line-height: 1.2; }
.hero-content h1 span { color: var(--primary-color); }
.hero-content p { font-size: 18px; color: var(--text-secondary); margin-bottom: 30px; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 30px; text-decoration: none; font-size: 15px; font-weight: 600; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: var(--gradient-primary); color: var(--text-primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4); }
.btn-secondary { background: var(--gradient-accent); color: var(--secondary-color); }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background: var(--primary-color); color: var(--text-primary); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 36px; color: var(--text-primary); margin-bottom: 15px; }
.section-header p { color: var(--text-secondary); font-size: 16px; }
.section-header .highlight { color: var(--primary-color); }

.banner { padding: 60px 0; background: var(--bg-card); }
.banner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.banner-card { border-radius: 20px; overflow: hidden; padding: 40px; position: relative; transition: all 0.3s; cursor: pointer; }
.banner-card:hover { transform: translateY(-5px); }
.banner-card h3 { font-size: 28px; margin-bottom: 10px; }
.banner-card p { color: var(--text-secondary); margin-bottom: 20px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.product-card { background: var(--bg-card); border-radius: 15px; overflow: hidden; border: 1px solid var(--border-color); transition: all 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.product-card .product-img { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 50px; color: rgba(255,255,255,0.3); position: relative; }
.product-card .product-img .tag { position: absolute; top: 10px; left: 10px; background: var(--primary-color); color: white; padding: 4px 10px; border-radius: 15px; font-size: 11px; }
.product-card .product-img .sale { background: var(--accent-color); color: var(--secondary-color); }
.product-card .product-img .wishlist { position: absolute; top: 10px; right: 10px; width: 35px; height: 35px; border-radius: 50%; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; }
.product-card .product-img .wishlist:hover { background: var(--primary-color); color: white; }
.product-card .product-content { padding: 20px; }
.product-card h4 { font-size: 16px; margin-bottom: 8px; }
.product-card .product-desc { color: var(--text-secondary); font-size: 13px; margin-bottom: 10px; }
.product-card .product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.product-card .price { color: var(--primary-color); font-size: 22px; font-weight: bold; }
.product-card .original { color: var(--text-secondary); font-size: 14px; text-decoration: line-through; }
.product-card .product-rating { color: var(--accent-color); font-size: 13px; margin-bottom: 15px; }
.product-card .product-actions { display: flex; gap: 10px; }
.product-card .product-actions .btn { flex: 1; justify-content: center; font-size: 13px; padding: 10px; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.category-card { text-align: center; padding: 40px 20px; background: var(--bg-card); border-radius: 20px; border: 1px solid var(--border-color); transition: all 0.3s; cursor: pointer; }
.category-card:hover { border-color: var(--primary-color); transform: translateY(-5px); }
.category-card .icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 36px; }
.category-card h4 { font-size: 18px; margin-bottom: 8px; }
.category-card p { color: var(--text-secondary); font-size: 14px; }

.deal-card { background: var(--bg-card); border-radius: 20px; padding: 40px; border: 1px solid var(--border-color); }
.deal-card .deal-content { display: flex; flex-direction: column; justify-content: center; }
.deal-card h3 { font-size: 32px; margin-bottom: 15px; color: var(--primary-color); }
.deal-card p { color: var(--text-secondary); margin-bottom: 20px; }
.deal-card .countdown { display: flex; gap: 15px; margin-bottom: 25px; }
.deal-card .countdown-item { text-align: center; }
.deal-card .countdown-item .num { width: 60px; height: 60px; background: var(--primary-color); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; color: white; }
.deal-card .countdown-item .label { font-size: 12px; color: var(--text-secondary); margin-top: 5px; }

.features { padding: 60px 0; background: var(--bg-card); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-card { text-align: center; padding: 30px 20px; border-radius: 15px; background: var(--bg-dark); border: 1px solid var(--border-color); transition: all 0.3s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.feature-card i { font-size: 40px; color: var(--primary-color); margin-bottom: 15px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; }

.cta { padding: 80px 0; background: var(--gradient-primary); text-align: center; }
.cta h2 { font-size: 36px; color: var(--text-primary); margin-bottom: 15px; }
.cta p { font-size: 18px; color: var(--text-primary); margin-bottom: 25px; opacity: 0.9; }

.footer { background: var(--bg-card); padding: 60px 0 20px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--primary-color); font-size: 18px; margin-bottom: 20px; }
.footer-col p { color: var(--text-secondary); font-size: 14px; line-height: 1.8; margin-bottom: 15px; }
.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: 14px; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--primary-color); }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; color: var(--primary-color); text-decoration: none; transition: all 0.3s; }
.social-links a:hover { background: var(--primary-color); color: white; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); }
.footer-bottom p { color: var(--text-secondary); font-size: 13px; }

.page-header { padding: 150px 0 60px; background: linear-gradient(135deg, rgba(15,15,26,0.85), rgba(26,26,46,0.8)), url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?w=1920') center/cover; text-align: center; }
.page-header h1 { font-size: 42px; color: var(--text-primary); margin-bottom: 10px; }
.page-header p { color: var(--text-secondary); font-size: 16px; }

@media (max-width: 992px) {
    .banner-grid, .product-grid, .category-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu { position: fixed; top: 70px; left: 0; width: 100%; background: var(--bg-dark); flex-direction: column; padding: 20px; gap: 15px; transform: translateX(-100%); transition: transform 0.3s; }
    .nav-menu.active { transform: translateX(0); }
    .hero-content h1 { font-size: 36px; }
    .banner-grid, .product-grid, .category-grid, .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}