/* Academy Home（PRD① Story 2.1，Figma ACADEMY 42:8462，设计基准 1920 宽）
   八大模块：Hero / 培训路径 / Featured Program / 筛选 / Featured Courses /
   Popular Lessons / What Learners Say / Bottom CTA。
   站点绿：--bess-green（#5c9434），浅绿底 #f5f9f3。 */

/* ---------------------------------------------------------- 1. Hero */
.academy-hero {
    position: relative;
    background-size: cover;
    background-position: center 30%;
    color: #fff;
}
.academy-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
}
.academy-hero__inner {
    position: relative;
    padding-top: 128px;
    padding-bottom: 128px;
    min-height: 560px;
}
.academy-hero__title {
    margin: 0 0 24px;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.academy-hero__subtitle {
    margin: 0 0 40px;
    max-width: 700px;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}
.academy-hero__search {
    position: relative;
    display: flex;
    max-width: 512px;
    height: 58px;
}
.academy-hero__search input {
    flex: 1;
    height: 100%;
    padding: 0 70px 0 20px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 16px;
    color: #1a1a1a;
    background: #fff;
}
.academy-hero__search input::placeholder { color: #9ca3af; }
.academy-hero__search button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 52px;
    height: 50px;
    border: 0;
    border-radius: 4px;
    background: var(--bess-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.academy-hero__search button:hover { filter: brightness(1.08); }
.academy-hero__search button img { width: 20px; height: 20px; }
.academy-hero__help {
    position: absolute;
    right: 40px;
    bottom: 88px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 384px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #1a1a1a;
}
.academy-hero__help-icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f9f3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.academy-hero__help-icon img { width: 20px; height: 20px; }
.academy-hero__help-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.academy-hero__help-text strong { font-size: 14px; font-weight: 600; }
.academy-hero__help-text small { font-size: 12px; color: #6b7280; }
.academy-hero__help-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bess-green);
    text-decoration: none;
}
.academy-hero__help-link img { width: 14px; height: 14px; }
.academy-hero__help-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------- 2. 培训路径 */
.academy-path { padding: 96px 0 72px; background: #fff; }
.academy-path__inner {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    align-items: center;
}
.academy-path__title {
    margin: 0 0 20px;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
    color: #1a1a1a;
}
.academy-path__desc {
    margin: 0 0 40px;
    max-width: 640px;
    font-size: 18px;
    line-height: 1.65;
    color: #666;
}
.academy-path__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.academy-step {
    position: relative;
    padding: 24px 20px;
    background: #F4F8F1;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}
.academy-step__num {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--bess-green);
    display: flex;
    align-items: center;
    justify-content: center;
}
.academy-step__icon { width: 40px; height: 40px; margin-bottom: 16px; }
.academy-step h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: #1a1a1a; }
.academy-step p { margin: 0 0 16px; font-size: 12px; line-height: 1.6; color: #666; min-height: 38px; }
.academy-step__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--bess-green);
    border-radius: 8px;
    font-size: 14px;
    color: var(--bess-green);
    text-decoration: none;
}
.academy-step__link img { width: 12px; height: 14px; }
.academy-step__link:hover { background: #f5f9f3; }
.academy-path__figure {
    position: relative;
    margin: 0;
    border-radius: 2px;
    box-shadow: 0 24px 48px rgba(26, 28, 23, 0.12);
    overflow: visible;
}
.academy-path__figure > img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 2px;
}
.academy-path__float {
    position: absolute;
    right: 24px;
    bottom: 24px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(26, 28, 23, 0.1);
}
.academy-path__float ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.academy-path__float li {
    position: relative;
    padding-left: 14px;
    font-size: 14px;
    color: #666;
}
.academy-path__float li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bess-green);
}
.academy-path__float li.is-highlight { color: var(--bess-green); font-weight: 500; }

