.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
    animation: modalopen 0.3s;
}

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

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* 课程详情页样式 */
.course-header {
    background: linear-gradient(90deg, #722ed1 0%, #2f54eb 100%);
    color: white;
    padding: 60px 0 40px;
}

.breadcrumb {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    align-items: center;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating i {
    color: #ffc107;
}

.course-wrapper {
    display: flex;
    gap: 30px;
    margin-top: -30px;
}

.course-content {
    flex: 2;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
}

.course-sidebar {
    flex: 1;
}

.course-video {
    position: relative;
    margin-bottom: 30px;
}

.course-video img {
    width: 100%;
    border-radius: 8px;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

.sidebar-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.price .current {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price .original {
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.recommend-course {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.recommend-course img {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.recommend-course h5 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}