/* 课程详情页面样式 - 与实训风采页面风格一致 */

/* 页面主布局（与courselist统一） */
.course-page-wrapper {
    display: flex;
    gap: 25px;
    margin-top: 25px;
    padding: 0;
}
.course-main-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.course-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* 侧边栏通用样式（与courselist统一） */
.course-sidebar .sidebar-box {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}
.course-sidebar .sidebar-title {
    background: linear-gradient(135deg, #00b0a0, #00988a);
    color: #fff;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
}
.course-sidebar .sidebar-title i {
    margin-right: 8px;
}
.course-sidebar .sidebar-content {
    padding: 20px;
}

/* 热门课程（与courselist统一） */
.hot-course-list {
    padding: 0;
}
.hot-course-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s;
    align-items: flex-start;
    padding: 0 0 15px 0;
}
.hot-course-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.hot-course-item:hover {
    transform: translateX(5px);
    background: transparent;
}
.hot-course-rank {
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: #ccc;
    border-radius: 4px;
    margin-right: 0;
    flex-shrink: 0;
    margin-top: 2px;
    display: none;
}
.hot-course-item:nth-child(1) .hot-course-rank {
    background: linear-gradient(135deg, #fcc442, #f5a623);
    display: block;
}
.hot-course-item:nth-child(2) .hot-course-rank {
    background: linear-gradient(135deg, #00b0a0, #00c4b3);
    display: block;
}
.hot-course-item:nth-child(3) .hot-course-rank {
    background: linear-gradient(135deg, #7ed321, #5cb85c);
    display: block;
}
.hot-course-info {
    flex: 1;
    min-width: 0;
}
.hot-course-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}
.hot-course-item:hover .hot-course-name {
    color: #00b0a0;
}
.hot-course-price {
    font-size: 13px;
    color: #00b0a0;
    font-weight: bold;
}
.hot-course-price small {
    font-size: 11px;
    font-weight: normal;
}

/* 快速咨询表单（与courselist统一） */
.quick-consult-form .form-item {
    margin-bottom: 15px;
}
.quick-consult-form .form-item:last-of-type {
    margin-bottom: 15px;
}
.quick-consult-form input,
.quick-consult-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    color: #333;
}
.quick-consult-form input:focus,
.quick-consult-form textarea:focus {
    border-color: #00b0a0;
}
.quick-consult-form input[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
}
.quick-consult-form textarea {
    height: 80px;
    resize: none;
}
.quick-consult-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00b0a0, #00988a);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.3s;
    font-weight: normal;
}
.quick-consult-btn:hover {
    transform: scale(1.02);
    box-shadow: none;
}
.quick-consult-btn i {
    margin-right: 6px;
}
.sidebar-hotline {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.sidebar-hotline i {
    font-size: 24px;
    color: #00b0a0;
    margin-bottom: 5px;
}
.sidebar-hotline .label {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}
.sidebar-hotline .phone-number {
    font-size: 20px;
    color: #00b0a0;
    font-weight: bold;
}

/* 课程头部信息 - 与实训风采case-header风格一致 */
.course-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
    box-shadow: none;
    border-radius: 8px 8px 0 0;
}
.course-header-inner {
    display: flex;
    gap: 25px;
}
.course-header-left {
    width: 35%;
    position: relative;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    height: 220px;
}
.course-header-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #fcc442, #f5a623);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    display: inline-block;
}
.course-header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}
.course-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.course-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.course-meta-item i {
    color: #00b0a0;
    font-size: 14px;
}
.course-price-box {
    background: #f8faf9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #00b0a0;
}
.course-price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.course-price {
    font-size: 36px;
    color: #00b0a0;
    font-weight: bold;
}
.course-price small {
    font-size: 18px;
    font-weight: normal;
}
.course-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}
.btn-enroll {
    flex: 1;
    background: linear-gradient(135deg, #00b0a0, #00988a);
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,176,160,0.3);
}
.btn-enroll:hover {
    background: linear-gradient(135deg, #00988a, #008070);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,176,160,0.4);
}
.btn-consult {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f0f5f4;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-consult i {
    font-size: 20px;
    color: #00b0a0;
}
.btn-consult:hover {
    background: #00b0a0;
}
.btn-consult:hover i {
    color: #fff;
}

/* 课程内容区块 - 与实训风采case-body风格一致 */
.course-section {
    background: transparent;
    border-radius: 0;
    padding: 30px;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: 1px solid #f0f0f0;
}
.course-section:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}
.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.section-title:before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #00b0a0;
}
.section-title i {
    color: #00b0a0;
    font-size: 18px;
}

/* 课程特色 */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,176,160,.12);
    border-color: rgba(0,176,160,.2);
    background: #fff;
}
.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00b0a0, #00988a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-icon i {
    font-size: 22px;
    color: #fff;
}
.feature-text h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
    font-weight: bold;
}
.feature-text p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

/* 课程大纲 */
.outline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.outline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    border-radius: 8px;
}
.outline-item:last-child {
    border-bottom: none;
}
.outline-item:hover {
    background: #f8faf9;
}
.outline-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00b0a0, #00988a);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 16px;
}
.outline-content h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}
.outline-content p {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    margin: 0;
}

