/* 栏目页面专用样式 */
/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #fa84b7;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}
/* 筛选区域 */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 14px;
    min-width: 120px;
}

.filter-group select:focus {
    outline: none;
    border-color: #fa84b7;
    box-shadow: 0 0 0 2px rgba(250, 132, 183, 0.2);
}

.search-box-small {
    display: flex;
    margin-left: auto;
}

.search-box-small input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    border-right: none;
    font-size: 14px;
    min-width: 200px;
}

.search-box-small input:focus {
    outline: none;
    border-color: #fa84b7;
}

.search-box-small button {
    padding: 8px 16px;
    background: #fa84b7;
    color: white;
    border: 1px solid #fa84b7;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.search-box-small button:hover {
    background: #e673a3;
}

/* 视频列表区域 */
.videos-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fa84b7;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.view-btn.active {
    background: #fa84b7;
    color: white;
    border-color: #fa84b7;
}

.view-btn:hover:not(.active) {
    background: #f8f9fa;
    border-color: #fa84b7;
}

/* 视频网格视图 */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.videos-grid.list-view {
    grid-template-columns: 1fr;
    gap: 15px;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #fa84b7, #99dcff);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    text-align: center;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.play-overlay .play-icon {
    color: white;
    font-size: 20px;
    margin-left: 3px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-content {
    padding: 20px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.video-category {
    background: #fa84b7;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.video-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
}

/* 列表视图样式 */
.videos-grid.list-view .video-card {
    display: flex;
    flex-direction: row;
    height: 120px;
}

.videos-grid.list-view .video-thumbnail {
    width: 200px;
    height: 100%;
    flex-shrink: 0;
}

.videos-grid.list-view .video-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.videos-grid.list-view .video-title {
    font-size: 18px;
    -webkit-line-clamp: 1;
}

.videos-grid.list-view .video-description {
    -webkit-line-clamp: 2;
}

/* 视频播放模态框 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.video-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.video-player {
    position: relative;
    background: #000;
    border-radius: 8px;
    aspect-ratio: 16/9;
    margin-bottom: 20px;
    overflow: hidden;
}

.player-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.play-button-large {
    width: 100px;
    height: 100px;
    background: rgba(250, 132, 183, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.play-button-large:hover {
    background: rgba(250, 132, 183, 1);
    transform: scale(1.1);
}

.play-icon-large {
    font-size: 36px;
    color: white;
    margin-left: 6px;
}

.video-info h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.video-description {
    color: #666;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .search-box-small {
        margin-left: 0;
    }
    
    .search-box-small input {
        min-width: auto;
        flex: 1;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid.list-view .video-card {
        flex-direction: column;
        height: auto;
    }
    
    .videos-grid.list-view .video-thumbnail {
        width: 100%;
        height: 180px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 15px;
    }
    
    .videos-section {
        padding: 15px;
    }
    
    .video-content {
        padding: 15px;
    }
    
    .video-title {
        font-size: 14px;
    }
    
    .video-description {
        font-size: 13px;
    }
    
    .play-button-large {
        width: 80px;
        height: 80px;
    }
    
    .play-icon-large {
        font-size: 28px;
    }
}
