/* 菱乐芸科技 · AI 视频课评价系统改版 */
:root {
  --brand-1: #eef5fe;
  --brand-2: #dcecfd;
  --brand-3: #b9d8f6;
  --brand-4: #6fa9e8;
  --brand-5: #1e78d6;
  --brand: #0b63ce;
  --brand-hover: #0755b5;
  --brand-active: #0a4c9e;
  --brand-dark: #183653;
  --brand-soft: #e3f0fe;
  --brand-ink: #0e5aa8;
  --accent: #ff9f3f;
  --accent-soft: #fff3e2;
  --accent-ink: #c97a2b;
  --bg: #f5f8fd;
  --bg-sunk: #edf2fa;
  --panel: #ffffff;
  --panel-2: #fbfcfe;
  --ink: #183653;
  --ink-2: #52625a;
  --muted: #7c8982;
  --ink-3: #a4afa9;
  --line: #e3edf8;
  --line-2: #edf0eb;
  --line-strong: #d3dad4;
  --ok: #2f8a6d;
  --ok-soft: #e6f2ec;
  --ok-line: #c8e3d7;
  --warn: #c9793f;
  --warn-soft: #fdf1e5;
  --warn-line: #f0d8c3;
  --bad: #c85b4b;
  --bad-soft: #fbece9;
  --bad-line: #eccbc5;
  --radius: 20px;
  --radius-s: 12px;
  --radius-tag: 8px;
  --shadow: 0 8px 24px rgba(22, 91, 163, .045);
  --shadow-md: 0 16px 36px rgba(22, 91, 163, .075);
  --focus-ring: 0 0 0 3px rgba(11, 99, 206, .16);
  --topbar-h: 74px;
  --wrap-max: 1440px;
}

body {
  background:
    radial-gradient(circle at 86% 0%, rgba(214, 234, 252, .72), transparent 28rem),
    radial-gradient(circle at 15% 100%, rgba(255, 226, 190, .45), transparent 32rem),
    var(--bg);
}

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  flex: 0 0 252px;
  flex-direction: column;
  width: 252px;
  height: 100vh;
  padding: 24px 18px 18px;
  overflow-y: auto;
  background: rgba(250, 252, 255, .9);
  border-right: 1px solid rgba(214, 228, 242, .92);
  backdrop-filter: blur(18px);
}

.main-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  color: var(--ink);
}

.side-brand:hover { color: var(--ink); }

.school-logo {
  width: auto;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.side-brand-copy {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

#siteTitle {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-brand-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand .ver,
.side-brand .ver {
  flex: 0 0 auto;
  padding: 2px 6px;
  color: #647b94;
  font-size: 9px;
  font-weight: 650;
  background: #f0f5fb;
  border-radius: 999px;
}

.side-section-label {
  padding: 28px 12px 8px;
  color: #9fb6cc;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .12em;
}

.sidebar .nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
}

.sidebar .nav button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  gap: 11px;
  justify-content: flex-start;
  padding: 0 12px;
  color: #5d6b64;
  font-size: 13.5px;
  font-weight: 550;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 11px;
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}

.sidebar .nav button .ni {
  width: 18px;
  height: 18px;
  opacity: .72;
}

.sidebar .nav button:hover {
  color: var(--ink);
  background: rgba(232, 238, 233, .72);
  transform: translateX(1px);
}

.sidebar .nav button.active {
  color: var(--brand-ink);
  font-weight: 750;
  background: #e5f0ea;
  box-shadow: inset 0 0 0 1px rgba(11, 99, 206, .055);
}

.sidebar .nav button.active .ni { opacity: 1; }

.sidebar .nav button.active::before {
  position: absolute;
  top: 12px;
  left: -1px;
  width: 3px;
  height: 18px;
  content: "";
  background: var(--brand);
  border-radius: 3px;
}

.side-privacy-card {
  position: relative;
  margin-top: auto;
  padding: 15px;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 255, 255, .8), transparent 38%),
    linear-gradient(145deg, #e5efe9, #f7ebde);
  border: 1px solid rgba(11, 99, 206, .07);
  border-radius: 18px;
}

