/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0A0A0A;
    --card: #1A1A1A;
    --primary: #FF3355;
    --accent: #00CCFF;
    --yellow: #FFDD00;
    --green: #00FF88;
    --text: #F0F0F0;
    --muted: #888888;
    --border: #222222;
    --radius: 6px;
    --font-heading: 'Montserrat', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --max-width: 1100px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .jz-heading { font-family: var(--font-heading); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Nav Wrap (Promo + Header) --- */
.jz-nav-wrap {
    position: sticky; top: 0; z-index: 1000;
}
.jz-promo {
    background: var(--primary); color: #fff; text-align: center;
    padding: 6px 16px; font-size: 10px; font-weight: 700;
    letter-spacing: 0.5px;
}

/* --- Header --- */
.jz-header {
    background: var(--bg); border-bottom: 1px solid var(--border);
}
.jz-header-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
}
.jz-logo {
    font-family: var(--font-heading); font-size: 20px; font-weight: 700;
    letter-spacing: 4px; color: var(--text);
}
.jz-header-actions { display: flex; gap: 16px; align-items: center; }
.jz-cart {
    position: relative; font-size: 20px; cursor: pointer;
}
.jz-cart-badge {
    position: absolute; top: -6px; right: -8px;
    background: var(--primary); color: #fff; font-size: 8px;
    padding: 1px 5px; border-radius: 8px; font-weight: 700;
    font-family: var(--font-body);
}
.jz-hamburger {
    display: flex; flex-direction: column; gap: 4px; cursor: pointer;
    background: none; border: none; padding: 4px;
}
.jz-hamburger span {
    display: block; width: 20px; height: 2px; background: var(--text);
    transition: 0.2s;
}
.jz-desktop-nav { display: none; }

/* --- Hamburger Menu Overlay + Drawer --- */
.jz-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0);
    z-index: 1999; pointer-events: none; transition: background 0.3s ease;
}
.jz-menu-overlay.open {
    background: rgba(0,0,0,0.6); pointer-events: auto;
}
.jz-menu-drawer {
    position: fixed; top: 0; right: 0; width: 260px; height: 100vh;
    max-height: 100dvh; background: var(--card); z-index: 2000;
    transform: translateX(100%); transition: transform 0.3s ease;
    padding: 20px 16px; overflow-y: auto; border-left: 1px solid var(--border);
}
.jz-menu-drawer.open { transform: translateX(0); }
.jz-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.jz-menu-title { font-family: var(--font-heading); font-size: 12px; color: var(--muted); letter-spacing: 2px; }
.jz-menu-close-btn { font-size: 18px; color: var(--muted); cursor: pointer; background: none; border: none; padding: 4px; }
.jz-menu-drawer a { display: flex; justify-content: space-between; padding: 12px 0; }
.jz-menu-drawer .jz-menu-highlight { color: var(--primary); font-weight: 700; font-size: 11px; letter-spacing: 2px; }
.jz-menu-drawer .jz-menu-main { font-size: 11px; font-weight: 700; color: var(--text); letter-spacing: 2px; }
.jz-menu-drawer .jz-menu-sub { font-size: 10px; color: var(--muted); letter-spacing: 1px; }

