/* ========================================
   视频中心页面样式
   ======================================== */

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 0.75rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: hsl(var(--primary));
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: hsl(var(--muted-foreground));
}

.breadcrumb-separator svg {
    width: 14px;
    height: 14px;
}

.breadcrumb-current {
    color: hsl(var(--foreground));
    font-weight: 500;
}

/* 筛选区域 */
.category-filter-section {
    margin-bottom: 3rem;
}

.filter-title {
    font-size: 0.75rem;
    color: hsl(var(--primary));
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0 0 1.5rem 0;
}

/* 类别筛选网格 */
.category-filter-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .category-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-filter-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.category-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid hsl(var(--border));
    border-radius: 0.5rem;
    background-color: hsl(var(--secondary) / 0.3);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-card:hover {
    border-color: hsl(var(--primary));
    background-color: hsl(var(--secondary) / 0.5);
}

.category-card.selected {
    border-color: hsl(var(--primary));
    background-color: hsl(var(--secondary) / 0.5);
}

.category-icon {
    flex-shrink: 0;
    color: hsl(var(--primary));
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-name {
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.category-desc {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* 视频统计 */
.video-stats {
    margin-bottom: 2rem;
}

.stats-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.stats-count {
    font-weight: 700;
    color: hsl(var(--foreground));
}

/* 视频网格 - 3列布局 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 视频卡片 */
.video-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: rgba(248, 248, 248, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-card:hover {
    border-color: rgba(201, 169, 98, 0.5);
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.1);
}

/* 视频图片区 */
.video-image-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: rgba(229, 229, 229, 0.2);
}

.video-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-image-wrap img {
    transform: scale(1.1);
}

/* 视频时长标签 */
.video-duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 0.25rem;
}

/* 视频悬停遮罩 */
.video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

/* 播放按钮 */
.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    padding: 0;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-play:hover {
    background-color: white;
    transform: scale(1.1);
}

.btn-play svg {
    width: 32px;
    height: 32px;
    margin-left: 0.25rem;
}

/* 视频内容区 */
.video-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.video-category {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: hsl(var(--accent));
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.video-name {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #222222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.video-card:hover .video-name {
    color: hsl(var(--accent));
}

.video-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 视频底部 */
.video-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(229, 229, 229, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-views {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.video-views svg {
    opacity: 0.7;
}

.video-date {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* 响应式调整 */
@media (max-width: 767px) {
    .section-title {
        font-size: 1.5rem;
    }

    .category-card {
        padding: 0.875rem;
    }

    .video-content {
        padding: 1.25rem;
    }

    .video-name {
        font-size: 1rem;
    }

    .video-desc {
        -webkit-line-clamp: 1;
    }
}
