/* 1. 视频列表页面头部 - 添加渐变动画效果，现在包含二级分类导航 */
.video-list-header {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    /*border-bottom: 1px solid #f0830075;*/
    position: relative;
}

.video-list-header h1 {
    font-size: var(--font-size-4xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-bold);
    background: linear-gradient(90deg, 
        #1a56db 0%, 
        #3b82f6 25%, 
        #10b981 50%, 
        #f59e0b 75%, 
        #8b5cf6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(26, 86, 219, 0.2);
    padding: 0 20px;
    position: relative;
    display: inline-block;
}

@keyframes gradientText {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.video-list-header h1::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #93c5fd);
    border-radius: 2px;
    animation: gradientLine 3s ease-in-out infinite;
}

@keyframes gradientLine {
    0%, 100% { width: 80px; background: linear-gradient(90deg, var(--color-primary), #93c5fd); }
    50% { width: 120px; background: linear-gradient(90deg, #93c5fd, var(--color-primary)); }
}

.video-list-header p {
    font-size: var(--font-size-lg);
    color: var(--color-muted);
    max-width: 800px;
    margin: var(--spacing-xl) auto var(--spacing-2xl);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* 二级分类导航样式 */
.video-list-header .secondary-nav {
    margin: 0;
    padding: 0;
}
.video-list-header .secondary-nav-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}
.video-list-header .secondary-nav-item {
    height: 92px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-md);
    border: 3px solid transparent;
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.1), rgba(147, 197, 253, 0.1));
}
.video-list-header .secondary-nav-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(26, 86, 219, 0.25);
    border-color: var(--color-primary);
}
.video-list-header .secondary-nav-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(26, 86, 219, 0.2);
}
.video-list-header .secondary-nav-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.8) saturate(1.1);
    transform-origin: center;
    z-index: 1;
}
.video-list-header .secondary-nav-item:hover .secondary-nav-bg {
    transform: scale(1.15);
    filter: brightness(1) saturate(1.3);
}
.video-list-header .secondary-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    z-index: 2;
}
.video-list-header .secondary-nav-content {
    text-align: center;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
    z-index: 3;
    width: 100%;
    padding: var(--spacing-sm);
}
.video-list-header .secondary-nav-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 16px;
    color: var(--color-primary);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(26, 86, 219, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.video-list-header .secondary-nav-name {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 1200px) {
    .video-list-header .secondary-nav-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
    .video-list-header .secondary-nav-item { height: 92px; }
    .video-list-header .secondary-nav-icon { width: 34px; height: 34px; font-size: 15px; margin-bottom: 8px; }
    .video-list-header .secondary-nav-name { font-size: 15px; }
}
@media (max-width: 768px) {
    .video-list-header .secondary-nav { padding: 0 var(--spacing-sm); }
    .video-list-header .secondary-nav-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .video-list-header .secondary-nav-item { height: 80px; }
    .video-list-header .secondary-nav-icon { width: 28px; height: 28px; font-size: 12px; margin-bottom: 5px; }
    .video-list-header .secondary-nav-name { font-size: 13px; }
}
.breadcrumb-section { flex: 1; display: flex; justify-content: flex-start; align-items: center; min-width: 0; }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: var(--spacing-xs); list-style: none; margin: 0; padding: 0; }
.breadcrumb-item { display: flex; align-items: center; gap: var(--spacing-xs); font-size: var(--font-size-sm); }
.breadcrumb-item:not(:last-child)::after { content: '/'; color: var(--color-muted); margin-left: var(--spacing-xs); font-size: var(--font-size-xs); }
.breadcrumb-link { color: var(--color-text); text-decoration: none; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-sm); transition: all 0.3s ease; font-weight: var(--font-weight-medium); }
.breadcrumb-link i { font-size: var(--font-size-sm); color: var(--color-primary); }
.breadcrumb-link:hover { background: rgba(26, 86, 219, 0.1); color: var(--color-primary); transform: translateY(-1px); }

/* ===== 横向滑动组件样式 ===== */
.scroll-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl) 0;
    width: 100%;
}

.js-horizontal-slider {
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}
.js-horizontal-slider:active {
    cursor: grabbing;
}
.js-horizontal-slider .video-thumb,
.js-horizontal-slider .vertical-video-thumb,
.js-horizontal-slider .preview-video,
.js-horizontal-slider .vertical-preview-video,
.js-horizontal-slider .video-play-btn,
.js-horizontal-slider .vertical-video-play-btn {
    cursor: grab;
}
.js-horizontal-slider:active .video-thumb,
.js-horizontal-slider:active .vertical-video-thumb,
.js-horizontal-slider:active .preview-video,
.js-horizontal-slider:active .vertical-preview-video,
.js-horizontal-slider:active .video-play-btn,
.js-horizontal-slider:active .vertical-video-play-btn {
    cursor: grabbing;
}
.js-slider-track {
    display: flex;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 0s;
}
.js-slider-track.is-animating {
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
}
.js-slider-item {
    flex: 0 0 auto;
    user-select: none;
    -webkit-user-drag: none;
}

