/* ========== CSS Reset & Variables ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gold: #d4a843;
    --gold-light: #f0d68a;
    --gold-dark: #8b6914;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --text: #e0d8c8;
    --text-dim: #8a8578;
    --red: #c0392b;
    --red-light: #e74c3c;
    --gradient-gold: linear-gradient(135deg, #8b6914, #d4a843, #f0d68a, #d4a843);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #14101a 50%, #0d0d15 100%);
    --gradient-card: linear-gradient(145deg, rgba(20,20,35,0.9), rgba(15,15,25,0.95));
    --shadow-gold: 0 0 30px rgba(212,168,67,0.15);
    --font-title: 'STKaiti', 'KaiTi', '楷体', 'Noto Serif SC', serif;
    --font-body: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(212,168,67,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(139,105,20,0.06) 0%, transparent 50%),
        var(--gradient-dark);
}

/* ========== Navigation ========== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.nav.scrolled,
.nav.menu-open {
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212,168,67,0.1);
    box-shadow: var(--shadow-gold);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.nav-logo img {
    height: 40px; width: 40px; border-radius: 10px;
    border: 2px solid var(--gold);
}
.nav-logo span {
    font-family: var(--font-title);
    font-size: 1.4rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a {
    color: var(--text-dim); text-decoration: none;
    font-size: 1rem; transition: color 0.3s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%; height: 2px;
    background: var(--gradient-gold); transition: transform 0.3s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-cta {
    background: var(--gradient-gold); color: #1a1a10 !important;
    padding: 10px 28px !important; border-radius: 50px;
    font-weight: bold; font-size: 0.95rem !important;
    transition: all 0.3s !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,168,67,0.4); }
.nav-cta::after { display: none !important; }

.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px; background: none; border: none;
}
.menu-toggle span {
    width: 24px; height: 2px; background: var(--gold);
    transition: all 0.3s; border-radius: 2px;
}

/* ========== Hero Section ========== */
.hero {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; justify-content: center;
    overflow: hidden; padding: 100px 24px 80px;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.5; filter: brightness(0.6);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(10,10,15,0.4) 0%,
        rgba(10,10,15,0.2) 40%,
        rgba(10,10,15,0.85) 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center; max-width: 800px;
}
.hero-badge {
    display: inline-block;
    background: rgba(212,168,67,0.15);
    border: 1px solid rgba(212,168,67,0.3);
    color: var(--gold-light);
    padding: 6px 20px; border-radius: 50px;
    font-size: 0.85rem; margin-bottom: 20px;
}
.hero-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2; margin-bottom: 16px;
    text-shadow: none;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-dim); margin-bottom: 12px;
    letter-spacing: 4px;
}
.hero-tagline {
    font-size: 1rem; color: var(--text);
    opacity: 0.8; max-width: 600px; margin: 0 auto 32px;
}
.hero-info {
    display: flex; justify-content: center; gap: 40px;
    flex-wrap: wrap; margin-bottom: 40px;
}
.hero-info-item {
    text-align: center;
}
.hero-info-item .label {
    display: block; font-size: 0.75rem; color: var(--text-dim);
    margin-bottom: 4px;
}
.hero-info-item .value {
    font-family: var(--font-title);
    font-size: 1rem; color: var(--gold);
}
.hero-buttons {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.btn {
    display: inline-block; padding: 14px 40px; border-radius: 50px;
    font-size: 1rem; font-weight: bold; text-decoration: none;
    transition: all 0.3s; cursor: pointer; border: none;
    font-family: var(--font-body);
}
.btn-primary {
    background: var(--gradient-gold); color: #1a1a10;
    box-shadow: 0 4px 20px rgba(212,168,67,0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(212,168,67,0.5); }
.btn-outline {
    background: transparent; color: var(--gold);
    border: 2px solid var(--gold);
}
.btn-outline:hover { background: rgba(212,168,67,0.1); transform: translateY(-3px); }

.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    z-index: 2; animation: bounce 2s infinite;
}
.scroll-indicator span {
    display: block; width: 24px; height: 40px;
    border: 2px solid rgba(212,168,67,0.4); border-radius: 12px;
    position: relative;
}
.scroll-indicator span::after {
    content: ''; position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px; background: var(--gold);
    border-radius: 2px; animation: scrollDot 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}
@keyframes scrollDot {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 22px; opacity: 0.3; }
}

