:root {
    /* Colors */
    --primary-gold: #fde3a3;
    --primary-gold-dark: #ccb06a;
    --bg-dark: #0a0a0b;
    --bg-card: #141417;
    --text-main: #e0e0e0;
    --text-dim: #999999;
    --accent-red: #ff3e3e;
    --nav-height: 80px;
    --container-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.nav-links a {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.loader-content {
    text-align: center;
}

.pulse-logo {
    width: 120px;
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar {
    width: 100px;
    height: 2px;
    background: #333;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gold);
    animation: loading 1.5s infinite linear;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

@keyframes loading {
    to {
        left: 100%;
    }
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-nav.scrolled {
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.mobile-social {
    display: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-selector {
    position: relative;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    min-width: 180px;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
}

/* 增加一个透明遮罩层桥接间隙，防止鼠标滑下时失焦 */
.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.lang-selector:hover .lang-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-dim);
}

.lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-gold);
}

.social-icons {
    display: flex;
    gap: 15px;
    font-size: 18px;
    color: var(--text-dim);
}

.social-icons a:hover {
    color: var(--primary-gold);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(10, 10, 11, 0.9) 80%);
}

.hero-content {
    max-width: 800px;
}

.sub-title {
    color: var(--primary-gold);
    font-size: 16px;
    letter-spacing: 4px;
    font-weight: 400;
    margin-bottom: 15px;
}

.main-title {
    font-size: clamp(48px, 8vw, 84px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.main-title span {
    display: block;
    font-size: 0.5em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Download Buttons */
.download-group {
    display: flex;
    gap: 20px;
}

.download-btn {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-smooth);
}

.download-btn i {
    font-size: 32px;
}

.download-btn .btn-text span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.download-btn .btn-text strong {
    font-size: 18px;
}

.download-btn:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(253, 227, 163, 0.2);
}

/* Scroll Down */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-down span {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-dim);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-dim);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 2px;
    animation: mouseScroll 2s infinite;
}

@keyframes mouseScroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--bg-dark);
}

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

.eyebrow {
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

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

.highlight {
    font-size: 24px;
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-dim);
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-gold);
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.char-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(235, 184, 52, 0.1), transparent 60%);
    pointer-events: none;
}

/* Features Slider */
.features {
    padding: 120px 0;
    background: #0f0f12;
}

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

.section-center h2 {
    font-size: 36px;
    margin: 10px 0;
}

.features-swiper {
    padding: 50px 0;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.feature-card h3 {
    padding: 24px;
    text-align: center;
    font-size: 18px;
    letter-spacing: 2px;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover img {
    transform: scale(1.1);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-gold) !important;
}

.swiper-pagination-bullet {
    background: #fff !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-gold) !important;
}

/* Footer */
.main-footer {
    padding: 80px 0 40px;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group h4 {
    margin-bottom: 20px;
    color: white;
    font-size: 16px;
}

.link-group a {
    display: block;
    margin-bottom: 12px;
    color: var(--text-dim);
    font-size: 14px;
}

.link-group a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: 12px;
}

.payment-icons {
    display: flex;
    gap: 20px;
    font-size: 24px;
}

/* Side Floating Button */
.side-floating-btn {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    transition: var(--transition-smooth);
    display: none;
}

@media (min-width: 993px) {
    .side-floating-btn {
        display: block;
    }
}

.side-floating-btn:hover {
    transform: translateY(-50%) scale(1.05);
    filter: brightness(1.2);
}

.side-floating-btn img {
    width: 100px;
    height: auto;
    display: block;
}

/* Popup Modal */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 90%;
    max-width: 600px;
    background: transparent;
    border-radius: 12px;
    text-align: center;
}

.popup-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.popup-close:hover {
    color: var(--primary-gold);
}

/* Popup responsive images */
.popup-img-mobile {
    display: none;
}

@media (max-width: 768px) {
    .popup-img-desktop {
        display: none;
    }

    .popup-img-mobile {
        display: block;
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    body.nav-open {
        overflow: hidden;
    }

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

    /* Mobile Nav Overlay */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 11, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 24px;
        color: white;
    }

    .mobile-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        width: 30px;
        height: 30px;
        padding: 0;
    }

    /* Hamburger Animation */
    .mobile-toggle i {
        transition: transform 0.3s ease;
    }

    .mobile-toggle.active i::before {
        content: "\f00d";
        /* FontAwesome Xmark */
    }

    .nav-extra {
        gap: 15px;
    }

    .social-icons {
        display: none;
        /* Hide in header, maybe move to nav-links? */
    }

    /* Show social icons inside mobile nav if needed */
    .nav-links .mobile-social {
        display: flex;
        gap: 20px;
        margin-top: 40px;
        font-size: 24px;
        color: var(--text-dim);
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 40px;
    }

    .download-group {
        flex-direction: column;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
}