/* ============================================
   火绒安全 - 现代深色主题设计
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #22d3ee;
    --accent-secondary: #f472b6;
    --bg-dark: #0f0f1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-2: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 背景特效 */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-mesh::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(244, 114, 182, 0.08) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite;
}

@keyframes meshMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    backdrop-filter: blur(20px);
    background: rgba(15, 15, 26, 0.8);
    border-bottom: 1px solid var(--border);
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

/* 主容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* 首页英雄区 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #fff 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-icon {
    font-size: 20px;
}

/* 英雄视觉 */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-display {
    position: relative;
    width: 400px;
    height: 400px;
}

.shield-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--gradient-1);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    box-shadow: var(--shadow-glow);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 280px;
    height: 280px;
    border-color: rgba(99, 102, 241, 0.3);
    animation: orbit 12s linear infinite;
}

.orbit-2 {
    width: 340px;
    height: 340px;
    border-color: rgba(34, 211, 238, 0.2);
    animation: orbit 16s linear infinite reverse;
}

.orbit-3 {
    width: 400px;
    height: 400px;
    border-color: rgba(244, 114, 182, 0.15);
    animation: orbit 20s linear infinite;
}

@keyframes orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    top: -6px;
    left: 50%;
    box-shadow: 0 0 20px var(--primary);
}

.orbit-2 .orbit-dot {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
}

.orbit-3 .orbit-dot {
    background: var(--accent-secondary);
    box-shadow: 0 0 20px var(--accent-secondary);
}

/* 数据统计 */
.stats-section {
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    background: var(--bg-glass);
    transform: translateY(-8px);
    border-color: var(--primary);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-value.green {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 15px;
}

/* 功能区块 */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
    border-radius: 24px;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.feature-card:hover::after {
    opacity: 0.05;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-glass);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--gradient-1);
    transform: scale(1.1);
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* 对比区块 */
.compare {
    padding: 100px 0;
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.compare-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
}

.compare-card.good {
    border-color: rgba(34, 197, 94, 0.3);
}

.compare-card.bad {
    border-color: rgba(239, 68, 68, 0.3);
    opacity: 0.8;
}

.compare-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.compare-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.compare-card.good .compare-badge {
    background: rgba(34, 197, 94, 0.2);
}

.compare-card.bad .compare-badge {
    background: rgba(239, 68, 68, 0.2);
}

.compare-name {
    font-size: 22px;
    font-weight: 700;
}

.compare-list {
    list-style: none;
}

.compare-list li {
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.compare-list li:last-child {
    border-bottom: none;
}

.compare-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
}

.compare-card.good .compare-list li::before {
    background: #22c55e;
}

.compare-card.bad .compare-list li::before {
    background: #ef4444;
}

/* 下载页面 */
.download-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 60px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 60px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    right: -100px;
    height: 200px;
    background: var(--gradient-1);
    opacity: 0.1;
    filter: blur(60px);
}

.download-icon {
    width: 120px;
    height: 120px;
    background: var(--gradient-1);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin: 0 auto 32px;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.download-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.download-tagline {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.version-tag {
    display: inline-block;
    background: var(--gradient-1);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.download-specs {
    background: var(--bg-glass);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-muted);
}

.spec-value {
    color: var(--text-primary);
    font-weight: 500;
}

.download-promises {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.promise-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.promise-item span {
    font-size: 20px;
}

.download-btn {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
    z-index: 1;
}

.back-link:hover {
    color: var(--accent);
}

/* 404页面 */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 60px;
}

.error-content {
    text-align: center;
}

.error-visual {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 48px;
}

.error-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    opacity: 0.6;
}

.error-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--border);
    border-radius: 50%;
}

.error-ring-1 {
    width: 200px;
    height: 200px;
    animation: errorPulse 2s ease-in-out infinite;
}

.error-ring-2 {
    width: 280px;
    height: 280px;
    animation: errorPulse 2s ease-in-out infinite 0.3s;
}

@keyframes errorPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.1; transform: translate(-50%, -50%) scale(1.05); }
}

.error-code {
    font-size: 140px;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.3;
}

.error-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.error-message {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.error-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--text-primary);
}

/* 动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .shield-display {
        width: 300px;
        height: 300px;
    }

    .shield-core {
        width: 150px;
        height: 150px;
        font-size: 60px;
    }

    .orbit-1 { width: 210px; height: 210px; }
    .orbit-2 { width: 260px; height: 260px; }
    .orbit-3 { width: 300px; height: 300px; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .compare-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        padding: 40px 24px;
    }

    .download-promises {
        flex-direction: column;
        gap: 16px;
    }

    .error-buttons {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }
}
