/* ============ Reset & Base ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    background: #0a0a12;
    color: #e0e0e0;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a12; }
::-webkit-scrollbar-thumb { background: #c9a84c; border-radius: 3px; }

/* ============ Starfield BG ============ */
#starfield {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.content-wrapper { position: relative; z-index: 1; }

/* ============ Navbar ============ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 2rem;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}
.navbar.menu-open {
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}
.hamburger.active {
    background: rgba(201, 168, 76, 0.12);
    border-radius: 8px;
}
.nav-inner {
    max-width: 1300px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.nav-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: #fff;
}
.nav-logo img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.nav-logo span {
    font-size: 1.4rem; font-weight: 700;
    background: linear-gradient(135deg, #c9a84c, #f5e6b8, #c9a84c);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a {
    color: #b0b0c8; text-decoration: none; font-size: 0.95rem;
    transition: color 0.3s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: #c9a84c;
    transition: width 0.3s;
}
.nav-links a:hover { color: #f5e6b8; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    background: linear-gradient(135deg, #c9a84c, #b8942e);
    color: #0a0a12 !important; padding: 10px 24px !important;
    border-radius: 8px; font-weight: 600;
    transition: all 0.3s !important;
}
.nav-cta:hover {
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.4);
    transform: translateY(-2px);
}
.nav-cta::after { display: none !important; }
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px; background: none; border: none;
}
.hamburger span {
    width: 26px; height: 2px; background: #c9a84c;
    border-radius: 2px; transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============ Sections ============ */
section { padding: 100px 2rem; }
.section-inner { max-width: 1300px; margin: 0 auto; }

