:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --secondary-light: #f472b6;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* 动态网格背景动画 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.1), transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 1), rgba(15, 23, 42, 1));
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(15, 23, 42, 0.9);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

.logo img {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    padding: 0.5rem 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links li a:hover {
    color: var(--text-main);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a.active {
    color: var(--text-main);
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* Main Content */
main {
    padding-top: 120px;
}

.page-section {
    display: none;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

.page-section.active {
    display: block;
    animation: sectionReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes sectionReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Glass Cards */
.glass-card {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.6);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 8rem;
    padding: 2rem 0;
}

.hero-content {
    flex: 0 0 42%;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.8rem;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #fff 30%, #a5b4fc 60%, #e879f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 600px;
    font-weight: 400;
}

.hero-image {
    flex: 1 1 58%;
    min-width: min(720px, 58vw);
    position: relative;
    border-radius: 30px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6);
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 32px;
    z-index: -1;
    opacity: 0.2;
    filter: blur(15px);
}

.hero-image img {
    width: 100%;
    height: clamp(430px, 38vw, 620px);
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    display: block;
    object-fit: cover;
    object-position: center top;
    background: rgba(15, 23, 42, 0.55);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.hero-image img.is-changing {
    opacity: 0;
    transform: scale(1.015);
}

.hero-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 3;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-carousel-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: var(--transition);
}

.hero-carousel-dots button.active {
    width: 28px;
    background: #fff;
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.7);
}

/* Instruction Images */
.instruction-image {
    width: min(100%, 720px);
    max-width: 720px;
    height: auto;
    border-radius: 16px;
    margin: 2.5rem auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.instruction-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 6rem;
}

.feature-icon {
    font-size: 3.2rem;
    margin-bottom: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.3));
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -0.03em;
}

/* Download Section */
.download-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 850px;
    margin: 4rem auto;
}

.version-card {
    text-align: center;
    width: 100%;
    padding: 4rem;
}

.version-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.download-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
    width: 100%;
}

.download-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 1.1rem;
    border-radius: 16px;
}

.checksum-container {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checksum-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--secondary-light);
    margin: 1.2rem 0;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.4);
}

.copy-icon {
    margin-left: 15px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.copy-icon:hover {
    opacity: 1;
    transform: scale(1.2);
    color: var(--primary-light);
}

/* Instructions */
.disclaimer-box {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 4rem;
    color: #fca5a5;
    font-size: 0.95rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.instruction-section {
    margin-bottom: 5rem;
}

.instruction-section h3 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    letter-spacing: -0.02em;
}

.instruction-subset {
    margin-bottom: 3rem;
    padding-left: 2rem;
    border-left: 3px solid rgba(99, 102, 241, 0.2);
}

.instruction-subset h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.keyword-tag, .bracket-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
}

.keyword-tag {
    background: rgba(236, 72, 153, 0.12);
    color: var(--secondary-light);
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.bracket-tag {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.highlight-box {
    background: rgba(99, 102, 241, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border-left: 5px solid var(--primary);
    margin: 2rem 0;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* Contact */
.contact-section {
    text-align: center;
    padding: 5rem 3rem;
    max-width: 900px;
    margin: 4rem auto;
}

.qrcode-box {
    width: 280px;
    height: 280px;
    margin: 3rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

.qrcode-box:hover {
    transform: scale(1.05) rotate(2deg);
}

.qrcode-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 100px;
    transition: var(--transition);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.social-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.6);
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px) rotate(5deg);
    background: var(--primary-light);
    box-shadow: 0 20px 45px rgba(99, 102, 241, 0.4);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Footer */
footer {
    text-align: center;
    padding: 6rem 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 10rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }
    
    .hero-content {
        flex: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    .hero-image img {
        height: auto;
    }
    
    .download-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 8rem 2rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -20px 0 60px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links li a {
        font-size: 1.8rem;
        font-weight: 700;
    }
    
    .cta-btn {
        display: none !important;
    }

    h1 { font-size: 3rem; }
    
    .glass-card {
        padding: 2rem 1.5rem;
    }
    
    .version-card {
        padding: 3rem 1.5rem;
    }

    #back-to-top {
        bottom: 25px;
        right: 25px;
    }
}
