@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --bg-deep: #0a0a14;
    --bg-dark: #0f0f23;
    --bg-card: #151530;
    --gold: #d4a745;
    --gold-light: #f0d68a;
    --gold-dark: #8b6914;
    --accent: #c0392b;
    --accent-light: #e74c3c;
    --text: #e8e6e3;
    --text-dim: #9898a8;
    --border: rgba(212, 167, 69, 0.2);
    --gradient-gold: linear-gradient(135deg, #d4a745 0%, #f0d68a 50%, #c9983e 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 50%, #1a1a35 100%);
    --shadow-gold: 0 0 30px rgba(212, 167, 69, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 1200px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Particles Background ===== */
#particles-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}

/* ===== Navigation ===== */
.nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    backdrop-filter: blur(0px);
}
.nav.scrolled,
.nav.menu-open {
    background: rgba(10, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 167, 69, 0.15);
    padding: 10px 0;
}
.nav-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem; font-weight: 700;
    text-decoration: none;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
    color: var(--text-dim); text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    transition: var(--transition); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--gradient-gold); transition: var(--transition); border-radius: 2px;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    background: var(--gradient-gold); color: #1a1a1a;
    border: none; padding: 10px 24px; border-radius: 25px;
    font-weight: 700; font-size: 0.85rem; cursor: pointer;
    transition: var(--transition); font-family: inherit;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212, 167, 69, 0.3); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn span {
    display: block; width: 24px; height: 2px; background: var(--gold);
    margin: 5px 0; transition: var(--transition); border-radius: 2px;
}
.menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero Section ===== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center; overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(20, 20, 50, 0.6) 0%, transparent 70%),
                var(--bg-deep);
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: url('images/banner/banner52f9187bf6385d6991d0e0789088bbb11782353359.jpg') center/cover no-repeat;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}
.hero-overlay {
    position: relative; z-index: 1; padding: 40px 24px;
    max-width: 800px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(212, 167, 69, 0.1); border: 1px solid rgba(212, 167, 69, 0.3);
    border-radius: 50px; padding: 8px 20px; font-size: 0.85rem;
    color: var(--gold-light); margin-bottom: 28px; animation: fadeInDown 0.8s ease-out;
}
.hero-badge .dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: pulse-dot 2s infinite; }
.hero h1 {
    font-family: 'Noto Serif SC', serif; font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 900; line-height: 1.25; margin-bottom: 16px;
    background: linear-gradient(180deg, #fff 20%, var(--gold-light) 60%, #b8860b 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}
.hero-sub {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 700;
    background: var(--gradient-gold); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 12px; animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-desc {
    color: var(--text-dim); font-size: 1rem; max-width: 560px;
    margin: 0 auto 36px; animation: fadeInUp 0.8s ease-out 0.3s both;
}
.hero-btns {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 36px; border-radius: 50px;
    font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: var(--transition); text-decoration: none;
    font-family: inherit; border: none;
}
.btn-primary {
    background: var(--gradient-gold); color: #1a1a1a;
    box-shadow: 0 8px 30px rgba(212, 167, 69, 0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(212, 167, 69, 0.4); }
.btn-outline {
    background: transparent; color: var(--gold-light);
    border: 2px solid rgba(212, 167, 69, 0.5);
}
.btn-outline:hover { background: rgba(212, 167, 69, 0.08); border-color: var(--gold); }
.hero-scroll {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    z-index: 1; animation: bounce 2s infinite;
}
.hero-scroll svg { width: 24px; height: 24px; stroke: var(--gold-light); }

/* ===== Section Common ===== */
section { position: relative; z-index: 1; padding: 100px 24px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-label {
    display: inline-block; color: var(--gold); font-size: 0.85rem;
    font-weight: 600; letter-spacing: 4px; text-transform: uppercase;
    margin-bottom: 8px;
}
.section-title {
    font-family: 'Noto Serif SC', serif; font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700; margin-bottom: 16px;
}
.section-desc {
    color: var(--text-dim); font-size: 1rem; max-width: 640px;
    margin: 0 auto 48px; text-align: center;
}
.section-header { text-align: center; margin-bottom: 48px; }

/* ===== Bonuses ===== */
#bonuses { background: var(--bg-deep); }
.bonuses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bonus-card {
    display: flex; align-items: flex-start; gap: 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 20px;
    transition: var(--transition);
    opacity: 0; transform: translateY(30px);
}
.bonus-card.visible { opacity: 1; transform: translateY(0); }
.bonus-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
    border-color: rgba(212, 167, 69, 0.4);
}
.bonus-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
    background: rgba(212, 167, 69, 0.1);
    border: 1px solid rgba(212, 167, 69, 0.2);
}
.bonus-content h4 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.05rem; margin-bottom: 6px;
}
.bonus-content p {
    color: var(--text-dim); font-size: 0.88rem; line-height: 1.6;
}
.bonus-note {
    margin-top: 32px; padding: 20px 24px;
    background: rgba(212, 167, 69, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}
.bonus-note p { color: var(--text-dim); font-size: 0.85rem; }
.bonus-note strong { color: var(--gold-light); }

/* ===== Features Grid ===== */
#features { background: var(--gradient-dark); }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px 28px;
    transition: var(--transition); position: relative; overflow: hidden;
    opacity: 0; transform: translateY(30px);
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-gold); opacity: 0; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); border-color: rgba(212, 167, 69, 0.4); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex;
    align-items: center; justify-content: center; margin-bottom: 20px;
    font-size: 1.6rem; background: rgba(212, 167, 69, 0.1);
    border: 1px solid rgba(212, 167, 69, 0.2);
}
.feature-card h3 {
    font-family: 'Noto Serif SC', serif; font-size: 1.2rem; margin-bottom: 10px;
}
.feature-card p { color: var(--text-dim); font-size: 0.92rem; }
.feature-highlight {
    display: inline-block; margin-top: 12px; font-size: 0.85rem;
    font-weight: 700; color: var(--gold-light);
    background: rgba(212, 167, 69, 0.08);
    padding: 4px 14px; border-radius: 20px;
}