/* ---------------------------------------------------------- 3. Featured Program */
.academy-program { padding: 24px 0 72px; background: #fff; }
.academy-program__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 56px 64px;
    background: #111827;
    border-radius: 16px;
    color: #fff;
    align-items: center;
}
.academy-program__pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(102, 142, 66, 0.2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--bess-green);
}
.academy-program__title { margin: 20px 0 16px; font-size: 30px; font-weight: 600; line-height: 1.3; color: #fff; }
.academy-program__desc { margin: 0 0 32px; font-size: 16px; line-height: 1.65; color: #9ca3af; }
.academy-program__chips {
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 32px;
}
.academy-program__chips li { display: flex; align-items: center; gap: 12px; }
.academy-program__chips img { width: 24px; height: 24px; flex: none; }
.academy-program__chips span { display: flex; flex-direction: column; font-size: 12px; color: #fff; }
.academy-program__chips small { font-size: 10px; letter-spacing: 0.05em; color: #9ca3af; }
.academy-program__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    background: var(--bess-green);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
}
.academy-program__btn img { width: 14px; height: 14px; }
.academy-program__btn:hover { filter: brightness(1.08); }
.academy-program__preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.academy-program__preview-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.academy-program__preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.4) 100%);
}
.academy-program__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}
.academy-program__play img { width: 28px; height: 28px; }
.academy-program__preview-caption {
    position: absolute;
    left: 20px;
    bottom: 16px;
    z-index: 1;
    font-size: 14px;
    color: #fff;
}

/* ---------------------------------------------------------- 4. 筛选区 */
.academy-filters { padding: 8px 0 40px; background: #fff; }
.academy-filters__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
}
.academy-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.academy-tab {
    padding: 6px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
}
.academy-tab:hover { color: var(--bess-green); }
.academy-tab.is-active {
    border-color: var(--bess-green);
    color: var(--bess-green);
    font-weight: 500;
}
.academy-filter-selects { display: flex; gap: 12px; }
.academy-filter-selects select {
    height: 34px;
    padding: 0 28px 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff url("../img/academy/icon-select.35700989d9f5.svg") no-repeat right 8px center / 14px;
    font-size: 12px;
    color: #4b5563;
    appearance: none;
    cursor: pointer;
}

/* ---------------------------------------------------------- 区块标题（5/6/7 共用） */
.academy-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.academy-section-head h2 { margin: 0 0 8px; font-size: 24px; font-weight: 600; color: #111827; }
.academy-section-head p { margin: 0; font-size: 14px; color: #6b7280; }
.academy-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--bess-green);
    text-decoration: none;
    white-space: nowrap;
}
.academy-view-all img { width: 14px; height: 14px; }
.academy-view-all:hover { text-decoration: underline; }