.side-privacy-card::after {
  position: absolute;
  top: -34px;
  right: -30px;
  width: 92px;
  height: 92px;
  content: "";
  border: 1px solid rgba(11, 99, 206, .11);
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(255, 255, 255, .14);
}

.side-privacy-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  place-items: center;
  color: var(--brand);
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(11, 99, 206, .08);
  border-radius: 9px;
}

.side-privacy-icon svg { width: 16px; height: 16px; }

.side-privacy-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 13px;
  font-weight: 750;
}

.side-privacy-card p {
  position: relative;
  z-index: 1;
  margin: 4px 0 0;
  color: #66756d;
  font-size: 10.5px;
  line-height: 1.65;
}

.side-footer {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 13px 8px 0;
  border-top: 1px solid var(--line);
}

.side-footer .netpill {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-footer > span {
  color: #9aa49e;
  font-size: 9px;
}

.side-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.side-footer-meta > span:first-child {
  color: #9aa49e;
  font-size: 9px;
}

.side-footer-meta .ver {
  flex: 0 0 auto;
  padding: 1px 5px;
  color: #8a958e;
  font-size: 8px;
  font-weight: 650;
  background: #eff2ed;
  border-radius: 999px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  height: var(--topbar-h);
  gap: 14px;
  padding: 0 30px;
  background: rgba(245, 243, 238, .82);
  border-bottom: 1px solid rgba(214, 228, 242, .72);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
}

.topbar-crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #929d97;
  font-size: 12.5px;
  white-space: nowrap;
}

.topbar-crumb i {
  color: #c0c7c2;
  font-style: normal;
}

.topbar-crumb strong {
  color: var(--ink);
  font-weight: 750;
}

.topbar-mobile-brand { display: none; }

.topbar-privacy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #6f7c75;
  font-size: 11px;
  background: rgba(255, 255, 255, .56);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.topbar-privacy .dot {
  width: 6px;
  height: 6px;
  background: #3b9f7e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(59, 159, 126, .1);
}

.topbar .nav-toggle {
  display: none;
  width: 39px;
  height: 39px;
  padding: 0;
  place-items: center;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.topbar .nav-toggle:hover { background: var(--brand-1); }

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 24px 30px 42px;
}

.site-foot {
  margin-top: auto;
  padding: 12px 30px 24px;
  color: #9aa49e;
  font-size: 10px;
  text-align: center;
}

.card,
.stat {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card .bd { padding: 18px 20px; }

.page-title h2,
.page-title > div > h2 {
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -.03em;
}

@media (max-width: 1200px) {
  .sidebar { flex-basis: 232px; width: 232px; }
  .topbar { padding: 0 24px; }
  .wrap { padding: 22px 24px 38px; }
}

@media (max-width: 900px) {
  body.nav-open::before {
    position: fixed;
    inset: 0;
    z-index: 65;
    content: "";
    background: rgba(18, 33, 27, .28);
    backdrop-filter: blur(2px);
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 70;
    width: 286px;
    height: 100vh;
    padding: 22px 18px 18px;
    transform: translateX(-102%);
    transition: transform 220ms cubic-bezier(.2, .8, .3, 1);
    box-shadow: 24px 0 50px rgba(23, 37, 31, .16);
  }

  body.nav-open .sidebar { transform: translateX(0); }

  .sidebar .nav {
    position: static;
    display: flex;
    max-height: none;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .sidebar .nav button {
    height: 44px;
    padding: 0 12px;
    font-size: 13.5px;
  }

  .topbar { padding: 0 16px; gap: 10px; }

  .topbar .nav-toggle {
    display: grid;
    flex: 0 0 auto;
  }

  .topbar-crumb { display: none; }
  .topbar-mobile-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
  }
  .topbar-mobile-brand img {
    height: 26px;
    width: auto;
    flex: 0 0 auto;
    object-fit: contain;
  }
  .topbar-mobile-brand span {
    overflow: hidden;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-privacy {
    margin-left: auto;
    padding: 7px;
    font-size: 0;
  }
  .topbar-privacy .dot { width: 7px; height: 7px; }
  .wrap { padding: 18px 16px 34px; }
  .site-foot { padding: 10px 16px 22px; }
}

@media (max-width: 560px) {
  .topbar { min-height: 66px; height: 66px; }
  .topbar-mobile-brand span { max-width: 150px; }
  .page-title h2,
  .page-title > div > h2 { font-size: 18px; }
}

/* ---------------------------------------------------------- 总览页 */
.ov-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  align-items: center;
  min-height: 196px;
  gap: 28px;
  padding: 30px 32px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 74% -20%, rgba(145, 222, 199, .52), transparent 31%),
    linear-gradient(113deg, #094c41 0%, #0e6655 55%, #247c69 100%);
  border-radius: 26px;
  box-shadow: 0 20px 46px rgba(9, 78, 64, .18);
  isolation: isolate;
  animation: ov-rise .55s cubic-bezier(.22, .9, .3, 1) both;
}

.ov-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent 18%, #000 76%);
}