/* ============ Hero ============ */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; padding-top: 72px;
    background: 
        radial-gradient(ellipse at center, rgba(10,10,18,0.7) 0%, rgba(10,10,18,0.85) 70%, #0a0a12 100%),
        url('../images/banner/banner52f9187bf6385d6991d0e0789088bbb11782271613.jpg') center/cover no-repeat;
}
.hero .section-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
    display: inline-block; font-size: 0.85rem; padding: 6px 16px;
    border: 1px solid rgba(201,168,76,0.5); border-radius: 20px;
    color: #c9a84c; margin-bottom: 1.5rem; letter-spacing: 2px;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900;
    line-height: 1.2; margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fff 0%, #f5e6b8 40%, #c9a84c 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem; color: #8890b0; margin-bottom: 2rem; max-width: 480px;
}
.hero-stats { display: flex; gap: 2rem; margin-bottom: 2.5rem; }
.hero-stat {
    text-align: center;
    padding: 16px 24px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 12px;
}
.hero-stat .num {
    font-size: 1.8rem; font-weight: 800;
    background: linear-gradient(135deg, #c9a84c, #f5e6b8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat .label { font-size: 0.8rem; color: #667; margin-top: 4px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 36px; font-size: 1.05rem; font-weight: 600;
    background: linear-gradient(135deg, #c9a84c, #b8942e);
    color: #0a0a12; border: none; border-radius: 12px;
    cursor: pointer; text-decoration: none;
    transition: all 0.3s; box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(201,168,76,0.5);
}
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 36px; font-size: 1.05rem; font-weight: 600;
    background: transparent; color: #c9a84c;
    border: 2px solid rgba(201,168,76,0.4); border-radius: 12px;
    cursor: pointer; text-decoration: none;
    transition: all 0.3s;
}
.btn-secondary:hover {
    border-color: #c9a84c;
    background: rgba(201,168,76,0.08);
}
.hero-visual {
    position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-visual img {
    width: 100%; max-width: 500px; border-radius: 20px;
    box-shadow: 0 20px 60px rgba(201,168,76,0.2);
    animation: float 6s ease-in-out infinite;
}
.hero-glow {
    position: absolute; width: 400px; height: 400px;
    border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite; pointer-events: none;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes pulse {
    0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%,-50%) scale(1.2); opacity: 1; }
}

/* ============ Section Titles ============ */
.section-label {
    text-align: center; font-size: 0.85rem; color: #c9a84c;
    letter-spacing: 4px; text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
    text-align: center; font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800; color: #f5e6b8; margin-bottom: 1rem;
}
.section-desc {
    text-align: center; color: #667; max-width: 600px; margin: 0 auto 3rem;
}

/* ============ Features ============ */
#features { background: rgba(255,255,255,0.02); }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(201,168,76,0.1);
    border-radius: 20px; overflow: hidden;
    transition: all 0.4s;
    position: relative;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px; opacity: 0;
    background: radial-gradient(circle at center, rgba(201,168,76,0.05) 0%, transparent 70%);
    transition: opacity 0.4s;
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201,168,76,0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.feature-card:hover::before { opacity: 1; }
.feature-card img {
    width: 100%; height: 400px; object-fit: cover; object-position: bottom; display: block;
}
.feature-info { padding: 1.5rem; position: relative; z-index: 1; }
.feature-info h3 {
    font-size: 1.2rem; color: #f5e6b8; margin-bottom: 8px;
}
.feature-info p {
    font-size: 0.9rem; color: #778; line-height: 1.6;
}

/* ============ Screenshots Carousel ============ */
.screenshots-carousel {
    position: relative; max-width: 1300px; margin: 0 auto;
}
.screenshots-viewport {
    overflow: hidden; border-radius: 16px;
}
.screenshots-track {
    display: flex; transition: transform 0.5s ease;
}
.screenshot-item {
    flex-shrink: 0; width: calc(100% / 3); padding: 0.75rem;
    border-radius: 16px; overflow: hidden;
    cursor: pointer; position: relative;
    transition: all 0.4s;
}
.screenshot-item img {
    width: 100%; aspect-ratio: 1179 / 2556; object-fit: contain;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    transition: transform 0.4s;
    border: 1px solid rgba(255,255,255,0.05);
}
.screenshot-item:hover img { transform: scale(1.03); }
.screenshot-item:hover { box-shadow: 0 10px 40px rgba(201,168,76,0.2); }
.screenshot-item .overlay {
    position: absolute; inset: 0.75rem;
    background: rgba(10,10,18,0.6); opacity: 0;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.3s; pointer-events: none;
}
.screenshot-item:hover .overlay { opacity: 1; }
.overlay span {
    color: #f5e6b8; font-size: 1rem; font-weight: 600;
    padding: 8px 20px; border: 1px solid #c9a84c; border-radius: 8px;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; font-size: 1.8rem; line-height: 1;
    background: rgba(10,10,18,0.7); color: #c9a84c;
    border: 1px solid rgba(201,168,76,0.3); border-radius: 50%;
    cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.carousel-btn:hover {
    background: rgba(201,168,76,0.15);
    border-color: #c9a84c;
}
.carousel-prev { left: -10px; }
.carousel-next { right: -10px; }
.carousel-dots {
    display: flex; justify-content: center; gap: 10px;
    margin-top: 1.5rem;
}
.carousel-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: none;
    cursor: pointer; transition: all 0.3s;
}
.carousel-dot.active {
    background: #c9a84c;
    box-shadow: 0 0 10px rgba(201,168,76,0.5);
}

/* ============ Lightbox ============ */
.lightbox {
    position: fixed; inset: 0; background: rgba(5,5,12,0.95);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; }
.lightbox-close {
    position: absolute; top: 2rem; right: 2rem; width: 44px; height: 44px;
    background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
    color: #fff; font-size: 1.3rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ============ Benefits ============ */
#benefits { background: rgba(255,255,255,0.02); }
.benefits-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.benefit-card {
    background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.02));
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: 16px; padding: 2rem 1.5rem; text-align: center;
    transition: all 0.3s;
}
.benefit-card:hover {
    border-color: rgba(201,168,76,0.35);
    background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.04));
    transform: translateY(-4px);
}
.benefit-icon {
    font-size: 2.5rem; margin-bottom: 1rem; display: block;
}
.benefit-card h4 { color: #f5e6b8; font-size: 1.1rem; margin-bottom: 8px; }
.benefit-card p { color: #667; font-size: 0.9rem; }

/* ============ CTA Section ============ */
#cta {
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(201,168,76,0.05) 50%, transparent 100%);
}
.cta-box {
    max-width: 700px; margin: 0 auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 24px; padding: 3rem 2rem;
}
.cta-box h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #f5e6b8; margin-bottom: 1rem;
}
.cta-box p { color: #778; margin-bottom: 1.5rem; }
.cta-btns {
    display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}

/* Hero QR Tooltip */
.btn-download-hero { position: relative; }
.qr-tooltip {
    position: absolute; top: calc(100% + 16px); left: 50%;
    transform: translateX(-50%);
    background: rgba(10,10,18,0.95);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 12px; padding: 12px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s; z-index: 100;
}
.btn-download-hero:hover .qr-tooltip { opacity: 1; }
.qr-inner { display: block; }
.qr-inner canvas, .qr-inner img { border-radius: 8px; }
.qr-tooltip::before {
    content: ''; position: absolute; top: -8px; left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: rgba(201,168,76,0.3);
}
.qr-tooltip::after {
    content: ''; position: absolute; top: -6px; left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-bottom-color: rgba(10,10,18,0.95);
}

/* CTA QR */
.cta-qr {
    display: flex; justify-content: center; margin-top: 1.5rem;
}
.cta-qr canvas, .cta-qr img { border-radius: 12px; display: block; }
.cta-info { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cta-info-item { text-align: center; }
.cta-info-item .val { font-size: 1.4rem; font-weight: 700; color: #c9a84c; }
.cta-info-item .lbl { font-size: 0.8rem; color: #556; margin-top: 4px; }

/* ============ Friendly Links ============ */
#friendly-links {
    text-align: center;
    background: rgba(255,255,255,0.01);
    border-top: 1px solid rgba(201,168,76,0.08);
    border-bottom: 1px solid rgba(201,168,76,0.08);
}
.links-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    max-width: 900px; margin: 0 auto;
}
.links-grid a {
    display: inline-block; padding: 8px 20px;
    font-size: 0.85rem; color: #8890b0;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; text-decoration: none;
    transition: all 0.3s;
}
.links-grid a:hover {
    color: #c9a84c;
    border-color: rgba(201,168,76,0.3);
    background: rgba(201,168,76,0.06);
    transform: translateY(-2px);
}

/* ============ Footer ============ */
footer {
    text-align: center; padding: 2rem;
    border-top: 1px solid rgba(201,168,76,0.1);
    color: #445; font-size: 0.85rem;
}
footer a { color: #c9a84c; text-decoration: none; }

/* ============ Back to Top ============ */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
    width: 44px; height: 44px;
    background: rgba(10,10,18,0.8); color: #c9a84c;
    border: 1px solid rgba(201,168,76,0.3); border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: all 0.3s;
}
.back-to-top.visible {
    opacity: 1; pointer-events: auto;
}
.back-to-top:hover {
    background: rgba(201,168,76,0.15);
    border-color: #c9a84c;
    transform: translateY(-3px);
}

/* ============ Responsive ============ */
@media (max-width: 968px) {
    .hero .section-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-visual { order: -1; }
    .hero-visual img { max-width: 350px; }
    .hero-subtitle { max-width: 100%; }
    .hero-stats { justify-content: center; }
    .hero-btns { justify-content: center; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.mobile-open {
        display: flex; flex-direction: column;
        position: absolute; top: 72px; left: 0; right: 0;
        background: rgba(10,10,18,0.98);
        padding: 1.5rem; gap: 1.2rem;
        border-bottom: 1px solid rgba(201,168,76,0.2);
    }
}
@media (max-width: 640px) {
    section { padding: 60px 1rem; }
    .hero-stats { gap: 0.5rem; }
    .hero-stat { flex: 1; padding: 10px 6px; }
    .hero-stat .num { font-size: 1.1rem; }
    .hero-stat .label { font-size: 0.65rem; }
    .features-grid { grid-template-columns: 1fr; }
    .screenshot-item { width: 50%; }
    .carousel-btn { width: 36px; height: 36px; font-size: 1.4rem; }
    .carousel-prev { left: 0; }
    .carousel-next { right: 0; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-box { padding: 2rem 1.5rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns a, .hero-btns button { width: 100%; justify-content: center; }
    .hero-visual img { max-width: 280px; }
    .links-grid { gap: 8px; }
    .links-grid a { padding: 6px 14px; font-size: 0.8rem; }
}
@media (max-width: 400px) {
    .screenshot-item { width: 100%; }
    .benefits-grid { grid-template-columns: 1fr; }
}
