/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --primary-blue: #0b1224;
    --brand-red: #e53e3e;
    --brand-red-dark: #c53030;
    --accent: #22d3ee;
    --text-dark: #0f172a;
    --text-light: #6b7280;
    --bg-light: #f6f7fb;
    --white: #ffffff;
    --shadow-card: 0 12px 40px -16px rgba(0,0,0,0.15);
    --shadow-hover: 0 25px 60px -24px rgba(0,0,0,0.2);
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background: radial-gradient(circle at 20% 20%, rgba(34,211,238,0.05), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(229,62,62,0.08), transparent 30%),
                #0b1020;
    background-attachment: fixed;
    font-size: 16px;
}

h1, h2, h3, h4 { 
    font-family: var(--font-head); 
    font-weight: 600; 
    text-transform: uppercase; 
    color: var(--primary-blue);
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.bg-light { background: linear-gradient(135deg, #0f172a 0%, #111827 60%, #0b1020 100%); color: #e5e7eb; }
.full-width { width: 100%; }

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    background: rgba(12, 18, 36, 0.9); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px -18px rgba(0,0,0,0.45);
    position: sticky; 
    top: 0; 
    z-index: 1000;
    height: 80px; 
    display: flex; 
    align-items: center;
}

.nav-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    height: 100%;
}

.nav-logo-img { height: 50px !important; width: auto; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { 
    font-weight: 600; font-size: 0.95rem; color: #e5e7eb !important; 
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.nav-links a:hover { color: #fff !important; }

/* 修复后的白色按钮 */
.nav-links a.btn-nav {
    background: linear-gradient(120deg, var(--brand-red), var(--brand-red-dark));
    color: #fff !important;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 999px;
    box-shadow: 0 8px 20px -8px rgba(229, 62, 62, 0.8);
}
.nav-links a.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(229, 62, 62, 0.9); }

.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 8px; }
.hamburger span { display: block; width: 26px; height: 2px; background: #e5e7eb; margin: 6px 0; border-radius: 2px; }
.nav-links.open { 
    display: flex !important; 
    flex-direction: column; 
    position: absolute; 
    top: 80px; left: 0; width: 100%; 
    background: #D32F2F; 
    padding: 20px; 
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    min-height: 70vh;
    color: white;
    display: flex; align-items: center; justify-content: center; text-align: left;
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    background: linear-gradient(120deg, rgba(11, 18, 36, 0.9), rgba(12, 20, 40, 0.75)), url('special.jpg');
    background-size: cover;
    background-position: center;
}
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(34,211,238,0.15), transparent 35%), radial-gradient(circle at 80% 20%, rgba(229,62,62,0.12), transparent 30%); pointer-events: none; }
.hero-content { z-index: 2; max-width: 880px; padding: 28px 28px 32px; animation: fadeInUp 1s ease-out; background: linear-gradient(140deg, rgba(11,18,36,0.82), rgba(11,18,36,0.66)); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; backdrop-filter: blur(8px); box-shadow: 0 25px 60px -25px rgba(0,0,0,0.55); }
.hero-badge { background: rgba(255,255,255,0.12); padding: 8px 14px; font-size: 0.8rem; font-weight: 700; margin-bottom: 20px; display: inline-block; letter-spacing: 1px; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; animation: pulseGlow 3s ease-in-out infinite; }
.hero h1 { font-size: 3.4rem; line-height: 1.08; margin-bottom: 18px; color: white; text-transform: none; letter-spacing: -0.5px; }
.hero p { font-size: 1.05rem; color: #dbeafe; margin-bottom: 30px; max-width: 700px; }
.hero-btns { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }
.hero-dots { display: flex; gap: 10px; justify-content: flex-start; margin-top: 18px; }

.btn { padding: 12px 32px; border-radius: 999px; font-weight: 700; text-transform: uppercase; transition: 0.25s; border: none; cursor: pointer; letter-spacing: 0.5px; }
.btn-primary { background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark)); color: white; box-shadow: 0 18px 35px -18px rgba(229,62,62,0.9); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 45px -20px rgba(229,62,62,0.95); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.8); color: white; }
.btn-outline:hover { background: white; color: var(--primary-blue); box-shadow: 0 18px 35px -20px rgba(255,255,255,0.6); }
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 40%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}
.btn { position: relative; overflow: hidden; }
.btn:hover::after { opacity: 1; }

/* =========================================
   4. STATS BAR & PRODUCTS
   ========================================= */