/* ========== Section Common ========== */
section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
    display: inline-block; color: var(--gold);
    font-size: 0.8rem; letter-spacing: 6px;
    text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #fff; margin-bottom: 12px;
}
.section-desc {
    color: var(--text-dim); max-width: 600px;
    margin: 0 auto; font-size: 0.95rem;
}
.gold-line {
    width: 60px; height: 2px;
    background: var(--gradient-gold);
    margin: 16px auto; border-radius: 1px;
}

/* ========== Intro Section ========== */
.intro-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}
.intro-image {
    border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(212,168,67,0.15);
    box-shadow: var(--shadow-gold);
}
.intro-image img {
    width: 100%; height: auto; display: block;
    transition: transform 0.5s;
}
.intro-image:hover img { transform: scale(1.03); }
.intro-text h2 {
    font-family: var(--font-title);
    font-size: 1.8rem; color: #fff; margin-bottom: 20px;
}
.intro-text p {
    color: var(--text-dim); line-height: 2;
    margin-bottom: 16px; font-size: 0.95rem;
}
.intro-stats {
    display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap;
}
.intro-stat {
    text-align: center; padding: 16px 24px;
    background: var(--gradient-card); border-radius: 12px;
    border: 1px solid rgba(212,168,67,0.1);
}
.intro-stat .num {
    font-family: var(--font-title);
    font-size: 1.8rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}
.intro-stat .desc { font-size: 0.8rem; color: var(--text-dim); margin-top: 4px; }

/* ========== Features Section ========== */
.features-section { background: rgba(255,255,255,0.01); }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--gradient-card);
    border: 1px solid rgba(212,168,67,0.08);
    border-radius: 16px; padding: 32px 24px;
    transition: all 0.4s; position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212,168,67,0.2);
    box-shadow: var(--shadow-gold);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    font-size: 2.5rem; margin-bottom: 16px; display: block;
}
.feature-card h3 {
    font-size: 1.15rem; color: var(--gold-light);
    margin-bottom: 10px; font-family: var(--font-title);
}
.feature-card p {
    font-size: 0.88rem; color: var(--text-dim);
    line-height: 1.8;
}

/* ========== Benefits Section ========== */
.benefits-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.benefit-item {
    display: flex; gap: 16px; padding: 24px;
    background: var(--gradient-card);
    border-radius: 12px; border: 1px solid rgba(212,168,67,0.08);
    transition: all 0.3s; align-items: flex-start;
}
.benefit-item:hover {
    border-color: rgba(212,168,67,0.25);
    transform: translateX(6px);
}
.benefit-num {
    font-family: var(--font-title);
    font-size: 1.5rem; color: var(--gold);
    min-width: 36px; text-align: center;
}
.benefit-content h4 {
    color: var(--gold-light); font-size: 0.95rem;
    margin-bottom: 4px; font-family: var(--font-title);
}
.benefit-content p { font-size: 0.85rem; color: var(--text-dim); }

/* ========== Gallery Carousel ========== */
.gallery-carousel {
    position: relative;
    max-width: 1060px;
    margin: 0 auto;
}
.carousel-viewport {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(212,168,67,0.15);
    box-shadow: var(--shadow-gold);
}
.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease;
}
.carousel-slide {
    flex: 0 0 calc((100% - 32px) / 3);
    aspect-ratio: 530 / 940;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.carousel-slide:hover img {
    transform: scale(1.05);
}
.carousel-slide::after {
    content: '🔍 点击放大';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
    background: rgba(0,0,0,0.45);
    opacity: 0; transition: opacity 0.3s;
}
.carousel-slide:hover::after { opacity: 1; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(10,10,15,0.8);
    border: 1px solid rgba(212,168,67,0.3);
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
    backdrop-filter: blur(8px);
}
.carousel-btn:hover {
    background: rgba(212,168,67,0.2);
    border-color: var(--gold);
}
.carousel-prev { left: -6px; }
.carousel-next { right: -6px; }

.carousel-dots {
    display: flex; gap: 8px; justify-content: center;
    margin-top: 20px;
}
.carousel-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(212,168,67,0.25);
    border: none; cursor: pointer;
    transition: all 0.3s;
}
.carousel-dot.active {
    background: var(--gold);
    box-shadow: 0 0 8px rgba(212,168,67,0.5);
}

/* ========== QR Code ========== */
.qr-btn-wrapper {
    position: relative;
    display: inline-block;
}
.qr-tooltip {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 2px var(--gold);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    z-index: 100;
    pointer-events: none;
}
.qr-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}
.qr-tooltip img,
.qr-tooltip canvas {
    display: block;
    width: 140px;
    height: 140px;
}
.qr-btn-wrapper:hover .qr-tooltip {
    opacity: 1;
    visibility: visible;
}

