/* public/css/style.css */
/* ================= 简单粗暴的视觉系统 ================= */
:root {
    --bg-main: #0a0a0c;
    --bg-surface: #15151a;
    --bg-input: #22222a;
    --primary-neon: #8E44AD; 
    --accent-orange: #ff6b35; 
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --font-main: 'Inter', sans-serif;
    --font-logo: 'Permanent Marker', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-main); scroll-behavior: smooth; }

html { scroll-padding-top: 100px; } 

body { 
    background-color: var(--bg-main); 
    color: var(--text-main); 
    line-height: 1.5; 
}

body.no-scroll { overflow: hidden; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 5px; }

/* ================= 合规年龄验证弹窗 (Age Gate) ================= */
.age-gate-wrapper { position: fixed; inset: 0; background: var(--bg-main); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.age-gate-box { background: var(--bg-surface); border: 2px solid var(--primary-neon); padding: 50px 40px; border-radius: 16px; text-align: center; max-width: 500px; width: 100%; box-shadow: 0 0 40px rgba(142, 68, 173, 0.4); }
.age-gate-box i { font-size: 4rem; color: var(--primary-neon); margin-bottom: 20px; }
.age-gate-box h2 { font-family: var(--font-logo); font-size: 2.5rem; margin-bottom: 15px; letter-spacing: 2px; }
.age-gate-box p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; font-weight: 700; line-height: 1.6; }
.age-btn-group { display: flex; flex-direction: column; gap: 15px; }