/* --- Cart Drawer --- */
.jz-cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0); z-index: 1998; pointer-events: none; transition: background 0.3s; }
.jz-cart-overlay.open { background: rgba(0,0,0,0.6); pointer-events: auto; }
.jz-cart-drawer { position: fixed; top: 0; right: 0; width: 300px; height: 100vh; max-height: 100dvh; background: var(--card); z-index: 1999; transform: translateX(100%); transition: transform 0.3s ease; padding: 20px 16px; overflow-y: auto; border-left: 1px solid var(--border); }
.jz-cart-drawer.open { transform: translateX(0); }
#cart-drawer-items { min-height: 100px; }
.jz-menu-drawer .jz-menu-arrow { font-size: 10px; color: var(--muted); }
.jz-menu-drawer .jz-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* --- Buttons --- */
.jz-btn {
    display: inline-block; padding: 14px 34px; background: var(--primary);
    color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 0.5px;
    border-radius: 2px; border: none; cursor: pointer;
    font-family: var(--font-body); text-align: center;
    transition: opacity 0.15s; width: 100%;
}
.jz-btn:hover { opacity: 0.9; }
.jz-btn-outline {
    display: inline-block; padding: 13px 33px; background: transparent;
    color: var(--primary); font-weight: 700; font-size: 11px;
    letter-spacing: 0.5px; border-radius: 2px; cursor: pointer;
    font-family: var(--font-body); text-align: center; width: 100%;
    border: 2px solid var(--primary); transition: all 0.15s;
}
.jz-btn-outline:hover { background: var(--primary); color: #fff; }
.jz-btn-sm {
    padding: 6px 14px; background: var(--primary); color: #fff;
    font-size: 8px; font-weight: 700; border-radius: 2px; border: none;
    cursor: pointer; font-family: var(--font-body);
}

/* --- Sections --- */
.jz-section { padding: 24px 16px; }
.jz-container { max-width: var(--max-width); margin: 0 auto; }
.jz-section-title {
    font-family: var(--font-heading); font-size: 13px; font-weight: 700;
    color: var(--text); letter-spacing: 2px; text-align: center;
}
.jz-section-sub {
    font-size: 8px; color: #555; text-align: center; margin-top: 2px;
}
.jz-divider { width: 30px; height: 1px; background: var(--primary); margin: 8px auto; }

/* --- Hero --- */
.jz-hero {
    background: linear-gradient(135deg, #200a1a 0%, #1a1030 50%, #0a1020 100%);
    text-align: center; padding: 28px 20px;
}
.jz-hero-label {
    font-size: 7px; color: var(--primary); letter-spacing: 4px;
    margin-bottom: 6px;
}
.jz-hero h1 {
    font-family: var(--font-heading); font-weight: 900; font-size: 22px;
    letter-spacing: 1px; line-height: 1.15;
}
.jz-hero p {
    font-size: 9px; color: var(--muted); line-height: 1.5;
    max-width: 240px; margin: 12px auto;
}
.jz-hero-phone {
    margin: 18px auto; text-align: center;
}
.jz-hero-phone canvas {
    max-width: 200px; height: auto;
}
.jz-hero-phone-dots {
    display: flex; gap: 4px; justify-content: center; margin-top: 8px;
}
.jz-dot { width: 4px; height: 4px; border-radius: 50%; background: #444; }
.jz-dot.active { background: var(--primary); }

/* --- Category Pills --- */
.jz-pills {
    padding: 12px 16px; overflow-x: auto;
    display: flex; gap: 6px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.jz-pills::-webkit-scrollbar { display: none; }
.jz-pill {
    padding: 7px 16px; border-radius: 20px; font-size: 8px; font-weight: 700;
    white-space: nowrap; cursor: pointer; transition: all 0.15s;
    border: 1px solid #333; background: var(--card); color: var(--muted);
}
.jz-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- Product Carousel --- */
.jz-prod-title { text-align: center; margin-bottom: 12px; }
.jz-prod-row {
    display: flex; align-items: center; gap: 4px; padding: 0 6px;
}
.jz-prod-arrow {
    width: 24px; flex-shrink: 0; display: flex; align-items: center;
    justify-content: center; font-size: 22px; color: var(--primary);
    font-weight: 300; cursor: pointer; user-select: none;
}
.jz-prod-arrow:active { opacity: 0.6; }
.jz-prod-cards { display: flex; gap: 10px; flex: 1; overflow: hidden; }
.jz-product-card {
    flex: 1; min-width: 0; background: var(--card); border-radius: var(--radius);
    padding: 12px; text-align: center; border: 1px solid var(--border);
}
.jz-product-card-img {
    height: 160px; background: #111; border-radius: 4px;
    margin-bottom: 8px; position: relative; overflow: hidden;
}
.jz-product-card-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.jz-badge {
    position: absolute; top: 4px; left: 4px; background: var(--primary);
    color: #fff; font-size: 6px; padding: 2px 6px; border-radius: 2px;
    font-weight: 700;
}
.jz-product-card-title { font-size: 10px; color: #ddd; font-weight: 600; }
.jz-product-card-material { font-size: 8px; color: var(--muted); margin: 2px 0; }
.jz-product-card-price { font-size: 11px; color: var(--primary); font-weight: 700; }

/* --- Video Carousel --- */
.jz-video-strip { overflow-x: auto; padding: 0 12px; display: flex; gap: 10px; -webkit-overflow-scrolling: touch; }
.jz-video-strip::-webkit-scrollbar { display: none; }
.jz-video-card {
    width: 180px; min-width: 180px; max-width: 180px;
    height: 320px; min-height: 320px; max-height: 320px;
    border-radius: var(--radius);
    position: relative; flex-shrink: 0; border: 1px solid var(--border);
    overflow: hidden;
}
.jz-video-card video { width: 100%; height: 100%; object-fit: cover; }
.jz-video-play {
    position: absolute; inset: 0; display: flex; align-items: center;
    justify-content: center; cursor: pointer; background: rgba(0,0,0,0.3);
}
.jz-play-btn {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.jz-play-btn-pink { background: rgba(255,51,85,0.9); }
.jz-play-btn-blue { background: rgba(0,204,255,0.9); }
.jz-play-btn-yellow { background: rgba(255,221,0,0.9); }
.jz-play-triangle { width: 0; height: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.jz-video-info { position: absolute; bottom: 8px; left: 8px; }
.jz-video-name { font-size: 9px; color: #fff; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.jz-video-meta { font-size: 7px; color: rgba(255,255,255,0.8); text-shadow: 0 1px 2px rgba(0,0,0,0.7); }

/* --- USP Stats --- */
.jz-usp { background: var(--card); padding: 20px 16px; text-align: center; }
.jz-usp-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.jz-stat { text-align: center; padding: 12px 8px; background: var(--bg); border-radius: 4px; }
.jz-stat-num { font-size: 18px; font-weight: 900; font-family: var(--font-heading); }
.jz-stat-num.blue { color: var(--accent); }
.jz-stat-num.yellow { color: var(--yellow); }
.jz-stat-num.green { color: var(--green); }
.jz-stat-label { font-size: 7px; color: var(--muted); margin-top: 4px; line-height: 1.3; }

/* --- CTA --- */
.jz-cta {
    padding: 28px 16px; text-align: center;
    background: linear-gradient(180deg, var(--card), var(--bg));
}
.jz-cta-inner { max-width: 420px; margin: 0 auto; }
.jz-cta h2 { font-size: 16px; font-weight: 900; color: #fff; letter-spacing: 2px; }
.jz-cta p { font-size: 9px; color: var(--muted); margin: 8px 0 16px; line-height: 1.5; }
.jz-subscribe { display: flex; gap: 6px; }
.jz-subscribe input {
    flex: 1; padding: 10px 12px; background: var(--bg);
    border: 1px solid #333; color: #fff; font-size: 9px;
    border-radius: 2px; font-family: var(--font-body);
}
.jz-subscribe input::placeholder { color: #555; }

/* --- Footer --- */
.jz-footer {
    padding: 24px 16px 20px; border-top: 1px solid var(--border);
}

/* =========================================
   Footer 最终清爽版 (去除冗余邮箱框)
   ========================================= */

.jz-footer-grid { 
    display: flex !important; 
    flex-wrap: nowrap !important; /* 强制手机端三列同行 */
    gap: 16px !important; 
}

.jz-footer-col { 
    flex: 1 !important; 
    min-width: 0 !important; 
    overflow: hidden !important;
}

.jz-footer-country { 
    margin: 0 !important; 
    width: 100% !important; 
}

.jz-footer-select { 
    width: 100% !important; 
    padding: 10px 12px !important; 
    font-size: 10px !important; 
    background-color: var(--card) !important; 
    /* 下面这行加回了下拉小箭头 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 2l4 4 4-4' fill='%23888'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    border: 1px solid var(--border) !important; 
    color: var(--text) !important; 
    border-radius: 4px !important; 
    -webkit-appearance: none !important; 
    appearance: none !important;
    cursor: pointer !important;
}
/* ===== RESPONSIVE: TABLET (768px+) ===== */
@media (min-width: 768px) {
    /* --- Global --- */
    .jz-section { padding: 40px 24px; }
    .jz-hero { padding: 40px 32px; }
    .jz-hero h1 { font-size: 32px; }
    .jz-hero p { font-size: 11px; max-width: 360px; }
    .jz-hero-label { font-size: 8px; }
    .jz-section-title { font-size: 15px; }
    .jz-section-sub { font-size: 9px; }

    /* --- Header --- */
    .jz-header-inner { padding: 16px 24px; }
    .jz-logo { font-size: 22px; }

    /* --- Category Hero --- */
    .jz-cat-hero { padding: 40px 32px; }
    .jz-cat-hero h1 { font-size: 28px; }
    .jz-cat-hero p { font-size: 11px; max-width: 360px; }

    /* --- Product Grid --- */
    .jz-product-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 24px 20px; }
    .jz-product-grid .jz-product-card-img { height: 180px; }

    /* --- Related Products --- */
    .jz-related-strip {
        display: grid; grid-template-columns: repeat(3, 1fr);
        gap: 10px; overflow-x: visible; padding: 0 24px;
    }
    .jz-related-strip::-webkit-scrollbar { display: none; }
    .jz-related-card { min-width: 0; }

    /* --- USP Stats --- */
    .jz-usp { padding: 32px 24px; }
    .jz-stat { padding: 16px 12px; }
    .jz-stat-num { font-size: 22px; }

    /* --- CTA --- */
    .jz-cta h2 { font-size: 20px; }
    .jz-cta p { font-size: 11px; }
    .jz-subscribe { max-width: 480px; margin: 0 auto; }

    /* --- Filter Bar --- */
    .jz-filter-bar { padding: 12px 24px; gap: 12px; }
    .jz-filter { font-size: 10px; padding: 10px 16px; }
    .jz-product-count { padding: 12px 24px; font-size: 10px; }

    /* --- Product Info --- */
    .jz-prod-info { padding: 24px; }
    .jz-prod-info h1 { font-size: 20px; }
    .jz-prod-price { font-size: 22px; }
    .jz-prod-header { margin-bottom: 16px; }

    /* --- Description & Specs --- */
    .jz-desc { padding: 0 24px 20px; }
    .jz-desc-title { font-size: 12px; }
    .jz-desc-text { font-size: 10px; }

    /* --- Reviews --- */
    .jz-reviews { padding: 0 24px 20px; }

    /* --- Upsell --- */
    .jz-upsell { padding: 0 24px 20px; }

    /* --- How It Works --- */
    .jz-how { padding: 32px 24px; }
    .jz-how h3 { font-size: 13px; }
    .jz-how-step-title { font-size: 9px; }
    .jz-how-step-desc { font-size: 8px; }

    /* --- Footer --- */
    .jz-footer { padding: 32px 24px 24px; }
}

/* ===== RESPONSIVE: DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
    /* --- Global --- */
    :root { --max-width: 1200px; }
    .jz-section { padding: 60px 32px; }
    .jz-hero { padding: 60px 40px; }
    .jz-hero h1 { font-size: 42px; }
    .jz-hero p { font-size: 13px; max-width: 480px; }
    .jz-hero-label { font-size: 9px; }
    .jz-section-title { font-size: 18px; }
    .jz-section-sub { font-size: 10px; }

    /* --- Header & Desktop Nav --- */
    .jz-header-inner { padding: 16px 32px; justify-content: flex-start; }
    .jz-header-actions { margin-left: auto; }
    .jz-logo { font-size: 24px; margin-right: 32px; }
    .jz-hamburger { display: none; }
    .jz-desktop-nav {
        display: flex; align-items: center; gap: 24px;
    }
    .jz-desktop-nav a {
        font-size: 10px; font-weight: 700; letter-spacing: 1px;
        color: var(--muted); text-transform: uppercase;
        transition: color 0.15s; text-decoration: none;
    }
    .jz-desktop-nav a:hover { color: var(--text); }

    /* --- Category Hero --- */
    .jz-cat-hero { padding: 60px 40px; }
    .jz-cat-hero h1 { font-size: 36px; }
    .jz-cat-hero p { font-size: 13px; max-width: 480px; }

    /* --- Product Grid --- */
    .jz-product-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 32px 24px; }
    .jz-product-grid .jz-product-card-img { height: 250px; }
    .jz-product-card-img { height: 250px; }
    .jz-product-card-title { font-size: 12px; }
    .jz-product-card-price { font-size: 13px; }

    /* --- Related Products --- */
    .jz-related-strip {
        grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 32px;
    }

    /* --- USP Stats --- */
    .jz-stat-num { font-size: 28px; }
    .jz-stat-label { font-size: 9px; }

    /* --- CTA --- */
    .jz-cta h2 { font-size: 24px; }
    .jz-subscribe input { font-size: 11px; padding: 14px 16px; }

    /* --- Filter Bar --- */
    .jz-filter-bar { padding: 14px 32px; }
    .jz-product-count { padding: 12px 32px; }

    /* --- Product Info --- */
    .jz-prod-info { padding: 32px; }
    .jz-prod-info h1 { font-size: 22px; }
    .jz-prod-price { font-size: 24px; }

    /* --- Description & Specs --- */
    .jz-desc { padding: 0 32px 24px; }
    .jz-desc-title { font-size: 13px; }
    .jz-desc-text { font-size: 11px; }

    /* --- Reviews --- */
    .jz-reviews { padding: 0 32px 24px; }

    /* --- Upsell --- */
    .jz-upsell { padding: 0 32px 24px; }

    /* --- How It Works --- */
    .jz-how { max-width: 950px; margin-left: auto; margin-right: auto; padding: 40px 0; }
    .jz-how h3 { font-size: 14px; }
    .jz-how-step-title { font-size: 10px; }
    .jz-how-step-desc { font-size: 9px; }

    /* --- Pagination --- */
    .jz-pagination { padding: 0 32px 24px; gap: 16px; }
    .jz-page-num { width: 36px; height: 36px; font-size: 11px; }

    /* --- Footer --- */
    .jz-footer { max-width: 950px; margin-left: auto; margin-right: auto; padding: 40px 0 32px; border-top: none; overflow-x: hidden; }
    .jz-footer::before { content: ''; display: block; width: 100vw; margin-left: calc(-50vw + 50%); border-top: 1px solid var(--border); margin-bottom: 40px; }
    .jz-footer-grid {
        flex-direction: row; flex-wrap: nowrap; gap: 32px;
    }
    .jz-footer-col { flex: 1; min-width: 0; }
    .jz-footer-col h4 { font-size: 10px; }
    .jz-footer-col a, .jz-footer-col div { font-size: 10px; }
    .jz-footer-select { max-width: 280px; font-size: 11px; }
    .jz-footer-bottom { font-size: 9px; padding-top: 16px; }

    /* --- Product Detail / DIY Two-Column Layout --- */
    .jz-prod-layout {
        display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
        max-width: var(--max-width); margin: 0 auto; padding: 0 32px;
    }
    .jz-prod-layout-visual {
        display: flex; align-items: center; justify-content: center;
        position: sticky; top: 100px; align-self: flex-start;
    }
    .jz-prod-layout-info {
        text-align: left; max-width: 450px; min-width: 0;
        display: flex; flex-direction: column;
    }
    .jz-gallery { min-height: 400px; height: auto; border-bottom: none; border-radius: 8px; width: 100%; }
    .jz-gallery-main { border-radius: 8px; }
    .jz-diy-phone { transform: scale(1.2); margin: 30px auto; }
    .jz-gallery-dots { bottom: 16px; }
    .jz-gallery-dots .jz-dot { width: 6px; height: 6px; }
    .jz-specs-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .jz-color-swatch { width: 42px; height: 42px; }
}
/* ==========================================================
   桌面端专属追加修复 (1024px+)：强制覆盖 HTML 内联对齐样式
   ========================================================== */
@media (min-width: 1024px) {
    /* --- 修复右侧面板左对齐问题 --- */
    .jz-prod-layout-info > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }

    .jz-prod-layout-info .jz-section-title {
        text-align: left !important;
    }

    .jz-prod-layout-info .jz-pills,
    .jz-prod-layout-info .jz-color-picker {
        justify-content: flex-start !important;
    }

    /* ==========================================================
       修复 Footer 分割线全屏展开问题 (1024px+)
       ========================================================== */
    
    /* 1. 隐藏局部的短边框，并解除父容器的宽度锁定 */
    .jz-footer {
        border-top: none !important;
        overflow-x: visible !important; 
    }
    
    /* 2. 恢复并强化 QUICK LINKS 上方的全屏线（就是你箭头指的那条） */
    .jz-footer::before {
        content: '';
        display: block !important; 
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        border-top: 1px solid var(--border) !important;
        margin-bottom: 40px !important;
    }

    /* 3. 底部版权声明上方的线：也拉伸为全屏 */
    .jz-footer-bottom {
        border-top: none !important; 
        position: relative;
    }
    .jz-footer-bottom::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: 1px;
        background-color: var(--border);
    }

    /* 防止全屏线条导致页面左右晃动出现滚动条 */
    body {
        overflow-x: hidden !important; 
    }
    /* ==========================================================
       首页大屏适配：轮播箭头向内靠拢 + 保持视频区整洁 (1024px+)
       ========================================================== */
    @media (min-width: 1024px) {
        /* --- 1. 产品展示左右箭头向商品框靠拢 --- */
        .jz-prod-row {
            justify-content: center !important;
            gap: 40px !important; /* 箭头与商品框之间的左右物理间距 */
        }
        /* 约束中间商品容器的最大宽度，使其刚好包住两个商品 */
        .jz-prod-cards {
            flex: none !important;
            width: 100% !important;
            max-width: 580px !important; 
            justify-content: center !important;
        }
        /* 固定桌面端单张商品卡片的宽度 */
        .jz-product-card {
            width: 280px !important;
            flex: none !important;
        }

        /* --- 2. 统一全站标题基础居中属性 --- */
        .jz-section-title, .jz-section-sub {
            text-align: center !important;
        }
    }}
