/* 栏目整体 */
.category-header {
    margin-bottom: 20px;
}

/* 标题 */
.category-title {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 22px;
    font-weight: 600;
    color: #222;
}

/* 图标 */
.category-title i {
    font-size: 22px;
    color: #ff4d4f; /* 主题色 */
    transform: translateY(1px);
}

/* 简介 */
.category-desc {
    margin-top: 10px;

    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 分割线（提升质感） */
.category-header::after {
    content: "";
    display: block;
    margin-top: 14px;
    height: 1px;
    background: linear-gradient(to right, #e5e5e5, transparent);
}
/* ===== 卡片 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    display: block;
    text-decoration: none;
    color: #222;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.25s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card-body {
    padding: 8px 14px 14px 14px;
}

.card-body h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.meta {
    font-size: 12px;
    color: #999;
}

.epages {
    display: flex;
    flex-wrap: wrap;            /* 自动换行（关键） */
    justify-content: center;    /* 居中 */
    align-items: center;
    gap: 8px;                   /* 间距 */
    margin: 20px 0;
    font-size: 14px;
}

/* 所有按钮基础样式 */
.epages a,
.epages span {
    display: inline-block;
    padding: 6px 12px;
    min-width: 32px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
}

/* 当前页 */
.epages span {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
    font-weight: normal;
}

/* hover效果 */
.epages a:hover {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

/* 禁止过长文字挤压 */
.epages a {
    white-space: nowrap;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .epages {
        gap: 6px;
    }

    .epages a,
    .epages span {
        padding: 5px 10px;
        font-size: 13px;
    }
}




/* ===== 响应式 ===== */
@media (max-width: 1400px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .right {
        display: none;
    }

}



/* 提示条 */
.search-tip {
    display: flex;
    align-items: center;

    padding: 14px 18px;
    border-radius: 12px;

    border-left: 4px solid #ff4d4f;

    font-size: 15px;
    color: #333;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff1f0, #f6f7f8);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* 内容间距 */
.search-tip-content {
    margin-left: 4px;
}

/* 数量 */
.search-tip .count {
    color: #ff4d4f;
    font-weight: 600;
    margin: 0 2px;
}

/* 关键词 */
.search-tip .keyword {
    color: #ff4d4f;
    font-weight: 500;
    margin: 0 2px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .search-tip {
        font-size: 14px;
        padding: 12px 14px;
    }
}