/* ===== Stats Strip ===== */
.stats-strip {
    background: var(--bg-card); border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); padding: 0;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    max-width: var(--max-width); margin: 0 auto;
}
.stat-item {
    text-align: center; padding: 36px 20px;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
    font-family: 'Noto Serif SC', serif; font-size: 2rem; font-weight: 900;
    background: var(--gradient-gold); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { color: var(--text-dim); font-size: 0.85rem; margin-top: 6px; }

/* ===== Gallery ===== */
#gallery { background: var(--bg-deep); }
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-item {
    border-radius: var(--radius); overflow: hidden; cursor: pointer;
    position: relative; aspect-ratio: 480/268;
    opacity: 0; transform: scale(0.95);
    transition: var(--transition);
}
.gallery-item.visible { opacity: 1; transform: scale(1); }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,20,0.6), transparent 50%);
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

/* ===== Characters ===== */
#characters { background: var(--gradient-dark); }
.chars-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}
.char-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: var(--transition); text-align: center;
    opacity: 0; transform: translateY(30px);
}
.char-card.visible { opacity: 1; transform: translateY(0); }
.char-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-gold); }
.char-card img {
    width: 100%; aspect-ratio: 3/4; object-fit: cover;
}
.char-info { padding: 20px 16px; }
.char-info h4 {
    font-family: 'Noto Serif SC', serif; font-size: 1.05rem; margin-bottom: 4px;
}
.char-info span {
    font-size: 0.82rem; color: var(--gold-light);
    background: rgba(212, 167, 69, 0.08);
    padding: 2px 12px; border-radius: 12px;
}

