/* ========== 视频课页面（纯文字横条列表版） ========== */

.videos-page {
    padding: 24px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.videos-page-header {
    margin-bottom: 20px;
}
.videos-page-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 6px;
}
.videos-page-header p {
    font-size: 13px;
    color: #999;
}

/* 搜索栏 */
.videos-search-bar {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.videos-search-bar input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.videos-search-bar input:focus {
    border-color: #c41e3a;
}
.videos-search-bar .search-btn {
    padding: 10px 24px;
    background: #c41e3a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.videos-search-bar .search-btn:hover {
    background: #a01830;
}

/* 主体布局 */
.videos-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 左侧索引栏 */
.videos-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    padding: 16px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 80px;
}

.filter-section {
    margin-bottom: 4px;
}
.filter-title {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}
.filter-section:last-child .filter-title {
    border-bottom: none;
}
.filter-option {
    display: block;
    padding: 7px 20px 7px 32px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}
.filter-option:hover {
    background: #fef5f2;
    color: #c41e3a;
}
.filter-option.active {
    background: #fef5f2;
    color: #c41e3a;
    font-weight: 500;
}
.filter-option.active::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 14px;
    background: #c41e3a;
    border-radius: 2px;
}
.filter-option .count {
    float: right;
    color: #bbb;
    font-size: 12px;
}
.filter-option.active .count {
    color: #c41e3a;
}

/* 右侧主内容 */
.videos-main {
    flex: 1;
    min-width: 0;
}

/* 排序栏 */
.videos-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}
.videos-sort-bar .total {
    font-size: 13px;
    color: #666;
}
.videos-sort-bar .total b {
    color: #c41e3a;
    font-size: 15px;
    margin: 0 3px;
}
.sort-options {
    display: flex;
    gap: 4px;
}
.sort-btn {
    padding: 4px 12px;
    font-size: 12px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
}
.sort-btn:hover {
    color: #c41e3a;
}
.sort-btn.active {
    color: #c41e3a;
    background: #fef5f2;
    font-weight: 500;
}

/* 视频列表（纯文字条目） */
.video-list {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.video-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.15s;
}
.video-item:last-child {
    border-bottom: none;
}
.video-item:hover {
    background: #fefaf8;
}

.video-item-title {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.5;
    transition: color 0.15s;
}
.video-item:hover .video-item-title {
    color: #c41e3a;
}

.video-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: #888;
}
.video-item-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.video-item-meta .tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}
.video-item-meta .tag.source {
    background: #e8f4fd;
    color: #1976d2;
}
.video-item-meta .tag.category {
    background: #fdecea;
    color: #c41e3a;
}
.video-item-meta .tag.duration {
    background: #f0f7ed;
    color: #2e7d32;
}

/* 分页 */
.videos-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}
.videos-pagination button {
    padding: 6px 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.videos-pagination button:hover {
    border-color: #c41e3a;
    color: #c41e3a;
}
.videos-pagination button.active {
    background: #c41e3a;
    color: #fff;
    border-color: #c41e3a;
}
.videos-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 空状态 */
.videos-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.videos-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.videos-empty .empty-title {
    font-size: 15px;
    color: #666;
    margin-bottom: 6px;
}
.videos-empty .empty-desc {
    font-size: 13px;
    color: #aaa;
}

/* 加载 */
.videos-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 900px) {
    .videos-layout {
        flex-direction: column;
    }
    .videos-sidebar {
        width: 100%;
        position: static;
    }
}
