/* style.css - V8.4 全站樣式 (含 How to Buy) */

/* --- 1. 全局設定 --- */
:root {
    --bg-color: #050505; --card-bg: #141414; --text-main: #ffffff; --text-sub: #888888;
    --accent-color: #00ffaa; --logo-red: #d63031; --logo-glow: rgba(214, 48, 49, 0.4);
    --bronze: #cd7f32; --silver: #e0e0e0; --gold: #ffd700; --diamond: #b9f2ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', 'Microsoft JhengHei', sans-serif; background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; } ul { list-style: none; }

/* --- 2. 導航列 --- */
.navbar { background: rgba(20, 20, 20, 0.95); padding: 15px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #222; backdrop-filter: blur(10px); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { font-size: 1.5rem; font-weight: 900; color: var(--accent-color); letter-spacing: 1px; }
.nav-links { display: flex; gap: 30px; } .nav-links a { color: #ccc; font-size: 0.95rem; font-weight: 500; } .nav-links a:hover, .nav-links a.active { color: white; }
.nav-actions { display: flex; gap: 15px; align-items: center; }
.search-box { background: #222; padding: 5px 15px; border-radius: 50px; display: flex; align-items: center; gap: 10px; border: 1px solid #333; }
.search-box input { background: transparent; border: none; color: white; outline: none; font-size: 0.9rem; width: 120px; }
.btn-line { background: #06C755; color: white; border: none; padding: 6px 15px; border-radius: 50px; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 0.9rem; }
.btn-line:hover { background: #05a546; }

/* --- 3. 主視覺 --- */
.hero { text-align: center; padding: 60px 20px; background: radial-gradient(circle at center, #1a0505 0%, #050505 70%); }
.hero-title { font-size: 3.5rem; font-weight: 900; color: var(--logo-red); text-shadow: 0 0 20px var(--logo-glow); margin-bottom: 10px; letter-spacing: 2px; }
.hero-title.text-white { color: white !important; text-shadow: 0 0 20px rgba(255,255,255,0.2); }
.hero-subtitle { color: var(--text-sub); letter-spacing: 3px; font-size: 0.9rem; }

/* --- 4. 內容區塊 --- */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.section-title { text-align: center; font-size: 1.8rem; margin-bottom: 40px; color: white; }

/* --- 5. 商品列表 --- */
.product-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; }
.product-card { background: var(--card-bg); border: 1px solid #222; border-radius: 15px; width: 260px; padding: 20px; text-align: center; position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); border-color: #333; }
.tag-badge { position: absolute; top: 15px; left: 15px; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; color: white; z-index: 2; }
.tag-hot { background: linear-gradient(45deg, #ff4757, #ff6b81); box-shadow: 0 2px 10px rgba(255, 71, 87, 0.4); }
.tag-time { background: linear-gradient(45deg, #ffa502, #eccc68); color: black; }
.tag-sale { background: #3742fa; }
.product-img { width: 100%; height: 160px; object-fit: contain; margin-bottom: 15px; filter: drop-shadow(0 5px 5px rgba(0,0,0,0.3)); }
.game-title { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 5px; }
.product-name { font-size: 1.1rem; font-weight: bold; margin-bottom: 10px; color: white; }
.price-box { display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.old-price { text-decoration: line-through; color: #555; font-size: 0.9rem; }
.new-price { color: #ff4757; font-size: 1.4rem; font-weight: 900; }
.filter-section { margin-bottom: 40px; }
.filter-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.filter-btn { background: #222; color: #aaa; border: 1px solid #333; padding: 8px 20px; border-radius: 50px; cursor: pointer; transition: 0.2s; }
.filter-btn:hover, .filter-btn.active { background: var(--accent-color); color: black; border-color: var(--accent-color); font-weight: bold; }

/* --- 6. VIP 頁面樣式 --- */
.vip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 50px; }
.vip-card { background: #141414; border: 1px solid #333; border-radius: 20px; padding: 40px 20px; text-align: center; transition: 0.3s; position: relative; }
.vip-card:hover { transform: translateY(-10px); }
.vip-icon { font-size: 3rem; margin-bottom: 20px; }
.vip-title { font-size: 1.5rem; margin-bottom: 10px; font-weight: 900; }
.vip-condition { color: #888; font-size: 0.9rem; margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 20px; }
.vip-benefits { text-align: left; padding-left: 10px; } .vip-benefits li { margin-bottom: 12px; color: #ddd; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.tier-bronze { border-top: 5px solid var(--bronze); } .tier-bronze .vip-icon, .tier-bronze .vip-title { color: var(--bronze); }
.tier-silver { border-top: 5px solid var(--silver); } .tier-silver .vip-icon, .tier-silver .vip-title { color: var(--silver); }
.tier-gold { border-top: 5px solid var(--gold); } .tier-gold .vip-icon, .tier-gold .vip-title { color: var(--gold); }
.tier-diamond { border-top: 5px solid var(--diamond); background: linear-gradient(180deg, #1a2a33 0%, #141414 100%); } 
.tier-diamond .vip-icon, .tier-diamond .vip-title, .tier-diamond li i { color: var(--diamond); }
.vip-note { text-align: center; color: #555; font-size: 0.85rem; line-height: 1.8; }

/* --- 7. How to Buy 頁面樣式 (新增) --- */
.step-section { margin-bottom: 80px; }
.steps-container { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.step-card { background: #1a1a1a; border: 1px solid #333; padding: 30px; border-radius: 20px; width: 220px; text-align: center; position: relative; transition: 0.3s; }
.step-card:hover { transform: translateY(-10px); border-color: var(--accent-color); }
.step-icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 15px; }
.step-number { position: absolute; top: 15px; right: 15px; font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.05); }
.step-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; color: white; }
.step-desc { color: #888; font-size: 0.9rem; }
.step-arrow { color: #333; font-size: 1.5rem; }

/* QA 摺疊樣式 */
.qa-container { max-width: 800px; margin: 0 auto; }
.qa-item { border-bottom: 1px solid #222; margin-bottom: 10px; }
.qa-question { width: 100%; background: none; border: none; padding: 20px; color: white; font-size: 1.1rem; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }
.qa-question:hover { color: var(--accent-color); }
.qa-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding: 0 20px; color: #aaa; font-size: 0.95rem; line-height: 1.6; }
.qa-item.active .qa-answer { max-height: 200px; padding-bottom: 20px; }
.qa-item.active .qa-question i { transform: rotate(180deg); }

footer { text-align: center; padding: 40px; color: #555; font-size: 0.9rem; border-top: 1px solid #111; margin-top: 50px; }

/* RWD */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .product-card { width: 45%; min-width: 160px; }
    .product-grid { gap: 15px; }
    .product-img { height: 120px; }
    .vip-grid { grid-template-columns: 1fr; }
    
    /* How to buy 手機版 */
    .steps-container { flex-direction: column; }
    .step-card { width: 100%; max-width: 300px; }
    .step-arrow { transform: rotate(90deg); margin: 10px 0; }
}