﻿/* 课程介绍页 */
.course-page {
    padding-top: 72px;
}

.course-hero {
    position: relative;
    width: 100%;
    height: 22vw;
    min-height: 220px;
    max-height: 420px;
    overflow: hidden;
}

.course-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.course-hero__breadcrumb {
    position: absolute;
    top: 24px;
    left: 8%;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.course-hero__title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 4px;
}

.course-hero__subtitle {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.85;
}

.course-section {
    padding: 80px 0;
    scroll-margin-top: 120px;
}

.course-section--gray {
    background: #f7f7f7;
}

.course-wrap {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.course-section__title {
    font-size: 26px;
    font-weight: 700;
    color: #DA4200;
    margin: 0 0 32px;
}

.course-section__desc {
    text-align: center;
    font-size: 14px;
    color: #555;
    line-height: 28px;
    max-width: 900px;
    margin: 0 auto 48px;
}

.course-value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.course-value-card {
    text-align: center;
}

.course-value-card__img {
    width: 100%;
    height: 160px;
    background: #e8e8e8;
    overflow: hidden;
    margin-bottom: 16px;
}

.course-value-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-value-card p {
    font-size: 14px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.course-table-wrap {
    overflow-x: auto;
}

.course-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

.course-table thead th {
    background: #DA4200;
    color: #fff;
    padding: 16px 12px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #c93a00;
}

.course-table thead th:first-child {
    text-align: left;
    padding-left: 20px;
}

.course-table tbody td {
    padding: 16px 12px;
    border: 1px solid #e5e5e5;
    color: #555;
    line-height: 22px;
    vertical-align: top;
    text-align: center;
}

.course-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.course-table__label {
    font-weight: 600;
    color: #333 !important;
    text-align: left !important;
    padding-left: 20px !important;
    background: #f3f3f3;
    white-space: nowrap;
}

.course-table__row-content td {
    text-align: left;
    line-height: 26px;
}

.course-table__row-content td:not(.course-table__label) {
    font-size: 13px;
}

.course-table ul {
    margin: 0;
    padding-left: 18px;
    text-align: left;
}

.course-table li {
    margin-bottom: 6px;
}

.course-table li:last-child {
    margin-bottom: 0;
}

.course-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-section#reputation {
    background: #f7f7f7;
}

.course-testimonial {
    background: #fff;
    padding: 28px 24px 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 2px;
}

.course-testimonial__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.course-testimonial__avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f0f0f0;
    overflow: hidden;
}

.course-testimonial__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-testimonial__label {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
}

.course-testimonial__course {
    color: #DA4200;
}

.course-testimonial__divider {
    height: 2px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #DA4200 10%, #e5e5e5 10%);
}

.course-testimonial__text {
    font-size: 13px;
    color: #555;
    line-height: 26px;
    margin: 0;
    text-align: justify;
}

@media (max-width: 1240px) {
    .course-wrap {
        width: 94%;
    }

    .course-value-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-testimonials {
        grid-template-columns: 1fr;
    }
}
