:root {
    --gold: #f0b90b;
    --gold-dark: #c9940a;
    --gold-light: #fce38a;
    --red: #e74c3c;
    --red-dark: #c0392b;
    --dark: #1a0a0a;
    --dark-2: #2d1520;
    --dark-3: #3d1f2d;
    --text: #f0e6d0;
    --text-muted: #b8a89a;
    --card-bg: rgba(30, 15, 25, 0.85);
    --gradient-hero: linear-gradient(180deg, rgba(10,5,5,0.3) 0%, rgba(20,10,15,0.9) 80%, #1a0a0a 100%);
    --gradient-card: linear-gradient(135deg, rgba(240,185,11,0.08) 0%, rgba(240,185,11,0.02) 100%);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========== Decorative Background ========== */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(240,185,11,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(231,76,60,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 70%, rgba(240,185,11,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ========== Navigation ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.35s ease;
}
.nav.scrolled {
    background: rgba(20, 8, 12, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 20px 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;
}
.nav-logo span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1a0a0a !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700 !important;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s !important;
}
.nav-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,185,11,0.4); }
.nav-btn::after { display: none !important; }
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    margin: 5px auto;
    transition: all 0.3s;
    border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(20, 8, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        transition: right 0.4s ease;
    }
    .nav-links.active { right: 0; }
    .menu-toggle { display: block; }
    .nav-btn { padding: 12px 28px; font-size: 1rem; }
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10,5,5,0.4) 0%,
        rgba(20,10,15,0.7) 50%,
        var(--dark) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 24px;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-tag {
    display: inline-block;
    background: rgba(240,185,11,0.15);
    border: 1px solid rgba(240,185,11,0.3);
    color: var(--gold);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1.3;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 32px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1a0a0a;
    box-shadow: 0 4px 20px rgba(240,185,11,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(240,185,11,0.5); }
.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid rgba(240,185,11,0.5);
}
.btn-outline:hover { background: rgba(240,185,11,0.1); transform: translateY(-3px); }
/* ========== Download Buttons ========== */
.download-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    min-width: 200px;
    justify-content: center;
}
.btn-android {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    box-shadow: 0 4px 20px rgba(76,175,80,0.35);
}
.btn-android:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(76,175,80,0.5);
}
.btn-ios {
    background: linear-gradient(135deg, #2196f3, #1565c0);
    color: #fff;
    box-shadow: 0 4px 20px rgba(33,150,243,0.35);
}
.btn-ios:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(33,150,243,0.5);
}