.download-qrcode {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.download-qrcode canvas,
.download-qrcode img {
    display: block;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}
.download-qrcode::before {
    content: '📱 扫码下载游戏';
    color: var(--text-dim);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .qr-btn-wrapper { display: contents; }
    .qr-tooltip { display: none !important; }
}

@media (max-width: 768px) {
    .gallery-carousel { max-width: 100%; }
    .carousel-track { gap: 8px; }
    .carousel-slide { flex: 0 0 calc((100% - 8px) / 2); }
    .carousel-btn { width: 36px; height: 36px; font-size: 1rem; }
    .carousel-prev { left: 2px; }
    .carousel-next { right: 2px; }
}

@media (max-width: 480px) {
    .carousel-slide { flex: 0 0 100%; }
}

/* ========== Discount Banner ========== */
.discount-banner {
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1010 50%, #1a0808 100%);
    border: 1px solid rgba(212,168,67,0.15);
    border-radius: 20px; padding: 48px 40px;
    text-align: center; position: relative; overflow: hidden;
}
.discount-banner::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.discount-content { position: relative; z-index: 1; }
.discount-big {
    font-family: var(--font-title);
    font-size: clamp(3rem, 8vw, 5rem);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold; line-height: 1;
}
.discount-label {
    font-size: 1.1rem; color: var(--text-dim);
    margin: 12px 0 8px;
}
.discount-desc {
    color: var(--text-dim); font-size: 0.9rem;
    max-width: 500px; margin: 0 auto 24px;
}

/* ========== Videos Section ========== */
.video-wrapper {
    max-width: 800px; margin: 0 auto;
    border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(212,168,67,0.15);
    box-shadow: var(--shadow-gold);
}
.video-wrapper video {
    width: 100%; display: block;
}

/* ========== CTA Section ========== */
.cta-section {
    background: linear-gradient(180deg, transparent, rgba(212,168,67,0.03));
}
.cta-card {
    max-width: 700px; margin: 0 auto; text-align: center;
    background: var(--gradient-card);
    border: 1px solid rgba(212,168,67,0.15);
    border-radius: 24px; padding: 56px 40px;
}
.cta-card h2 {
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #fff; margin-bottom: 16px;
}
.cta-card p { color: var(--text-dim); margin-bottom: 32px; font-size: 0.95rem; }
.cta-platforms { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ========== Footer ========== */
.footer {
    text-align: center; padding: 40px 24px;
    border-top: 1px solid rgba(212,168,67,0.06);
}
.footer p { color: var(--text-dim); font-size: 0.8rem; line-height: 2; }

/* ========== Friend Links ========== */
.friend-links {
    margin-bottom: 24px;
}
.friend-links h4 {
    font-family: var(--font-title);
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 12px;
}
.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
}
.friend-links-list a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
    position: relative;
}
.friend-links-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.friend-links-list a:hover {
    color: var(--gold-light);
}
.friend-links-list a:hover::after {
    transform: scaleX(1);
}
.footer-divider {
    width: 40px;
    height: 1px;
    background: rgba(212,168,67,0.15);
    margin: 24px auto;
}
/* ========== Lightbox ========== */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.95); cursor: pointer;
    align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 90vw; max-height: 90vh;
    border-radius: 8px; border: 1px solid rgba(212,168,67,0.2);
}
.lightbox-close {
    position: absolute; top: 20px; right: 40px;
    font-size: 2rem; color: var(--gold); cursor: pointer;
    z-index: 1;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 64px; left: 0; right: 0;
        background: rgba(10,10,15,0.98);
        backdrop-filter: blur(20px);
        padding: 24px; gap: 20px;
        border-bottom: 1px solid rgba(212,168,67,0.1);
    }
    .menu-toggle { display: flex; }

    .intro-grid {
        grid-template-columns: 1fr; gap: 40px;
    }
    .intro-image { order: -1; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-info { gap: 24px; }
    section { padding: 60px 20px; }
    .discount-banner { padding: 36px 24px; }
    .cta-card { padding: 40px 24px; }
    .benefits-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; text-align: center; }
    .intro-stats { flex-direction: column; }
    .benefit-item { padding: 16px; }
}

/* ========== Animations ========== */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: all 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10,10,15,0.85);
    border: 1px solid rgba(212,168,67,0.3);
    color: var(--gold);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: rgba(212,168,67,0.2);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212,168,67,0.3);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

/* Golden glow effect for important text */
.gold-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
