/* ===== 全局样式 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6a00;
    --primary-dark: #e55d00;
    --primary-light: #ff8533;
    --secondary: #ff3366;
    --accent: #ffcc00;
    --dark: #0a0a0f;
    --dark-2: #12121a;
    --dark-3: #1a1a28;
    --dark-4: #222236;
    --text: #e8e8f0;
    --text-muted: #9898b0;
    --text-dim: #686880;
    --gradient-1: linear-gradient(135deg, #ff6a00, #ff3366);
    --gradient-2: linear-gradient(135deg, #ff3366, #ff6a00);
    --gradient-dark: linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%);
    --shadow-glow: 0 0 30px rgba(255, 106, 0, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 16px 0;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 106, 0, 0.15);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-title {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero区域 ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.3) 0%,
        rgba(10, 10, 15, 0.7) 50%,
        rgba(10, 10, 15, 0.95) 100%
    );
}

.hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
    padding-top: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 6px 20px 6px 6px;
    margin-bottom: 24px;
}

.hero-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-type {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-title {
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 900;
    margin-bottom: 16px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--accent);
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.hero-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

/* 倒计时 */
.hero-countdown {
    margin-bottom: 36px;
}

.countdown-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.time-block span:first-child {
    font-size: 40px;
    font-weight: 900;
    color: var(--primary);
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    min-width: 60px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.time-block span:last-child {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--gradient-1);
    color: #fff;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(255, 106, 0, 0.4);
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 106, 0, 0.6);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #fff;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* 首屏按钮QR悬浮提示 */
.btn-primary {
    position: relative;
    overflow: visible;
}

.hero-qr-tooltip {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-3);
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 100;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.hero-qr-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 106, 0, 0.3);
}

.btn-primary:hover .hero-qr-tooltip {
    opacity: 1;
    visibility: visible;
}

.hero-qr-tooltip canvas,
.hero-qr-tooltip img {
    display: block;
    width: 120px;
    height: 120px;
}

@media (max-width: 768px) {
    .hero-qr-tooltip {
        display: none;
    }
}

/* ===== 一句话介绍 ===== */
.tagline {
    padding: 30px 0;
    background: var(--dark-2);
    border-bottom: 1px solid rgba(255, 106, 0, 0.1);
}

.tagline-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
}

.tagline-icon {
    font-size: 28px;
}

/* ===== 通用Section标题 ===== */
.section-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 12px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 50px;
}

/* ===== 游戏特色 ===== */
.features {
    padding: 100px 0;
    background: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 106, 0, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-icon img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== 精彩截图 ===== */
.gallery {
    padding: 100px 0;
    background: var(--dark-2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1188 / 670;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 24px;
    border: 2px solid #fff;
    border-radius: 50px;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===== 灯箱 ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 1;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
}

/* ===== 上线福利 ===== */
.welfare {
    padding: 100px 0;
    background: var(--dark);
}

.welfare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}

.welfare-card {
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.welfare-card:hover {
    border-color: rgba(255, 106, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.welfare-card.highlight {
    border-color: rgba(255, 204, 0, 0.4);
    background: linear-gradient(180deg, rgba(255, 204, 0, 0.08), transparent);
}

.welfare-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.welfare-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.welfare-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== 宣传图 ===== */
.promo {
    padding: 100px 0;
    background: var(--dark-2);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.promo-grid img {
    width: 100%;
    border-radius: var(--radius);
    transition: transform 0.4s ease;
}

.promo-grid img:hover {
    transform: scale(1.03);
}

/* ===== 游戏信息 ===== */
.game-info {
    padding: 60px 0;
    background: var(--dark-3);
    border-top: 1px solid rgba(255, 106, 0, 0.1);
    border-bottom: 1px solid rgba(255, 106, 0, 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.info-text p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

/* ===== 视频展示 ===== */
.video-section {
    padding: 100px 0;
    background: var(--dark);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.video-card {
    background: var(--dark-3);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.video-card video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.video-card h4 {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
}

/* ===== 下载区域 ===== */
.download {
    padding: 100px 0;
    background: var(--dark-2);
}

.download-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--dark-3);
    border: 1px solid rgba(255, 106, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.download-icon img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 20px;
    object-fit: cover;
}

.download-card h3 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
}

.download-version {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-dl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
    font-size: 16px;
}

.btn-ios {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-android {
    background: var(--gradient-1);
}

.btn-dl:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-dl-icon {
    font-size: 28px;
}

.btn-dl-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-dl-text small {
    font-size: 11px;
    opacity: 0.8;
}

.btn-dl-text strong {
    font-size: 18px;
}

.download-qr p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.qr-code {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code canvas,
.qr-code img {
    width: 140px;
    height: 140px;
    display: block;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 106, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.6);
}

/* ===== 页脚 ===== */
.footer {
    padding: 60px 0 30px;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    text-align: center;
    margin-bottom: 24px;
}

.footer-brand img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-friends {
    text-align: center;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.friends-title {
    color: var(--text-dim);
    font-size: 13px;
}

.footer-friends a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-friends a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 2;
}

/* ===== 滚动动画 ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式设计 ===== */

/* 平板 */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        min-height: 600px;
    }
}

/* 小平板/大手机 */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 80px 40px;
        gap: 24px;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .countdown-timer {
        gap: 10px;
    }

    .time-block span:first-child {
        font-size: 28px;
        min-width: 48px;
        padding: 6px 8px;
    }

    .time-block {
        min-width: 50px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .welfare-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 60px 0 !important;
    }
}

/* 手机 */
@media (max-width: 480px) {
    .hero {
        min-height: 100vh;
        height: auto;
    }

    .hero-overlay {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-desc {
        font-size: 13px;
    }

    .countdown-timer {
        gap: 6px;
    }

    .time-block span:first-child {
        font-size: 24px;
        min-width: 40px;
        padding: 4px 6px;
    }

    .time-block {
        min-width: 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .welfare-grid {
        grid-template-columns: 1fr;
    }

    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        padding: 32px 24px;
    }

    .tagline-content {
        font-size: 15px;
        flex-direction: column;
    }

    .footer-links {
        gap: 16px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .section-title {
        font-size: 26px;
    }
}
