/* ===========================
   光之契约 - 官网样式
   主题色：深紫 / 樱花粉 / 金
   =========================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #8b5cf6;       /* 主紫 */
    --primary-dark: #6d28d9;  /* 深紫 */
    --accent: #f0abfc;        /* 樱花粉 */
    --gold: #fbbf24;          /* 金 */
    --gold-light: #fde68a;
    --bg-dark: #0f0820;       /* 深背景 */
    --bg-mid: #1a0f3d;
    --text: #f5f3ff;
    --text-mute: #c4b5fd;
    --border: rgba(192, 132, 252, 0.2);
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #fbbf24 100%);
    --gradient-dark: linear-gradient(135deg, #1a0f3d 0%, #2d1b69 100%);
    --shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
    --shadow-glow: 0 0 30px rgba(240, 171, 252, 0.4);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(139, 92, 246, 0.15), transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(236, 72, 153, 0.12), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(251, 191, 36, 0.08), transparent 50%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.hl {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== Navbar ====== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 32px;
    background: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.navbar.scrolled {
    padding: 10px 32px;
    background: rgba(15, 8, 32, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.navbar.menu-open {
    background: rgba(15, 8, 32, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; box-shadow: var(--shadow-glow); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
    padding: 8px 14px; border-radius: 8px; font-size: 14px;
    color: var(--text-mute); transition: all 0.3s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(139, 92, 246, 0.15); }
.nav-links .nav-cta {
    background: var(--gradient); color: #fff !important; padding: 8px 18px;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}
.nav-links .nav-cta:hover { transform: translateY(-1px); }
.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 5px;
}
.menu-toggle span {
    width: 22px; height: 2px; background: var(--text); margin: 0 auto;
    border-radius: 2px; transition: 0.3s;
}

/* ====== Hero ====== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 24px 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); }
.hero-overlay {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(15, 8, 32, 0.5) 0%, rgba(15, 8, 32, 0.85) 70%, var(--bg-dark) 100%);
}
.hero-particles {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.particle {
    position: absolute; width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 8px var(--accent);
    opacity: 0; animation: float 8s infinite;
}
@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-800px) translateX(50px); opacity: 0; }
}
.hero-content { max-width: 900px; text-align: center; position: relative; z-index: 1; }
.hero-badge {
    display: inline-block; padding: 6px 18px;
    background: rgba(251, 191, 36, 0.15); border: 1px solid var(--gold);
    color: var(--gold-light); border-radius: 20px;
    font-size: 13px; margin-bottom: 24px;
    animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); } 50% { box-shadow: 0 0 0 12px rgba(251, 191, 36, 0); } }
.hero-title {
    font-size: clamp(40px, 7vw, 80px); font-weight: 800; line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 24px rgba(139, 92, 246, 0.5);
}
.hero-subtitle {
    font-size: clamp(16px, 2vw, 22px); color: var(--text-mute);
    margin-bottom: 36px;
}
.hero-info {
    display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-info-item { text-align: center; }
.hero-info-item .label { font-size: 13px; color: var(--text-mute); margin-bottom: 4px; }
.hero-info-item .value {
    font-size: 18px; font-weight: 700;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 30px;
    font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
    border: none; text-decoration: none;
}
.btn-primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(139, 92, 246, 0.6); }
.btn-secondary {
    background: rgba(255, 255, 255, 0.08); color: var(--text);
    border: 1px solid var(--border); backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(139, 92, 246, 0.2); border-color: var(--primary); }

/* QR tooltip */
.btn-qr-wrapper { position: relative; }
.qr-tooltip {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-8px);
    background: rgba(26, 15, 61, 0.98); border: 1px solid var(--border);
    padding: 16px; border-radius: 14px;
    opacity: 0; pointer-events: none; transition: all 0.3s ease;
    box-shadow: var(--shadow);
    width: 140px;
}
.qr-tooltip.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.qr-tooltip-inner { text-align: center; }
.qr-tooltip-inner > div { background: #fff; padding: 8px; border-radius: 8px; display: inline-block; }
.qr-tooltip-inner p { margin-top: 8px; font-size: 13px; color: var(--text-mute); }

/* ====== Sections ====== */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
    display: inline-block; padding: 4px 14px;
    background: rgba(139, 92, 246, 0.15); color: var(--accent);
    border-radius: 16px; font-size: 13px; font-weight: 600;
    letter-spacing: 2px; margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin-bottom: 16px;
}
.section-desc { font-size: 17px; color: var(--text-mute); max-width: 640px; margin: 0 auto; }

/* ====== About ====== */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-image {
    border-radius: 20px; overflow: hidden; position: relative;
    box-shadow: var(--shadow);
}
.about-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.6s ease; }
.about-image:hover img { transform: scale(1.05); }
.about-text h3 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 20px; line-height: 1.3; }
.about-text p { color: var(--text-mute); margin-bottom: 16px; font-size: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.stat-card {
    background: rgba(26, 15, 61, 0.6); border: 1px solid var(--border);
    padding: 20px 12px; border-radius: 12px; text-align: center;
    transition: all 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.stat-num {
    font-size: 26px; font-weight: 800;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 13px; color: var(--text-mute); margin-top: 4px; }

/* ====== Features ====== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: rgba(26, 15, 61, 0.6); border: 1px solid var(--border);
    padding: 32px 24px; border-radius: 16px;
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gradient); opacity: 0; transition: opacity 0.4s ease;
    z-index: -1;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h4 { font-size: 18px; margin-bottom: 12px; color: var(--text); }
.feature-card p { color: var(--text-mute); font-size: 14px; }

/* ====== Benefits ====== */
.benefits-section { background: rgba(26, 15, 61, 0.4); }
.benefit-item {
    display: flex; gap: 20px; align-items: flex-start;
    background: rgba(26, 15, 61, 0.6); border: 1px solid var(--border);
    padding: 24px; border-radius: 14px; margin-bottom: 16px;
    transition: all 0.3s ease;
}
.benefit-item:hover { border-color: var(--gold); transform: translateX(6px); }
.benefit-badge {
    flex-shrink: 0; width: 56px; height: 56px;
    background: var(--gradient); color: #fff;
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}
.benefit-content h4 { font-size: 18px; margin-bottom: 8px; color: var(--gold-light); }
.benefit-content p { color: var(--text-mute); font-size: 15px; }

/* ====== Gallery ====== */
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-item {
    position: relative; aspect-ratio: 9/16; overflow: hidden; border-radius: 14px;
    cursor: pointer; border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
    position: absolute; inset: 0;
    background: rgba(15, 8, 32, 0.6); opacity: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; transition: opacity 0.3s ease;
}
.gallery-item:hover .overlay { opacity: 1; }

/* ====== Video ====== */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-card {
    background: rgba(26, 15, 61, 0.6); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    transition: all 0.3s ease;
}
.video-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.video-card video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.video-info { padding: 18px 20px; }
.video-info h4 { font-size: 16px; margin-bottom: 6px; }
.video-info p { font-size: 13px; color: var(--text-mute); }

/* ====== CTA ====== */
.cta-section {
    padding: 100px 24px; text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.1) 50%, transparent 100%);
    position: relative;
}
.cta-section h2 {
    font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; line-height: 1.3;
}
.cta-section > .container > p {
    font-size: 17px; color: var(--text-mute); margin-bottom: 36px;
    max-width: 640px; margin-left: auto; margin-right: auto;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.download-qr-section { display: flex; justify-content: center; }
.download-qr-card {
    background: rgba(26, 15, 61, 0.8); border: 1px solid var(--border);
    padding: 24px; border-radius: 16px; text-align: center;
    box-shadow: var(--shadow);
}
.download-qr-title { font-size: 16px; margin-bottom: 16px; color: var(--accent); }
.download-qr-card > div { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; }
.download-qr-tip { margin-top: 12px; font-size: 13px; color: var(--text-mute); line-height: 1.6; }

/* ====== Footer ====== */
.links-bar {
    padding: 20px 24px; background: rgba(26, 15, 61, 0.6);
    border-top: 1px solid var(--border); text-align: center; font-size: 13px;
}
.links-bar .links-title { color: var(--text-mute); margin-right: 8px; }
.links-bar a { color: var(--accent); margin: 0 8px; }
.links-bar a:hover { color: var(--gold); }

.footer {
    padding: 60px 24px 30px; text-align: center;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}
.footer-logo {
    font-size: 28px; font-weight: 800; margin-bottom: 16px;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.footer > p { color: var(--text-mute); max-width: 720px; margin: 0 auto 24px; font-size: 14px; }
.copyright { font-size: 12px; color: rgba(196, 181, 253, 0.5); line-height: 1.8; max-width: 800px; margin: 0 auto; }

/* ====== Lightbox ====== */
.lightbox {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9);
    display: none; align-items: center; justify-content: center;
    z-index: 9999; padding: 40px;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 24px; right: 32px;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 20px; transition: 0.3s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }

/* ====== Scroll Top ====== */
.scroll-top {
    position: fixed; bottom: 32px; right: 32px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient); color: #fff;
    border: none; cursor: pointer; font-size: 20px;
    box-shadow: var(--shadow); opacity: 0; pointer-events: none;
    transition: all 0.3s ease; z-index: 999;
}
.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-4px); }

