/* ===== style.css ===== */
/* 爱游戏(AYX)官方网站 - IGAME | pp-igame.com */

/* ---------- CSS变量 & 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #0d0d2b;
    --secondary: #1a1a4e;
    --accent: #ffd700;
    --accent2: #ff6b35;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text: #e8e8f0;
    --text-dark: #1a1a2e;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--primary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.5s, color 0.5s;
}
body.dark-mode { --primary: #0a0a1a; --secondary: #12122e; --text: #d0d0e0; --glass-bg: rgba(255,255,255,0.05); }
body.light-mode { --primary: #f5f5fa; --secondary: #e8e8f0; --text: #1a1a2e; --glass-bg: rgba(0,0,0,0.04); --glass-border: rgba(0,0,0,0.1); --shadow: 0 8px 32px rgba(0,0,0,0.08); }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent2); }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* ---------- 头部 & 导航 ---------- */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(13, 13, 43, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.5s, border-color 0.5s;
}
.light-mode header { background: rgba(245, 245, 250, 0.85); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }
.logo svg { width: 40px; height: 40px; }
.logo span { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
nav ul { display: flex; gap: 28px; align-items: center; }
nav ul li a { color: var(--text); font-weight: 500; font-size: 0.95rem; padding: 6px 0; position: relative; transition: color 0.3s; }
nav ul li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: var(--transition); }
nav ul li a:hover::after, nav ul li a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.theme-toggle, .search-toggle, .menu-toggle {
    background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text);
    padding: 8px 14px; border-radius: 30px; cursor: pointer; font-size: 1rem;
    transition: all 0.3s; display: flex; align-items: center; gap: 6px;
}
.theme-toggle:hover, .search-toggle:hover, .menu-toggle:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.menu-toggle { display: none; }

/* ---------- 移动导航 ---------- */
.mobile-nav {
    position: fixed; top: 70px; left: 0; width: 100%;
    background: rgba(13, 13, 43, 0.98); backdrop-filter: blur(20px);
    padding: 24px; transform: translateY(-120%); transition: var(--transition);
    z-index: 999; border-bottom: 1px solid var(--glass-border);
}
.light-mode .mobile-nav { background: rgba(245, 245, 250, 0.98); }
.mobile-nav.open { transform: translateY(0); }
.mobile-nav ul { flex-direction: column; gap: 16px; }
.mobile-nav ul li a { font-size: 1.1rem; color: var(--text); }

/* ---------- 搜索遮罩 ---------- */
.search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    z-index: 2000; display: none; align-items: center; justify-content: center;
}
.search-overlay.active { display: flex; }
.search-box {
    background: var(--secondary); padding: 32px; border-radius: var(--radius);
    width: 90%; max-width: 600px; box-shadow: var(--shadow); border: 1px solid var(--glass-border);
}
.search-box input {
    width: 100%; padding: 16px 20px; border: 2px solid var(--glass-border);
    background: var(--glass-bg); color: var(--text); border-radius: var(--radius-sm);
    font-size: 1.1rem; outline: none; transition: border-color 0.3s;
}
.search-box input:focus { border-color: var(--accent); }
.search-box .close-search {
    margin-top: 16px; background: var(--accent); color: #000; border: none;
    padding: 10px 24px; border-radius: 30px; cursor: pointer; font-weight: 600;
    transition: background 0.3s;
}
.search-box .close-search:hover { background: var(--accent2); }

/* ---------- 英雄横幅 ---------- */
.hero {
    margin-top: 80px; position: relative; overflow: hidden; min-height: 85vh;
    display: flex; align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #0a0a2e 100%);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.08), transparent 60%);
    pointer-events: none;
}
.hero-slider { position: relative; width: 100%; }
.hero-slide { display: none; animation: fadeIn 0.8s ease; }
.hero-slide.active { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-content { flex: 1 1 500px; padding: 40px 0; }
.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent), #fff, var(--accent2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 28px; max-width: 600px; }
.hero-btn {
    display: inline-block; background: var(--accent); color: #000; padding: 14px 40px;
    border-radius: 50px; font-weight: 700; font-size: 1.05rem;
    transition: all 0.3s; border: none; cursor: pointer;
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(255, 215, 0, 0.3); color: #000; }
.hero-visual { flex: 1 1 400px; display: flex; justify-content: center; }
.hero-visual svg { width: 100%; max-width: 500px; border-radius: var(--radius); box-shadow: var(--shadow); }
.slider-controls { display: flex; gap: 12px; margin-top: 32px; }
.slider-dot {
    width: 12px; height: 12px; border-radius: 50%; background: var(--glass-border);
    cursor: pointer; transition: all 0.3s; border: none;
}
.slider-dot.active { background: var(--accent); width: 32px; border-radius: 20px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 毛玻璃卡片 ---------- */
.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 32px; box-shadow: var(--shadow); transition: all 0.4s;
}
.glass-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }

/* ---------- 通用区块 ---------- */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-title p { max-width: 600px; margin: 0 auto; opacity: 0.8; font-size: 1.05rem; }

/* ---------- 网格系统 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* ---------- 通用卡片 ---------- */
.card {
    background: var(--glass-bg); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 24px; transition: all 0.4s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.3); }
.card-icon { margin-bottom: 16px; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--glass-bg); }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { opacity: 0.85; font-size: 0.95rem; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before { content: ''; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--primary); }
.timeline-item h4 { font-size: 1.1rem; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--glass-border); padding: 16px 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 8px 0; }
.faq-question span { transition: var(--transition); }
.faq-answer { max-height: 0; overflow: hidden; transition: all 0.4s; opacity: 0; }
.faq-item.open .faq-answer { max-height: 400px; opacity: 1; padding: 12px 0 8px; }
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); }

/* ---------- HowTo 步骤 ---------- */
.step { display: flex; gap: 20px; margin-bottom: 24px; align-items: flex-start; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #000; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.step-content h4 { margin-bottom: 6px; }

/* ---------- 页脚 ---------- */
footer { background: var(--secondary); border-top: 1px solid var(--glass-border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 40px; }
.footer-col h4 { color: var(--accent); margin-bottom: 16px; font-size: 1.05rem; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { opacity: 0.8; font-size: 0.9rem; transition: opacity 0.3s; }
.footer-col ul li a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.85rem; opacity: 0.7; }

/* ---------- 返回顶部 ---------- */
.back-top {
    position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px;
    border-radius: 50%; background: var(--accent); color: #000;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; border: none; font-size: 1.4rem; box-shadow: var(--shadow);
    z-index: 999; transition: all 0.3s;
}
.back-top.visible { display: flex; }
.back-top:hover { transform: scale(1.1); }

/* ---------- 动画类 ---------- */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- 面包屑 ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; font-size: 0.9rem; opacity: 0.8; }
.breadcrumb a { color: var(--text); }
.breadcrumb span { color: var(--accent); }

/* ---------- 合作伙伴 ---------- */
.partner-logos { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; }
.partner-logos svg { width: 120px; height: 60px; opacity: 0.6; transition: opacity 0.3s; }
.partner-logos svg:hover { opacity: 1; }

/* ---------- 客户评价 ---------- */
.testimonial-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 28px; }
.testimonial-card .stars { color: var(--accent); font-size: 1.2rem; margin-bottom: 12px; }

/* ---------- 新闻卡片 ---------- */
.news-card { background: var(--glass-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-border); transition: all 0.4s; }
.news-card:hover { transform: translateY(-4px); }
.news-card .card-body { padding: 20px; }
.news-card .card-body .date { font-size: 0.85rem; opacity: 0.6; }
.news-card .card-body h3 { font-size: 1.05rem; margin: 8px 0; }
.news-card .card-body p { font-size: 0.9rem; opacity: 0.8; }
.read-more { color: var(--accent); font-weight: 600; display: inline-block; margin-top: 8px; }

/* ---------- 地图占位 ---------- */
.map-placeholder { background: var(--glass-bg); border-radius: var(--radius); height: 300px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--glass-border); }

/* ---------- 统计数字 ---------- */
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .hero-slide.active { flex-direction: column; text-align: center; }
    .hero-content p { margin: 0 auto 28px; }
    .slider-controls { justify-content: center; }
}
@media (max-width: 768px) {
    nav ul { display: none; }
    .menu-toggle { display: flex; }
    .header-inner { padding: 10px 0; }
    .hero { min-height: 60vh; }
    section { padding: 50px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.8rem; }
}