/* 简洁现代风格 */
.video-page {
    background: #fafbfc;
    min-height: 100vh;
}

/* 顶部简洁标题区 - 去掉卡片 */
.page-header-simple {
    text-align: center;
    padding: 50px 20px 30px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.page-header-simple h1 {
    font-size: 36px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.page-header-simple p {
    color: #64748b;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 筛选标签 - 更精致 */
.filter-nav {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-list {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.filter-tag {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-tag:hover {
    background: #f1f5f9;
    color: #334155;
    transform: translateY(-1px);
}

.filter-tag.active {
    background: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

/* 视频网格 - 更紧凑 */
.video-container {
    padding: 40px 0;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 5px;
}

.section-title-row h2 {
    font-size: 22px;
    color: #1e293b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-count {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
}

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

.video-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    position: relative;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #e2e8f0;
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #f8fafc;
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.03);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 14px solid #1e40af;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    margin-left: 3px;
}

.video-card:hover .play-icon {
    background: #1e40af;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card:hover .play-icon::after {
    border-left-color: #ffffff;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: monospace;
}

.video-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-type-badge.local {
    background: #10b981;
    color: #ffffff;
}

.video-type-badge.youtube {
    background: #ef4444;
    color: #ffffff;
}

.video-content {
    padding: 16px;
}

.video-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.video-title {
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.video-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
}

.video-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-views::before {
    content: '▶';
    font-size: 10px;
    opacity: 0.7;
}

/* 查看更多按钮 - 首页专用 */
.load-more-section {
    text-align: center;
    padding: 40px 0 20px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-view-all::after {
    content: '→';
    transition: transform 0.3s ease;
}

.btn-view-all:hover::after {
    transform: translateX(4px);
}

/* 文章区域 - 更简洁 */
.article-section {
    background: #ffffff;
    padding: 50px 0;
    border-top: 1px solid #f1f5f9;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.article-card {
    padding: 20px;
    border-radius: 10px;
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    transition: all 0.25s ease;
    cursor: pointer;
}

.article-card:hover {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.article-tag {
    display: inline-block;
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 8px;
}

.article-title {
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.article-date {
    font-size: 12px;
    color: #94a3b8;
}

/* 分页 - 类似文章分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 50px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
}

.pagination a {
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.pagination a:hover {
    background: #f8fafc;
    color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-1px);
}

.pagination .current {
    background: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.pagination .ellipsis {
    color: #94a3b8;
    padding: 10px 8px;
    cursor: default;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

/* 视频模态框 - 更精致 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.video-modal.active {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
}

.video-frame iframe,
.video-frame video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-frame video {
    background: #000;
}

.modal-info {
    background: #ffffff;
    padding: 20px 24px;
}

.modal-info h3 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 6px;
    font-weight: 600;
}

.modal-info p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-header-simple {
        padding: 30px 20px 20px;
    }
    
    .page-header-simple h1 {
        font-size: 26px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .filter-list {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-tag {
        white-space: nowrap;
    }
    
    .section-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 13px;
    }
}