/* 少年西游记2 官网样式 */
:root {
    --primary: #ff2a2a;
    --accent: #ffd700;
    --dark: #1a0a0a;
    --darker: #0f0505;
    --text: #fff;
    --muted: #d4c4b5;
    --glass: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 215, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    background: var(--darker);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(15,5,5,0.95), rgba(15,5,5,0));
    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(15, 5, 5, 0.95);
    backdrop-filter: blur(12px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.4);
}

.logo span {
    font-weight: 900;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--accent), #ff9d00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
}

nav a {
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0.85;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    opacity: 1;
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav .nav-download {
    padding: 8px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #ff6b35);
    color: #fff;
    opacity: 1;
    box-shadow: 0 6px 20px rgba(255, 42, 42, 0.4);
    transition: all 0.3s ease;
}

nav .nav-download::after {
    display: none;
}

nav .nav-download:hover {
    background: linear-gradient(135deg, var(--accent), #ff9d00);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(15,5,5,0.55) 0%, rgba(15,5,5,0.4) 50%, rgba(15,5,5,0.75) 100%),
        radial-gradient(circle at center, transparent 0%, rgba(15,5,5,0.6) 70%, rgba(15,5,5,0.95) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 8px 22px;
    border: 1px solid var(--border);
    background: rgba(255, 42, 42, 0.15);
    border-radius: 999px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero h1 span {
    display: block;
    background: linear-gradient(135deg, #fff 20%, var(--accent) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--muted);
    margin-bottom: 36px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.qr-trigger {
    position: relative;
}

.qr-popup {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
    width: 140px;
}

.qr-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}

.qr-trigger:hover .qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ff6b35);
    color: #fff;
    box-shadow: 0 8px 30px rgba(255, 42, 42, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 42, 42, 0.55);
}

.btn-secondary {
    background: var(--glass);
    color: var(--accent);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.12);
    transform: translateY(-3px);
}

.release-info {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.release-card {
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 28px;
    text-align: center;
    backdrop-filter: blur(8px);
    min-width: 150px;
}

.release-card .label {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 1px;
}

.release-card .value {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--accent);
    margin-top: 4px;
}

/* Sections */
section {
    padding: 100px 24px;
    position: relative;
}

#about, #benefits, #screenshots, #gallery, #guide, #download {
    scroll-margin-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.section-title span {
    background: linear-gradient(135deg, var(--accent), #ff9d00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* About */
.about {
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
}

.about-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text p {
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #ff6b35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Benefits */
.benefits {
    background: var(--darker);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,42,42,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: rgba(255, 42, 42, 0.15);
    border: 1px solid rgba(255, 42, 42, 0.3);
}

.benefit-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.benefit-desc {
    color: var(--muted);
    font-size: 0.95rem;
}

.highlight {
    color: var(--accent);
    font-weight: 900;
}

/* Screenshots */
.screenshots {
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
}

.screenshot-slider {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.screenshot-track {
    display: flex;
    transition: transform 0.5s ease;
}

.screenshot-track img {
    min-width: 100%;
    aspect-ratio: 752 / 434;
    object-fit: cover;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

.slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

/* Guide */
.guide {
    background: var(--darker);
}

.guide-intro {
    max-width: 860px;
    margin: 0 auto 48px;
    text-align: center;
    padding: 32px 40px;
    background: linear-gradient(145deg, rgba(255,215,0,0.08), rgba(255,42,42,0.05));
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--muted);
    font-size: 1.05rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.guide-card {
    background: linear-gradient(145deg, rgba(255,215,0,0.08), rgba(255,42,42,0.05));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,42,42,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.guide-card:hover::before {
    opacity: 1;
}

.guide-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.guide-card-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.guide-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #ff6b35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 42, 42, 0.35);
}

.guide-card h3 {
    font-size: 1.2rem;
    line-height: 1.5;
    padding-top: 6px;
}

.guide-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.guide-image {
    border-radius: 16px;
    border: 1px solid var(--border);
}

/* Download */
.download {
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,42,42,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.download-card:hover::before {
    opacity: 1;
}

.download-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.download-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #ff6b35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(255, 42, 42, 0.35);
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.download-info p {
    color: var(--muted);
    font-size: 0.9rem;
}

.download-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #ff6b35);
    color: #fff;
    font-weight: 900;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(255, 42, 42, 0.35);
    transition: all 0.3s ease;
}

.download-card:hover .download-btn {
    background: linear-gradient(135deg, var(--accent), #ff9d00);
    color: var(--dark);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.download-tip {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 32px;
}

.download-qr {
    margin: 48px auto 0;
    max-width: 220px;
    text-align: center;
}

.download-qr #downloadQr {
    display: inline-block;
    background: #fff;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.download-qr p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 16px;
}

/* Footer */
footer {
    background: #0a0303;
    padding: 60px 24px 30px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-logo img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
}

.footer-logo span {
    font-weight: 900;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--accent), #ff9d00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.friend-links {
    max-width: 900px;
    margin: 0 auto 32px;
    padding: 20px 24px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
}

.friend-links-title {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.friend-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
}

.friend-links-grid a {
    font-size: 0.85rem;
    color: var(--muted);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.friend-links-grid a:hover {
    color: var(--accent);
    opacity: 1;
}

.copyright {
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
}

/* Floating download */
.float-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: rgba(15, 5, 5, 0.92);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.float-bar img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.float-bar .info {
    display: none;
}

.float-bar .info strong {
    font-size: 0.95rem;
}

.float-bar .info small {
    color: var(--muted);
    font-size: 0.75rem;
}

.float-bar .btn-sm {
    padding: 12px 24px;
    font-size: 0.95rem;
}

/* Back to top */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 998;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ff6b35);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 42, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: linear-gradient(135deg, var(--accent), #ff9d00);
    color: var(--dark);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.45);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 12px 16px;
    }

    nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(15, 5, 5, 0.98);
        padding: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--border);
    }

    nav.open {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        gap: 16px;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    section {
        padding: 70px 16px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .float-bar {
        width: calc(100% - 32px);
        justify-content: space-between;
    }

    .float-bar .info {
        display: block;
    }

    .back-top {
        right: 16px;
        bottom: 96px;
    }

    .qr-popup {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .release-info {
        flex-direction: column;
        gap: 12px;
    }

    .release-card {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
