/* Course Content 学习页（PRD① Story 3.1，Figma ACADEMY-课程详情页 主帧/x-6329）
   布局：左列（面包屑/标题/播放器/完成条/Notes/上下节）+ 右侧栏（进度卡/目录/
   考核入口/Course Overview/Downloads/团队培训），下方 Reviews / Also Viewed。 */

.learn-page { padding-top: 24px; }
.learn-grid {
    display: grid;
    grid-template-columns: 1fr 478px;
    gap: 0 32px;
    margin-bottom: 64px;
}
.learn-main { min-width: 0; }
.learn-side { min-width: 0; }

/* ---------------------------------------------------------- 标题行 */
.learn-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
.learn-head__title { margin: 0 0 8px; font-size: 30px; font-weight: 700; line-height: 1.3; color: #111827; }
.learn-head__desc { margin: 0; max-width: 560px; font-size: 14px; line-height: 1.6; color: #6b7280; }
.learn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
    height: 42px;
    padding: 0 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    text-decoration: none;
    background: #fff;
}
.learn-back:hover { border-color: var(--bess-green); color: var(--bess-green); }
.learn-back img { width: 12px; height: 16px; }

/* ---------------------------------------------------------- 播放器 */
.lp-player {
    position: relative;
    aspect-ratio: 953 / 536;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: #111827;
}
.lp-player video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    background: #111827;
}
.lp-player__poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-player:fullscreen,
.lp-player:-webkit-full-screen,
.lp-player.is-fullscreen {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    background: #111827;
}
.lp-player:fullscreen video,
.lp-player:-webkit-full-screen video,
.lp-player.is-fullscreen video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.lp-player__bigplay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}
.lp-player__bigplay:hover { background: #fff; }
.lp-player__bigplay[hidden] { display: none; }
.lp-player__bigplay img { width: 40px; height: 40px; }
.lp-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}
.lp-progress {
    position: relative;
    height: 12px;
    margin-bottom: 8px;
    cursor: pointer;
}
.lp-progress__track,
.lp-progress__fill {
    position: absolute;
    top: 4px;
    left: 0;
    height: 4px;
    border-radius: 9999px;
}
.lp-progress__track { width: 100%; background: rgba(255, 255, 255, 0.3); }
.lp-progress__fill { width: 0; background: var(--bess-green); }
.lp-progress__knob {
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: #fff;
}
.lp-controls__row { display: flex; align-items: center; gap: 8px; }
.lp-controls__row button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}
.lp-controls__row button img { width: 24px; height: 24px; }
.lp-speed { width: auto !important; min-width: 24px; color: #fff; font-size: 14px; }
.lp-time { margin-left: 8px; font-size: 14px; color: #fff; }
.lp-controls__spacer { flex: 1; }

/* ---------------------------------------------------------- 完成状态条 */
.lp-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}
.lp-status--done { border-color: transparent; background: #f5f9f3; }
.lp-status__left { display: flex; align-items: center; gap: 16px; }
.lp-status__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef2f6;
    flex: none;
}
.lp-status__icon--done { background: var(--bess-green); }
.lp-status__icon img { width: 20px; height: 20px; }
.lp-status__left strong { display: block; font-size: 16px; color: #111827; }
.lp-status__left p { margin: 4px 0 0; font-size: 14px; color: #6b7280; }
.lp-status__actions { display: flex; gap: 12px; flex: none; }

/* 按钮族（学习页/弹窗共用） */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}
.lp-btn--primary { background: var(--bess-green); color: #fff; }
.lp-btn--primary:hover { filter: brightness(1.08); }
.lp-btn--white { background: #fff; border-color: #e5e7eb; color: #374151; }
.lp-btn--white:hover { border-color: var(--bess-green); color: var(--bess-green); }
.lp-btn--ghost { background: #f5f9f3; border-color: var(--bess-green); color: var(--bess-green); }
.lp-btn--ghost:hover { background: #eaf3e4; }

/* ---------------------------------------------------------- Lesson Notes */
.lp-notes { margin-bottom: 24px; }
.lp-notes__tabs { border-bottom: 1px solid #e5e7eb; }
.lp-notes__tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-bottom: 2px solid var(--bess-green);
    font-size: 16px;
    font-weight: 500;
    color: var(--bess-green);
}
.lp-notes__tab img { width: 16px; height: 16px; }
.lp-notes__card {
    margin-top: 24px;
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}
.lp-notes__intro { margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: #374151; }
.lp-notes__list { margin: 0; padding: 0; list-style: none; }
.lp-notes__list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
}
.lp-notes__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--bess-green);
    font-weight: 700;
}

/* ---------------------------------------------------------- 上下节导航 */
.lp-nav { display: flex; justify-content: space-between; gap: 16px; }
.lp-nav__prev img, .lp-nav__next img { width: 16px; height: 16px; }

/* ---------------------------------------------------------- 侧栏：进度卡 */
.ls-progress { margin-bottom: 32px; }
.ls-progress__title { margin: 0 0 12px; font-size: 18px; font-weight: 600; color: #111827; }
.ls-progress__bar {
    height: 6px;
    margin-bottom: 8px;
    border-radius: 9999px;
    background: #f3f4f6;
    overflow: hidden;
}
.ls-progress__fill { height: 100%; border-radius: 9999px; background: var(--bess-green); }
.ls-progress__row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
}
.ls-progress__pct { color: var(--bess-green); font-weight: 600; }
.ls-progress__count { margin: 8px 0 0; font-size: 12px; color: #6b7280; }

/* ---------------------------------------------------------- 侧栏：课程目录 */
.ls-curriculum { margin-bottom: 24px; }
.ls-module { padding: 6px 0; }
.ls-module__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}
.ls-module__name { flex: 1; font-size: 14px; font-weight: 600; color: #111827; }
.ls-module__count { font-size: 14px; color: #9ca3af; }
.ls-module__check { width: 20px; height: 20px; }
.ls-module__lessons { margin: 0 0 8px; padding: 0; list-style: none; }
.ls-module--play { padding: 2px 0; }
.ls-lesson--module .ls-lesson__name { font-size: 14px; font-weight: 600; color: #111827; }
.ls-lesson--module.is-current .ls-lesson__name { color: var(--bess-green); }
.ls-lesson {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 8px;
    border-radius: 8px;
    text-decoration: none;
}
.ls-lesson:hover { background: #f9fafb; }
.ls-lesson.is-current { background: #f5f9f3; }
.ls-lesson img { width: 16px; height: 16px; flex: none; }
.ls-lesson__dot {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex: none;
    box-sizing: border-box;
}
.ls-lesson__dot--current { border-color: var(--bess-green); }
.ls-lesson__name { flex: 1; font-size: 13px; color: #4b5563; }
.ls-lesson.is-current .ls-lesson__name { color: var(--bess-green); font-weight: 500; }
.ls-lesson__time { font-size: 11px; color: #9ca3af; }
.ls-lesson.is-current .ls-lesson__time { color: var(--bess-green); }

/* Final Assessment 入口 */
.ls-module--exam { border-top: 1px solid #f3f4f6; margin-top: 8px; padding-top: 16px; }
.ls-exam {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}
.ls-exam small { font-weight: 400; font-size: 12px; }
.ls-exam--locked { background: #f3f4f6; color: #9ca3af; }
.ls-exam--ready { background: var(--bess-green); color: #fff; }
.ls-exam--ready:hover { filter: brightness(1.08); }
.ls-exam--ready.is-disabled { opacity: 0.55; cursor: not-allowed; }
.ls-exam--ready.is-disabled:hover { filter: none; }

/* Course Overview */
.ls-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    margin-bottom: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    background: #fff;
}
.ls-overview:hover { border-color: var(--bess-green); color: var(--bess-green); }
.ls-overview img { width: 16px; height: 16px; }

/* Downloads */
.ls-downloads { margin-bottom: 32px; }
.ls-downloads h3 { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: #111827; }
.ls-downloads ul { margin: 0; padding: 0; list-style: none; }
.ls-downloads li + li { margin-top: 16px; }
.ls-file {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.ls-file__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #fef2f2;
    flex: none;
}
.ls-file__icon img { width: 16px; height: 16px; }
.ls-file__meta { flex: 1; min-width: 0; }
.ls-file__name {
    display: block;
    font-size: 11px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ls-file__size { display: block; margin-top: 2px; font-size: 10px; color: #9ca3af; }
.ls-file__dl { width: 20px; height: 20px; flex: none; }
.ls-file:hover .ls-file__name { color: var(--bess-green); }

/* 团队培训卡：复用 cd-team，仅补对齐 */
.ls-team { width: 100%; box-sizing: border-box; }

/* ---------------------------------------------------------- Quick Check 弹窗 */
.qc-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.55);
}
.qc-overlay[hidden] { display: none; }
.qc-modal {
    width: 640px;
    max-width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    border-radius: 12px;
    background: #fff;
}
.qc-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.qc-modal__head h3 { margin: 0; font-size: 20px; font-weight: 600; color: #111827; }
.qc-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 20px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
}
.qc-close:hover { background: #e5e7eb; }
.qc-sub { margin: 0 0 24px; font-size: 14px; line-height: 1.6; color: #6b7280; }
.qc-question { margin-bottom: 24px; }
.qc-question__text { margin: 0 0 12px; font-size: 16px; font-weight: 500; color: #111827; }
.qc-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}
.qc-option:hover { border-color: var(--bess-green); }
.qc-option input { accent-color: var(--bess-green); }
.qc-option.is-correct { border-color: var(--bess-green); background: #f5f9f3; }
.qc-option.is-wrong { border-color: #d1d5db; background: #f9fafb; color: #9ca3af; }
.qc-question__verdict { margin: 4px 0 0; font-size: 12px; color: #6b7280; }
.qc-question__verdict.is-correct { color: var(--bess-green); }
.qc-modal__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}
.qc-result { font-size: 14px; font-weight: 600; color: var(--bess-green); }

/* ---------------------------------------------------------- 课节完成分享弹窗 */
.lc-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.55);
}
.lc-overlay[hidden] { display: none; }
.lc-modal {
    position: relative;
    width: 720px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 32px 24px;
    border-radius: 12px;
    background: #fff;
}
.lc-modal .qc-close {
    position: absolute;
    top: 16px;
    right: 16px;
}
.lc-hero { text-align: center; margin-bottom: 20px; }
.lc-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--bess-green);
}
.lc-hero__icon img { width: 22px; height: 22px; }
.lc-hero h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}
.lc-hero p { margin: 0; font-size: 14px; color: var(--bess-placeholder); }
.lc-card {
    display: block;
    width: 100%;
    aspect-ratio: 1774 / 887;
    margin: 0 0 20px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bess-footer-bg);
}
.lc-share-label {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    text-align: center;
}
.lc-share-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.lc-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.lc-share--linkedin { background: #0A66C2; color: #fff; }
.lc-share--linkedin:hover { filter: brightness(1.08); }
.lc-share--ghost {
    background: #fff;
    border: 1px solid #111827;
    color: #111827;
}
.lc-share--ghost:hover { border-color: var(--bess-green); color: var(--bess-green); }
.lc-share--download {
    background: #fff;
    border: 1px solid var(--bess-green);
    color: var(--bess-green);
}
.lc-share--download:hover { background: #f5f9f3; }
.lc-modal__foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}
.lc-share-page { max-width: 880px; margin: 32px auto 64px; }
.lc-share-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1100px) {
    .learn-grid { grid-template-columns: 1fr; }
    .learn-side { margin-top: 48px; }
}
@media (max-width: 640px) {
    .learn-head { flex-direction: column; }
    .learn-head__title { font-size: 22px; }
    .lp-status { flex-direction: column; align-items: stretch; }
    .lp-status__actions { justify-content: stretch; }
    .lp-status__actions .lp-btn { flex: 1; padding: 0 8px; }
    .lp-notes__card { padding: 20px; }
    .lp-nav { flex-direction: column; }
    .lp-nav .lp-btn { width: 100%; }
    .qc-modal { padding: 20px; }
    .lc-modal { padding: 20px 16px 16px; }
    .lc-share { flex: 1 1 calc(50% - 10px); }
    .lc-modal__foot { justify-content: stretch; }
    .lc-modal__foot .lp-btn { width: 100%; }
}