.ov-hero::after {
  position: absolute;
  top: -164px;
  right: 118px;
  z-index: -1;
  width: 370px;
  height: 370px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(255, 255, 255, .025),
    0 0 0 98px rgba(255, 255, 255, .018);
}

.ov-hero-main { min-width: 0; }

.ov-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 255, 251, .72);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .04em;
}

.ov-eyebrow .dot {
  width: 7px;
  height: 7px;
  background: #96e6cb;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(150, 230, 203, .12);
}

.ov-hero h2 {
  max-width: 720px;
  margin: 13px 0 8px;
  color: #fff;
  font-size: clamp(27px, 2.45vw, 35px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -.045em;
}

.ov-hero p {
  max-width: 690px;
  margin: 0;
  color: rgba(243, 255, 250, .72);
  font-size: 13px;
  line-height: 1.8;
}

.ov-hero-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.ov-btn-light,
.ov-btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  gap: 7px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 750;
  border-radius: 9px;
  transition: transform var(--t-fast), background var(--t-fast);
}

.ov-btn-light {
  color: #0d5f4e;
  background: #f8fbf8;
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 8px 20px rgba(4, 44, 37, .18);
}

.ov-btn-light:hover {
  color: #0b5345;
  background: #fff;
  transform: translateY(-1px);
}

.ov-btn-glass {
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
}

.ov-btn-glass:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

.ov-btn-light svg,
.ov-btn-glass svg {
  width: 13px;
  height: 13px;
}

.ov-goal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 152px;
  padding: 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 19px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
}

