/* 直播课程详情页面样式 */

/* 直播状态样式 */
.live-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.live-status.live-now {
    background: #ff4757;
    color: white;
    animation: pulse 2s infinite;
}

.live-status.live-upcoming {
    background: #ffa502;
    color: white;
}

.live-status.live-ended {
    background: #747d8c;
    color: white;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.live-time {
    color: #ff4757;
    font-weight: bold;
}

/* 直播间信息样式 */
.live-room-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.live-room-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.live-room-info p {
    margin: 5px 0;
    color: #666;
}

/* 直播安排样式 */
.live-schedule {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.live-schedule h3 {
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    font-weight: bold;
    color: #007bff;
    min-width: 120px;
}

.schedule-title {
    flex: 1;
    margin: 0 15px;
}

.schedule-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.schedule-status.upcoming {
    background: #e3f2fd;
    color: #1976d2;
}

.schedule-status.live {
    background: #ffebee;
    color: #d32f2f;
}

.schedule-status.ended {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* 直播徽章样式 */
.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.live-badge i {
    margin-right: 5px;
}

/* 直播状态信息面板 */
.live-status-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #007bff;
}

.live-status-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.live-status-info p {
    margin: 5px 0;
    font-size: 13px;
}

/* 课程封面样式 */
.course-image {
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.course-image:hover img {
    transform: scale(1.05);
}

/* 直播课程特有的图标样式 */
.lesson-type i.fa-video {
    color: #ff4757 !important;
}

.lesson-type i.fa-file-alt {
    color: #2ed573 !important;
}

.lesson-type i.fa-chalkboard-teacher {
    color: #ffa502 !important;
}

.lesson-type i.fa-clipboard-check {
    color: #5352ed !important;
}

/* 考试安排样式 */
.exam-schedule {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.exam-schedule h3 {
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 2px solid #28a745;
    padding-bottom: 10px;
}

.exam-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.exam-item:last-child {
    border-bottom: none;
}

.exam-icon {
    width: 50px;
    height: 50px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.exam-icon i {
    color: white;
    font-size: 20px;
}

.exam-info {
    flex: 1;
    margin-right: 15px;
}

.exam-info h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.exam-desc {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.exam-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.exam-meta span {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.exam-meta i {
    margin-right: 5px;
    color: #28a745;
}

.exam-action {
    flex-shrink: 0;
}

.btn-exam {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-exam:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.btn-exam i {
    margin-right: 5px;
}

.exam-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.exam-status.completed {
    background: #d4edda;
    color: #155724;
}

.exam-status.disabled {
    background: #f8d7da;
    color: #721c24;
}

.exam-status i {
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .schedule-time {
        min-width: auto;
    }
    
    .schedule-title {
        margin: 0;
    }
    
    .live-room-info {
        padding: 10px;
    }
    
    .live-schedule {
        padding: 15px;
    }
}

/* 直播状态动画增强 */
.live-status.live-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 直播时间表悬停效果 */
.schedule-item:hover {
    background: #f8f9fa;
    border-radius: 4px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.schedule-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background: #e3f2fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.loading {
    text-align: center;
    color: #007bff;
    font-weight: bold;
}

/* 直播状态信息面板悬停效果 */
.live-status-info:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}
