/* 下载页面样式 */

/* 下载页面标题区 */
.download-hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    padding: 60px 0 40px;
    text-align: center;
}

.download-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.download-hero h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.download-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* 下载内容区 */
.download-content {
    padding: 40px 0 60px;
    background-color: #fff;
}

.download-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 下载卡片 */
.download-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.download-card.featured {
    border: 2px solid #00BC66;
    position: relative;
}

.download-card.featured::before {
    content: 'PC端';
    position: absolute;
    top: -12px;
    right: 20px;
    background: #00BC66;
    color: #fff;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.download-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.download-icon {
    flex-shrink: 0;
}

.download-icon svg {
    width: 64px;
    height: 64px;
}

.download-info h3 {
    font-size: 28px;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.download-version {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 下载详情 */
.download-details {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: #666;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 下载按钮 */
.download-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.download-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00BC66;
    color: #fff;
    padding: 16px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.download-btn-primary:hover {
    background: #00a857;
    transform: translateY(-2px);
}

.download-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #666;
    padding: 16px 40px;
    border-radius: 25px;
    border: 2px solid #ddd;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
}

.download-btn-secondary:hover {
    border-color: #00BC66;
    color: #00BC66;
}

/* 防止模态框打开时页面抖动 */
body.modal-open {
    overflow: hidden;
}

body.modal-open .header {
    padding-right: var(--scrollbar-width, 0px);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 25px;
}

/* 安装步骤 */
.install-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: #00BC66;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.step-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.install-note {
    background: #e8f5e9;
    border-left: 4px solid #00BC66;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.install-note strong {
    color: #00BC66;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-hero {
        padding: 40px 0 30px;
    }
    
    .download-hero h1 {
        font-size: 28px;
    }
    
    .download-subtitle {
        font-size: 16px;
    }
    
    .download-card {
        padding: 25px;
    }
    
    .download-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .download-info h3 {
        font-size: 22px;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .download-btn-primary,
    .download-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .download-hero h1 {
        font-size: 24px;
    }
    
    .download-info h3 {
        font-size: 20px;
    }
    
    .modal-content {
        margin: 10px;
    }
}