/* SpaceShip Landing Page - 性能优化版样式文件 */
/* 移除复杂动画，优化渲染性能，保留重要SEO元素 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 无障碍和SEO辅助样式 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3b82f6;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .hero {
        background: #000 !important;
    }

    .feature-card,
    .step,
    .pricing-card {
        border: 2px solid #fff !important;
    }

    .shimmer-button,
    .download-btn {
        border: 2px solid #fff !important;
    }
}

/* 强制GPU加速的属性 */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* 减少动画选项支持 - 优先考虑性能 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* 简化滚动动画 - 只保留基础效果 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 移除复杂的极光背景动画 */
.aurora-background {
    display: none; /* 完全移除以提升性能 */
}

/* 简化网格图案 */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    /* 移除动画 */
}

/* 简化粒子背景 - 减少数量和复杂度 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.3; /* 降低不透明度减少渲染负担 */
}

.particle {
    position: absolute;
    width: 1px; /* 减小尺寸 */
    height: 1px;
    background: #3b82f6;
    border-radius: 50%;
    /* 移除复杂动画 */
}

/* 优化头部导航 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px); /* 减少模糊程度 */
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    z-index: 1000;
    transition: background-color 0.3s ease; /* 只保留基础过渡 */
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

/* 简化logo效果 */
.logo:hover,
.logo:focus {
    color: #3b82f6;
    outline: none;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.2s ease; /* 减少过渡时间 */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease; /* 简化过渡 */
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #3b82f6;
    outline: none;
}

/* 简化闪光按钮 */
.shimmer-button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease; /* 减少过渡时间 */
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;
}

.shimmer-button:hover,
.shimmer-button:focus {
    transform: translateY(-2px); /* 减少移动距离 */
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); /* 简化阴影 */
    outline: none;
}

/* 简化英雄区域 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

/* 简化标题动画 */
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* 移除复杂动画 */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 简化交互悬停按钮 */
.interactive-button {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease; /* 简化过渡 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;
}

.interactive-button:hover,
.interactive-button:focus {
    border-color: rgba(59, 130, 246, 0.8);
    color: #3b82f6;
    transform: translateY(-2px); /* 减少移动距离 */
    outline: none;
}

/* 简化卡片效果 */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px); /* 减少模糊程度 */
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* 简化过渡 */
    position: relative;
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-5px); /* 减少移动距离 */
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.1); /* 简化阴影 */
}

/* 移除复杂的聚光灯效果 */
.feature-card::before {
    display: none;
}

/* 简化特性展示区域 */
.features {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 简化步骤区域 */
.how-it-works {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    position: relative;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(5px); /* 减少模糊程度 */
    transition: transform 0.2s ease; /* 简化过渡 */
}

.step:hover,
.step:focus-within {
    transform: translateY(-5px); /* 减少移动距离 */
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    /* 移除复杂的边框动画 */
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* 简化价格区域 */
.pricing {
    padding: 5rem 2rem;
    background: #0f172a;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px); /* 减少模糊程度 */
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: transform 0.2s ease; /* 简化过渡 */
    text-align: center;
    position: relative;
    color: white;
}

.pricing-card.featured {
    border: 2px solid #3b82f6;
    transform: scale(1.02); /* 减少缩放程度 */
}

.pricing-card:hover,
.pricing-card:focus-within {
    transform: translateY(-5px); /* 减少移动距离 */
}

.pricing-card.featured:hover,
.pricing-card.featured:focus-within {
    transform: scale(1.02) translateY(-5px); /* 减少移动距离 */
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.price-period {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    color: white;
}

.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list i {
    color: #10b981;
}

/* 简化下载区域 */
.download-btn-container {
    position: relative;
    display: inline-block;
}

.download {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    text-align: center;
    position: relative;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    position: relative;
    z-index: 100;
}

.download-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease; /* 简化过渡 */
    backdrop-filter: blur(5px); /* 减少模糊程度 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: pointer;
    font-weight: 500;
    min-width: 140px;
    min-height: 60px;
    justify-content: center;
}

.download-btn:hover,
.download-btn:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px); /* 减少移动距离 */
    outline: none;
}

/* 简化下拉菜单 */
.dropdown-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    transition: transform 0.2s ease; /* 简化过渡 */
    opacity: 0.7;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px); /* 减少模糊程度 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px); /* 减少移动距离 */
    transition: all 0.2s ease; /* 简化过渡 */
    z-index: 10001;
    overflow: hidden;
    min-width: 280px;
}

.download-btn-container:hover .dropdown-menu,
.download-btn-container:focus-within .dropdown-menu,
.download-btn-container.menu-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    display: block;
    padding: 1rem 1.2rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s ease; /* 简化过渡 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover,
.dropdown-option:focus {
    background: rgba(59, 130, 246, 0.2);
    outline: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.option-icon {
    font-size: 1.2rem;
    opacity: 0.8;
    width: 20px;
    text-align: center;
}

.option-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}

.option-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.option-subtitle {
    font-size: 0.8rem;
    opacity: 0.7;
    color: #94a3b8;
}

/* 页脚 */
.footer {
    background: #0f172a;
    color: white;
    padding: 3rem 2rem 1rem;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3b82f6;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease; /* 简化过渡 */
}

.footer-section a:hover,
.footer-section a:focus {
    color: #3b82f6;
    outline: none;
}

.footer-section nav {
    display: flex;
    flex-direction: column;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #334155;
    color: #64748b;
}

/* 加载屏幕 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease; /* 简化过渡 */
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px; /* 减小尺寸 */
    height: 40px;
    border: 2px solid rgba(59, 130, 246, 0.3); /* 减小边框 */
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-links.open {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .dropdown-menu {
        left: -20px;
        right: -20px;
        margin-top: 0.3rem;
    }

    .nav {
        padding: 1rem;
    }

    /* 在移动端禁用所有动画以提升性能 */
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* 焦点可见性 - 无障碍重要元素 */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* 为屏幕阅读器用户优化的noscript内容 */
noscript {
    display: block;
}

/* 确保JavaScript启用时隐藏noscript内容 */
.js noscript {
    display: none;
}

/* 打印样式 */
@media print {
    .header,
    .particles,
    .grid-pattern,
    .loading {
        display: none !important;
    }

    .hero {
        background: white !important;
        color: black !important;
        page-break-after: always;
    }

    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    .sr-only,
    .skip-link {
        display: none !important;
    }
}