.ov-goal-ring {
  position: relative;
  display: grid;
  width: 106px;
  height: 106px;
  place-items: center;
  background: conic-gradient(#a4e3d0 calc(var(--p, 0) * 1%), rgba(255, 255, 255, .13) 0);
  border-radius: 50%;
}

.ov-goal-ring::before {
  position: absolute;
  inset: 9px;
  content: "";
  background: #176c5b;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.ov-goal-ring span {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.05em;
}

.ov-goal-ring small {
  font-size: 10px;
  font-weight: 650;
  opacity: .66;
}

.ov-goal-label {
  margin-top: 10px;
  color: rgba(246, 255, 251, .66);
  font-size: 10px;
  text-align: center;
}

.ov-goal-meta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  color: rgba(244, 255, 251, .60);
  font-size: 10px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.ov-goal-meta strong {
  color: #c4f1e2;
  font-weight: 750;
}

.ov-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.ov-stat {
  position: relative;
  min-width: 0;
  padding: 17px 18px 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(224, 228, 222, .94);
  border-radius: 19px;
  box-shadow: var(--shadow);
  animation: ov-rise .55s cubic-bezier(.22, .9, .3, 1) both;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

.ov-stat:nth-child(1) { animation-delay: 40ms; }
.ov-stat:nth-child(2) { animation-delay: 80ms; }
.ov-stat:nth-child(3) { animation-delay: 120ms; }
.ov-stat:nth-child(4) { animation-delay: 160ms; }

.ov-stat:hover {
  border-color: rgba(11, 99, 206, .16);
  box-shadow: 0 14px 30px rgba(22, 91, 163, .075);
  transform: translateY(-2px);
}

.ov-stat::after {
  position: absolute;
  top: -34px;
  right: -28px;
  width: 88px;
  height: 88px;
  content: "";
  background: currentColor;
  border-radius: 50%;
  opacity: .035;
}

.ov-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ov-stat-label {
  color: #65736b;
  font-size: 11.5px;
  font-weight: 650;
}

.ov-stat-icon {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 10px;
}

.ov-stat-icon svg { width: 16px; height: 16px; }

.ov-stat-value {
  margin-top: 10px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}

.ov-stat-value small {
  margin-left: 3px;
  color: #77847d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.ov-stat-note {
  margin-top: 9px;
  color: #8b958f;
  font-size: 10px;
  line-height: 1.5;
}

.ov-stat-note strong { color: var(--brand); font-weight: 750; }
.ov-stat.tone-blue { color: #5474dd; }
.ov-stat.tone-blue .ov-stat-icon { color: #4e6bdf; background: #edf0ff; }
.ov-stat.tone-orange { color: #d08044; }
.ov-stat.tone-orange .ov-stat-icon { color: #c7773e; background: #fff3e2; }
.ov-stat.tone-gold { color: #b1872e; }
.ov-stat.tone-gold .ov-stat-icon { color: #a97f24; background: #fbf3dc; }

.ov-main-grid,
.ov-insight-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.ov-main-grid { grid-template-columns: minmax(0, 1.35fr) minmax(350px, 1fr); }
.ov-insight-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.ov-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(224, 228, 222, .94);
  border-radius: 20px;
  box-shadow: var(--shadow);
  animation: ov-rise .55s cubic-bezier(.22, .9, .3, 1) both;
  animation-delay: 160ms;
}

.ov-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 0;
}

.ov-card-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
}

.ov-card-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -.02em;
}

.ov-card-head p {
  margin: 4px 0 0;
  color: #89948e;
  font-size: 11.5px;
}

.ov-head-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 0;
  color: var(--brand);
  font-size: 11px;
  font-weight: 750;
  background: none;
  border: 0;
}

.ov-head-link svg { width: 12px; height: 12px; }

.ov-qr-grid {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
}

.ov-qr-code {
  display: grid;
  width: 176px;
  height: 176px;
  place-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(32, 61, 47, .06);
}

.ov-qr-code svg { display: block; width: 100%; height: 100%; }

.ov-qr-copy { min-width: 0; }

.ov-qr-copy h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -.01em;
}

.ov-qr-copy > p {
  margin: 0 0 12px;
  color: #647b94;
  font-size: 11.5px;
  line-height: 1.7;
}

.ov-url-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 11px;
  background: #f7f8f5;
  border: 1px solid #e9ece7;
  border-radius: 11px;
}

.ov-url-row code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #596660;
  font-family: var(--mono);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-url-row .btn { flex: 0 0 auto; }

.ov-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  padding: 9px 10px;
  font-size: 10px;
  line-height: 1.6;
  border-radius: 9px;
}

.ov-tip svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.ov-tip.info {
  color: #3f6c5d;
  background: #edf6f1;
  border: 1px solid #dcece3;
}

.ov-tip.warn {
  color: #8d5f35;
  background: #fdf2e6;
  border: 1px solid #f0dfca;
}

.ov-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 22px;
  padding: 13px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.ov-meta-item {
  min-width: 0;
  padding: 0 14px;
  border-left: 1px solid var(--line-2);
}

.ov-meta-item:first-child { padding-left: 0; border-left: 0; }

.ov-meta-item span {
  display: block;
  margin-bottom: 3px;
  color: #909b95;
  font-size: 9px;
}

.ov-meta-item strong {
  display: block;
  overflow: hidden;
  color: #405149;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-process-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 22px 20px;
}

.ov-process-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  color: #65736b;
  font-size: 10px;
  background: #fafbf8;
  border: 1px solid #edf0eb;
  border-radius: 9px;
}

.ov-process-step .num {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  background: var(--brand-soft);
  border-radius: 6px;
}

.ov-recent-list {
  display: grid;
  gap: 5px;
  padding: 10px 14px 14px;
}

.ov-course-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: var(--ink);
  border-radius: 11px;
  transition: background var(--t-fast);
}

.ov-course-row:hover {
  color: var(--ink);
  background: #f7f9f5;
}

