/* 下载中心页面样式 */

/* 确保页面使用flex布局 */
body.download-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
}

body.download-page .header {
    flex-shrink: 0;
}

body.download-page .footer {
    flex-shrink: 0;
    margin-top: auto;
}

.content-wrapper {
    flex: 1;
    padding: 100px 40px 40px;
    position: relative;
    z-index: 1;
}

.download-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* 选项卡样式 */
.download-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
}

.tab-btn {
    padding: 12px 25px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--text-color);
}

.tab-btn:hover {
    background-color: rgba(254, 44, 85, 0.1);
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* 内容区域样式 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 下载卡片网格 */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 下载卡片样式 */
.download-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.download-icon {
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(254, 44, 85, 0.05);
}

.download-icon img {
    height: 60px;
    width: auto;
}

.download-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.download-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.download-info p {
    margin: 5px 0;
    font-size: 14px;
    color: rgba(51, 51, 51, 0.7);
}

.download-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.download-btn {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
    text-align: center;
    flex: 1;
}

.download-btn:hover {
    background-color: #e41e3f;
}

.detail-link {
    padding: 8px 16px;
    background-color: transparent;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    text-align: center;
    flex: 1;
}

.detail-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .download-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 100px 20px 30px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .download-tabs {
        justify-content: center;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
} 