.stats-bar { background: linear-gradient(120deg, #0c1528, #0f172a); color: white; padding: 60px 0; position: relative; overflow: hidden; }
.stats-bar::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 15% 50%, rgba(34,211,238,0.12), transparent 35%),
                radial-gradient(circle at 85% 40%, rgba(229,62,62,0.12), transparent 30%);
    opacity: 0.8;
}
.stats-bar .container { position: relative; z-index: 1; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 22px; box-shadow: 0 18px 40px -24px rgba(0,0,0,0.35); backdrop-filter: blur(3px); transition: 0.25s; }
.stat-item:hover { transform: translateY(-6px); box-shadow: 0 22px 50px -26px rgba(0,0,0,0.45); }
.stat-icon { width: 48px; height: 48px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(229,62,62,0.18)); color: #fff; box-shadow: 0 12px 24px -18px rgba(0,0,0,0.5); animation: floatY 4s ease-in-out infinite; }
.stat-item h3 { font-size: 2.8rem; color: white; margin-bottom: 5px; }
.stat-item p { font-size: 0.9rem; color: #94a3b8; text-transform: uppercase; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.6rem; margin-bottom: 12px; letter-spacing: -0.3px; color: #ffffff; }
.section-header p { color: #cbd5e1; max-width: 700px; margin: 0 auto; }

.filter-container { text-align: center; margin-bottom: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.filter-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); color: #e5e7eb; padding: 10px 22px; border-radius: 999px; font-weight: 700; cursor: pointer; transition: 0.25s; }
.filter-btn:hover, .filter-btn.active { background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark)); color: #fff; border-color: transparent; box-shadow: 0 15px 35px -20px rgba(229,62,62,0.9); }

.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.product-card { background: linear-gradient(145deg, #10172a, #0b1224); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; position: relative; transform: translateY(0); animation: fadeUp 0.7s ease both; }
.product-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 40%); pointer-events: none; }
.product-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--shadow-hover); }
.card-img { height: 220px; background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { max-height: 85%; mix-blend-mode: multiply; transition: 0.3s; }
.product-card:hover .card-img img { transform: scale(1.06); }
.card-info { padding: 22px; text-align: center; color: #e5e7eb; }
.card-cat { color: var(--accent); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; display: block; margin-bottom: 8px; letter-spacing: 1px; }
.card-info h3 { font-size: 1.25rem; margin-bottom: 10px; color: #fff; text-transform: none; }
.card-desc { color: #cbd5e1; font-size: 0.95rem; margin-bottom: 20px; min-height: 48px; }
.card-info .btn-primary { padding: 8px 18px; font-size: 0.82rem; }
.card-sub { color: #9ca3af; font-size: 0.9rem; margin-bottom: 18px; }

.catalog-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.meta-card { background: linear-gradient(150deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 18px 20px; box-shadow: 0 20px 45px -24px rgba(0,0,0,0.35); }
.stat-number { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 6px; letter-spacing: -0.2px; }
.meta-card p { margin: 0; color: #cbd5e1; font-size: 0.95rem; }
.series-chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.series-chip { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: #e5e7eb; font-weight: 700; font-size: 0.9rem; }
.series-chip:hover { background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark)); color: #fff; box-shadow: 0 12px 24px -16px rgba(229,62,62,0.85); }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; justify-content: center; }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; color: #e5e7eb; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; }

/* =========================================
   5. ABOUT SECTION
   ========================================= */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.section-tag { color: var(--accent); font-weight: 800; font-size: 0.8rem; margin-bottom: 12px; display: block; letter-spacing: 1.5px; text-transform: uppercase; }
.text-block h2 { font-size: 2.3rem; margin-bottom: 18px; color: #e5e7eb; letter-spacing: -0.2px; text-transform: none; }
.feature-list li { margin-bottom: 12px; padding-left: 25px; position: relative; }
.feature-list li::before { content: '•'; color: var(--accent); position: absolute; left: 0; font-weight: bold; }
.image-block img { width: 100%; border-radius: 12px; box-shadow: 0 26px 50px rgba(0,0,0,0.25); }

/* =========================================
   6. CONTACT SECTION
   ========================================= */
.section-contact { background: linear-gradient(135deg, #0f172a, #0b1224); padding: 100px 0; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }

.contact-header h2 { font-size: 2.6rem; margin-bottom: 12px; color: #e5e7eb; letter-spacing: -0.3px; }
.contact-header p { font-size: 1.05rem; color: #cbd5e1; margin-bottom: 36px; }

.info-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.icon-box { width: 48px; height: 48px; background: rgba(255,255,255,0.06); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--accent); box-shadow: 0 4px 15px rgba(0,0,0,0.15); flex-shrink: 0; }

.info-text label { display: block; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; color: #94a3b8; margin-bottom: 6px; letter-spacing: 0.5px; }
.info-text span, .info-text a { font-size: 1.05rem; font-weight: 600; color: #e5e7eb; display: block; }
.link-email:hover { color: var(--accent); }

.social-area h4 { font-size: 0.9rem; text-transform: uppercase; color: #94a3b8; margin-bottom: 12px; letter-spacing: 1px; }
.social-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.s-btn { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 50px; color: white; font-weight: 600; font-size: 0.9rem; transition: 0.25s; cursor: pointer; border: 1px solid rgba(255,255,255,0.08); }
.s-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.25); }
.whatsapp { background-color: #25D366; }
.telegram { background-color: #0088cc; }
.wechat { background-color: #07C160; }

.contact-right { background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); padding: 46px; border-radius: 22px; box-shadow: 0 30px 80px -18px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(6px); }
.modern-form h3 { font-size: 1.9rem; margin-bottom: 28px; color: #fff; letter-spacing: -0.2px; text-transform: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: #cbd5e1; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px; background-color: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.16); border-radius: 10px; font-family: inherit; transition: 0.25s; font-size: 1rem; color: #f8fafc; }
.form-group input::placeholder, .form-group select::placeholder, .form-group textarea::placeholder { color: #d1d5db; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { background-color: rgba(255,255,255,0.18); border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(34,211,238,0.18); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* =========================================
   7. FOOTER
   ========================================= */
footer { background: #0a0f1d; color: #94a3b8; padding: 36px 0; text-align: center; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.06); }

/* =========================================
   8. OTHERS (Product Page)
   ========================================= */
.modern-page-header {
    background: linear-gradient(140deg, #0b1224 0%, #10172a 60%, #0b1020 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 80px 0 110px;
}
.header-bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(34,211,238,0.18), transparent 30%),
                radial-gradient(circle at 70% 70%, rgba(229,62,62,0.15), transparent 40%);
    opacity: 0.8;
}
.header-content { position: relative; z-index: 1; }
.header-subtitle { display: inline-block; letter-spacing: 2px; font-weight: 700; font-size: 0.85rem; color: #e2e8f0; margin-bottom: 12px; }
.modern-page-header h1 { color: white; font-size: 3rem; margin-bottom: 12px; }
.modern-page-header p { color: #e2e8f0; max-width: 620px; }

.product-list-section { background: #0b1020; }
.product-list-section .section-header h2 { color: #fff; }
.product-list-section .section-header p { color: #cbd5e1; }
.product-detail-list { display: flex; flex-direction: column; gap: 60px; }
.product-detail-section { background: linear-gradient(150deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); border-radius: 16px; padding: 30px; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.06); color: #e5e7eb; }
.detail-header h2 { margin-bottom: 10px; font-size: 1.8rem; color: #fff; text-transform: none; }
.detail-header p { color: #cbd5e1; margin-bottom: 20px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.detail-content { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: start; }
.detail-img { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 16px; display: flex; align-items: center; justify-content: center; }
.detail-img img { max-height: 240px; mix-blend-mode: multiply; }
.detail-table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; color: #e5e7eb; }
.spec-table th, .spec-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; }
.spec-table th { background: rgba(255,255,255,0.05); font-size: 0.9rem; letter-spacing: 0.5px; text-transform: uppercase; }
.spec-table td strong { color: #fff; }
.detail-actions { display: flex; gap: 12px; margin-top: 20px; }

/* CTA styling for product detail */
.btn-cta {
    width: auto;
    min-width: 200px;
    max-width: 260px;
    text-align: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    background: linear-gradient(120deg, #ef4444, #b91c1c);
    box-shadow: 0 14px 30px -18px rgba(185, 28, 28, 0.9);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -18px rgba(185, 28, 28, 0.95); }

@media (max-width: 720px) {
    .detail-actions { flex-direction: column; }
    .btn-cta { width: 100%; max-width: none; }
}

/* =========================================
   9. SUCCESS MODAL (新加的弹窗样式)
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 1; transition: opacity 0.3s;
}
.modal-overlay.hidden { display: none; opacity: 0; }
.modal-content {
    background: white; padding: 40px; border-radius: 16px;
    text-align: center; max-width: 400px; width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
}
.modal-icon {
    width: 60px; height: 60px; background: #dcfce7; color: #16a34a;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.modal-icon svg { width: 35px; height: 35px; stroke-width: 3; }
.modal-content h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--text-dark); }
.modal-content p { color: var(--text-light); margin-bottom: 25px; }
.modal-content .btn { width: 100%; }
.qr-modal { max-width: 420px; }
.qr-image { margin: 0 auto 20px; width: 280px; height: 280px; background: #0f172a; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; }
.qr-image img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
   10. ANIMATIONS & MOBILE
   ========================================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.2); } 70% { box-shadow: 0 0 0 15px rgba(211, 47, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0.12), 0 0 25px rgba(34,211,238,0.2); } 50% { box-shadow: 0 0 0 8px rgba(34,211,238,0), 0 0 35px rgba(34,211,238,0.35); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 900px) {
    .hero h1 { font-size: 2.5rem; }
    .split-layout, .contact-wrapper { grid-template-columns: 1fr; }
    .contact-wrapper { gap: 50px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-right { padding: 30px; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .modern-page-header { padding: 60px 0 80px; }
    .modern-page-header h1 { font-size: 2.4rem; }
    .detail-content { grid-template-columns: 1fr; }
    .product-detail-section { padding: 24px; }

    body { background-attachment: scroll; }
    .navbar { height: 72px; }
    .hero { min-height: 520px; padding: 60px 0; }
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1rem; }
    .hero-content { text-align: center; padding: 24px; }
    .hero-btns { flex-direction: column; justify-content: center; }
    .stats-bar { padding: 48px 0; }
    .grid-container { grid-template-columns: 1fr; }
    .product-card { text-align: left; }
    .filter-container { gap: 8px; }
    .contact-right { padding: 26px; }
}