.ov-course-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 10px;
}

.ov-course-icon svg { width: 15px; height: 15px; }

.ov-course-main { display: grid; gap: 2px; min-width: 0; }

.ov-course-main strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-course-main span {
  overflow: hidden;
  color: #949e98;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-score-badge {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: #fbfcf9;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.ov-course-status .pill {
  height: 22px;
  padding: 0 7px;
  font-size: 9px;
}

.ov-quality-body,
.ov-subject-body {
  display: grid;
  gap: 14px;
  padding: 18px 22px 22px;
}

.ov-band-row,
.ov-subject-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
}

.ov-band-row span,
.ov-subject-row span {
  overflow: hidden;
  color: #64726a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-band-track,
.ov-subject-track {
  height: 6px;
  overflow: hidden;
  background: #f0f2ee;
  border-radius: 99px;
}

.ov-band-track i,
.ov-subject-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
  border-radius: inherit;
  transition: width .7s cubic-bezier(.22, .9, .3, 1);
}

.ov-band-row b,
.ov-subject-row b {
  color: #536159;
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.ov-band-row.excellent .ov-band-track i { background: #2f9d73; }
.ov-band-row.good .ov-band-track i { background: #5a7bea; }
.ov-band-row.ok .ov-band-track i { background: #e1a13c; }
.ov-band-row.weak .ov-band-track i { background: #d06d58; }

.ov-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 22px 22px;
}

.ov-resource {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
  padding: 13px;
  background: #fafbf8;
  border: 1px solid #edf0eb;
  border-radius: 13px;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}

.ov-resource:hover {
  background: #f7f9f5;
  border-color: #dce7df;
  transform: translateY(-1px);
}

.ov-resource-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 10px;
}

.ov-resource-icon svg { width: 16px; height: 16px; }

.ov-resource > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.ov-resource > div > span {
  color: #939e98;
  font-size: 10px;
  line-height: 1.4;
}

.ov-resource strong {
  overflow: hidden;
  color: #34463e;
  font-size: 12.5px;
  font-weight: 780;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-resource small {
  overflow: hidden;
  color: #a1aba5;
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: #96a09a;
  font-size: 10px;
  text-align: center;
}

@keyframes ov-rise {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
  .ov-main-grid { grid-template-columns: minmax(0, 1.25fr) minmax(330px, 1fr); }
  .ov-qr-grid { grid-template-columns: 158px minmax(0, 1fr); gap: 18px; }
  .ov-qr-code { width: 158px; height: 158px; }
}

@media (max-width: 1080px) {
  .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-main-grid,
  .ov-insight-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .ov-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
  }
  .ov-hero h2 { font-size: 27px; }
  .ov-goal-card {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 116px;
    gap: 18px;
    padding: 15px 18px;
  }
  .ov-goal-ring { width: 92px; height: 92px; flex: 0 0 auto; }
  .ov-goal-ring span { font-size: 23px; }
  .ov-goal-label { margin-top: 0; text-align: left; }
  .ov-goal-meta { flex-direction: column; align-items: flex-start; width: auto; gap: 4px; margin: 0; padding: 0; border: 0; }
  .ov-qr-grid { grid-template-columns: 140px minmax(0, 1fr); }
  .ov-qr-code { width: 140px; height: 140px; }
}

@media (max-width: 620px) {
  .ov-stats { grid-template-columns: minmax(0, 1fr); }
  .ov-stat { padding: 15px 16px; }
  .ov-resource-grid { grid-template-columns: minmax(0, 1fr); padding: 16px 18px 20px; }
  .ov-qr-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }
  .ov-qr-code {
    width: 156px;
    height: 156px;
    margin: 0 auto;
  }
  .ov-qr-copy { text-align: center; }
  .ov-url-row { text-align: left; }
  .ov-meta-row { margin: 0 18px; }
  .ov-meta-item { padding: 0 8px; }
  .ov-process-mini { grid-template-columns: minmax(0, 1fr); padding: 14px 18px 18px; }
  .ov-process-step { min-height: 40px; }
  .ov-course-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .ov-course-status { display: none; }
  .ov-band-row,
  .ov-subject-row { grid-template-columns: 64px minmax(0, 1fr) 20px; }
}

@media (max-width: 430px) {
  .ov-hero { padding: 22px 20px; border-radius: 22px; }
  .ov-hero h2 { font-size: 24px; }
  .ov-hero-actions { align-items: stretch; }
  .ov-btn-light,
  .ov-btn-glass { flex: 1 1 auto; }
  .ov-goal-card { gap: 14px; }
  .ov-goal-ring { width: 82px; height: 82px; }
  .ov-goal-ring span { font-size: 21px; }
  .ov-card-head { padding: 18px 18px 0; }
  .ov-quality-body,
  .ov-subject-body { padding: 16px 18px 20px; }
  .ov-recent-list { padding: 8px 10px 12px; }
}

/* ---------------------------------------------------------- 课程详情 */
.detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.detail-head-main { min-width: 0; }

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
}

.detail-back:hover { color: var(--brand); }

.detail-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 7px;
}

