/* ==============================
   Download List Page
   Future Power Color
================================= */

.download-list-page {
    padding: 35px 0 55px;
}

/* 分类 */
.download-category {
    margin-bottom: 24px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(55,179,74,.08), rgba(16,155,215,.08));
    border: 1px solid #e7f2ee;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-category a {
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(55,179,74,.16);
    border-radius: 24px;
    color: #14284b;
    font-size: 15px;
    line-height: 42px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
}

.download-category a i {
    color: #37b34a;
    transition: all .3s ease;
}

.download-category a:hover,
.download-category a.active {
    background: linear-gradient(135deg, #37b34a 0%, #109bd7 82%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(55,179,74,.22);
}

.download-category a:hover i,
.download-category a.active i {
    color: #fff;
}

/* 下载列表：一排3个 */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.download-item {
    position: relative;
    padding: 30px 26px 26px;
    background: #fff;
    border: 1px solid #e7f2ee;
    border-radius: 22px;
    text-decoration: none;
    overflow: hidden;
    transition: all .3s ease;
    box-shadow: 0 10px 28px rgba(16,36,58,.05);
}

.download-item::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 24px;
    width: 34px;
    height: 34px;
    opacity: .75;
    background-image: radial-gradient(circle, rgba(55,179,74,.28) 2.5px, transparent 3px);
    background-size: 10px 10px;
}

.download-item::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #37b34a 0%, #109bd7 72%, #f6bd16 100%);
    opacity: 0;
    transition: all .3s ease;
}

.download-item:hover {
    background: #fff;
    border-color: rgba(16,155,215,.34);
    box-shadow: 0 14px 36px rgba(16,155,215,.14);
    transform: translateY(-5px);
}

.download-item:hover::before {
    opacity: 1;
}

/* PDF 图标 */
.download-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #37b34a 0%, #109bd7 82%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(55,179,74,.22);
}

.download-icon i {
    color: #fff;
    font-size: 34px;
}

/* 文件标题 */
.download-item h2 {
    margin: 0 0 18px;
    color: #14284b;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 800;
    min-height: 58px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文件格式和大小 */
.download-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.download-meta span {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    background: #f7fbf8;
    border: 1px solid #e7f2ee;
    border-radius: 18px;
    color: #6b7280;
    font-size: 13px;
    line-height: 32px;
    font-weight: 600;
}

.download-meta i {
    margin-right: 6px;
    color: #37b34a;
}

.download-item:hover .download-meta span {
    background: #fff;
}

/* 下载按钮 */
.download-btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 24px;
    background: #f7fbf8;
    border: 1px solid #e7f2ee;
    color: #14284b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 15px;
    line-height: 44px;
    font-weight: 800;
    transition: all .3s ease;
}

.download-btn i {
    color: #37b34a;
    transition: all .3s ease;
}

.download-item:hover .download-btn {
    background: linear-gradient(135deg, #37b34a 0%, #109bd7 82%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(55,179,74,.22);
}

.download-item:hover .download-btn i {
    color: #fff;
}

/* 分页 */
.download-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.download-pagination a,
.download-pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7fbf8;
    border: 1px solid #e7f2ee;
    border-radius: 50%;
    color: #14284b;
    font-size: 15px;
    line-height: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
}

.download-pagination a:hover,
.download-pagination a.active {
    background: linear-gradient(135deg, #37b34a 0%, #109bd7 82%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(55,179,74,.22);
}

.download-pagination a.disabled {
    opacity: .45;
    pointer-events: none;
}

/* ==============================
   Tablet
================================= */

@media (max-width: 992px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==============================
   Mobile
================================= */

@media (max-width: 768px) {
    .download-list-page {
        padding: 28px 0 42px;
    }

    .download-category {
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 18px;
        gap: 8px;
    }

    .download-category a {
        width: 100%;
        min-height: 42px;
        border-radius: 12px;
        justify-content: flex-start;
    }

    .download-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .download-item {
        padding: 24px 20px 22px;
        border-radius: 18px;
    }

    .download-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 20px;
        border-radius: 16px;
    }

    .download-icon i {
        font-size: 29px;
    }

    .download-item h2 {
        min-height: auto;
        margin-bottom: 16px;
        font-size: 18px;
        line-height: 1.4;
    }

    .download-meta {
        gap: 9px;
        margin-bottom: 18px;
    }

    .download-meta span {
        height: 30px;
        padding: 0 11px;
        font-size: 12px;
        line-height: 30px;
    }

    .download-btn {
        width: 100%;
        height: 42px;
        line-height: 42px;
        border-radius: 22px;
    }

    .download-pagination {
        margin-top: 24px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .download-pagination a,
    .download-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
        line-height: 36px;
    }
}