/* 课程详情页样式 */

/* 面包屑导航样式已移至 common.css */

/* 课程详情主体区域 */
.course-detail-section {
    padding: 10px 0;
    background: #f5f5f5;
    margin-top: 20px;
}

.course-detail-wrapper {
    display: flex;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 左侧课程封面 */
.course-cover {
    flex: 0 0 450px;
}

.cover-image {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: bold;
    border-bottom-left-radius: 8px;
}

.cover-content {
    text-align: center;
    color: #fff;
    z-index: 1;
}

.cover-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 8px;
}

.cover-subtitle {
    font-size: 24px;
    font-weight: 500;
}

/* 右侧课程信息 */
.course-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.course-price-section {
    margin-bottom: 12px;
}

.price-symbol {
    font-size: 22px;
    color: #ff4d4f;
    font-weight: bold;
}

.price-value {
    font-size: 32px;
    color: #ff4d4f;
    font-weight: bold;
}

.course-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.meta-label {
    color: #666;
    margin-right: 8px;
}

.meta-value {
    color: #333;
}

.meta-divider {
    margin: 0 10px;
    color: #d9d9d9;
}

.course-tag-highlight {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-text {
    padding: 6px 16px;
    border: 2px solid #ff4d4f;
    border-radius: 4px;
    color: #ff4d4f;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

.course-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 0;
}

.btn-consult {
    padding: 8px 24px;
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #1890ff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-consult:hover {
    background: #1890ff;
    color: #fff;
}

.btn-buy {
    padding: 8px 24px;
    background: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy:hover {
    background: #ff7875;
}

.course-views {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 14px;
    margin-left: auto;
}

.views-icon {
    font-size: 16px;
}

/* 课程内容标签页 */
.course-content-section {
    padding: 10px 0;
    background: #f5f5f5;
}

.course-content-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-tabs {
    display: flex;
    gap: 0;
    justify-content: center;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 40px;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #1890ff;
}

.tab-btn.active {
    color: #1890ff;
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1890ff;
}

.content-panels {
    min-height: 400px;
}

.content-panel {
    display: none;
}

.content-panel.active {
    display: block;
}

/* 简介内容 */
.intro-content {
    padding: 20px;
    line-height: 1.8;
}

.intro-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.intro-content h4 {
    font-size: 16px;
    color: #333;
    margin: 20px 0 10px 0;
}

.intro-content p {
    color: #666;
    margin-bottom: 15px;
}

.intro-content ul {
    list-style: none;
    padding: 0;
}

.intro-content li {
    color: #666;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.intro-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1890ff;
    font-weight: bold;
}

/* 录播列表 */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    transition: all 0.3s;
}

.video-item:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-icon {
    font-size: 32px;
    margin-right: 15px;
}

.video-info {
    flex: 1;
}

.video-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.video-duration {
    font-size: 14px;
    color: #999;
}

.btn-play {
    padding: 8px 24px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-play:hover {
    background: #40a9ff;
}

/* 讲义文件 */
.material-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.material-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    transition: all 0.3s;
}

.material-item:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.material-icon {
    font-size: 32px;
    margin-right: 15px;
}

.material-info {
    flex: 1;
}

.material-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.material-size {
    font-size: 14px;
    color: #999;
}

.btn-download {
    padding: 8px 24px;
    background: #52c41a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-download:hover {
    background: #73d13d;
}

/* 底部横幅 */
.bottom-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.banner-logo {
    width: 120px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.banner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.banner-text {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .course-detail-wrapper {
        flex-direction: column;
    }

    .course-cover {
        flex: 0 0 auto;
        width: 100%;
    }

    .cover-image {
        height: 250px;
    }

    .cover-title {
        font-size: 36px;
    }

    .cover-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .course-detail-section {
        padding: 20px 0;
    }

    .course-detail-wrapper {
        padding: 20px;
    }

    .course-title {
        font-size: 20px;
    }

    .price-value {
        font-size: 28px;
    }

    .course-actions {
        flex-direction: column;
    }

    .content-tabs {
        overflow-x: auto;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .banner-content {
        flex-direction: column;
        gap: 20px;
    }
}
