/**
 * 下载页面样式 - 黑白极简设计
 */

.download-page {
    min-height: 70vh;
    position: relative;
}

.download-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom, var(--bg-gray), transparent);
    z-index: 0;
}

/* 下载区域 */
.download-section {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-title {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
}

.download-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--bg-dark);
}

.download-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 80px;
    letter-spacing: 0.1em;
}

.download-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 60px;
    background: var(--bg-primary);
    border: 3px solid var(--border-black);
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: var(--shadow-hard);
}

.btn-large {
    padding: 18px 60px;
    font-size: 16px;
}

.download-meta {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 12px;
}

.error-message {
    color: var(--text-secondary);
    font-size: 16px;
}

/* 使用说明 */
.instructions {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

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

.step-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.requirement {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.requirement:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

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

.requirement p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 48px;
    text-align: center;
    border: 1px solid var(--border-color);
    min-width: 300px;
}

.modal-content h3 {
    font-size: 18px;
    margin-bottom: 24px;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--bg-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 1024px) {
    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .download-title {
        font-size: 42px;
    }
    
    .download-card {
        padding: 48px 32px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .download-title {
        font-size: 32px;
    }
    
    .download-card {
        padding: 40px 24px;
    }
    
    .btn-large {
        width: 100%;
    }
}
