
/* Extracted from category.php */

    .portal-cat-wrap { background-color: #f5f6f7; padding: 20px 0 50px; font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; }
    .portal-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
    /* 顶部面包屑与标题栏 */
    .cat-header { background: #fff; border-top: 4px solid var(--cat-theme-color); padding: 20px 25px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
    .breadcrumb { font-size: 14px; color: #888; margin-bottom: 10px; }
    .breadcrumb a { color: #555; text-decoration: none; }
    .breadcrumb a:hover { color: var(--cat-theme-color); }
    .cat-title { font-size: 26px; font-weight: bold; color: #333; margin: 0; display: flex; align-items: center; }
    .cat-title::before { content: ''; display: inline-block; width: 6px; height: 24px; background: var(--cat-theme-color); margin-right: 12px; border-radius: 2px;}
    /* 左右分栏布局 */
    .cat-layout { display: flex; gap: 20px; align-items: flex-start; }
    .cat-main { flex: 1; min-width: 0; background: #fff; padding: 20px; border: 1px solid #eee; }
    .cat-sidebar { width: 320px; flex-shrink: 0; }
    /* ==========================================
       模式 A：新闻图文列表流 (News List)
       ========================================== */
    .news-list-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px dashed #eee; text-decoration: none; color: inherit; transition: 0.3s;}
    .news-list-item:last-child { border-bottom: none; }
    .news-list-item:hover { background-color: #fafafa; }
    .news-list-item:hover .news-title { color: var(--cat-theme-color); }
    .news-thumb { width: 220px; height: 140px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
    .news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
    .news-list-item:hover .news-thumb img { transform: scale(1.05); }
    .news-info { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
    .news-title { font-size: 20px; font-weight: bold; color: #333; margin: 0 0 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
    .news-excerpt { font-size: 14px; color: #666; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
    .news-meta { font-size: 13px; color: #999; display: flex; gap: 15px; margin-top: 10px; }
    /* ==========================================
       模式 B：视频/录像海报网格 (Video Grid)
       ========================================== */
    .video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .video-card { display: block; text-decoration: none; color: #333; transition: 0.3s; }
    .video-card:hover .video-title { color: var(--cat-theme-color); }
    .video-poster { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; margin-bottom: 12px; background: #000; }
    .video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: 0.4s; }
    .video-card:hover .video-poster img { opacity: 1; transform: scale(1.05); }
    /* 播放按钮遮罩 */
    .play-btn-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; background: rgba(0,0,0,0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,0.8); transition: 0.3s;}
    .play-btn-overlay::after { content: ''; display: block; border-left: 14px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
    .video-card:hover .play-btn-overlay { background: var(--cat-theme-color); border-color: var(--cat-theme-color); }
    .video-title { font-size: 15px; font-weight: bold; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px;}
    .video-date { font-size: 12px; color: #999; }
    /* 侧边栏通用样式 */
    .side-widget { background: #fff; border: 1px solid #eee; margin-bottom: 20px; }
    .side-widget-hd { padding: 12px 15px; border-bottom: 1px solid #eee; font-weight: bold; font-size: 16px; border-left: 3px solid var(--cat-theme-color); }
    .side-widget-bd { padding: 15px; }
    /* 分页器 */
    .portal-pagination { margin-top: 30px; text-align: center; }
    .portal-pagination .page-numbers { display: inline-block; padding: 8px 16px; background: #fff; border: 1px solid #ddd; margin: 0 4px; color: #333; text-decoration: none; border-radius: 4px; }
    .portal-pagination .page-numbers.current { background: var(--cat-theme-color); color: #fff; border-color: var(--cat-theme-color); }
    .portal-pagination .page-numbers:hover:not(.current) { background: #f0f0f0; }
    /* ⬇️ 移动端绝杀自适应 (通栏无留白) ⬇️ */
    @media (max-width: 768px) {
        .portal-cat-wrap { padding-top: 0; }
        .portal-inner { padding: 0; }
        .cat-header { padding: 15px; margin-bottom: 10px; border-top: none; border-bottom: 1px solid #eee; }
        .cat-title { font-size: 20px; }
        .cat-layout { flex-direction: column; gap: 0; }
        .cat-sidebar { width: 100%; padding: 15px; background: #f5f6f7; }
        .cat-main { padding: 0 15px 20px; border: none; }
        /* 新闻流自适应 */
        .news-list-item { gap: 12px; padding: 15px 0; }
        .news-thumb { width: 120px; height: 85px; }
        .news-title { font-size: 16px; margin-bottom: 6px; }
        .news-excerpt { display: none; /* 手机端隐藏摘要省空间 */ }
        .news-meta { margin-top: 5px; font-size: 12px; }
        /* 视频流自适应: 变成双列网格 */
        .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding-top: 15px;}
        .video-title { font-size: 13px; }
        .play-btn-overlay { width: 34px; height: 34px; border-width: 1px;}
        .play-btn-overlay::after { border-left: 10px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
    }