/* ========================================
   世界书 APP 官方网站 - 主样式文件
   科技炫酷风格
======================================== */

/* CSS Variables */
:root {
    --primary: #8B5CF6;
    --accent: #06B6D4;
    --accent-pink: #EC4899;
    --bg-dark: #0F0F1A;
    --bg-darker: #050510;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --border-color: rgba(255, 255, 255, 0.1);
    --glow-purple: rgba(139, 92, 246, 0.5);
    --glow-cyan: rgba(6, 182, 212, 0.5);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-dark: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ========================================
   Background Effects
======================================== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ========================================
   Container
======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 50px;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(15, 15, 26, 0.95);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-download-nav {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-download-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glow-purple);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 50px 60px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 100%;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 16px 36px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--glow-purple);
}

.btn-primary:active,
.btn-primary.touching {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px var(--glow-purple);
}

.btn-secondary {
    padding: 16px 36px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--bg-glass);
}

.btn-secondary:active,
.btn-secondary.touching {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: var(--bg-glass-hover);
}

.btn-download-nav:active,
.btn-download-nav.touching {
    transform: translateY(0);
    box-shadow: 0 5px 20px var(--glow-purple);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    width: 246px;
    height: 493px;
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: 35px;
    padding: 11px;
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.5),
        0 0 88px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 22px;
    background: #0f0f1a;
    border-radius: 18px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--bg-dark) 100%);
    border-radius: 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.phone-screen img {
    width: 66px;
    margin-bottom: 16px;
}

/* Placeholder text style for carousel */
.placeholder-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   Detail Section GIF Image Limits - Phone Aspect Ratio
======================================== */
.feature-visual .visual-placeholder img {
    max-width: 160px;
    max-height: 280px;
    width: auto;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.feature-visual .visual-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
}

.phone-screen h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.phone-screen p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========================================
   Hero Section - Simple Screenshot Carousel
======================================== */
.screenshot-carousel-hero {
    position: relative;
    width: 246px;
    height: 493px;
}

.carousel-container-hero {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 35px;
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.5),
        0 0 88px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    padding: 11px;
}

.carousel-container-hero::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 22px;
    background: #0f0f1a;
    border-radius: 18px;
    z-index: 10;
}

.carousel-slide-hero {
    position: absolute;
    top: 11px;
    left: 11px;
    right: 11px;
    bottom: 11px;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide-hero.active {
    opacity: 1;
}

.carousel-slide-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
}

.carousel-nav-hero {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 66px);
    left: -33px;
    right: auto;
    display: flex;
    justify-content: space-between;
    z-index: 20;
    pointer-events: none;
}

.carousel-nav-hero button:first-child {
    margin-left: -13px;
}

.carousel-nav-hero button:last-child {
    margin-right: -13px;
}

.carousel-nav-hero button {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-hero button:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.glow-orb-1 {
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: pulse 4s ease-in-out infinite;
}

.glow-orb-2 {
    background: var(--accent);
    bottom: -50px;
    left: -50px;
    animation: pulse 4s ease-in-out infinite 2s;
}

/* ========================================
   Features Section
======================================== */
.section {
    padding: 50px 50px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--bg-glass-hover);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   Feature Detail Section
======================================== */
.feature-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 50px;
    padding-left: 50px;
    padding-right: 50px;
}

.feature-detail:last-child {
    margin-bottom: 0;
}

.feature-detail.reverse {
    direction: rtl;
}

.feature-detail.reverse > * {
    direction: ltr;
}

.feature-detail-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.feature-detail-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.feature-list li .icon {
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.feature-visual {
    position: relative;
}

.feature-visual .visual-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 27px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.visual-placeholder .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Screenshots Section - 3D Multi-Image Carousel
======================================== */
.screenshots {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.screenshot-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 40px 0;
}

.carousel-wrapper {
    position: relative;
    perspective: 1500px;
    overflow: hidden;
}

.carousel-container-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px;
}

.screenshot-slide-3d {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.7) translateX(0);
    z-index: 1;
    filter: blur(5px) brightness(0.6);
}

.screenshot-slide-3d.center {
    opacity: 1;
    transform: scale(1) translateX(0);
    z-index: 10;
    filter: blur(0) brightness(1);
}

.screenshot-slide-3d.left {
    opacity: 0.5;
    transform: scale(0.85) translateX(-180px) perspective(1000px) rotateY(15deg);
    z-index: 5;
    filter: blur(2px) brightness(0.7);
}

.screenshot-slide-3d.right {
    opacity: 0.5;
    transform: scale(0.85) translateX(180px) perspective(1000px) rotateY(-15deg);
    z-index: 5;
    filter: blur(2px) brightness(0.7);
}

