/* ============================================
   精灵物语 - 响应式游戏官网样式
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* === CSS变量 === */
:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --bg-dark: #0f0a1e;
    --bg-card: #1a1330;
    --bg-card-hover: #221b3e;
    --text-primary: #ffffff;
    --text-secondary: #b8b0d0;
    --text-muted: #7a7299;
    --border-color: #2a2050;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #6366f1 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
    --gradient-hero: linear-gradient(180deg, rgba(15,10,30,0.3) 0%, rgba(15,10,30,0.8) 70%, #0f0a1e 100%);
    --gradient-card: linear-gradient(145deg, #1a1330 0%, #221b3e 50%, #1a1330 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(139,92,246,0.3);
    --shadow-glow-accent: 0 0 30px rgba(245,158,11,0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* === 重置样式 === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* === 导航栏 === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-base);
    padding: 16px 0;
}

.navbar.scrolled {
    background: rgba(15, 10, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.nav-logo:hover {
    color: var(--accent-light);
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

.btn-download-nav {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-glow);
}

.btn-download-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5) !important;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

.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);
}

/* === Hero Section === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 2;
    pointer-events: none;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: heroZoom 8s ease-in-out infinite;
}

.hero-slide.active {
    opacity: 1;
}

@keyframes heroZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-badge {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.badge-new, .badge-hot {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--gradient-primary);
    color: white;
}

.badge-hot {
    background: var(--gradient-accent);
    color: white;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 20px 8px rgba(245, 158, 11, 0.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 40%, #fbbf24 70%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 8px;
}

.hero-tagline {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 36px;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* === 按钮 === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-3px);
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.15rem;
    border-radius: 50px;
    width: 100%;
    justify-content: center;
}

.btn-android {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-ios {
    background: linear-gradient(135deg, #cdcdcd 0%, #0046d1 100%);
    color: white;
    box-shadow: 0 0 30px rgba(107, 114, 128, 0.3);
}

.btn-android:hover,
.btn-ios:hover {
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1.2em;
}

/* === Hero Stats === */
.hero-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-unit {
    font-size: 1rem;
    vertical-align: super;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === Slider Dots === */
.hero-slider-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-base);
}

.dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 10px;
}

/* === Scroll Indicator === */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounce-scroll 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes bounce-scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* === Section通用样式 === */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    aspect-ratio: 16/10;
    transition: var(--transition-slow);
}

.about-image-wrap:hover .about-image {
    transform: scale(1.05);
}

.about-image-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    opacity: 0.15;
    z-index: -1;
    filter: blur(20px);
    transition: var(--transition-slow);
}

.about-image-wrap:hover .about-image-glow {
    opacity: 0.3;
    filter: blur(30px);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.about-info-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateX(6px);
}

.info-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-text p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.about-desc {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-top: 12px;
    font-size: 0.95rem;
}

/* === Highlights Section === */
.highlights {
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.highlight-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
    cursor: pointer;
}

.highlight-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.highlight-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--border-color);
    transition: var(--transition-base);
}

.highlight-card:hover .highlight-icon {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.highlight-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.highlight-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === Features Section === */
.features {
    background: radial-gradient(ellipse at top center, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.feature-card--primary {
    border-color: rgba(139, 92, 246, 0.4);
    background: linear-gradient(145deg, #1e1640 0%, #221b3e 100%);
}

.feature-card--primary::before {
    opacity: 1;
    background: var(--gradient-accent);
}

.feature-card--accent {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(145deg, #1e1630 0%, #221b3e 100%);
}

.feature-card--accent::before {
    opacity: 1;
    background: var(--gradient-accent);
}

.feature-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
}

.feature-card--primary .feature-badge,
.feature-card--accent .feature-badge {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-light);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.feature-detail {
    background: rgba(139, 92, 246, 0.08);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.feature-detail strong {
    color: var(--accent-light);
}

.text-highlight {
    color: var(--accent-light);
    font-weight: 700;
}

/* === Gallery Section === */
.gallery {
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.02) 100%);
}

/* 轮播容器 */
.gallery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

/* 轨道 - flex布局一次性排开 */
.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 16px;
}

/* 每个item等宽 */
.gallery-item {
    position: relative;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 9/16;
    border: 2px solid var(--border-color);
    transition: var(--transition-base);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    z-index: 1;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 10, 30, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 2rem;
    animation: zoom-pulse 1.5s ease-in-out infinite;
}

@keyframes zoom-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 轮播控制器 */
.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.gallery-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.gallery-arrow:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.gallery-dots {
    display: flex;
    gap: 8px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-base);
}

.gallery-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 10px;
}

