/* ============ Reset & Base ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-padding-top: 80px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    background: #0a0a0f;
    color: #e0d5c0;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #c9a96e; border-radius: 3px; }

/* ============ Preloader ============ */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: #0a0a0f;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo {
    width: 80px; height: 80px; margin: 0 auto 20px;
    border: 2px solid #c9a96e; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}
.preloader-logo span { color: #c9a96e; font-size: 2rem; font-weight: bold; }
.preloader-bar {
    width: 180px; height: 2px; background: rgba(201,169,110,0.2);
    border-radius: 1px; overflow: hidden;
}
.preloader-bar-fill {
    height: 100%; background: linear-gradient(90deg, #c9a96e, #d4a853);
    border-radius: 1px; animation: preloaderBar 1.8s ease-in-out infinite;
}
@keyframes preloaderPulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(201,169,110,0.3); } 50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(201,169,110,0.6); } }
@keyframes preloaderBar { 0% { width: 0; margin-left: 0; } 50% { width: 100%; margin-left: 0; } 100% { width: 0; margin-left: 100%; } }

/* ============ Navigation ============ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 2rem; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    transition: all 0.4s;
    background: transparent;
}
nav.scrolled { background: rgba(10,10,15,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(201,169,110,0.15); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 40px; border-radius: 8px; }
.nav-logo span { color: #c9a96e; font-size: 1.2rem; font-weight: 700; letter-spacing: 2px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: #b8a080; text-decoration: none; font-size: 0.9rem; letter-spacing: 1px; transition: color 0.3s; position: relative; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
    background: #c9a96e; transition: width 0.3s;
}
.nav-links a:hover, .nav-links a:hover::after { color: #c9a96e; width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; background: none; border: none; padding: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #c9a96e; transition: 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active 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;
    overflow: hidden; text-align: center;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: url('../images/banner/banner9cc4c4c0da179b77895096b33e0718741778495459.jpg') center/cover no-repeat;
}
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background: 
        linear-gradient(135deg, rgba(10,10,15,0.85) 0%, rgba(26,16,37,0.7) 30%, rgba(13,26,45,0.75) 60%, rgba(10,10,15,0.85) 100%);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(201,169,110,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 30%, rgba(180,50,50,0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(201,169,110,0.05) 0%, transparent 50%);
}
.hero-particles { position: absolute; inset: 0; z-index: 1; }
.hero-content { position: relative; z-index: 2; padding: 2rem; max-width: 900px; }
.hero-badge {
    display: inline-block; padding: 6px 20px; border: 1px solid rgba(201,169,110,0.3);
    border-radius: 100px; color: #c9a96e; font-size: 0.85rem; letter-spacing: 3px;
    margin-bottom: 2rem; backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease 0.3s both;
}
.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 900;
    background: linear-gradient(180deg, #f0d78c 0%, #c9a96e 30%, #8b6914 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: 6px;
    margin-bottom: 0.8rem; line-height: 1.2;
    animation: fadeInUp 1s ease 0.5s both;
}
.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem); color: #a09080;
    letter-spacing: 8px; margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.7s both;
}
.hero-slogan {
    font-size: clamp(1.1rem, 3.5vw, 1.6rem); color: #e0c080;
    margin-bottom: 2.5rem; letter-spacing: 2px;
    animation: fadeInUp 1s ease 0.9s both;
}
.hero-tag {
    display: inline-block; padding: 4px 16px; font-size: 0.8rem;
    color: #a08060; border: 1px solid rgba(160,128,96,0.3);
    border-radius: 100px; margin: 0 6px;
    animation: fadeInUp 1s ease 1.0s both;
}
.hero-cta {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    margin-top: 2.5rem; animation: fadeInUp 1s ease 1.1s both;
}
/* QR Code hover trigger */
.qrcode-trigger { position: relative; display: inline-flex; }
.qrcode-popup {
    position: absolute; bottom: calc(100% + 16px); left: 50%; transform: translateX(-50%);
    background: #fff; border-radius: 12px; padding: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    z-index: 10; line-height: 0;
}
.qrcode-popup::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 8px solid transparent; border-top-color: #fff;
}
.qrcode-trigger:hover .qrcode-popup,
.qrcode-trigger:focus-within .qrcode-popup { opacity: 1; visibility: visible; }
.qrcode-popup canvas,
.qrcode-popup img { display: block; border-radius: 8px; }
@media (hover: none) {
    .qrcode-trigger:hover .qrcode-popup { opacity: 0; visibility: hidden; }
}
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 36px; border-radius: 100px; font-size: 1rem;
    font-weight: 600; letter-spacing: 2px; cursor: pointer;
    text-decoration: none; transition: all 0.4s; border: none; position: relative;
    overflow: hidden; z-index: 1;
}
.btn-primary {
    background: linear-gradient(135deg, #c9a96e, #8b6914);
    color: #0a0a0f; box-shadow: 0 4px 30px rgba(201,169,110,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(201,169,110,0.5); }
.btn-outline {
    background: transparent; color: #c9a96e;
    border: 1px solid rgba(201,169,110,0.4);
}
.btn-outline:hover { background: rgba(201,169,110,0.08); border-color: #c9a96e; }
.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 2; animation: bounce 2s infinite;
}
.hero-scroll span { display: block; width: 20px; height: 20px; border-right: 2px solid #c9a96e; border-bottom: 2px solid #c9a96e; transform: rotate(45deg); opacity: 0.6; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* ============ Section Common ============ */
section { padding: 6rem 2rem; position: relative; scroll-margin-top: 80px; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
    display: inline-block; color: #c9a96e; font-size: 0.8rem;
    letter-spacing: 6px; text-transform: uppercase; margin-bottom: 1rem;
    opacity: 0.7;
}
.section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800;
    color: #e0d5c0; margin-bottom: 1rem; letter-spacing: 2px;
}
.section-title span { color: #c9a96e; }
.section-desc { color: #8a8070; max-width: 600px; margin: 0 auto; font-size: 0.95rem; }
.container { max-width: 1200px; margin: 0 auto; }

/* ============ About Section ============ */
#about { background: linear-gradient(180deg, #0a0a0f, #0d0d18, #0a0a0f); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-images { position: relative; }
.about-img-main {
    width: 100%; border-radius: 16px; border: 1px solid rgba(201,169,110,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); transition: transform 0.4s;
}
.about-img-main:hover { transform: scale(1.02); }
.about-img-float {
    position: absolute; bottom: -30px; right: -30px;
    width: 180px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.about-text h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: #e0d5c0; }
.about-text p { color: #9a9080; margin-bottom: 1.2rem; font-size: 0.95rem; line-height: 2; }
.about-stats { display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: #c9a96e; }
.stat-label { font-size: 0.8rem; color: #706050; letter-spacing: 2px; margin-top: 4px; }

/* ============ Features / Benefits ============ */
#benefits { background: #0a0a0f; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.benefit-card {
    background: linear-gradient(145deg, rgba(20,20,35,0.8), rgba(15,15,25,0.9));
    border: 1px solid rgba(201,169,110,0.1); border-radius: 16px;
    padding: 2.5rem 2rem; text-align: center; transition: all 0.4s;
    position: relative; overflow: hidden;
}
.benefit-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,110,0.3), transparent);
    opacity: 0; transition: opacity 0.4s;
}
.benefit-card:hover { transform: translateY(-6px); border-color: rgba(201,169,110,0.3); }
.benefit-card:hover::before { opacity: 1; }
.benefit-icon {
    width: 60px; height: 60px; margin: 0 auto 1.5rem;
    background: rgba(201,169,110,0.08); border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.benefit-card h4 { font-size: 1.15rem; color: #e0d5c0; margin-bottom: 0.8rem; }
.benefit-card p { color: #8a8070; font-size: 0.85rem; line-height: 1.8; }
.benefit-badge {
    display: inline-block; padding: 3px 12px; background: rgba(201,169,110,0.1);
    border-radius: 100px; font-size: 0.75rem; color: #c9a96e;
    margin-top: 1rem; letter-spacing: 1px;
}

/* ============ Screenshots ============ */
#screenshots { background: linear-gradient(180deg, #0a0a0f, #0d0d18); }
.screenshots-wrapper { position: relative; }
.screenshots-scroll {
    display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding: 1rem 0;
    scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot-item {
    flex: 0 0 calc(33.333% - 1rem); min-width: 280px;
    scroll-snap-align: start; border-radius: 16px;
    overflow: hidden; border: 1px solid rgba(201,169,110,0.15);
    transition: transform 0.4s; cursor: pointer; position: relative;
}
.screenshot-item:hover { transform: scale(1.03); }
.screenshot-item img { width: 100%; height: auto; display: block; }
.screenshot-nav { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }
.screenshot-nav button {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(201,169,110,0.3);
    background: rgba(10,10,15,0.8); color: #c9a96e; cursor: pointer;
    font-size: 1.2rem; transition: all 0.3s; display: flex; align-items: center; justify-content: center;
}
.screenshot-nav button:hover { background: rgba(201,169,110,0.15); border-color: #c9a96e; }

/* ============ Gallery (Promo Images) ============ */
#gallery { background: #0a0a0f; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.gallery-item {
    border-radius: 12px; overflow: hidden; border: 1px solid rgba(201,169,110,0.08);
    transition: all 0.4s; cursor: pointer; aspect-ratio: 9/16; max-width: 360px; margin: 0 auto;
}
.gallery-item:hover { transform: translateY(-4px); border-color: rgba(201,169,110,0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============ Video Section ============ */
#video { background: linear-gradient(180deg, #0d0d18, #0a0a0f); }
.video-wrapper {
    position: relative; max-width: 800px; margin: 0 auto;
    border-radius: 16px; overflow: hidden; border: 1px solid rgba(201,169,110,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    aspect-ratio: 16/9; background: #000;
}
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; }
.video-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5); cursor: pointer; transition: all 0.4s; z-index: 2;
}
.video-play.hidden { opacity: 0; pointer-events: none; }
.video-play-btn {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(201,169,110,0.9); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.video-play-btn::after {
    content: ''; display: block; width: 0; height: 0;
    border-left: 22px solid #0a0a0f;
    border-top: 14px solid transparent; border-bottom: 14px solid transparent;
    margin-left: 5px;
}
.video-play:hover .video-play-btn { transform: scale(1.1); background: #d4a853; }

/* ============ CTA Section ============ */
#cta { background: #0a0a0f; text-align: center; }
.cta-card {
    background: linear-gradient(145deg, rgba(25,20,40,0.9), rgba(15,10,25,0.9));
    border: 1px solid rgba(201,169,110,0.2); border-radius: 24px;
    padding: 4rem 2rem; max-width: 700px; margin: 0 auto;
    position: relative; overflow: hidden;
}
.cta-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(201,169,110,0.03), transparent, rgba(201,169,110,0.03), transparent);
    animation: rotate 20s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); color: #e0d5c0; margin-bottom: 1rem; }
.cta-card p { color: #9a9080; margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-qrcode {
    margin-top: 2rem; display: flex; justify-content: center;
}
.cta-qrcode canvas,
.cta-qrcode img { border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }

/* ============ Footer ============ */
footer {
    background: #07070d; padding: 4rem 2rem 2rem;
    text-align: center; border-top: 1px solid rgba(201,169,110,0.08);
}
.footer-links { display: flex; justify-content: center; gap: 3rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a { color: #8a8070; text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: #c9a96e; }
.footer-friends {
    display: flex; justify-content: center; align-items: center; gap: 1.5rem;
    margin-bottom: 1.5rem; flex-wrap: wrap;
}
.footer-friends-title { color: #504840; font-size: 0.8rem; letter-spacing: 2px; }
.footer-friends a { color: #605850; text-decoration: none; font-size: 0.8rem; transition: color 0.3s; }
.footer-friends a:hover { color: #c9a96e; }
.footer-copy { color: #504840; font-size: 0.8rem; }

/* ============ Back to Top ============ */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(201,169,110,0.4);
    background: rgba(10,10,15,0.85); color: #c9a96e;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; opacity: 0; visibility: hidden; transform: translateY(20px);
    backdrop-filter: blur(10px);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: rgba(201,169,110,0.15); border-color: #c9a96e; transform: translateY(-3px); }

/* ============ Lightbox ============ */
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.95); display: flex;
    align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.4s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.8); }
.lightbox-close {
    position: absolute; top: 2rem; right: 2rem; width: 44px; height: 44px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: transparent;
    color: #fff; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ============ Animations ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ Floating decoration ============ */
.floating-lantern {
    position: fixed; pointer-events: none; z-index: -1;
    width: 4px; height: 4px; background: #c9a96e;
    border-radius: 50%; opacity: 0; animation: floatUp 8s linear infinite;
}
@keyframes floatUp {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.2; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1.5); }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-img-float { width: 140px; bottom: -20px; right: -15px; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .screenshot-item { flex: 0 0 calc(50% - 0.75rem); }
}
@media (max-width: 768px) {
    section { padding: 4rem 1.2rem; }
    nav { padding: 0 1.2rem; }
    .nav-links {
        position: fixed; inset: 0; background: rgba(10,10,15,0.98);
        backdrop-filter: blur(30px); flex-direction: column;
        align-items: center; justify-content: center; gap: 2.5rem;
        opacity: 0; visibility: hidden; transition: all 0.4s;
        z-index: 1000;
    }
    .nav-links.active { opacity: 1; visibility: visible; }
    .nav-links a { font-size: 1.2rem; }
    .nav-toggle { display: flex; }
    .benefits-grid { grid-template-columns: 1fr; }
    .screenshot-item { flex: 0 0 85%; min-width: 250px; }
    .about-stats { justify-content: center; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .gallery-item { max-width: none; }
    .cta-btns { flex-direction: column; }
    .cta-btns .btn { width: 100%; justify-content: center; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 320px; justify-content: center; }
    .qrcode-trigger { width: 100%; max-width: 320px; }
    .qrcode-trigger .btn { width: 100%; }
}
@media (max-width: 480px) {
    .hero-title { letter-spacing: 3px; }
    .hero-subtitle { letter-spacing: 4px; }
    .btn { padding: 12px 28px; font-size: 0.9rem; }
    .screenshot-item { flex: 0 0 92%; }
    .cta-card { padding: 2.5rem 1.2rem; }
}
