/*
 * CloudVod 前台基础样式
 * @package CloudVod
 */

/* 课程页面布局 */
.cv-course-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cv-course-header {
    margin-bottom: 30px;
}

.cv-course-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cv-course-meta {
    color: #666;
    font-size: 14px;
}

/* 课时列表 */
.cv-lesson-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-lesson-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cv-lesson-item:hover {
    background-color: #f5f5f5;
}

.cv-lesson-item.active {
    background-color: #e8f4fd;
    border-left: 3px solid #0073aa;
}

.cv-lesson-item.completed {
    color: #46b450;
}

.cv-lesson-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.cv-lesson-item .lesson-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 12px;
    flex-shrink: 0;
}

.cv-lesson-item.completed .lesson-number {
    background: #46b450;
    color: #fff;
}

.cv-lesson-item .lesson-title {
    flex: 1;
    font-size: 14px;
}

.cv-lesson-item .lesson-duration {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.cv-lesson-item .lesson-preview-badge {
    font-size: 11px;
    background: #ffe0b2;
    color: #e65100;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* 章节标题 */
.cv-section-title {
    font-size: 16px;
    font-weight: 600;
    padding: 12px 16px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    margin-top: 10px;
}

.cv-section-title:first-child {
    margin-top: 0;
}

/* 购买区域 */
.cv-purchase-area {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.cv-purchase-price {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
}

.cv-purchase-price .currency {
    font-size: 18px;
}

.cv-purchase-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.cv-purchase-btn:hover {
    background: #005177;
    color: #fff;
}

/* 协议弹窗 */
.cv-agreement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-agreement-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
}

.cv-agreement-content h3 {
    margin-top: 0;
}

.cv-agreement-content .cv-agreement-text {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 12px;
    margin: 10px 0;
}

/* 学习进度条 */
.cv-progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.cv-progress-bar-fill {
    height: 100%;
    background: #0073aa;
    border-radius: 3px;
    transition: width 0.3s;
}

/* 响应式 */
@media (max-width: 768px) {
    .cv-course-single {
        padding: 15px;
    }

    .cv-course-title {
        font-size: 22px;
    }

    .cv-purchase-price {
        font-size: 26px;
    }
}
