/* ===== 大赛培训课程页专属样式 ===== */

.hero .hero-info {
    margin-top: 16px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 15px;
    opacity: 0.9;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.course-empty {
    background: #fff;
    border-radius: 14px;
    padding: 50px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #f0f2f5;
    text-align: center;
}

.course-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.course-empty-text {
    font-size: 18px;
    font-weight: 700;
    color: #1a3c6e;
    margin-bottom: 8px;
}

.course-empty-sub {
    font-size: 14px;
    color: #888;
}

.course-card {
    background: #fff;
    border-radius: 14px;
    padding: 26px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #f0f2f5;
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.course-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 12px;
}

.course-badge {
    display: inline-block;
    background: #1a3c6e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.course-badge.light {
    background: #eef2f8;
    color: #1a3c6e;
}

.course-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a3c6e;
}

.course-time {
    font-size: 14px;
    font-weight: 600;
    color: #1a7f9e;
    background: #e6f0fa;
    padding: 3px 14px;
    border-radius: 20px;
    margin-left: auto;
}

.btn-play {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffd700;
    color: #1a3c6e;
    border: none;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-play:hover {
    background: #ffe44d;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255,215,0,0.35);
}

/* 视频封面 + 播放按钮 */
.course-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #1a3c6e 0%, #2a5a9e 60%, #1a7f9e 100%);
    margin-bottom: 4px;
}

.course-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.course-cover:hover .course-cover-img {
    transform: scale(1.04);
}

/* 封面加载失败时隐藏图片，显示渐变底色兜底 */
.course-cover.no-cover .course-cover-img {
    display: none;
}

.course-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 50, 0.25);
    transition: background 0.25s ease;
}

.course-cover:hover::after {
    background: rgba(10, 25, 50, 0.4);
}

.course-cover-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1a3c6e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease;
}

.course-cover-play svg {
    margin-left: 5px;
}

.course-cover:hover .course-cover-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}

.course-desc {
    font-size: 15px;
    color: #555;
    background: #f8faff;
    padding: 14px 18px;
    border-radius: 10px;
    margin: 12px 0 16px;
    border-left: 4px solid #1a3c6e;
    line-height: 1.8;
}

.course-desc strong {
    color: #1a3c6e;
}

.training-tip {
    margin-top: 40px;
    padding: 18px 0 8px;
    border-top: 1px solid #e9edf4;
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.training-tip span {
    opacity: 0.85;
    font-size: 13px;
}

/* 视频播放弹窗 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.video-modal.open {
    display: flex;
}

.video-modal-box {
    background: #0f2d52;
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.video-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #1a3c6e;
    color: #fff;
}

.video-modal-head .title {
    font-size: 16px;
    font-weight: 600;
}

.video-modal-head .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.video-modal video {
    width: 100%;
    max-height: 70vh;
    display: block;
    background: #000;
}

@media (max-width: 768px) {
    .course-card {
        padding: 20px 18px;
    }
    .course-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .course-time {
        margin-left: 0;
    }
    .btn-play {
        margin-left: 0;
    }
    .course-title {
        font-size: 18px;
    }
    .video-modal-box {
        max-width: 100%;
    }
}
