/* 下载页面样式 */

/* 下载页面主内容区域 */
.download-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    color: white;
    text-align: center;
}

.download-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.download-hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 平台标签切换 */
.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.platform-tab {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.platform-tab.active,
.platform-tab:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* 下载选项网格 */
.download-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.download-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #e2e8f0;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.download-card.featured {
    border-color: var(--accent-color);
}

.platform-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
}

.download-card.featured .platform-icon {
    background: var(--accent-color);
    color: white;
}

.download-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.version {
    font-size: 16px;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.requirements {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--text-light);
}

.download-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn svg {
    margin-bottom: 2px;
}

/* 系统要求说明 */
.system-requirements {
    padding: 80px 0;
    background: var(--bg-white);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.requirement-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

.requirement-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.requirement-card ul {
    list-style: none;
}

.requirement-card li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
}

.requirement-card li:last-child {
    border-bottom: none;
}

.requirement-card strong {
    color: var(--text-color);
    font-weight: 600;
}

/* 安装指南 */
.installation-guide {
    padding: 80px 0;
    background: var(--bg-light);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 推荐徽章 */
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-hero {
        padding: 120px 0 60px;
    }

    .download-hero-content h1 {
        font-size: 36px;
    }

    .platform-tabs {
        flex-direction: column;
        align-items: center;
    }

    .platform-tab {
        width: 200px;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .guide-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .guide-steps {
        grid-template-columns: 1fr;
    }

    .download-info {
        flex-direction: column;
        gap: 5px;
    }

    .download-card {
        padding: 30px 20px;
    }
}

/* 下载动画 */
.download-btn:active {
    transform: scale(0.98);
}

/* 过滤效果 */
.download-card.hidden {
    display: none;
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-card {
    animation: fadeIn 0.5s ease forwards;
}

.download-card:nth-child(2) {
    animation-delay: 0.1s;
}

.download-card:nth-child(3) {
    animation-delay: 0.2s;
}

.download-card:nth-child(4) {
    animation-delay: 0.3s;
}

.download-card:nth-child(5) {
    animation-delay: 0.4s;
}

.download-card:nth-child(6) {
    animation-delay: 0.5s;
}