.detail-title-line h2 {
  margin: 0;
  color: var(--ink);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.2;
}

.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: #647b94;
  font-size: 11.5px;
}

.detail-meta span + span::before {
  margin-right: 8px;
  color: #c0c8c2;
  content: "·";
}

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-actions-sep {
  width: 1px;
  height: 24px;
  margin: 0 2px;
  background: var(--line);
}

.auto-error-detail { margin-top: 7px; }

.auto-error-detail > summary {
  width: fit-content;
  color: #9a653a;
  font-size: 9.5px;
  font-weight: 650;
  cursor: pointer;
}

.auto-error-detail code {
  display: block;
  margin-top: 6px;
  padding: 7px 9px;
  overflow-wrap: anywhere;
  color: #755b43;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.55;
  background: rgba(255, 255, 255, .58);
  border-radius: 7px;
}

.detail-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(330px, .62fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-main-column {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.detail-main-column > .fold { margin-bottom: 0 !important; }

.detail-video-card { overflow: hidden; }

.detail-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
}

.detail-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--brand);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .11em;
}

.detail-card-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -.02em;
}

.detail-card-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tech-note {
  color: #8b958f;
  font-size: 10.5px;
}

.detail-card-notice { padding: 0 20px 10px; }

.lesson-chapters {
  margin: 12px 0 4px;
  padding: 12px 12px 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #f4faf6, #fbfdfb);
  border: 1px solid #e1ebe5;
  border-radius: 14px;
}

.lesson-chapters-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.lesson-chapters-head b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 780;
}

.lesson-chapters-head small {
  display: block;
  margin-top: 1px;
  color: #87938c;
  font-size: 9.5px;
}

.lesson-chapters-head > span {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: #537066;
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, .78);
  border: 1px solid #deeae3;
  border-radius: 999px;
}