.scroll-nudge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--color-card-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    opacity: 0.8;
    display: none;
}
@media (min-width: 769px) {
    .scroll-nudge {
        display: flex;
    }
}
.scroll-nudge:hover {
    background: var(--color-primary);
    color: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}
.scroll-nudge.left {
    left: var(--spacing-sm);
}
.scroll-nudge.right {
    right: var(--spacing-sm);
}

/* 横版视频卡片样式 */
.horizontal-videos-section {
    padding: 0 var(--spacing-sm);
}
.horizontal-videos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding: 20px;
    border-radius: var(--radius-lg);
}
.horizontal-videos-header h2 {
    font-size: var(--font-size-2xl);
    color: #1e293b;
    font-weight: var(--font-weight-bold);
    position: relative;
    flex: 1;
    min-width: 200px;
}
.horizontal-videos-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #93c5fd);
    border-radius: 2px;
}
.video-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}
.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.15);
}
.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.video-card:hover::before {
    opacity: 1;
}
.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background: #000;
    border: none;
    transition: transform 0.5s ease;
}
.preview-video::-webkit-media-controls {
    display: none !important;
}
.video-card:hover .preview-video {
    transform: scale(1.08);
}
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a56db;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.5);
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.video-play-btn:hover {
    background: white;
    color: #ff4757;
    transform: translate(-50%, -50%) scale(1.15);
    border-color: white;
}
.video-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    padding: 4px 9px;
    font-size: 10px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.video-meta-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 4;
    color: white;
    font-size: 12px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
    pointer-events: none;
}
.video-meta-overlay .video-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}
.video-info {
    padding: 16px;
    flex: 1;
    background: white;
}
.video-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #1e293b;
}
.video-title a {
    color: #1e293b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.video-title a:hover {
    color: var(--color-primary);
}
.video-desc {
    font-size: var(--font-size-sm);
    color: var(--color-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 竖版视频卡片样式 */
.vertical-videos-section {
    margin: var(--spacing-xl) 0 var(--spacing-xl);
    padding: 0 var(--spacing-sm);
    position: relative;
}
.vertical-videos-header {
    margin-bottom: var(--spacing-xl);
    padding: 20px;
    border-radius: var(--radius-lg);
}
.vertical-videos-header h2 {
    font-size: var(--font-size-2xl);
    color: #1e293b;
    font-weight: var(--font-weight-bold);
    position: relative;
}
.vertical-videos-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), #93c5fd);
    border-radius: 2px;
}
.vertical-video-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    width: 100%;
}
.vertical-video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.15);
}
.vertical-video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.vertical-video-card:hover::before {
    opacity: 1;
}
.vertical-video-thumb {
    position: relative;
    width: 100%;
    padding-top: 177.78%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.vertical-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease;
}
.vertical-preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background: #000;
    border: none;
}
.vertical-preview-video::-webkit-media-controls {
    display: none !important;
}
.vertical-video-card:hover .vertical-cover-img {
    transform: scale(1.08);
}
.vertical-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a56db;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.5);
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.vertical-video-play-btn:hover {
    background: white;
    color: #ff4757;
    transform: translate(-50%, -50%) scale(1.15);
    border-color: white;
}
.vertical-video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 12px;
    font-weight: var(--font-weight-medium);
    z-index: 5;
    backdrop-filter: blur(4px);
}
.vertical-video-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    padding: 4px 9px;
    font-size: 10px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.vertical-video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    padding: 16px 12px;
    pointer-events: none;
    transition: background 0.3s ease;
    z-index: 3;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.vertical-video-card:hover .vertical-video-info {
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.2));
}
.vertical-video-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vertical-video-title a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}
.vertical-video-title a:hover {
    color: #fbbf24;
}
.vertical-video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}
.vertical-video-views, .vertical-video-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 滑动项宽度定义 */
.horizontal-slider-item {
    width: 320px;
    margin-right: 20px;
}
.vertical-slider-item {
    width: 220px;
    margin-right: 20px;
}
@media (max-width: 768px) {
    .horizontal-slider-item {
        width: 280px;
        margin-right: 16px;
    }
}
@media (max-width: 480px) {
    .horizontal-slider-item {
        width: 260px;
        margin-right: 12px;
    }
}

/* 内联视频播放器样式（竖版动态创建video时使用） */
.inline-preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 20;
    background: #000;
    border-radius: inherit;
}

/* CTA */
.video-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-3xl) var(--spacing-xl);
    text-align: center;
    margin: var(--spacing-3xl) auto;
    max-width: 800px;
}
.cta-button.primary {
    background: linear-gradient(135deg, #ff0036, var(--color-secondary));
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

[data-theme="dark"] .video-card,
[data-theme="dark"] .vertical-video-card {
    background: #1f2937;
    border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .video-info,
[data-theme="dark"] .vertical-video-info {
    background: transparent;
}
[data-theme="dark"] .video-title a,
[data-theme="dark"] .vertical-video-title a {
    color: #f3f4f6;
}
@media (max-width: 768px) {
    .horizontal-videos-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .video-cta {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}