/* ---------------------------------------------------------- 5. Featured Courses */
.academy-courses { padding: 48px 0 72px; background: #fff; }
.academy-course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.course-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(26, 28, 23, 0.06);
    display: flex;
    flex-direction: column;
}
.course-card.is-hidden { display: none; }
.course-card__cover {
    position: relative;
    aspect-ratio: 492 / 192;
    background: #f3f4f6;
}
.course-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
}
.course-card__badge--featured { background: #fb923c; }
.course-card__badge--free { background: var(--bess-green); }
.course-card__badge--new { background: #0891b2; }
.course-card__body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.course-card__title { margin: 0 0 10px; font-size: 18px; font-weight: 600; line-height: 1.4; color: #111827; }
.course-card__cat {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 12px;
    background: rgba(102, 142, 66, 0.1);
    color: var(--bess-green);
}
.course-card__cat--fat-test-service { background: #ecfeff; color: #0e7490; }
.course-card__cat--sourcing-service { background: #fef3c7; color: #b45309; } /* 设计稿未给出，按 FAT 同构推断 */
.course-card__meta {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.course-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}
.course-card__meta img { width: 14px; height: 14px; }
.course-card__desc { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #6b7280; flex: 1; }
.course-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--bess-green);
    text-decoration: none;
}
.course-card__link img { width: 14px; height: 14px; }
.course-card__link:hover { text-decoration: underline; }
.academy-courses__empty { margin: 24px 0 0; font-size: 14px; color: #6b7280; text-align: center; }

/* ---------------------------------------------------------- 6. Popular Lessons */
.academy-lessons { padding: 0 0 72px; background: #fff; }
.academy-lesson-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
.lesson-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.lesson-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 304 / 160;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 12px;
}
.lesson-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lesson-card__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}
.lesson-card__duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 1;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    font-size: 10px;
    color: #fff;
}
.lesson-card__title { font-size: 14px; font-weight: 500; color: #1a1a1a; margin-bottom: 4px; }
.lesson-card__tag {
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9ca3af;
}
.lesson-card:hover .lesson-card__title { color: var(--bess-green); }

/* ---------------------------------------------------------- 7. What Learners Say */
.academy-reviews { padding: 0 0 72px; background: #fff; }
.academy-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.review-card {
    padding: 28px 32px;
    background: rgba(249, 250, 251, 0.5);
    border: 1px solid transparent; /* 需求 #28：悬停出现绿色边框（预占位防抖动） */
    border-radius: 12px;
    transition: border-color 0.2s ease;
}
.review-card:hover { border-color: var(--bess-green); }
.review-card__quote-icon { width: 32px; height: 32px; margin-bottom: 16px; }
.review-card__quote { margin: 0 0 24px; font-size: 14px; line-height: 1.7; color: #374151; }
.review-card__author { display: flex; align-items: center; gap: 16px; }
.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}
.review-card__author strong { display: block; font-size: 14px; color: #111827; }
.review-card__author small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

/* ---------------------------------------------------------- 8. Bottom CTA */
.academy-cta { padding: 0 0 96px; background: #fff; }
.academy-cta__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 56px;
    background: rgba(102, 142, 66, 0.05);
    border: 1px solid #668e42;
    border-radius: 16px;
    flex-wrap: wrap;
}
.academy-cta__text h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; color: #111827; }
.academy-cta__text p { margin: 0; max-width: 620px; font-size: 14px; line-height: 1.6; color: #6b7280; }
.academy-cta__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.academy-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 4px;
    font-size: 16px;
    text-decoration: none;
}
.academy-cta__btn--primary { background: var(--bess-green); color: #fff; }
.academy-cta__btn--primary:hover { filter: brightness(1.08); }
.academy-cta__btn--outline { border: 1px solid var(--bess-green); color: var(--bess-green); background: #fff; }
.academy-cta__btn--outline:hover { background: #f5f9f3; }

/* ---------------------------------------------------------- 登录后才能播放 */
.academy-login-prompt {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.55);
}
.academy-login-prompt[hidden] { display: none; }
.academy-login-prompt__dialog {
    position: relative;
    width: 420px;
    max-width: 100%;
    padding: 32px;
    border-radius: 12px;
    background: #fff;
}
.academy-login-prompt__close {
    position: absolute;
    top: 12px;
    right: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
}
.academy-login-prompt__dialog h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}
.academy-login-prompt__dialog p {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}
.academy-login-prompt__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1100px) {
    .academy-path__inner { grid-template-columns: 1fr; gap: 48px; }
    .academy-program__panel { grid-template-columns: 1fr; padding: 40px; }
    .academy-course-grid { grid-template-columns: repeat(2, 1fr); }
    .academy-lesson-grid { grid-template-columns: repeat(3, 1fr); }
    .academy-review-grid { grid-template-columns: 1fr; }
    .academy-hero__help { position: static; margin-top: 32px; width: auto; max-width: 420px; }
}

@media (max-width: 640px) {
    .academy-hero__inner { padding-top: 88px; padding-bottom: 88px; min-height: 0; }
    .academy-hero__title { font-size: 32px; }
    .academy-hero__subtitle { font-size: 16px; }
    .academy-path { padding: 64px 0 48px; }
    .academy-path__title { font-size: 28px; }
    .academy-path__steps { grid-template-columns: 1fr; }
    .academy-program__panel { padding: 32px 24px; gap: 32px; }
    .academy-program__chips { grid-template-columns: 1fr; }
    .academy-course-grid { grid-template-columns: 1fr; }
    .academy-lesson-grid { grid-template-columns: repeat(2, 1fr); }
    .academy-filters__inner { flex-direction: column; align-items: stretch; }
    .academy-filter-selects { flex-wrap: wrap; }
    .academy-cta__panel { padding: 28px 24px; }
}

/* ==========================================================================
   Course Detail 课程详情页（PRD① Story 2.2，Figma ACADEMY-free 帧）
   布局：面包屑 / Hero（视频+报名卡）/ What You'll Learn / About 三列 /
   Course Content 手风琴 / 讲师卡 / Reviews / Students Also Viewed。
   ========================================================================== */

.course-detail { padding-top: 24px; }

/* ---------------------------------------------------------- 面包屑 */
.cd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #6b7280;
}
.cd-breadcrumb a { color: #6b7280; text-decoration: none; }
.cd-breadcrumb a:hover { color: var(--bess-green); }
.cd-breadcrumb .is-current { color: #111827; }

/* ---------------------------------------------------------- Hero */
.cd-hero {
    display: grid;
    grid-template-columns: 62% 33%;
    gap: 0 5%;
    margin-bottom: 64px;
}
.cd-hero__media {
    position: relative;
    align-self: start;
    aspect-ratio: 937 / 527;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}
.cd-hero__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cd-hero__play[hidden] { display: none; }
.cd-hero__play img { width: 28px; height: 28px; }
.cd-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cd-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.cd-hero__media .lp-player {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
}
.cd-hero__badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 4px 12px;
    border-radius: 4px;
    background: var(--bess-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
}
.cd-hero__title {
    margin: 0 0 16px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}
.cd-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}
.cd-hero__meta li {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #4b5563;
}
.cd-hero__meta img { width: 16px; height: 16px; }
.cd-hero__meta .cd-hero__rating { color: #111827; font-weight: 600; }
.cd-hero__intro {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
}

/* includes 盒：2 列 × 3 行 */
.cd-includes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}
.cd-includes li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #333;
}
.cd-includes .cd-includes__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #f0fdf4;
    flex: none;
}
.cd-includes .cd-includes__icon img { width: 16px; height: 16px; }

/* 报名按钮 + 会员说明 */
.cd-enroll {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: var(--bess-green);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.cd-enroll:hover { filter: brightness(1.08); }
.cd-enroll-form { margin: 0; }
.cd-membership {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 12px;
    color: #6b7280;
}
.cd-membership img { width: 16px; height: 16px; }

/* ---------------------------------------------------------- What You'll Learn */
.cd-learn {
    margin-bottom: 64px;
    padding: 40px;
    border-radius: 4px;
    background: #f9fafb;
}
.cd-learn h2 { margin: 0 0 32px; font-size: 24px; font-weight: 600; color: #333; }
.cd-learn__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cd-learn__grid li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #374151;
}
.cd-learn__grid img { width: 20px; height: 20px; flex: none; margin-top: 2px; }

/* ---------------------------------------------------------- About 三列 */
.cd-about-row {
    display: flex;
    gap: 48px;
    margin-bottom: 64px;
}
.cd-about { width: 35%; }
.cd-about h2 { margin: 0 0 24px; font-size: 24px; font-weight: 600; color: #333; }
.cd-about p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: #4b5563; }

.cd-facts {
    width: 26%;
    align-self: flex-start;
    padding: 32px;
    border-radius: 4px;
    background: #f9fafb;
}
.cd-facts li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    list-style: none;
}
.cd-facts ul { margin: 0; padding: 0; }
.cd-facts__label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
}
.cd-facts__label img { width: 20px; height: 20px; }
.cd-facts__value { font-size: 14px; color: #333; text-align: right; }

.cd-team {
    width: 33%;
    align-self: flex-start;
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    text-align: center;
}
.cd-team__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #f5f9f3;
}
.cd-team__icon img { width: 32px; height: 32px; }
.cd-team h3 { margin: 0 0 16px; font-size: 20px; font-weight: 600; color: #111827; }
.cd-team p { margin: 0 0 24px; font-size: 14px; line-height: 1.65; color: #6b7280; }
.cd-team__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    border: 1px solid var(--bess-green);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--bess-green);
    text-decoration: none;
}
.cd-team__btn:hover { background: #f5f9f3; }
.cd-team__btn img { width: 16px; height: 16px; }

/* ---------------------------------------------------------- Course Content 左列 + 团队培训右列 */
.cd-content-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 33%;
    gap: 0 5%;
    align-items: start;
    margin-bottom: 64px;
}
.cd-content-row .cd-content { max-width: none; margin-bottom: 0; }
.cd-content-row .cd-team { width: 100%; }

/* ---------------------------------------------------------- Course Content 手风琴 */
.cd-content { max-width: 1003px; margin-bottom: 64px; }
.cd-content__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.cd-content__head h2 { margin: 0; font-size: 24px; font-weight: 600; color: #333; }
.cd-collapse-all {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--bess-green);
    cursor: pointer;
}
.cd-collapse-all:hover { text-decoration: underline; }
.cd-collapse-all img { width: 14px; height: 14px; }

.cd-module {
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}
.cd-module > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    cursor: pointer;
    list-style: none;
}
.cd-module > summary::-webkit-details-marker { display: none; }
a.cd-module--play {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.cd-module--play:hover { background: #f5f9f3; }
.cd-module__play { width: 20px; height: 20px; flex: none; }
.cd-module__title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.cd-module__chevron { width: 16px; height: 16px; transition: transform 0.2s; }
.cd-module[open] .cd-module__chevron { transform: rotate(180deg); }
.cd-module__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}
.cd-module__meta .cd-module__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
}
.cd-module__lessons { margin: 0; padding: 0; list-style: none; }
.cd-lesson {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-top: 1px solid #f3f4f6;
}
.cd-lesson:first-child { background: #f5f9f3; }
.cd-lesson__name {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #374151;
}
.cd-lesson__name img { width: 20px; height: 20px; flex: none; }
.cd-lesson__duration { font-size: 12px; color: #9ca3af; }

/* ---------------------------------------------------------- 讲师卡 */
.cd-instructor {
    display: flex;
    gap: 48px;
    max-width: 971px;
    margin-bottom: 64px;
    padding: 40px 32px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
}
.cd-instructor__id { width: 128px; flex: none; text-align: center; }
.cd-instructor__avatar {
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
}
.cd-instructor__label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #9ca3af;
}
.cd-instructor__name { margin: 0 0 4px; font-size: 20px; font-weight: 600; color: #333; }
.cd-instructor__title { margin: 0 0 12px; font-size: 12px; line-height: 1.4; color: #6b7280; }
.cd-instructor__org {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0fdf4;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--bess-green);
}
.cd-instructor__bio {
    flex: 1;
    padding: 0 48px 0 0;
    border-right: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}
.cd-instructor__bio p { margin: 16px 0 0; }
.cd-instructor__stats { width: 246px; flex: none; align-self: center; }
.cd-instructor__stats ul {
    display: flex;
    gap: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cd-instructor__stats strong { display: block; font-size: 20px; font-weight: 600; color: #333; text-align: center; }
.cd-instructor__stats small { display: block; margin-top: 4px; font-size: 12px; color: #6b7280; text-align: center; }

/* ---------------------------------------------------------- Reviews / Students Also Viewed */
.cd-reviews, .cd-related { max-width: 1003px; margin-bottom: 64px; }
.cd-related { max-width: 1177px; }
.cd-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.cd-review-card {
    padding: 25px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
}
.cd-review-card__stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}
.cd-review-card__stars img { width: 16px; height: 16px; }
.cd-review-card__stars span { margin-left: 4px; font-size: 12px; color: #333; }
.cd-review-card__quote { margin: 0 0 24px; font-size: 14px; line-height: 1.7; color: #4b5563; }
.cd-review-card__author { display: flex; align-items: center; gap: 12px; }
.cd-review-card__author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.cd-review-card__author strong { display: block; font-size: 14px; color: #333; }
.cd-review-card__author small { display: block; margin-top: 2px; font-size: 10px; color: #6b7280; }

/* 相关推荐紧凑卡（210px 设计稿规格） */
.cd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 4px;
}
.related-card:hover .related-card__title { color: var(--bess-green); }
.related-card__cover {
    position: relative;
    aspect-ratio: 210 / 173;
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e7eb;
}
.related-card__cover > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
}
.related-card__title {
    margin: 0 0 8px;
    min-height: 40px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}
.related-card__cat {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}
.related-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}
.related-card__meta li {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #9ca3af;
}
.related-card__meta img { width: 12px; height: 12px; }
.related-card__rating { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #111827; }
.related-card__rating img { width: 16px; height: 16px; }

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1100px) {
    .cd-hero { grid-template-columns: 1fr; gap: 32px; }
    .cd-about-row { flex-direction: column; }
    .cd-about, .cd-facts, .cd-team { width: 100%; }
    .cd-content-row { grid-template-columns: 1fr; gap: 32px; }
    .cd-instructor { flex-direction: column; gap: 24px; }
    .cd-instructor__bio { padding: 0; border-right: none; }
    .cd-instructor__stats { width: auto; align-self: flex-start; }
    .cd-review-grid { grid-template-columns: 1fr; }
    .cd-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .cd-hero__title { font-size: 26px; }
    .cd-includes { grid-template-columns: 1fr; }
    .cd-learn { padding: 28px 20px; }
    .cd-learn__grid { grid-template-columns: 1fr; }
    .cd-content, .cd-reviews, .cd-related { max-width: none; }
    .cd-related-grid { grid-template-columns: 1fr; }
    .cd-module__meta { display: none; }
}