.lesson-chapter-scroll {
  display: flex;
  gap: 8px;
  padding: 0 1px 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.lesson-chapter {
  flex: 0 0 176px;
  min-width: 0;
  padding: 10px 11px;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e9e3;
  scroll-snap-align: start;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.lesson-chapter:hover {
  border-color: #a9cfc0;
  box-shadow: 0 6px 16px rgba(31, 76, 58, .07);
  transform: translateY(-1px);
}

.lesson-chapter.is-active {
  background: #fff;
  border-color: #75b49d;
  box-shadow: 0 0 0 2px rgba(43, 127, 100, .09);
}

.lesson-chapter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.lesson-chapter-time {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 1px 6px;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 750;
  background: #eef7f2;
  border-radius: 6px;
}

.lesson-chapter.is-active .lesson-chapter-time {
  color: #fff;
  background: var(--brand);
}

.lesson-chapter-meta {
  color: #98a39d;
  font-size: 8.5px;
  white-space: nowrap;
}

.lesson-chapter > b {
  display: block;
  margin-top: 8px;
  color: #30443a;
  font-size: 11.5px;
  font-weight: 760;
}

.lesson-chapter > small {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: #7d8b84;
  font-size: 9.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-summary-card {
  position: sticky;
  top: calc(var(--topbar-h) + 18px);
  min-width: 0;
  padding: 23px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(220, 240, 230, .78), transparent 42%),
    linear-gradient(155deg, #ffffff, #fbfcf8);
  border: 1px solid #dde6df;
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(22, 91, 163, .06);
}

.detail-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-score-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 8px;
}

.detail-score {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--ink);
}

.detail-score b {
  font-size: 55px;
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .92;
}

.detail-score span {
  color: #8e9992;
  font-size: 12px;
  font-weight: 650;
}

.detail-grade {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  font-size: 10.5px;
  font-weight: 750;
  background: #f8fbf8;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.detail-source-pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--brand);
  font-size: 9.5px;
  font-weight: 750;
  background: var(--brand-soft);
  border-radius: 999px;
}

.detail-summary-text {
  display: -webkit-box;
  margin: 18px 0 17px;
  overflow: hidden;
  color: #4c5e55;
  font-size: 13px;
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

.detail-summary-meta {
  display: grid;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #e5ebe5;
}

.detail-summary-meta div { display: grid; gap: 2px; min-width: 0; }

.detail-summary-meta span {
  color: #99a49e;
  font-size: 9px;
}

.detail-summary-meta strong {
  overflow: hidden;
  color: #405149;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-summary-note {
  margin-top: 16px;
  padding: 10px 11px;
  color: #85918a;
  font-size: 9.5px;
  line-height: 1.65;
  background: rgba(244, 247, 242, .82);
  border-radius: 10px;
}

.detail-summary-empty { display: grid; gap: 10px; }

.detail-summary-empty h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 780;
}

.detail-summary-empty p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.detail-summary-empty .btn { width: fit-content; }

.detail-tabs-card { overflow: hidden; }

.detail-tabs-card > .tabs {
  padding: 0 20px;
  background: rgba(251, 252, 249, .82);
}

.detail-tab-body { padding: 22px; }

.detail-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.detail-insight {
  min-width: 0;
  padding: 19px 20px;
  border-radius: 18px;
}

.detail-insight.good {
  background: linear-gradient(145deg, #f3f9f5, #fbfdfb);
  border: 1px solid #d8e9df;
}

.detail-insight.fix {
  background: linear-gradient(145deg, #fdf7ef, #fffdfa);
  border: 1px solid #f0dfca;
}

.detail-insight-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}

.detail-insight-head > span {
  padding: 3px 7px;
  color: #2b7f64;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .08em;
  background: rgba(255, 255, 255, .72);
  border-radius: 6px;
}

.detail-insight.fix .detail-insight-head > span { color: #aa6a33; }

.detail-insight-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 780;
  letter-spacing: -.02em;
}

.detail-insight ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: #43564c;
  font-size: 12px;
  line-height: 1.75;
}

.detail-quote {
  display: inline;
  margin-top: 0;
  color: #8a968f;
  font-size: 10px;
}

.detail-evidence-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.detail-time-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 19px;
  padding: 1px 7px;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 750;
  background: #fff;
  border: 1px solid #cfe4da;
  border-radius: 999px;
  cursor: pointer;
}

.detail-time-link:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.detail-insight.fix .detail-time-link {
  color: #a56431;
  border-color: #ead2b9;
}

.detail-insight.fix .detail-time-link:hover {
  color: #fff;
  background: #b87943;
  border-color: #b87943;
}

.detail-fix-list { display: grid; gap: 11px; }

.detail-fix-item {
  padding-left: 12px;
  border-left: 2px solid #efcba8;
}

.detail-fix-item b {
  display: block;
  color: #5d4634;
  font-size: 12px;
  font-weight: 780;
}

.detail-fix-item p {
  margin: 3px 0 0;
  color: #7b6a5a;
  font-size: 11.5px;
  line-height: 1.7;
}

.detail-next {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 15px;
  padding: 14px 16px;
  background: #f1f7f3;
  border: 1px solid #dcebe2;
  border-radius: 15px;
}

.detail-next-label {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  background: #fff;
  border-radius: 6px;
}

.detail-next ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0;
  padding-left: 16px;
  color: #50635a;
  font-size: 11.5px;
  line-height: 1.65;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.detail-metric {
  min-width: 0;
  padding: 12px 13px;
  background: #fafbf8;
  border: 1px solid #e9ede8;
  border-radius: 13px;
}

