/* ===== CSS 自定义属性 ===== */
:root {
    --primary: #c9a84c;
    --primary-dark: #a8872e;
    --primary-light: #f0d080;
    --accent: #e74c3c;
    --accent-dark: #c0392b;
    --bg-dark: #0a0a0f;
    --bg-card: #14141e;
    --bg-card-hover: #1c1c2a;
    --text-light: #f5f0e8;
    --text-muted: #a09888;
    --text-gold: #f0d080;
    --border-glow: rgba(201, 168, 76, 0.3);
    --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.15);
    --radius: 12px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-title: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-body: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
}

/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ===== 容器 ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 背景装饰 ===== */
.bg-glow {
    position: fixed;
    top: -30%;
    right: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.bg-glow-2 {
    position: fixed;
    bottom: -30%;
    left: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(231, 76, 60, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== 顶部导航 ===== */
.navbar {
    position: relative;
    z-index: 10;
    padding: 16px 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-gold);
    letter-spacing: 2px;
}
.navbar .brand i {
    font-size: 28px;
    color: var(--accent);
}
.navbar .brand span {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    z-index: 1;
    padding: 60px 0 30px;
    text-align: center;
}
.hero .badge {
    display: inline-block;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--accent);
    padding: 4px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}
.hero h1 {
    font-family: var(--font-title);
    font-size: clamp(2.4rem, 8vw, 4.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(201, 168, 76, 0.2);
}
.hero .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 24px;
    letter-spacing: 2px;
    font-weight: 300;
}
.hero .subtitle em {
    font-style: normal;
    color: var(--text-gold);
}

/* ===== 醒目的QQ群 ===== */
.hero .qq-group {
    display: inline-block;
    background: linear-gradient(135deg, #1a2a3a, #0d1a2a);
    border: 2px solid var(--primary);
    border-radius: 60px;
    padding: 14px 36px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-gold);
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.25);
    margin-top: 8px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    transition: all var(--transition);
}
.hero .qq-group i {
    margin-right: 12px;
    color: #12b7f5;
}
.hero .qq-group strong {
    font-weight: 900;
    color: #fff;
    background: var(--primary);
    padding: 0 10px;
    border-radius: 30px;
    margin-left: 6px;
}
.hero .qq-group:hover {
    transform: scale(1.03);
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.4);
}

/* ===== 下载区域（位于QQ群下方） ===== */
.download-section {
    position: relative;
    z-index: 1;
    padding: 10px 0 40px;
    text-align: center;
}
.download-section .section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-gold);
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.download-section .section-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
}
.download-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
}
.btn-download i {
    font-size: 20px;
}
.btn-download .platform-label {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
    display: block;
    margin-top: -2px;
}
.btn-download .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.btn-android {
    background: linear-gradient(135deg, #3ddc84, #1a8a4a);
    border-color: #3ddc84;
    box-shadow: 0 8px 32px rgba(61, 220, 132, 0.3);
}
.btn-android:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 48px rgba(61, 220, 132, 0.45);
}

.btn-pc {
    background: linear-gradient(135deg, #1a2a4a, #0d1a2e);
    border-color: rgba(100, 180, 255, 0.2);
}
.btn-pc:hover {
    background: linear-gradient(135deg, #2a3a5e, #15203a);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(100, 180, 255, 0.15);
}

/* ===== 游戏特色 ===== */
.features {
    position: relative;
    z-index: 1;
    padding: 50px 0 40px;
}
.features .section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text-gold);
    margin-bottom: 40px;
    letter-spacing: 2px;
}
.features .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 12px auto 0;
    border-radius: 10px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card .icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 14px;
    display: block;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== 截图轮播 ===== */
.gallery {
    position: relative;
    z-index: 1;
    padding: 40px 0 50px;
}
.gallery .section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text-gold);
    margin-bottom: 36px;
    letter-spacing: 2px;
}
.gallery .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 12px auto 0;
    border-radius: 10px;
}

.slider-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-glow);
}
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0a0a12;
}
.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    will-change: transform;
}
.slider-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a12;
}
.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-btn:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}
.slider-btn.prev {
    left: 16px;
}
.slider-btn.next {
    right: 16px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 10px;
    background: var(--bg-card);
}
.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    padding: 0;
}
.slider-dots .dot.active {
    background: var(--primary);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.5);
    transform: scale(1.2);
}
.slider-dots .dot:hover {
    background: var(--primary-light);
}

/* ===== 微信提示浮层 ===== */
.wechat-tip {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.wechat-tip .tip-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    position: relative;
}
.wechat-tip .tip-box .close-tip {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color var(--transition);
}
.wechat-tip .tip-box .close-tip:hover {
    color: #fff;
}
.wechat-tip .tip-box .tip-icon {
    font-size: 56px;
    color: #07c160;
    margin-bottom: 12px;
}
.wechat-tip .tip-box h3 {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 8px;
}
.wechat-tip .tip-box p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}
.wechat-tip .tip-box .tip-strong {
    color: var(--text-gold);
    font-weight: 600;
    font-size: 18px;
}

/* ===== 页脚 ===== */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 30px 0 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.5px;
}
.footer .copyright {
    opacity: 0.6;
    font-size: 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0 20px;
    }
    .hero .qq-group {
        font-size: 18px;
        padding: 12px 24px;
        margin-bottom: 16px;
    }
    .download-section {
        padding: 10px 0 30px;
    }
    .download-grid {
        flex-direction: column;
        align-items: center;
    }
    .download-grid .btn-download {
        max-width: 320px;
        width: 100%;
    }
    .btn-download {
        min-width: 160px;
        padding: 12px 24px;
        font-size: 14px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .feature-card {
        padding: 20px 14px;
    }
    .feature-card .icon {
        font-size: 32px;
    }
    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .slider-btn.prev {
        left: 8px;
    }
    .slider-btn.next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .feature-card h3 {
        font-size: 15px;
    }
    .feature-card p {
        font-size: 12px;
    }
    .navbar .brand {
        font-size: 18px;
    }
    .slider-container {
        aspect-ratio: 4 / 3;
    }
    .hero .qq-group {
        font-size: 16px;
        padding: 10px 18px;
    }
}