/* ===== Launch / CTA ===== */
#launch { background: var(--bg-deep); position: relative; overflow: hidden; }
.launch-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 56px 40px;
    text-align: center; max-width: 680px; margin: 0 auto;
    position: relative; overflow: hidden;
}
.launch-box::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(212, 167, 69, 0.04), transparent 60%);
    animation: rotate-slow 20s linear infinite;
}
@keyframes rotate-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.launch-box > * { position: relative; z-index: 1; }
.launch-box .date {
    font-family: 'Noto Serif SC', serif; font-size: 2rem; font-weight: 900;
    background: var(--gradient-gold); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 8px;
}
.launch-box .time {
    font-size: 1.2rem; color: var(--text-dim); margin-bottom: 28px;
}
.launch-cta { margin-top: 16px; }
.download-btns {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}
.btn-android,
.btn-ios {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; border-radius: 50px;
    font-weight: 700; font-size: 1.05rem; cursor: pointer;
    transition: var(--transition); text-decoration: none;
    font-family: inherit; border: none;
    min-width: 180px; justify-content: center;
}
.btn-android {
    background: var(--gradient-gold); color: #1a1a1a;
    box-shadow: 0 8px 30px rgba(212, 167, 69, 0.25);
}
.btn-android:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 167, 69, 0.4);
}
.btn-ios {
    background: transparent; color: var(--gold-light);
    border: 2px solid rgba(212, 167, 69, 0.5);
}
.btn-ios:hover {
    background: rgba(212, 167, 69, 0.08); border-color: var(--gold);
    transform: translateY(-3px);
}
@media (max-width: 480px) {
    .download-btns { flex-direction: column; align-items: center; }
    .btn-android, .btn-ios { width: 100%; max-width: 260px; }
}
.launch-info-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border);
}
.launch-info-item { text-align: center; }
.launch-info-item .label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 4px; }
.launch-info-item .value { font-weight: 700; font-size: 0.95rem; }
.launch-qr {
    margin-top: 28px; display: flex; flex-direction: column;
    align-items: center; gap: 12px;
}
.launch-qr canvas { border-radius: var(--radius-sm); }
.qr-tip { color: var(--text-dim); font-size: 0.85rem; }

/* ===== Button QR Popup ===== */
.btn-qr-wrap { position: relative; display: inline-flex; }
.btn-qr-wrap .qr-popup {
    position: absolute; bottom: calc(100% + 16px); left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px;
    opacity: 0; visibility: hidden; transition: var(--transition);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 100;
}
.btn-qr-wrap .qr-popup::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 8px solid transparent; border-top-color: var(--bg-card);
}
.btn-qr-wrap:hover .qr-popup { opacity: 1; visibility: visible; }
.btn-qr-wrap .qr-popup canvas { border-radius: 6px; display: block; }

@media (max-width: 480px) {
    .btn-qr-wrap { display: flex; width: 100%; }
    .btn-qr-wrap .qr-popup { display: none; }
}

/* ===== Friend Links ===== */
#friend-links { background: var(--bg-deep); padding-bottom: 80px; }
.friend-links-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
    max-width: 800px; margin: 0 auto;
}
.friend-links-grid a {
    display: inline-block; padding: 10px 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 50px; font-size: 0.9rem; color: var(--text-dim);
    text-decoration: none; transition: var(--transition);
    font-family: 'Noto Sans SC', sans-serif;
}
.friend-links-grid a:hover {
    color: var(--gold-light); border-color: rgba(212, 167, 69, 0.5);
    background: rgba(212, 167, 69, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* ===== Footer ===== */
footer {
    background: var(--bg-dark); border-top: 1px solid var(--border);
    padding: 48px 24px 28px; text-align: center;
}
.footer-text { color: var(--text-dim); font-size: 0.82rem; max-width: 600px; margin: 0 auto; }
.footer-text p + p { margin-top: 8px; }

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 998;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--gold-light); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    opacity: 0; visibility: hidden; transform: translateY(20px);
}
.back-to-top.visible {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover {
    background: rgba(212, 167, 69, 0.15);
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}
@media (max-width: 768px) {
    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 12px; }
.lightbox-close {
    position: absolute; top: 24px; right: 24px; background: none;
    border: none; font-size: 2rem; color: #fff; cursor: pointer;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.1); transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .bonuses-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links, .nav-cta.desktop { display: none; }
    .menu-btn { display: block; }
    .nav-links.mobile-open {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%;
        background: rgba(10, 10, 20, 0.96); backdrop-filter: blur(20px);
        padding: 24px; gap: 20px; border-bottom: 1px solid var(--border);
    }
    .nav-links.mobile-open a { font-size: 1.1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .launch-info-grid { grid-template-columns: 1fr; gap: 12px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-item { aspect-ratio: 480/268; }
    .launch-box { padding: 36px 24px; }
    section { padding: 70px 20px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .btn { padding: 12px 28px; font-size: 0.9rem; }
    .hero-btns { flex-direction: column; align-items: stretch; }
    .hero-btns .btn { width: 100%; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { aspect-ratio: 480/268; }
    .chars-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .bonuses-grid { grid-template-columns: 1fr; }
}
