/* ================================================
   培训视频页面专用样式 - videos.css
   藏后品牌官网
   ================================================ */

/* ---- 1. Hero Banner ---- */
.videos-hero {
    position: relative;
    height: 55vh;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.videos-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17,31,77,0.72) 0%, rgba(17,31,77,0.45) 100%);
}
.videos-hero-content {
    position: relative;
    z-index: 10;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 20px;
}
.videos-hero-tag {
    display: inline-block;
    color: var(--color-gold);
    font-family: var(--font-en);
    font-size: 1rem;
    letter-spacing: 0.3em;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease both;
}
.videos-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    animation: fadeInUp 0.8s 0.2s ease both;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.videos-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.15em;
    animation: fadeInUp 0.8s 0.4s ease both;
}
.videos-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
}
.videos-hero-wave svg {
    width: 100%;
    height: 40px;
    display: block;
}

/* ---- 2. 视频列表区 ---- */
.videos-list {
    padding: 100px 0;
    background: var(--color-bg);
}

/* ---- 3. 视频网格 ---- */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}

/* ---- 4. 视频卡片 ---- */
.video-card {
    background: var(--color-white);
    border: 1px solid rgba(201,162,39,0.12);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--color-gold);
}

/* 封面图区域 */
.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a2040;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.video-card:hover .video-thumb img {
    transform: scale(1.06);
}

/* 无封面时的占位 */
.video-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2040 0%, #0d1b3e 100%);
    color: rgba(201,162,39,0.3);
}

/* 播放按钮覆盖层 */
.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17,31,77,0.3);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.video-card:hover .video-play-overlay {
    opacity: 1;
}
.video-play-overlay svg {
    width: 56px;
    height: 56px;
    color: var(--color-gold);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}
.video-card:hover .video-play-overlay svg {
    transform: scale(1.1);
}

/* 视频信息 */
.video-info {
    padding: 18px 20px;
}
.video-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    margin: 0 0 6px;
    line-height: 1.5;
}
.video-desc {
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- 5. 空状态 ---- */
.videos-empty {
    text-align: center;
    padding: 80px 20px;
    margin-top: 50px;
    color: var(--color-text-light);
}
.videos-empty svg {
    color: rgba(201,162,39,0.3);
    margin-bottom: 20px;
}
.videos-empty p {
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* ---- 6. 视频弹窗 ---- */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.video-modal.active {
    display: flex;
}
.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.video-modal-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 900px;
    background: #0a0f1e;
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 8px;
    overflow: hidden;
    animation: modalSlideUp 0.35s ease;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 50%;
    color: var(--color-gold);
    cursor: pointer;
    transition: var(--transition);
}
.video-modal-close:hover {
    background: var(--color-gold);
    color: var(--color-primary-dark);
}
.video-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(201,162,39,0.15);
}
.video-modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.08em;
    margin: 0;
}
.video-modal-player {
    width: 100%;
    background: #000;
}
.video-modal-player video {
    width: 100%;
    display: block;
    max-height: 70vh;
}

/* ---- 7. 底部CTA ---- */
.videos-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #0d1b3e 100%);
    position: relative;
    overflow: hidden;
}
.videos-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg, transparent, transparent 30px,
        rgba(201,162,39,0.02) 30px, rgba(201,162,39,0.02) 60px
    );
    pointer-events: none;
}
.videos-cta .cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}
.videos-cta .cta-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.videos-cta .cta-text p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.08em;
}
.videos-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    color: var(--color-primary-dark);
    padding: 16px 36px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(201,162,39,0.4);
}
.videos-cta .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201,162,39,0.6);
}

/* ---- 8. Reveal滚动动画 ---- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- 9. 响应式 ---- */
@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .videos-cta .cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .videos-hero {
        height: 45vh;
        min-height: 300px;
    }
    .videos-list {
        padding: 60px 0;
    }
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .video-modal-content {
        width: 96%;
    }
    .video-modal-header {
        padding: 14px 18px;
    }
    .video-modal-header h3 {
        font-size: 1rem;
    }
    .videos-cta {
        padding: 50px 0;
    }
    .videos-cta .cta-text h2 {
        font-size: 1.4rem;
    }
}