/* ====== Reveal Animation ====== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ====== Responsive ====== */
@media (max-width: 968px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .navbar { padding: 12px 20px; }
    .menu-toggle { display: flex; }
    .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; padding: 16px;
        background: transparent;
        border-top: 1px solid transparent;
        max-height: 0; overflow: hidden;
        transition: max-height 0.4s ease, background 0.3s ease, border-color 0.3s ease;
    }
    .nav-links.open {
        max-height: 480px;
        background: rgba(15, 8, 32, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--border);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    }
    .nav-links a { width: 100%; padding: 12px 16px; }
    .hero { padding: 100px 20px 60px; min-height: auto; }
    .hero-info { gap: 20px; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-num { font-size: 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 60px 0; }
    .benefit-item { flex-direction: column; }
    .benefit-badge { width: 48px; height: 48px; font-size: 18px; }
    .scroll-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
    .hero-buttons { flex-direction: column; align-items: stretch; max-width: 360px; margin-left: auto; margin-right: auto; }
    .hero-buttons .btn-qr-wrapper,
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
    .hero-buttons .qr-tooltip { left: 50%; transform: translateX(-50%) translateY(-8px); }
    .hero-buttons .qr-tooltip.show { transform: translateX(-50%) translateY(0); }
}
@media (max-width: 420px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
}