/* ========================================
   视频展示页面样式 - 与整体风格一致
   ======================================== */

/* 视频页面 */
.video-page {
    padding: 60px 0 80px;
}

/* 视频卡片 */
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* 视频缩略图 */
.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.08);
}

/* 视频遮罩层 */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.2) 60%,
        rgba(0, 0, 0, 0.5) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-card:hover .video-overlay {
    background: #cccc;
}

/* 播放按钮 */
.play-btn {
    width: 60px;
    height: 60px;
    background: #1e5292;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.play-btn i {
    margin-left: 3px;
}

.video-card:hover .play-btn {
    transform: scale(1.15);
    background: #1e5292;
}

/* 视频信息 */
.video-info {
    padding: 18px;
}

.video-title {
    color: #1e5292;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.video-card:hover .video-title {
    color: #1e5292;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #999;
    font-size: 0.85rem;
}

.video-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.video-meta i {
    font-size: 0.9rem;
}

/* ========================================
   视频弹窗样式
   ======================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.video-modal.active .video-modal-content {
    transform: scale(1) translateY(0);
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: #1e5292;
    color: #fff;
    transform: rotate(90deg);
}

.video-modal-header {
    padding: 18px 60px 18px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.video-modal-header h3 {
    color: #1e5292;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-modal-body {
    padding: 0;
    background: #000;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========================================
   分类按钮激活状态
   ======================================== */
.news-tabs-nav .btn-outline-secondary.active {
    background: #1e5292;
    border-color: #1e5292;
    color: #fff;
}

.news-tabs-nav .btn-outline-secondary:hover {
    background: #1e5292;
    border-color: #1e5292;
    color: #fff;
}

/* ========================================
   响应式调整
   ======================================== */
@media (max-width: 768px) {
    .video-page {
        padding: 40px 0 60px;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .video-modal-content {
        width: 95%;
        border-radius: 12px;
    }
    
    .video-modal-header {
        padding: 15px 50px 15px 18px;
    }
    
    .video-modal-header h3 {
        font-size: 1rem;
    }
    
    .video-modal-close {
        width: 35px;
        height: 35px;
        top: 12px;
        right: 12px;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-title {
        font-size: 0.95rem;
    }
}

/* 播放按钮脉冲动画 */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(113, 113, 113, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(112, 112, 112, 0.7);
    }
}

.video-card:hover .play-btn {
    animation: pulse 1.5s ease-in-out infinite;
}
