/* 下载页面样式 - 基于 styles.css 扩展 */

/* 下载页面头部 */
.download-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    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.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.header-content .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    margin-bottom: 1rem;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.header-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* 下载区域 */
.download-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.download-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.platform-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.platform-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.platform-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.platform-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--bg-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    color: white;
}

.platform-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.platform-details {
    margin-bottom: 1.5rem;
}

.platform-details p {
    margin: 0.25rem 0;
    color: var(--text-light);
}

.platform-version {
    font-weight: 600;
    color: var(--primary);
}

.platform-features {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: left;
}

.platform-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download.primary {
    background: var(--bg-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-download.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-download.secondary,
.btn-download.store {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-download.secondary:hover,
.btn-download.store:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* 系统要求 */
.system-requirements {
    padding: 6rem 0;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.req-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.req-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.req-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.req-card ul {
    list-style: none;
}

.req-card ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.req-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* 更新日志 */
.changelog {
    padding: 6rem 0;
    background: var(--bg-light);
}

.changelog-list {
    max-width: 800px;
    margin: 0 auto;
}

.changelog-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.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: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.changelog-version {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.changelog-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.changelog-badge {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.changelog-content {
    list-style: none;
}

.changelog-content li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-header h1 {
        font-size: 2rem;
    }
    
    .version-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .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;
    }
}