/* === Lightbox === */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5, 3, 15, 0.95);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition-fast);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 16px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 2001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* === Guide Section === */
.guide {
    background: radial-gradient(ellipse at bottom center, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
}

.guide-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.guide-card {
    display: flex;
    gap: 28px;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.guide-card:hover {
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.guide-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
}

.guide-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.guide-content > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.guide-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-tips li {
    position: relative;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.guide-tips li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-light);
}

/* === Download Section === */
.download {
    position: relative;
    overflow: hidden;
}

.download-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #130d28 50%, #0f0a1e 100%);
    z-index: -2;
}

.download-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.section-header.light .section-tag {
    background: rgba(139, 92, 246, 0.2);
}

.download-content {
    display: flex;
    justify-content: center;
}

.download-card {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.download-icon-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.download-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.download-ver {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.download-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.download-qr {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.qr-download-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
    padding: 8px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-download-wrap canvas,
.qr-download-wrap img {
    display: block;
}

/* 首屏立即下载按钮的悬浮二维码 */
.btn-qr-wrap {
    position: relative;
    display: inline-block;
}

.qr-popup {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #fff;
    border-radius: var(--radius-md);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-base);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 100;
    text-align: center;
    width:160px;
}

/* 小三角箭头 */
.qr-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}

.qr-popup canvas,
.qr-popup img {
    display: block;
    width: 130px !important;
    height: 130px !important;
}

.qr-popup span {
    display: block;
    font-size: 0.75rem;
    color: #333;
    margin-top: 8px;
}

/* 桌面端悬浮显示 */
@media (hover: hover) {
    .btn-qr-wrap:hover .qr-popup {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) scale(1);
    }
}

.download-qr p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === Footer === */
.footer {
    background: #080514;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-links span {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    transition: var(--transition-fast);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
}

.footer-friend-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 16px;
    margin-bottom: 16px;
}

.friend-links-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.footer-friend-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.footer-friend-links a:hover {
    color: var(--accent-light);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === 回到顶部 === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

/* === 动画 === */
.animate-fadeUp {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动显示动画 */
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-up {
    transform: translateY(60px);
}

.revealed {
    opacity: 1;
    transform: translate(0);
}

/* === 响应式设计 === */

/* 平板 */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-track {
        gap: 12px;
    }

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

/* 手机 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(15, 10, 30, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 32px 40px;
        transition: var(--transition-base);
        border-left: 1px solid var(--border-color);
    }

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

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 70px 0;
    }

    .hero {
        min-height: 600px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-track {
        gap: 10px;
    }

    .guide-card {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .guide-number {
        font-size: 2rem;
    }

    .download-card {
        padding: 32px 24px;
    }

    .download-btns {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-qr-wrap {
        width: 100%;
        max-width: none;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .gallery-track {
        gap: 8px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .about-info-card {
        padding: 12px 16px;
    }

    .highlight-card {
        padding: 24px 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }
}

/* === 加载动画粒子背景 === */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(245, 158, 11, 0.2), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(139, 92, 246, 0.4), transparent),
        radial-gradient(2px 2px at 80% 50%, rgba(245, 158, 11, 0.2), transparent),
        radial-gradient(1px 1px at 10% 80%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(2px 2px at 70% 85%, rgba(245, 158, 11, 0.15), transparent),
        radial-gradient(1px 1px at 90% 10%, rgba(139, 92, 246, 0.25), transparent),
        radial-gradient(2px 2px at 50% 40%, rgba(245, 158, 11, 0.15), transparent);
    z-index: 1;
    animation: particles-drift 15s ease-in-out infinite alternate;
}

@keyframes particles-drift {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* 菜单打开时的遮罩 */
.nav-menu::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .nav-menu.active::before {
        opacity: 1;
        pointer-events: auto;
    }
}
