/* 坤班资源页专属样式 */
/* 头部Banner */
.resource-banner {
    height: 200px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(images/resource-banner.jpg) center/cover no-repeat;
    transition: background 0.3s ease;
}
body.night-mode .resource-banner {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url(images/resource-banner-night.jpg) center/cover no-repeat;
}
.resource-banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}
.resource-banner-text h1 {
    font-size: 28px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.resource-banner-text p {
    font-size: 16px;
    opacity: 0.9;
}

/* 资源卡片列表 */
.resource-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.resource-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(22,93,255,0.08);
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}
body.night-mode .resource-card {
    background-color: #2C3036;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(22,93,255,0.12);
}
body.night-mode .resource-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.resource-img {
    width: 100%;
    height: 150px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #F2F3F5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86909C;
    font-size: 14px;
    margin-bottom: 16px;
}
body.night-mode .resource-img {
    background-color: #373B41;
    color: #C0C4CC;
}
.resource-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* .resource-info p {
    font-size: 16px;
    color: #000;
    margin-bottom: 8px;
    font-weight: 600;
} */

.resource-info>.name {
    font-size: 18px;
    color: #000;
    margin-bottom: 8px;
    font-weight: 600;
}
body.night-mode .resource-info h3 {
    color: #fff;
}
.resource-info p {
    font-size: 12px;
    color: #4E5969;
    line-height: 1.6;
    margin-bottom: 4px;
    text-align: left;
}
body.night-mode .resource-info p {
    color: #E5E6EB;
}

/* 分页导航 */
.pagination {
    text-align: right;
    margin-bottom: 40px;
}
/* 核心：.kun-page-link 样式 */
.kun-page-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px; /* 缩小间距更紧凑 */
    border-radius: 4px;
    background: #fff;
    color: #4E5969;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none; /* 去掉a标签默认下划线 */
}
/* 夜间模式下的kun-page-link */
body.night-mode .kun-page-link {
    background-color: #2C3036;
    color: #E5E6EB;
}
/* 禁用状态 */
.kun-page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none; /* 禁用点击 */
}
/* 激活状态（当前页） */
.kun-page-link.active {
    background-color: #165DFF;
    color: #fff;
}
/* 悬浮状态（非禁用/非激活） */
.kun-page-link:hover:not(.disabled):not(.active) {
    background-color: #165DFF;
    color: #fff;
}
/* 保留分页中的span样式（省略号） */
.pagination span {
    display: inline-block;
    padding: 8px 8px;
    margin: 0 4px;
    color: #4E5969;
    font-size: 14px;
}
body.night-mode .pagination span {
    color: #E5E6EB;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .resource-banner {
        height: 150px;
    }
    .resource-banner-text h1 {
        font-size: 22px;
    }
    .resource-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .resource-img {
        height: 120px;
    }
}