.screenshot-slide-3d img {
    max-width: 260px;
    max-height: 460px;
    border-radius: 24px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.screenshot-slide-3d.center img {
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.screenshot-slide-3d.left img,
.screenshot-slide-3d.right img {
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(139, 92, 246, 0.15);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-nav button {
    width: 50px;
    height: 50px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-nav button:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .screenshot-slide-3d.left {
        transform: scale(0.75) translateX(-120px);
    }
    .screenshot-slide-3d.right {
        transform: scale(0.75) translateX(120px);
    }
    .screenshot-slide-3d img {
        max-width: 200px;
        max-height: 360px;
    }
}

@media (max-width: 768px) {
    .screenshot-slide-3d.left {
        transform: scale(0.6) translateX(-80px);
    }
    .screenshot-slide-3d.right {
        transform: scale(0.6) translateX(80px);
    }
    .screenshot-slide-3d img {
        max-width: 160px;
        max-height: 290px;
    }
    .carousel-container-3d {
        height: 350px;
    }
}

/* ========================================
   Download Section
======================================== */
.download-section {
    text-align: center;
    position: relative;
}

.download-content {
    max-width: 700px;
    margin: 0 auto;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.download-btn {
    padding: 20px 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: var(--bg-glass-hover);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}

.download-btn:active,
.download-btn.touching {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.download-btn .icon {
    font-size: 2rem;
}

.download-btn .text {
    text-align: left;
}

.download-btn .text small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.download-btn .text span {
    font-size: 1.1rem;
    font-weight: 600;
}

.qr-section {
    margin-top: 50px;
}

.qr-section h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.qr-code {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 15px;
}

.qr-code img {
    width: 150px;
    height: 150px;
}

.version-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.version-info span {
    margin: 0 15px;
}

/* ========================================
   Footer
======================================== */
.footer {
    padding: 60px 50px 30px;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* ========================================
   Modal Styles
======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

/* Policy Content Styles */
.policy-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.policy-content h1 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.policy-content h2 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 25px 0 15px;
}

.policy-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 20px 0 12px;
}

.policy-content p {
    margin-bottom: 15px;
}

.policy-content ul, .policy-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.policy-content li {
    margin-bottom: 8px;
}

.policy-content strong {
    color: var(--text-primary);
}

.policy-content blockquote {
    background: var(--bg-glass);
    border-left: 3px solid var(--primary);
    margin: 15px 0;
    padding: 15px 20px;
    border-radius: 0 10px 10px 0;
}

.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.policy-content table th,
.policy-content table td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}

.policy-content table th {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.policy-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 25px 0;
}

.policy-content a {
    color: var(--primary);
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

.policy-content .loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* ========================================
   Animations
======================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }

/* 减少移动端动画以提高性能 */
@media (max-width: 768px) {
    *,
    *::before,
    *::after {
        animation-duration: 0.3s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.2s !important;
    }

    .feature-card:hover {
        transform: translateY(-5px);
    }

    .glow-orb {
        display: none;
    }

    .bg-particles::before {
        display: none;
    }
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1200px) {
    .hero-content {
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .feature-detail {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-left: 0;
    }

    .feature-detail.reverse {
        direction: ltr;
    }

    .feature-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 15px;
    }

    .navbar .container {
        padding: 0;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    .logo span {
        font-size: 1.3rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 15px;
        gap: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a::after {
        display: none;
    }

    .btn-download-nav {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .mobile-toggle {
        display: flex;
        padding: 8px;
    }

    .mobile-toggle span {
        width: 22px;
    }

    .hero {
        padding: 80px 15px 40px;
        min-height: auto;
    }

    .hero-content {
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-text .subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .hero-buttons {
        gap: 15px;
    }

    .btn-primary {
        padding: 14px 28px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .btn-primary svg {
        width: 18px;
        height: 18px;
    }

    .hero-image {
        margin: 0 -15px;
    }

    .screenshot-carousel-hero {
        width: 200px;
        height: 400px;
        margin: 0 auto;
    }

    .carousel-nav-hero {
        width: calc(100% + 40px);
        left: -20px;
    }

    .carousel-nav-hero button {
        width: 36px;
        height: 36px;
    }

    .carousel-nav-hero button:first-child {
        margin-left: 0;
    }

    .carousel-nav-hero button:last-child {
        margin-right: 0;
    }

    .carousel-nav-hero button svg {
        width: 18px;
        height: 18px;
    }

    .section {
        padding: 50px 15px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

    .feature-card h3 {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }

    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .feature-detail {
        gap: 30px;
        margin-bottom: 40px;
    }

    .feature-detail-content h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .feature-detail-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .feature-list li {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .feature-list li .icon {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .feature-visual .visual-card {
        padding: 20px;
        min-height: 280px;
    }

    .feature-visual .visual-placeholder img {
        max-width: 140px;
        max-height: 250px;
    }

    .download-content h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .download-content p {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 40px;
    }

    .download-btn {
        padding: 18px 20px;
    }

    .download-btn .icon svg {
        width: 28px;
        height: 28px;
    }

    .download-btn .text small {
        font-size: 0.7rem;
    }

    .download-btn .text span {
        font-size: 1rem;
    }

    .qr-section {
        margin-top: 40px;
    }

    .qr-section h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .qr-code {
        padding: 12px;
    }

    .qr-code img {
        width: 130px;
        height: 130px;
    }

    .version-info {
        margin-top: 30px;
        padding-top: 20px;
        font-size: 0.85rem;
    }

    .version-info span {
        margin: 0 10px;
    }

    .footer {
        padding: 40px 15px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
    }

    .footer-brand p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .footer-links h4 {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-social {
        gap: 10px;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
    }

    .footer-social a svg {
        width: 16px;
        height: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 20px;
        font-size: 0.85rem;
    }

    .modal-container {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 20px;
    }

    .policy-content {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .policy-content h1 {
        font-size: 1.3rem;
    }

    .policy-content h2 {
        font-size: 1.1rem;
    }

    .policy-content h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 70px 10px 30px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text .subtitle {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .screenshot-carousel-hero {
        width: 180px;
        height: 360px;
    }

    .section {
        padding: 40px 10px;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .feature-card {
        padding: 25px 15px;
    }

    .feature-detail-content h3 {
        font-size: 1.3rem;
    }

    .download-btn {
        padding: 15px 18px;
    }

    .footer {
        padding: 30px 10px 15px;
    }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-secondary,
    .download-btn,
    .nav-links a,
    .footer-links a,
    .footer-social a,
    .carousel-nav-hero button {
        min-height: 44px;
        min-width: 44px;
    }

    .mobile-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 60px 15px 30px;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        text-align: left;
    }

    .hero-image {
        order: 0;
    }

    .screenshot-carousel-hero {
        width: 160px;
        height: 320px;
    }
}