/* 师资介绍 */
.teacher-card {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: flex-start;
}
.teacher-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,176,160,.2);
}
.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.teacher-info h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 6px;
    font-weight: bold;
}
.teacher-title {
    font-size: 14px;
    color: #00b0a0;
    margin-bottom: 15px;
    font-weight: 500;
}
.teacher-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}
.teacher-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.teacher-tag {
    background: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: #00b0a0;
    border: 1px solid rgba(0,176,160,.3);
    font-weight: 500;
}

/* 课程内容详情 - 与实训风采case-body一致 */
.course-content-detail {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
    padding: 0;
}
.course-content-detail img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 8px;
}
.course-content-detail p {
    margin-bottom: 15px;
    text-indent: 0;
}
.course-content-detail h1,
.course-content-detail h2,
.course-content-detail h3,
.course-content-detail h4 {
    color: #333;
    margin: 25px 0 15px;
    font-weight: bold;
}
.course-content-detail ul,
.course-content-detail ol {
    margin-bottom: 15px;
    padding-left: 2em;
}
.course-content-detail li {
    margin-bottom: 8px;
}

/* 相关课程推荐 - 与实训风采相关推荐风格一致 */
.related-courses {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-course-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}
.related-course-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,176,160,.15);
}
.related-course-item > a > img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.related-course-info {
    padding: 15px;
}
.related-course-info h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.related-course-info h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}
.related-course-info h4 a:hover {
    color: #00b0a0;
}
.related-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.related-course-price {
    font-size: 18px;
    color: #00b0a0;
    font-weight: bold;
}
.related-course-btn {
    background: #00b0a0;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 500;
}
.related-course-btn:hover {
    background: #00988a;
}

/* 上下篇导航 - 与实训风采case-navigation一致 */
.course-navigation {
    padding: 25px 30px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.course-nav-item {
    flex: 1;
    background: #f8f9fa;
    padding: 18px;
    border-radius: 8px;
    transition: all 0.3s;
}
.course-nav-item:hover {
    background: #00b0a0;
    color: #fff;
}
.course-nav-item:hover .course-nav-label,
.course-nav-item:hover .course-nav-title {
    color: #fff;
}
.course-nav-item.prev {
    text-align: left;
}
.course-nav-item.next {
    text-align: right;
}
.course-nav-item a {
    text-decoration: none;
    display: block;
    color: inherit;
}
.course-nav-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    display: block;
}
.course-nav-title {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 返回列表按钮 - 与实训风采case-back-btn一致 */
.course-back-btn {
    text-align: center;
    padding: 25px 30px;
    border-top: 1px solid #f0f0f0;
}
.course-back-btn a {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #00b0a0, #00988a);
    color: #fff;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,176,160,0.3);
    text-decoration: none;
}
.course-back-btn a:hover {
    background: linear-gradient(135deg, #00988a, #008070);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,176,160,0.4);
}
.course-back-btn a i {
    margin-right: 6px;
}

/* 固定底部报名栏（移动端） */
.fixed-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,.08);
    z-index: 1000;
}
.fixed-bottom-bar .inner {
    display: flex;
    align-items: center;
    gap: 15px;
}
.fixed-bottom-bar .price-info {
    flex: 1;
}
.fixed-bottom-bar .price-info .label {
    font-size: 12px;
    color: #999;
}
.fixed-bottom-bar .price-info .price {
    font-size: 22px;
    color: #00b0a0;
    font-weight: bold;
}
.fixed-bottom-bar .btn-enroll-fixed {
    background: linear-gradient(135deg, #00b0a0, #00988a);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
}
.fixed-bottom-bar .btn-consult-fixed {
    width: 45px;
    height: 45px;
    background: #f0f5f4;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fixed-bottom-bar .btn-consult-fixed i {
    font-size: 18px;
    color: #00b0a0;
}

/* 响应式设计 - 与实训风采一致 */
@media (max-width: 992px) {
    .course-page-wrapper {
        flex-direction: column;
    }
    .course-sidebar {
        width: 100%;
    }
    .course-header-inner {
        flex-direction: column;
    }
    .course-header-left {
        width: 100%;
        height: 250px;
    }
    .feature-list {
        grid-template-columns: 1fr;
    }
    .related-courses {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .fixed-bottom-bar {
        display: block;
    }
    .course-actions {
        margin-bottom: 60px;
    }
    .related-courses {
        grid-template-columns: 1fr;
    }
    .teacher-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .teacher-tags {
        justify-content: center;
    }
    .course-section {
        padding: 20px;
    }
    .course-header {
        padding: 20px;
    }
    .course-title {
        font-size: 22px;
    }
    .course-meta {
        flex-direction: column;
        gap: 10px;
    }
    .course-navigation {
        flex-direction: column;
        padding: 20px;
    }
    .course-nav-item.next {
        text-align: left;
    }
}
@media (max-width: 576px) {
    .course-title {
        font-size: 20px;
    }
    .course-price {
        font-size: 28px;
    }
    .outline-item {
        padding: 15px;
        gap: 15px;
    }
}