.btn-age-yes { padding: 18px; background: var(--primary-neon); color: #fff; border: none; border-radius: 12px; font-size: 1.2rem; font-weight: 900; cursor: pointer; text-transform: uppercase; transition: 0.2s; }
.btn-age-yes:hover { transform: scale(1.02); }

.btn-age-no { padding: 18px; background: transparent; color: var(--text-muted); border: 2px solid #444; border-radius: 12px; font-size: 1.2rem; font-weight: 900; cursor: pointer; text-transform: uppercase; transition: 0.2s; }
.btn-age-no:hover { border-color: #ff3333; color: #ff3333; }

/* ================= 顶部滚动跑马灯公告 ================= */
.announcement-bar { background: var(--primary-neon); color: #fff; padding: 12px 0; font-size: 1rem; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; overflow: hidden; white-space: nowrap; display: flex; align-items: center; border-bottom: 2px solid #000; }
.ticker-wrap { display: inline-block; white-space: nowrap; padding-left: 100%; animation: ticker 25s linear infinite; }
.ticker-item { padding: 0 3rem; display: inline-block; }
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }

/* ================= 导航条 ================= */
header { position: sticky; top: 0; z-index: 100; background: rgba(10, 10, 12, 0.95); border-bottom: 2px solid var(--primary-neon); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 15px 5%; backdrop-filter: blur(10px); }
.logo-text { order: 1; font-family: var(--font-logo); font-size: 2.2rem; color: #fff; text-decoration: none; text-shadow: 0 0 15px var(--primary-neon); }
.cart-btn { order: 2; background: var(--primary-neon); color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-size: 1.2rem; font-weight: 900; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.cart-badge { background: #fff; color: #000; padding: 2px 8px; border-radius: 20px; font-size: 1rem; }
.nav-links { order: 3; width: 100%; display: flex; gap: 20px; margin-top: 15px; justify-content: flex-start; }
.nav-link { color: #fff; text-decoration: none; font-weight: 900; font-size: 1.1rem; text-transform: uppercase; transition: color 0.2s; }
.nav-link:hover { color: var(--primary-neon); }

@media (min-width: 768px) {
    header { flex-wrap: nowrap; }
    .nav-links { order: 2; width: auto; margin-top: 0; margin-left: auto; margin-right: 30px; justify-content: flex-end; }
    .cart-btn { order: 3; }
}

/* ================= 英雄区域 ================= */
.hero { padding: 80px 5%; text-align: center; background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1603584826848-18548325eb3a?q=80&w=1920&auto=format&fit=crop') center/cover; }
.hero h1 { font-family: var(--font-logo); font-size: clamp(3.5rem, 8vw, 6rem); text-transform: uppercase; line-height: 1; margin-bottom: 15px; }
.hero p { font-size: 1.5rem; font-weight: 700; color: #ddd; text-transform: uppercase; }

/* ================= 产品卡片与布局通用 ================= */
.container { max-width: 1300px; margin: 0 auto; padding: 60px 5%; }
.section-title { font-size: 3rem; font-weight: 900; text-transform: uppercase; margin-bottom: 40px; text-align: center; color: var(--primary-neon); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.p-card { background: var(--bg-surface); border: 2px solid #333; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.p-img { width: 100%; height: 280px; object-fit: cover; border-bottom: 2px solid #333; }
.p-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.p-title { font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: 15px; line-height: 1.2; }

.weight-select { width: 100%; padding: 15px; margin-bottom: 15px; background: #000; color: #fff; border: 2px solid #444; border-radius: 8px; font-size: 1.3rem; font-weight: 900; outline: none; cursor: pointer; text-transform: uppercase; }
.weight-select:focus { border-color: var(--primary-neon); }
.pound-note { text-align: center; font-size: 1rem; font-weight: 900; color: var(--text-muted); margin-bottom: 15px; letter-spacing: 1px; }

.btn-add { width: 100%; padding: 20px; background: #fff; color: #000; border: none; border-radius: 12px; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; cursor: pointer; transition: 0.2s; margin-top: auto; }
.btn-add:active { transform: scale(0.98); background: var(--primary-neon); color: #fff; }

/* ================= 详情与点击交互样式 ================= */
.clickable { cursor: pointer; transition: transform 0.2s, opacity 0.2s; }
.clickable:hover { opacity: 0.8; }
.p-img.clickable:hover { transform: scale(1.03); }
.p-title.clickable:hover { color: var(--primary-neon); }

#detail-modal .pound-note { margin-top: 15px; }
#detail-modal .btn-add { margin-top: 15px; }

/* ================= 视频 Touchdowns 样式 ================= */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.vid-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; border: 2px solid #333; }
.vid-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background: var(--primary-neon); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; }

/* ================= 联系我们 Contact 样式 ================= */
.contact-box { background: var(--bg-surface); border: 2px solid var(--primary-neon); padding: 40px; border-radius: 16px; text-align: center; }
.contact-box h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 20px; text-transform: uppercase; }
.channel-links { display: flex; flex-direction: column; gap: 20px; max-width: 400px; margin: 0 auto; }
.btn-social { position: relative; display: block; text-align: center; padding: 20px; border-radius: 12px; font-size: 1.5rem; font-weight: 900; color: #fff; text-decoration: none; text-transform: uppercase; }
.btn-social i { position: absolute; left: 50px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }
.btn-tg { background: #0088cc; }
.btn-tato { background: #e838cc; } 
.btn-signal { background: #3A76F0; } 

/* ================= 右侧购物车抽屉 ================= */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 999; display: none; }
.cart-drawer { position: fixed; top: 0; right: -500px; width: 100%; max-width: 450px; height: 100vh; background: var(--bg-main); border-left: 2px solid var(--primary-neon); z-index: 1000; transition: right 0.3s; display: flex; flex-direction: column; }
.cart-drawer.active { right: 0; }
.cd-header { padding: 25px; border-bottom: 2px solid #333; display: flex; justify-content: space-between; align-items: center; background: var(--bg-surface); }
.cd-header h2 { font-size: 2rem; font-weight: 900; }
.cd-close { font-size: 2.5rem; cursor: pointer; color: #fff; }
.cd-body { flex-grow: 1; padding: 20px; overflow-y: auto; }
.cd-item { background: var(--bg-surface); padding: 15px; border-radius: 12px; margin-bottom: 15px; display: flex; flex-direction: column; gap: 10px; border: 1px solid #333; }
.cd-item-name { font-size: 1.1rem; font-weight: 900; line-height: 1.3; }
.cd-item-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.cd-price { font-size: 1.5rem; font-weight: 900; color: var(--primary-neon); }
.cd-qty-ctrl { display: flex; align-items: center; gap: 15px; background: var(--bg-input); padding: 5px 15px; border-radius: 8px; }
.cd-qty-ctrl button { background: none; border: none; color: #fff; font-size: 1.5rem; font-weight: 900; cursor: pointer; }
.cd-qty-ctrl span { font-size: 1.5rem; font-weight: 900; }
.cd-footer { padding: 25px; background: var(--bg-surface); border-top: 2px solid #333; }
.cd-total { font-size: 1.8rem; font-weight: 900; display: flex; justify-content: space-between; margin-bottom: 20px; }
.btn-checkout { width: 100%; padding: 20px; background: var(--primary-neon); color: #fff; border: none; border-radius: 12px; font-size: 1.8rem; font-weight: 900; text-transform: uppercase; cursor: pointer; }

/* ================= 各类全屏弹窗 ================= */
.checkout-modal-wrapper { position: fixed; inset: 0; background: rgba(10,10,12,0.95); z-index: 2000; overflow-y: auto; display: none; padding: 20px; backdrop-filter: blur(5px); }
.checkout-container { max-width: 800px; margin: 40px auto; background: var(--bg-surface); border: 2px solid #333; border-radius: 16px; padding: 40px 30px; position: relative; }
.close-checkout-btn { position: absolute; top: 20px; right: 25px; font-size: 2.5rem; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.close-checkout-btn:hover { color: #fff; }
.co-title { font-size: 2.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: 30px; text-align: center; border-bottom: 2px solid #333; padding-bottom: 20px; }

.form-label { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; display: block; color: var(--text-muted); }
.form-input { width: 100%; background: var(--bg-input); border: 2px solid #444; padding: 20px; border-radius: 12px; color: #fff; font-size: 1.5rem; font-weight: 700; margin-bottom: 25px; outline: none; }
.form-input:focus { border-color: var(--primary-neon); }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 40px; }
.pay-btn { background: var(--bg-input); border: 2px solid #444; padding: 20px; border-radius: 12px; text-align: center; font-size: 1.5rem; font-weight: 900; cursor: pointer; text-transform: uppercase; }
.pay-btn.selected { background: var(--primary-neon); border-color: var(--primary-neon); color: #fff; }

.co-summary { background: var(--bg-input); padding: 25px; border-radius: 12px; margin-bottom: 30px; font-size: 1.5rem; font-weight: 900; }
.co-summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.co-summary-total { font-size: 2rem; color: var(--primary-neon); border-top: 2px solid #444; padding-top: 15px; margin-top: 15px; display: flex; justify-content: space-between; align-items: center; white-space: nowrap; }
.btn-submit-order { width: 100%; padding: 20px; background: #fff; color: #000; border: none; border-radius: 12px; font-size: 1.6rem; font-weight: 900; text-transform: uppercase; cursor: pointer; white-space: nowrap; display: flex; justify-content: center; align-items: center; }

/* ================= 成功弹窗 ================= */
.success-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; }
.success-box { background: var(--bg-surface); border: 4px solid var(--primary-neon); padding: 40px; border-radius: 16px; text-align: center; max-width: 600px; width: 100%; }
.success-box i { font-size: 5rem; color: var(--primary-neon); margin-bottom: 20px; }
.success-box h2 { font-size: 3rem; font-weight: 900; margin-bottom: 20px; text-transform: uppercase; }
.success-box p { font-size: 1.5rem; color: #ddd; margin-bottom: 30px; }
.success-box button { padding: 20px 40px; font-size: 1.5rem; font-weight: 900; background: #fff; color: #000; border: none; border-radius: 12px; cursor: pointer; }

/* ================= 手机端终极紧凑排版优化 ================= */
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .container { padding: 30px 15px; }
    .section-title { font-size: 2rem; margin-bottom: 20px; }
    .p-img { height: 130px; border-bottom: 1px solid #333; }
    .p-info { padding: 10px; }
    .p-title { font-size: 1rem; margin-bottom: 8px; line-height: 1.1; }
    .weight-select { padding: 6px 4px; font-size: 0.8rem; margin-bottom: 8px; border-radius: 6px; border-width: 1px; }
    .pound-note { font-size: 0.65rem; margin-bottom: 8px; line-height: 1.1; }
    .btn-add { padding: 10px; font-size: 0.9rem; border-radius: 8px; }
    .hero { padding: 40px 5%; }
    .hero h1 { font-size: 2.5rem; }
    .logo-text { font-size: 1.8rem; }
    .cart-btn { padding: 8px 15px; font-size: 1rem; }
    .co-summary-total { font-size: 1.6rem; }
    .btn-submit-order { font-size: 1.3rem; padding: 18px; }
}