.detail-metric.warn { background: #fdf9f2; border-color: #efe1cc; }

.detail-metric > span {
  display: block;
  color: #939e98;
  font-size: 9px;
}

.detail-metric strong {
  display: block;
  margin: 2px 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.detail-metric.warn strong { color: #b0783d; }

.detail-metric small {
  display: block;
  overflow: hidden;
  color: #7f8b84;
  font-size: 9.5px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-advanced,
.detail-optional {
  margin-top: 18px;
  overflow: hidden;
  background: #fbfcfa;
  border: 1px solid #e5eae4;
  border-radius: 17px;
}

.detail-advanced > summary,
.detail-optional > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.detail-advanced > summary::-webkit-details-marker,
.detail-optional > summary::-webkit-details-marker { display: none; }

.detail-advanced > summary b,
.detail-optional > summary b {
  display: block;
  font-size: 13px;
  font-weight: 780;
}

.detail-advanced > summary small,
.detail-optional > summary small {
  display: block;
  margin-top: 2px;
  color: #929d97;
  font-size: 10px;
  font-weight: 500;
}

.detail-advanced-action {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 10px;
  font-weight: 750;
}

.detail-advanced[open] > summary,
.detail-optional[open] > summary { border-bottom: 1px solid #e8ece7; }

.detail-advanced-body {
  padding: 18px;
}

.detail-evidence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.detail-evidence-meta span {
  padding: 5px 8px;
  color: #7f8b84;
  font-size: 9.5px;
  background: #f3f6f1;
  border-radius: 7px;
}

.detail-evidence-meta b { color: #4e6157; }

.detail-analysis-section { margin-top: 20px; }

.detail-analysis-section:first-of-type { margin-top: 0; }

.detail-analysis-head { margin-bottom: 12px; }

.detail-analysis-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}

.detail-analysis-head p {
  margin: 3px 0 0;
  color: #8c9791;
  font-size: 10.5px;
}

.detail-raw { margin-top: 14px; }

.detail-raw-summary {
  margin: 0 0 12px;
  color: #506158;
  font-size: 12px;
  line-height: 1.8;
}

.detail-raw h4 {
  margin: 14px 0 6px;
  color: var(--ink);
  font-size: 12.5px;
}

.detail-raw ul,
.detail-raw ol {
  margin: 0;
  padding-left: 20px;
  color: #52635a;
  font-size: 12px;
  line-height: 1.8;
}

.detail-optional { margin-top: 14px; }

.detail-optional-body { padding: 0 18px 18px; }

.detail-optional-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.detail-optional-body p {
  margin: 0;
  color: #7f8b84;
  font-size: 11px;
  line-height: 1.75;
}

@media (max-width: 1180px) {
  .detail-workbench { grid-template-columns: minmax(0, 1fr); }
  .detail-summary-card { position: static; }
}

@media (max-width: 760px) {
  .detail-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .detail-actions { justify-content: flex-start; }
  .detail-title-line h2 { font-size: 24px; }
  .detail-insight-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-metrics > .detail-metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .detail-tab-body { padding: 18px 16px; }
}

@media (max-width: 520px) {
  .detail-title-line h2 { font-size: 22px; }
  .detail-actions { gap: 6px; }
  .detail-actions .btn { padding: 0 10px; }
  .detail-actions-sep { display: none; }
  .detail-summary-card { padding: 19px; border-radius: 18px; }
  .detail-score b { font-size: 47px; }
  .lesson-chapters { padding: 11px 10px 9px; }
  .lesson-chapters-head > span { padding: 3px 6px; font-size: 8.5px; }
  .lesson-chapter { flex-basis: 146px; padding: 9px 10px; }
  .detail-summary-text { -webkit-line-clamp: 10; }
  .detail-insight { padding: 16px; }
  .detail-next { flex-direction: column; gap: 8px; }
  .detail-next ol { padding-left: 16px; }
  .detail-advanced > summary,
  .detail-optional > summary { padding: 14px 15px; }
  .detail-advanced-body { padding: 15px; }
}

@media (max-width: 360px) {
  .detail-metrics { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
