/* Academy */
.ac-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ac-grid .course-card { min-height: 360px; }
.ac-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.ac-method { border-top: 1px solid var(--line); background: var(--paper-2); }
.ac-method .num { font-family: var(--mono); font-size: 10px; color: var(--cinnabar); letter-spacing: .2em; margin-bottom: 14px; }
.ac-method h3 { margin-bottom: 12px; }

/* course detail */
.ac-back { display: inline-flex; gap: 8px; align-items: center; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.ac-back:hover { color: var(--cinnabar); }
.ac-course-head { display: grid; grid-template-columns: 1fr 300px; gap: clamp(30px, 6vw, 80px); padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.ac-course-head .glyph { font-family: var(--serif-zh); font-size: 72px; line-height: 1; color: var(--cinnabar); }
.ac-course-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.05; letter-spacing: -.015em; margin-top: 16px; }
.ac-course-head .sub { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); margin-top: 14px; }
.ac-course-head .intro { font-family: var(--serif); font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin-top: 24px; }
.ac-meta-card { border: 1px solid var(--line); padding: 24px; background: rgba(255,255,255,.2); align-self: start; }
.ac-meta-row { display: flex; justify-content: space-between; font-size: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.ac-meta-row:last-child { border-bottom: 0; }
.ac-meta-row span { color: var(--muted); }
.ac-meta-row b { font-weight: 500; }
.ac-progress { height: 4px; background: rgba(23,23,15,.1); margin-top: 14px; }
.ac-progress i { display: block; height: 100%; background: var(--cinnabar); width: 0; transition: width .6s; }

.ac-body { display: grid; grid-template-columns: 1fr 300px; gap: clamp(30px, 6vw, 80px); padding-top: 46px; }
.ac-block { margin-bottom: 46px; }
.ac-block h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; margin-bottom: 18px; }
.ac-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.ac-outcomes li { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); padding-left: 18px; position: relative; }
.ac-outcomes li::before { content: "—"; position: absolute; left: 0; color: var(--cinnabar); }
.ac-teacher { display: flex; gap: 18px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 22px; }
.ac-teacher .avatar { width: 52px; height: 52px; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--serif-zh); font-size: 22px; color: var(--cinnabar); flex-shrink: 0; }
.ac-teacher b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 400; }
.ac-teacher small { display: block; font-size: 10.5px; color: var(--muted); margin: 4px 0 8px; letter-spacing: .04em; }
.ac-teacher p { font-size: 12.5px; line-height: 1.65; color: var(--muted); }

.ac-curriculum { border-top: 1px solid var(--line); }
.ac-chapter { border-bottom: 1px solid var(--line); }
.ac-chapter-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; }
.ac-chapter-head h4 { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.ac-chapter-head span { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.ac-lessons { padding-bottom: 8px; }
.ac-lesson-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 10px 0 10px 4px; border-top: 1px solid var(--line-soft); width: 100%; text-align: left; }
.ac-lesson-row:hover .t { color: var(--cinnabar); }
.ac-lesson-row .ix { font-family: var(--mono); font-size: 9px; color: var(--muted-2); }
.ac-lesson-row .t { font-size: 13.5px; line-height: 1.45; transition: color .25s; }
.ac-lesson-row .d { font-size: 10px; color: var(--muted); }
.ac-lesson-row .done { color: var(--jade); font-size: 12px; }

/* lesson */
.ac-lesson-layout { display: grid; grid-template-columns: 1fr 240px; gap: clamp(30px, 5vw, 70px); align-items: start; }
.ac-lesson-head { border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 32px; }
.ac-lesson-head .eyebrow { margin-bottom: 12px; }
.ac-lesson-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; }
.ac-lesson-head .meta { display: flex; gap: 16px; margin-top: 14px; font-size: 10.5px; color: var(--muted); letter-spacing: .08em; }
.ac-lesson-body p { font-family: var(--serif); font-size: 17.5px; line-height: 1.85; color: var(--ink-soft); margin-bottom: 20px; }
.ac-lesson-body .points { border: 1px solid var(--line); padding: 24px; margin: 28px 0; background: rgba(255,255,255,.2); }
.ac-lesson-body .points h4 { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ac-lesson-body .points li { font-size: 13.5px; line-height: 1.7; padding: 6px 0 6px 18px; position: relative; color: var(--ink-soft); }
.ac-lesson-body .points li::before { content: "·"; position: absolute; left: 4px; color: var(--cinnabar); font-size: 18px; line-height: 1; top: 8px; }
.ac-reflect { border-left: 2px solid var(--gold); padding-left: 20px; margin: 30px 0; }
.ac-reflect h4 { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ac-reflect p { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.6; color: var(--ink); }
.ac-lesson-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.ac-lesson-nav a, .ac-lesson-nav button { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ac-lesson-nav a:hover, .ac-lesson-nav button:hover { color: var(--cinnabar); }
.ac-side { position: sticky; top: 90px; border-left: 1px solid var(--line); padding-left: 22px; }
.ac-side h4 { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ac-side button { display: block; width: 100%; text-align: left; font-size: 12px; line-height: 1.4; padding: 7px 0; color: var(--muted); }
.ac-side button.on, .ac-side button:hover { color: var(--ink); }
.ac-side .bar { margin-top: 18px; }

/* quiz */
.ac-quiz { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 36px; }
.ac-quiz h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 8px; }
.ac-q { border-top: 1px solid var(--line-soft); padding: 22px 0; }
.ac-q p { font-size: 14.5px; line-height: 1.6; margin-bottom: 14px; }
.ac-opts { display: grid; gap: 8px; }
.ac-opt { text-align: left; border: 1px solid var(--line); padding: 11px 14px; font-size: 13px; transition: all .2s; }
.ac-opt:hover { border-color: var(--ink); }
.ac-opt.sel { border-color: var(--ink); background: rgba(23,23,15,.05); }
.ac-opt.right { border-color: var(--jade); background: rgba(44,74,61,.08); }
.ac-opt.wrong { border-color: var(--cinnabar); background: rgba(163,55,42,.06); }
.ac-explain { font-size: 12px; line-height: 1.65; color: var(--muted); margin-top: 10px; display: none; }
.ac-q.checked .ac-explain { display: block; }
.ac-quiz-foot { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.ac-quiz-score { font-family: var(--serif); font-size: 26px; }

@media (max-width: 1080px) {
  .ac-grid { grid-template-columns: 1fr 1fr; }
  .ac-course-head, .ac-body { grid-template-columns: 1fr; }
  .ac-meta-card { max-width: 420px; }
  .ac-lesson-layout { grid-template-columns: 1fr; }
  .ac-side { position: static; border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
}
@media (max-width: 720px) {
  .ac-grid { grid-template-columns: 1fr; }
  .ac-outcomes { grid-template-columns: 1fr; }
  .ac-course-head .glyph { font-size: 54px; }
}

#courseDetail, #lessonView { padding-top: 130px; }

