/* ========================================
   基础知识页面样式
   用于: jichuzhishi.php, jichuzhishi_cate.php
   ======================================== */

/* 注意: page-header-card 由 news.css 或全局定义 */

/* 分类模块 */
.category-module {
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.category-module:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.category-module-header {
    background: #fafbfc;
    border-bottom: 2px solid #f0f2f5;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-module-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #2C3E50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-module-header .more-link {
    font-size: 14px;
    color: #DC2626;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.category-module-header .more-link:hover {
    gap: 8px;
}

.category-module-header .more-link::after {
    content: ' →';
}

/* 分类列表 */
.category-list {
    list-style: none;
    padding: 20px 25px;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.category-list li {
    padding: 0;
}

.category-list a {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    color: #2C3E50;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    font-weight: 500;
}

.category-list a:hover {
    background: #E8F4FF;
    color: #DC2626;
    border-left-color: #DC2626;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .category-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-module-header {
        padding: 15px 20px;
    }

    .category-module-header h2 {
        font-size: 16px;
    }

    .category-list {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px 20px;
        gap: 10px;
    }

    .category-list a {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .category-list {
        grid-template-columns: 1fr;
    }
}