/* ===== CSS Variables ===== */
:root {
    --primary: #1a5cff;
    --primary-dark: #0a4ad0;
    --primary-light: #e9edff;
    --bg-body: #f4f6f9;
    --bg-white: #ffffff;
    --text-dark: #1e1e2a;
    --text-mid: #2d2d3f;
    --text-light: #6b6b80;
    --border-light: #e6eaf0;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.07);
    --radius: 10px;
    --radius-sm: 6px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 基础重置（仅内容部分所需） */
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   1. 面包屑
   ============================================================ */
.breadcrumb-wrap {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
}
.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
}
.breadcrumb a {
    color: var(--text-light);
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep {
    margin: 0 8px;
    font-size: 12px;
    color: var(--border-light);
}
.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* ============================================================
   2. 视频页主区域
   ============================================================ */
.video-main {
    padding: 20px 0 40px;
}

/* ============================================================
   3. 分类筛选
   ============================================================ */
.video-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 12px 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}
.video-filter a {
    padding: 4px 18px;
    border-radius: 30px;
    font-size: 14px;
    color: var(--text-mid);
    transition: all 0.2s;
    border: 1px solid transparent;
    background: var(--bg-body);
}
.video-filter a:hover {
    color: var(--primary);
    background: var(--primary-light);
}
.video-filter a.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

/* ============================================================
   4. 板块标题
   ============================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin:0;
    margin-bottom: 16px;
}
.section-header h3 {
    font-size: 19px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-header h3 i {
    color: var(--primary);
}
.section-header .more {
    font-size: 14px;
    color: var(--text-light);
}
.section-header .more:hover {
    color: var(--primary);
}
.section-header .video-count {
    font-size: 14px;
    color: var(--text-light);
}
.section-header .video-count strong {
    color: var(--text-dark);
}

/* ============================================================
   5. 视频列表
   ============================================================ */
.video-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px 28px 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-item {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid var(--border-light);
}
.video-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.video-item .video-cover {
    position: relative;
    padding-top: 56.25%;
    background: linear-gradient(135deg, #d6e4ff, #b8ccff);
    overflow: hidden;
}
.video-item .video-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-item .video-cover .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
    border: 2px solid rgba(255,255,255,0.3);
}
.video-item:hover .video-cover .play-icon {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.08);
}
.video-item .video-cover .duration {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    padding: 1px 10px;
    border-radius: 4px;
    font-weight: 500;
}
.video-item .video-info {
    padding: 12px 14px 14px;
}
.video-item .video-info h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-item .video-info h4 a:hover {
    color: var(--primary);
}
.video-item .video-info .video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-light);
}
.video-item .video-info .video-meta .views i {
    margin-right: 4px;
}
.video-item .video-info .video-meta .tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0 10px;
    border-radius: 30px;
    font-size: 11px;
    line-height: 20px;
    font-weight: 500;
}

/* ============================================================
   6. 分页
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.pagination a {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-mid);
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}
.pagination a:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.pagination a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination a.prev,
.pagination a.next {
    border-color: var(--border-light);
}
.pagination a.prev:hover,
.pagination a.next:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.pagination span {
    padding: 5px 8px;
    color: var(--text-light);
}

/* ============================================================
   7. 下部分：三列资讯（推荐 + 最新 + 视频专题）
   ============================================================ */
.news-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px 28px 28px;
    box-shadow: var(--shadow-sm);
}

.news-three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

/* 每列通用头部 */
.news-col .col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}
.news-col .col-header h4 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-col .col-header .more {
    font-size: 13px;
    color: var(--text-light);
}
.news-col .col-header .more:hover {
    color: var(--primary);
}

/* 推荐资讯列表 */
.recommend-list {
    list-style: none;
}
.recommend-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}
.recommend-list li:last-child {
    border-bottom: none;
}
.recommend-list li .rec-thumb {
    width: 72px;
    height: 54px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: linear-gradient(135deg, #e0e7ff, #c7d9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    overflow: hidden;
}
.recommend-list li .rec-thumb a{
    display:block;
    width:100%;
    height:100%;
}
.recommend-list li .rec-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recommend-list li .rec-info {
    flex: 1;
    min-width: 0;
}
.recommend-list li .rec-info a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recommend-list li .rec-info a:hover {
    color: var(--primary);
}
.recommend-list li .rec-info .rec-time {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-top: 2px;
}

/* 最新资讯列表 */
.latest-list {
    list-style: none;
}
.latest-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 10px;
}
.latest-list li:last-child {
    border-bottom: none;
}
.latest-list li a {
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.latest-list li a:hover {
    color: var(--primary);
}
.latest-list li .latest-time {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

/* 视频专题（图片展示） */
.topic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.topic-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #d6e4ff, #b8ccff);
    transition: all 0.25s ease;
}
.topic-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}
.topic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.topic-item .topic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
}
.topic-item .topic-overlay .topic-title {
    font-size: 12px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.topic-item .topic-overlay .topic-views {
    font-size: 10px;
    opacity: 0.8;
}
.topic-item .play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    backdrop-filter: blur(2px);
    border: 1.5px solid rgba(255,255,255,0.3);
}

/* ============================================================
   8. 响应式
   ============================================================ */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .news-three-col {
        grid-template-columns: 1fr 1fr;
    }
    .news-three-col .news-col:last-child {
        grid-column: span 2;
    }
    .topic-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-section {
        padding: 18px 16px 20px;
    }
    .news-section {
        padding: 18px 16px 20px;
    }
    .news-three-col {
        grid-template-columns: 1fr;
    }
    .news-three-col .news-col:last-child {
        grid-column: span 1;
    }
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-filter {
        padding: 10px 14px;
        gap: 6px 8px;
    }
    .video-filter a {
        font-size: 13px;
        padding: 3px 12px;
    }
    .video-item .video-info h4 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .video-filter a {
        font-size: 12px;
        padding: 2px 10px;
    }
    .video-item .video-cover .play-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .video-item .video-info {
        padding: 8px 10px 10px;
    }
    .video-item .video-info h4 {
        font-size: 13px;
    }
    .video-item .video-info .video-meta {
        font-size: 11px;
    }
    .section-header h3 {
        font-size: 16px;
    }
    .section-header .more {
        font-size: 12px;
    }
    .topic-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .topic-item .topic-overlay .topic-title {
        font-size: 11px;
    }
    .pagination { gap: 4px; }
    .pagination a { padding: 3px 8px; font-size: 12px; }
    .pagination a.prev,
    .pagination a.next { padding: 3px 10px; }
}