/* ===================================
   下载中心页面样式
   ======================================= */

.download-page {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

/* ===================================
   右侧内容区域（使用 products-content 白底容器）
   =================================== */
.download-page .products-content {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.download-page .products-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.download-page .products-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.download-header {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
}

.download-header h2,
.section-title-sm {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1d3557;
    margin: 0 0 8px 0;
}

.download-header p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}

/* ===================================
   下载列表
   =================================== */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    min-height: 90px;
}

.download-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(30, 82, 146, 0.1);
    border-color: rgba(30, 82, 146, 0.15);
}

/* 文件图标 */
.file-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(30, 82, 146, 0.08) 0%, rgba(30, 82, 146, 0.04) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.file-icon i {
    font-size: 1.6rem;
    color: #1e5292;
}

.download-item:hover .file-icon {
    background: linear-gradient(135deg, #1e5292 0%, #2d6cb5 100%);
}

.download-item:hover .file-icon i {
    color: #fff;
}

/* 文件信息 */
.file-info {
    flex: 1;
    min-width: 0;
}

.file-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.download-item:hover .file-title {
    color: #1e5292;
}

.file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.file-meta span {
    display: inline-flex;
    align-items: center;
}

.file-meta i {
    color: #1e5292;
    opacity: 0.6;
}

.file-desc {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 下载按钮 */
.file-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.btn-download {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 14px;
    background: linear-gradient(135deg, #1e5292 0%, #153d6e 100%);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 82, 146, 0.2);
    white-space: nowrap;
    border: none;
    min-width: auto;
    width: fit-content;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 82, 146, 0.3);
    color: #fff;
}

.btn-download i {
    font-size: 1.1rem;
}

.btn-download .download-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin: 0;
}

.btn-download span {
    font-size: 0.9rem;
    line-height: 1;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 82, 146, 0.35);
    color: #fff;
}

/* ===================================
   分页
   =================================== */
.products-pagination .pagination {
    gap: 8px;
}

.products-pagination .page-link {
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    color: #64748b;
    background: #f1f5f9;
    transition: all 0.25s;
}

.products-pagination .page-link:hover {
    background: rgba(30, 82, 146, 0.1);
    color: #1e5292;
}

.products-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #1e5292 0%, #153d6e 100%);
    color: #fff;
}

/* ===================================
   响应式设计
   =================================== */
@media (max-width: 991px) {
    .download-page .products-content {
        padding: 20px;
    }
    
    .download-item {
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .download-page .products-content {
        padding: 15px;
    }
    
    .download-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
        min-height: auto;
    }

    .file-info {
        width: 100%;
    }

    .file-meta {
        justify-content: center;
    }

    .file-action {
        width: 100%;
        justify-content: center;
    }

    .btn-download {
        flex-direction: row;
        gap: 6px;
        width: 100%;
        max-width: 180px;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .btn-download .download-icon-img {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 576px) {
    .file-icon {
        width: 52px;
        height: 52px;
    }

    .file-icon i {
        font-size: 1.4rem;
    }

    .file-title {
        font-size: 0.95rem;
    }

    .file-meta {
        gap: 10px;
        font-size: 0.8rem;
    }
}