@media (max-width: 480px) {
    .download-btns { flex-direction: column; align-items: center; }
    .btn-download { width: 100%; max-width: 280px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ========== QR Code Popup (Hero) ========== */
.download-btn-wrap {
    position: relative;
    display: inline-flex;
}

.qrcode-popup {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #fff;
    padding: 12px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 100;
}
.qrcode-popup::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;
}
.qrcode-popup canvas,
.qrcode-popup img {
    display: block;
    width: 140px;
    height: 140px;
}

.download-btn-wrap:hover .qrcode-popup {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .download-btn-wrap { display: flex; width: 100%; }
    .download-btn-wrap .btn { width: 100%; justify-content: center; }
    .qrcode-popup { display: none; }
}

/* ========== QR Code Display (CTA Section) ========== */
.qrcode-display {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.qrcode-display canvas,
.qrcode-display img {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: var(--radius-md);
    background: #fff;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.qrcode-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}
.hero-scroll svg { width: 28px; height: 28px; color: var(--gold); }

/* ========== Section Common ========== */
section {
    position: relative;
    z-index: 1;
    padding: 80px 24px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.section-title-left {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    text-align: left;
}
.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Intro Section ========== */
.intro .intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.intro-visual {
    position: relative;
}
.intro-visual img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.intro-visual .glow {
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--radius-lg) + 4px);
    background: linear-gradient(135deg, rgba(240,185,11,0.3), transparent, rgba(231,76,60,0.3));
    z-index: -1;
    filter: blur(10px);
    opacity: 0.6;
}
.intro-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.intro-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.9;
}
.intro-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.intro-tags span {
    background: rgba(240,185,11,0.08);
    border: 1px solid rgba(240,185,11,0.2);
    color: var(--gold-light);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .intro .intro-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .intro-visual { order: 1; }
    .intro-text { order: 2; }
}

/* ========== Features ========== */
.features { background: rgba(20, 10, 15, 0.3); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(240,185,11,0.08);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    backdrop-filter: blur(10px);
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(240,185,11,0.25);
}
.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(240,185,11,0.15), rgba(240,185,11,0.05));
    border-radius: 16px;
}
.feature-card h4 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== Welfare Section ========== */
.welfare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.welfare-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid rgba(240,185,11,0.1);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}
.welfare-card:hover {
    border-color: rgba(240,185,11,0.3);
    background: rgba(40, 20, 25, 0.9);
}
.welfare-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
}
.badge-1 { background: linear-gradient(135deg, #f0b90b, #c9940a); color: #1a0a0a; }
.badge-2 { background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff; }
.badge-3 { background: linear-gradient(135deg, #9b59b6, #8e44ad); color: #fff; }
.badge-4 { background: linear-gradient(135deg, #2ecc71, #27ae60); color: #fff; }
.badge-5 { background: linear-gradient(135deg, #3498db, #2980b9); color: #fff; }
.badge-6 { background: linear-gradient(135deg, #e67e22, #d35400); color: #fff; }
.welfare-card h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 700;
}
.welfare-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========== Screenshots Carousel ========== */
.gallery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-track .gallery-item {
    flex-shrink: 0;
    width: calc(100% / 3);
    padding: 0 10px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 9/16;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
}
.gallery-track .gallery-item:hover { transform: scale(1.03); }
.gallery-track .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    border-radius: var(--radius-lg);
}
.gallery-track .gallery-item:hover img { transform: scale(1.08); }
.gallery-track .gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}
.gallery-track .gallery-item:hover .overlay { opacity: 1; }

@media (max-width: 768px) {
    .gallery-track .gallery-item {
        width: calc(100% / 2);
    }
}
@media (max-width: 480px) {
    .gallery-track .gallery-item {
        width: 100%;
        padding: 0 6px;
    }
}

/* Carousel controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(240,185,11,0.3);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 2;
    backdrop-filter: blur(6px);
}
.carousel-btn:hover {
    background: rgba(240,185,11,0.15);
    border-color: var(--gold);
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(240,185,11,0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.carousel-dots button.active {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(240,185,11,0.5);
}

/* ========== Video ========== */
.video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    max-width: 800px;
    margin: 0 auto;
}
.video-wrapper video {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

/* ========== CTA Banner ========== */
.cta-section {
    text-align: center;
}
.cta-card {
    background: linear-gradient(135deg, rgba(240,185,11,0.1), rgba(231,76,60,0.08));
    border: 1px solid rgba(240,185,11,0.2);
    border-radius: var(--radius-lg);
    padding: 56px 32px;
    backdrop-filter: blur(10px);
}
.cta-card h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #fff;
    margin-bottom: 12px;
    font-weight: 800;
}
.cta-card p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

/* ========== Footer ========== */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid rgba(240,185,11,0.08);
}
.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;
}
.footer-logo span {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
}
footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-copyright {
    margin-top: 6px;
    opacity: 0.6;
}

/* Friend Links */
.friend-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(240,185,11,0.08);
}
.friend-links h4 {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}
.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.friend-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.friend-links-list a:hover {
    color: var(--gold);
}

/* ========== 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: opacity 0.35s;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    transform: scale(0.9);
    transition: transform 0.35s;
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.lightbox-close:hover { opacity: 1; }

/* ========== Animations ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: rgba(240,185,11,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(240,185,11,0.5); }

/* ========== Back to Top ========== */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20,10,15,0.85);
    border: 1px solid rgba(240,185,11,0.3);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.35s, transform 0.35s;
}
.back-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-top:hover {
    background: rgba(240,185,11,0.15);
    border-color: var(--gold);
    transform: translateY(-2px);
}
.back-top svg { width: 22px; height: 22px; }
