:root {
    --primary: #ff6b2b;
    --primary-dark: #e55a1a;
    --gold: #ffd700;
    --gold-dark: #c9a600;
    --dark: #0a0a1a;
    --darker: #050510;
    --card-bg: #111133;
    --card-border: #222255;
    --text: #e8e8f0;
    --text-muted: #9999bb;
    --gradient-main: linear-gradient(135deg, #ff6b2b 0%, #ff3366 50%, #8b2fcf 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #ffd700 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a1a 0%, #1a0a25 50%, #0a0a1a 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== 星空背景粒子 ===== */
.stars-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== 浮动光效 ===== */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 8s ease-in-out infinite;
}
.glow-orb:nth-child(2) { animation-delay: -4s; }
.glow-orb:nth-child(3) { animation-delay: -2s; top: 60%; left: 70%; width: 500px; height: 500px; background: #8b2fcf; }
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}
.navbar.scrolled,
.navbar.menu-active {
    background: rgba(10, 10, 26, 0.85);
    border-bottom: 1px solid rgba(255, 107, 43, 0.2);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-logo img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
.nav-logo span {
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s;
    border-radius: 1px;
}
.nav-links a:hover::after { width: 100%; }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ===== 英雄区 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
    z-index: 1;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-dark);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255, 107, 43, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 47, 207, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 51, 102, 0.1) 0%, transparent 50%);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}
.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out;
    letter-spacing: 2px;
}
.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}
.hero-title .gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title .gold-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.8;
}
.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(255, 107, 43, 0.35);
    letter-spacing: 1px;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 43, 0.5);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 1px;
}
.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
}
.hero-banner {
    margin-top: 48px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 107, 43, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero-banner img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ===== 板块通用 ===== */
.section {
    position: relative;
    padding: 100px 24px;
    z-index: 1;
}
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-label {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255, 107, 43, 0.15);
    border: 1px solid rgba(255, 107, 43, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 2px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 12px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 游戏特色卡片 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.4s;
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 43, 0.4);
    box-shadow: 0 20px 50px rgba(255, 107, 43, 0.1);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 43, 0.15), rgba(139, 47, 207, 0.15));
}
.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== 截图画廊轮播 ===== */
.carousel-container {
    max-width: 948px;
    margin: 0 auto;
}
.carousel-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    aspect-ratio: 948 / 533;
}
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(6px);
    line-height: 1;
}
.carousel-arrow:hover {
    background: rgba(255, 107, 43, 0.7);
    transform: translateY(-50%) scale(1.1);
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

/* 缩略图 */
.carousel-thumbs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.thumb-item {
    width: 100px;
    height: 62px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.5;
    flex-shrink: 0;
}
.thumb-item:hover { opacity: 0.8; }
.thumb-item.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(255, 107, 43, 0.5);
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .carousel-arrow {
        width: 36px; height: 36px;
        font-size: 1.3rem;
    }
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
    .thumb-item {
        width: 72px; height: 44px;
    }
}

/* ===== 福利区 ===== */
.benefits-section {
    background: linear-gradient(180deg, var(--darker) 0%, rgba(20, 10, 40, 0.8) 50%, var(--darker) 100%);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.benefit-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100px; height: 100px;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.benefit-card:hover {
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.08);
}
.benefit-num {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: var(--gradient-gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--dark);
}
.benefit-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}
.benefit-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.highlight-num {
    color: var(--gold);
    font-weight: 700;
}

/* ===== 充值促区 ===== */
.rate-card {
    background: linear-gradient(135deg, rgba(255, 107, 43, 0.08), rgba(139, 47, 207, 0.08));
    border: 1px solid rgba(255, 107, 43, 0.3);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 107, 43, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139, 47, 207, 0.1) 0%, transparent 50%);
}
.rate-card > * { position: relative; z-index: 1; }
.rate-big {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}
.rate-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
}
.rate-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 2px;
    margin: 20px auto;
}

/* ===== CTA ===== */
.cta-section {
    text-align: center;
    padding: 120px 24px;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, var(--darker), rgba(10, 10, 26, 0.95));
}
.cta-section .section-title {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Footer ===== */
.footer {
    background: var(--darker);
    border-top: 1px solid var(--card-border);
    padding: 40px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ===== 友情链接 ===== */
.friendly-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.fl-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}
.fl-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fl-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 4px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: all 0.3s;
}
.fl-list a:hover {
    color: var(--gold);
    border-color: rgba(255,215,0,0.3);
    background: rgba(255,215,0,0.06);
}
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo img {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.footer-logo span {
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== 灯箱弹窗 ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ===== 按钮悬停二维码 ===== */
.btn-qr-wrapper {
    position: relative;
    display: inline-flex;
}
.qr-popup {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 10;
}
.qr-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.qr-popup-inner {
    background: #1a1a2e;
    border: 1px solid rgba(255, 107, 43, 0.3);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}
.qr-popup-inner::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #1a1a2e;
    border-right: 1px solid rgba(255, 107, 43, 0.3);
    border-bottom: 1px solid rgba(255, 107, 43, 0.3);
}
.qr-popup-inner canvas,
.qr-popup-inner img {
    display: block;
    width: 140px !important;
    height: 140px !important;
    border-radius: 8px;
}
.qr-popup-inner span {
    display: block;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
}

/* ===== 下载区二维码 ===== */
.download-qr-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 48px;
    margin-bottom: 12px;
}
.download-qr-item {
    text-align: center;
}
.download-qr-box {
    width: 160px;
    height: 160px;
    background: #1a1a2e;
    border: 1px solid rgba(255, 107, 43, 0.25);
    border-radius: 16px;
    padding: 12px;
    margin: 0 auto 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.download-qr-box canvas,
.download-qr-box img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 6px;
}
.download-qr-item span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== 动画元素滚动入视 ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-main);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s;
    box-shadow: 0 6px 20px rgba(255, 107, 43, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-3px); }

/* ===== 响应式 ===== */
/* 平板端 */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 手机端 */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--card-border);
        padding: 20px 24px;
        gap: 16px;
    }
    .mobile-menu-btn { display: block; }
    .hero { padding-top: 100px; }
    .section { padding: 60px 20px; }
    .benefits-grid { grid-template-columns: 1fr; }
    .rate-card { padding: 32px 20px; }
    .back-to-top { bottom: 20px; right: 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-section .hero-btns {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }
    .cta-section .hero-btns .btn-primary,
    .cta-section .hero-btns .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
