/* =========================================
   下载页面样式 - 清新极简风格
   ========================================= */

/* 下载页面头部 */
.download-header {
    background: var(--gradient-hero);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.download-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: rotate 40s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.download-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.header-content .badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.header-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.header-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.875rem;
    opacity: 0.75;
    font-weight: 600;
}

.info-value {
    font-size: 1.625rem;
    font-weight: 800;
}

/* 下载区域 */
.download-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.download-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.platform-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.platform-card:hover::before {
    transform: scaleX(1);
}

.platform-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.platform-card.featured::before {
    transform: scaleX(1);
}

.platform-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.platform-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--gradient-hero);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: var(--shadow-colored);
}

.platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    color: white;
    box-shadow: var(--shadow-colored);
}

.platform-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.platform-details {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.platform-details p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.platform-version {
    font-weight: 800;
    color: var(--primary);
    font-size: 1rem;
}

.platform-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.platform-features li {
    padding: 0.625rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.platform-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-download.primary {
    background: var(--gradient-hero);
    color: white;
    box-shadow: var(--shadow-colored);
}

.btn-download.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

.btn-download.secondary,
.btn-download.store {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-download.secondary:hover,
.btn-download.store:hover {
    border-color: var(--primary);
    background: var(--bg-secondary);
    transform: translateY(-3px);
}

/* 系统要求 */
.system-requirements {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.req-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.req-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.req-card h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.req-card ul {
    list-style: none;
}

.req-card ul li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2rem;
    line-height: 1.7;
}

.req-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* 更新日志 */
.changelog {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.changelog-list {
    max-width: 900px;
    margin: 0 auto;
}

.changelog-item {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.75rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.changelog-item.latest {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.changelog-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.changelog-version {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--primary);
}

.changelog-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.375rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.changelog-badge {
    background: var(--gradient-hero);
    color: white;
    padding: 0.375rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
}

.changelog-content {
    list-style: none;
}

.changelog-content li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2rem;
    line-height: 1.7;
}

.changelog-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
}

/* =========================================
   响应式设计
   ========================================= */
@media (max-width: 768px) {
    .download-header {
        padding: 6rem 0 4rem;
    }

    .download-header h1 {
        font-size: 2.25rem;
    }
    
    .version-info {
        flex-direction: column;
        gap: 2rem;
    }
    
    .download-platforms {
        grid-template-columns: 1fr;
    }
    
    .platform-card.featured {
        order: -1;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .changelog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}
