/* 下载页面样式 */

/* 导航栏高亮样式 */
.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    /* 确保不会被按钮样式影响 */
    border: none !important;
    background: none !important;
    display: inline !important;
    box-shadow: none !important;
}

.nav-menu a:hover {
    color: #005AAC;
}

.nav-menu a[aria-current="page"] {
    color: #005AAC;
    font-weight: 600;
}

.nav-menu a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #005AAC 0%, #316EFE 100%);
    border-radius: 1px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 下载区域 */
.download-section {
    padding: 80px 0;
    background: #f8fafc;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.download-card.featured {
    border-color: #005AAC;
    transform: scale(1.05);
}

.download-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.download-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #005AAC 0%, #316EFE 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0 16px 0 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.download-icon {
    margin-bottom: 1.5rem;
}

.download-icon i {
    font-size: 4rem;
    color: #005AAC;
}

.download-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.download-content p {
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.9rem;
}

.info-item i {
    color: #005AAC;
    width: 16px;
}

.download-action {
    margin-top: 1.5rem;
}

.download-action .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 200px;
}

.npm-command {
    display: block;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #2d3748;
    text-align: center;
}

/* 系统要求区域 */
.requirements {
    padding: 80px 0;
    background: white;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.requirement-item {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.requirement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.requirement-icon {
    margin-bottom: 1rem;
}

.requirement-icon i {
    font-size: 2.5rem;
    color: #005AAC;
}

.requirement-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.requirement-item p {
    color: #718096;
    line-height: 1.6;
}

/* 安装指南区域 */
.installation {
    padding: 80px 0;
    background: #f8fafc;
}

.installation-steps {
    max-width: 800px;
    margin: 3rem auto 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    background: linear-gradient(135deg, #005AAC 0%, #316EFE 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.step-content p {
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

/* 常见问题区域 */
.faq {
    padding: 80px 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #005AAC;
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.faq-item p {
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

/* 无障碍访问样式 */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 焦点样式 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #005AAC;
    outline-offset: 2px;
}

/* 导航项特殊处理 - 去掉focus线框 */
.nav-menu a:focus {
    outline: none !important;
    outline-offset: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* 跳过导航链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #005AAC;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .download-card.featured {
        transform: none;
    }
    
    .download-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .download-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .installation-steps {
        margin-top: 2rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 80px 0 60px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .download-card {
        padding: 1.5rem;
    }
    
    .download-icon i {
        font-size: 3rem;
    }
    
    .download-action .btn {
        min-width: 100%;
    }
    
    .step-item {
        padding: 1.5rem;
    }
} 