/* 主容器 限制最大宽度1560px */
.files-download-container {
    max-width: 1560px;
    margin: 80px auto;
    width: 100%;
}

/* 页面标题区域 语义化H1 */
.files-download-header-block {
    margin-bottom: 60px;
    text-align: center;
}

h1 {
    font-size: clamp(30px, 4.2vw, 44px);
    font-weight: 700;
    margin-bottom: 14px;
    color: #1e293b;
    letter-spacing: 0.5px;
}

.files-download-subtitle {
    font-size: clamp(16px, 1.25vw, 19px);
    color: #64748b;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 文件卡片网格布局 自适应 */
.files-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

/* 隐藏原始全部卡片容器，分页时克隆渲染 */
.files-source-wrapper {
    display: none;
}

/* 浅白质感文件卡片 */
.files-item-card {
    background: #f8fafc;
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 左侧渐变装饰条 */
.files-item-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #22d3ee, #0891b2);
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 顶部流光条 */
.files-item-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.files-item-card:hover {
    box-shadow: 0 14px 36px rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.25);
}

.files-item-card:hover::before {
    opacity: 1;
}

.files-item-card:hover::after {
    opacity: 1;
}

/* 文件头部图标+名称行 */
.files-item-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.files-item-icon-box {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.12);
    display: grid;
    place-items: center;
    color: #0891b2;
}

.files-item-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    color: #1e293b;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    padding-top: 4px;
}

.files-item-action-wrap {
    display: flex;
    gap: 14px;
    margin-top: auto;
}

/* 预览按钮（原来是下载按钮，现在用 <a> 标签，样式不变） */
.files-btn-primary {
    flex: 1;
    padding: 14px 0;
    text-align: center;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    text-decoration: none; /* 新增：<a> 无下划线 */
    display: block; /* 新增：与 <button> 视觉一致 */
    box-sizing: border-box;
}

.files-btn-primary:hover {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.18);
    transform: scale(1.02);
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 8px;
}

.pagination-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(203, 213, 225, 0.7);
    background: #f8fafc;
    color: #1e293b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    place-items: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #06b6d4;
    color: #0891b2;
    background: rgba(6, 182, 212, 0.08);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: white;
    border-color: transparent;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #64748b;
    font-weight: 600;
}

/* 底部全幅联系区块 */
.files-contact-full-section {
    width: 100%;
    margin-top: 80px;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    padding: 72px 24px;
}

.files-contact-inner-wrap {
    max-width: 1560px;
    margin: 0 auto;
    text-align: center;
}

.files-contact-title {
    font-size: clamp(26px, 3vw, 36px);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 16px;
}

.files-contact-desc {
    font-size: clamp(16px, 1.1vw, 18px);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.files-contact-btn {
    display: inline-block;
    padding: 16px 42px;
    background: #ffffff;
    color: #0891b2;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.files-contact-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
    .files-download-header-block {
        margin-bottom: 48px;
    }

    .files-list-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 12px;
    }

    .files-item-card {
        padding: 26px;
    }

    .files-item-header {
        gap: 14px;
        margin-bottom: 26px;
    }

    .files-item-icon-box {
        width: 44px;
        height: 44px;
    }
}

@media screen and (max-width: 480px) {
    .files-item-action-wrap {
        flex-direction: column;
        gap: 12px;
    }
}