@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&family=Bitter:wght@500;600;700&display=swap");

:root {
  --felt: #0f3d35;
  --felt-2: #15574b;
  --ink: #18211f;
  --muted: #64706c;
  --paper: #ffffff;
  --line: #dfe7e3;
  --chip: #d92f3a;
  --gold: #d9a441;
  --bg: #f4f7f3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a { color: #126b8f; text-decoration: none; }
a:hover { text-decoration: underline; }

.learn-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 28px;
  color: #fff;
  background: #10231f;
  border-bottom: 4px solid var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
}

.brand span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--chip);
  border-radius: 50%;
  font-size: 12px;
}

.brand strong { font-size: 18px; }

.learn-topbar nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.learn-topbar nav a {
  color: #eaf3ef;
  font-size: 14px;
  font-weight: 700;
}

.learn-topbar nav .rcp-license-nav {
  flex-shrink: 0;
}

.learn-topbar nav .rcp-license-nav:not(.rcp-license-nav-active) {
  color: #f0d4a8;
  cursor: pointer;
}

.home-wrap,
.map-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px;
}

.study-hero,
.map-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  min-height: 260px;
  padding: 42px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15,61,53,.94), rgba(16,35,31,.96)),
    radial-gradient(circle at 80% 20%, rgba(217,164,65,.35), transparent 28%);
  border-radius: 8px;
}

.study-hero p {
  margin: 0 0 10px;
  color: #d9e8df;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.study-hero h1,
.map-hero h1 {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.1;
}

.study-hero span,
.map-hero p {
  display: block;
  max-width: 620px;
  color: #e1ebe6;
  font-size: 17px;
}

.study-hero > a {
  flex: 0 0 auto;
  padding: 13px 18px;
  color: #10231f;
  background: #fff;
  border-radius: 6px;
  font-weight: 800;
}

.home-level,
.map-level {
  margin-top: 34px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.home-level > div:first-child,
.map-level > h2 {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.home-level h2,
.map-level h2 {
  margin: 0;
  color: var(--felt);
  font-size: 28px;
}

.home-level p,
.map-level h2 span {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.study-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: #fbfdfa;
  border: 1px solid var(--line);
  border-left: 5px solid var(--felt-2);
  border-radius: 6px;
}

.study-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.study-card strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.study-card em {
  color: var(--felt-2);
  font-style: normal;
  font-weight: 800;
}

/* —— Homepage (index.html) —— */
.home-page .home-wrap {
  padding-bottom: 48px;
}

.home-hero {
  align-items: stretch;
  min-height: auto;
  padding: 48px 44px;
  background:
    linear-gradient(128deg, rgba(15, 61, 53, 0.97) 0%, rgba(16, 35, 31, 0.98) 55%, rgba(21, 87, 75, 0.92) 100%),
    radial-gradient(circle at 12% 18%, rgba(217, 164, 65, 0.22), transparent 42%),
    radial-gradient(circle at 88% 72%, rgba(217, 47, 58, 0.12), transparent 36%);
}

.home-hero-copy {
  flex: 1 1 520px;
  min-width: 0;
}

.home-eyebrow {
  margin: 0 0 12px;
  color: #c8ddd4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 12ch;
  font-family: Bitter, Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.12;
}

.home-hero-lead {
  display: block;
  max-width: 640px;
  margin: 0 0 18px;
  color: #e8f2ec;
  font-size: 17px;
  line-height: 1.65;
}

.home-hero-lead strong {
  color: #fff;
  font-weight: 700;
}

.home-hero-points {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.home-hero-points li {
  position: relative;
  padding-left: 22px;
  color: #d5e8df;
  font-size: 15px;
  line-height: 1.5;
}

.home-hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.25);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.home-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.home-btn-primary {
  color: #10231f;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.home-btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.home-hero-aside {
  flex: 0 1 280px;
  display: flex;
  align-items: flex-end;
}

.home-hero-card {
  width: 100%;
  padding: 22px 24px;
  color: #eaf3ef;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.home-hero-card-label {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.home-hero-card ol {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
}

.home-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.home-path-item {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.home-path-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--felt);
  font-size: 18px;
  font-weight: 800;
  background: #edf5f1;
  border-radius: 10px;
}

.home-path-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--felt);
  font-size: 16px;
}

.home-path-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.home-level-intro {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.home-level > div:first-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.home-level-media {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #edf5f1;
  aspect-ratio: 4 / 3;
}

.home-level-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-level-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 5px 10px;
  color: var(--felt);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #edf5f1;
  border-radius: 999px;
}

.home-level#level-1 .home-level-badge {
  color: #fff;
  background: var(--chip);
}

.home-level h2 {
  font-family: Bitter, Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.home-level-tagline {
  margin: 2px 0 12px;
  color: var(--felt-2);
  font-size: 15px;
  font-weight: 700;
}

.home-level-desc {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}

.home-level-features {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.home-level-features li + li {
  margin-top: 4px;
}

.home-level-link {
  display: inline-block;
  color: var(--felt-2);
  font-size: 14px;
  font-weight: 800;
}

.home-level-link:hover {
  color: var(--chip);
}

.study-card-thumb {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.study-card-thumb:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: #b8cfc6;
  box-shadow: 0 10px 28px rgba(15, 61, 53, 0.1);
}

.study-card-media {
  height: 120px;
  overflow: hidden;
  background: #e8f0ec;
  border-bottom: 1px solid var(--line);
}

.study-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.study-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}

.study-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}

.study-card-compact {
  min-height: 0;
  padding: 14px 16px;
  gap: 4px;
  border-left-width: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.study-card-compact:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: #fff;
  border-color: #b8cfc6;
  box-shadow: 0 6px 18px rgba(15, 61, 53, 0.08);
}

.study-card-compact strong {
  font-size: 16px;
  line-height: 1.3;
}

.study-card-compact em {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.home-footer {
  margin-top: 36px;
  padding: 28px 32px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.home-footer p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
}

.home-footer a {
  font-weight: 800;
}

.breadcrumbs {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumbs span { margin: 0 8px; }

.learning-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 800px);
  gap: 28px;
  max-width: 1200px;
  margin: 18px auto 60px;
  padding: 0 28px;
  background: #ffffff;
}

.learn-sidebar {
  align-self: start;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sidebar-title {
  margin-bottom: 12px;
  color: var(--felt);
  font-size: 18px;
  font-weight: 900;
}

.learn-sidebar section {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.learn-sidebar h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.learn-sidebar a {
  display: block;
  padding: 7px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.learn-sidebar section.sidebar-level {
  padding: 10px 0 12px;
}

.learn-sidebar section.sidebar-level-active {
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  margin-left: -3px;
  background: linear-gradient(90deg, rgba(217, 164, 65, 0.14), transparent 78%);
  border-radius: 0 8px 8px 0;
}

.sidebar-tier {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-course {
  border-radius: 8px;
  border: 1px solid transparent;
}

.sidebar-course-active {
  border-color: #c5ddd2;
  background: #f4faf6;
  padding: 8px 8px 10px;
  margin: 0 -2px;
}

.sidebar-course-link {
  padding: 6px 8px !important;
  border-radius: 6px;
  line-height: 1.35;
}

.sidebar-outline-wrap {
  margin-top: 6px;
}

.learn-sidebar .sidebar-outline-wrap .ld-course-list,
.learn-sidebar .sidebar-outline-wrap .ld-course-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.learn-sidebar .sidebar-outline-wrap .ld-lesson {
  margin-top: 8px;
  padding: 0 0 0 4px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.learn-sidebar .sidebar-outline-wrap .ld-lesson > a {
  display: block;
  padding: 4px 6px !important;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.learn-sidebar .sidebar-outline-wrap .ld-topic {
  margin: 4px 0 0 10px;
  padding: 0 0 0 10px;
  border-left: 2px solid #c8ddd2;
}

.learn-sidebar .sidebar-outline-wrap .ld-topic a {
  padding: 3px 6px !important;
  font-size: 12px;
  font-weight: 600;
  color: #1a5f6e;
}

.sidebar-link-current {
  background: rgba(217, 47, 58, 0.1) !important;
  box-shadow: inset 3px 0 0 var(--chip);
  color: var(--felt) !important;
  font-weight: 900 !important;
}

.sidebar-li-active-branch.ld-lesson > a {
  color: var(--felt-2) !important;
}

.learning-content {
  min-width: 0;
  padding: 34px 42px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.learning-content article {
  background: #ffffff;
}

.lesson-topic-body {
  font-family: Rubik, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 26.56px;
  color: #252525;
}

.learning-content article .lesson-topic-body p {
  margin: 0 0 20px;
  font-weight: 400;
  color: #1b1f2a;
}

.lesson-topic-body .lesson-topic-title-line {
  margin: 0 0 20px;
  font-weight: 400;
  color: #1b1f2a;
}

.lesson-topic-body a {
  color: #579ed6;
}

.lesson-topic-body strong {
  font-weight: 700;
  color: #190000;
}

.lesson-topic-body em {
  font-style: italic;
}

.lesson-topic-body ul,
.lesson-topic-body ol {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.lesson-topic-body ol {
  counter-reset: rc-topic-ol;
}

.lesson-topic-body ol li {
  counter-increment: rc-topic-ol;
  position: relative;
  margin: 0 0 0.35em;
  padding-left: 1.6em;
}

.lesson-topic-body ol li::before {
  content: counter(rc-topic-ol) '.';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--felt);
}

.lesson-topic-body ul li {
  position: relative;
  margin: 0 0 0.35em;
  padding-left: 1.1em;
}

.lesson-topic-body ul li::before {
  content: '\00b7';
  position: absolute;
  left: 0;
  font-weight: 900;
  color: var(--felt);
}

.lesson-hand-topic .lesson-topic-title-line {
  margin-bottom: 20px;
}

.lesson-hand-topic .lesson-video-embed.video-cover-card {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 20px;
  border-radius: 0;
}

.lesson-hand-topic .lesson-video-embed .video-cover-fallback {
  min-height: 0;
  height: 100%;
  background: linear-gradient(135deg, #202826, #0d1110);
}

.lesson-hand-topic .lesson-video-embed .video-meta {
  display: none;
}

.lesson-hand-meta {
  margin: 0 0 20px;
}

.learning-content article .lesson-hand-meta p {
  margin: 0;
}

.lesson-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.lesson-resource-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  color: #0067b0;
  border: 2px solid #19b5fe;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lesson-resource-links a:hover {
  color: #fff;
  background: #19b5fe;
  text-decoration: none;
}

.learning-content article figure.lesson-side-dashboard {
  width: 302px;
  max-width: 100%;
  margin: 0 0 20px;
}

.learning-content article figure.lesson-side-dashboard img {
  display: inline;
  width: 302px;
  max-width: 100%;
  border-radius: 0;
}

.learning-content article figure.lesson-side-dashboard figcaption {
  display: none;
}

.lesson-author-card {
  max-width: 635px;
  margin: 55px auto 20px;
  padding: 0 35px 36px;
  text-align: center;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.lesson-author-card img {
  width: 100px;
  height: 100px;
  margin: -50px auto 20px;
  display: block;
  object-fit: cover;
  border: 2px solid #c6c6c6;
  border-radius: 50%;
}

.lesson-author-card h3 {
  margin: 0 0 2px;
  font-family: Rubik, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #252525;
}

.lesson-author-role {
  color: #777;
  font-size: 13px;
  text-transform: uppercase;
}

.learning-content article .lesson-author-card p {
  margin: 0 0 12px;
}

.lesson-discussion-heading {
  margin-top: 28px;
}

/* 正文区所有主标题同级展示（后台多用多个 h1；仅:first-of-type 会导致后续 h1 退回默认字号） */
.learning-content article h1 {
  margin: 28px 0 18px;
  color: var(--felt);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

.learning-content article h1:first-of-type {
  margin-top: 0;
}

.learning-content article h2,
.learning-content article h3 {
  color: var(--felt);
}

/* 运行时注入的正文常无 .lesson-topic-body；与侧栏/目录列表区分，补全列表符号 */
.learning-content article ul:not(.course-content-list):not(.ld-course-list),
.learning-content article ol:not(.course-content-list):not(.ld-course-list) {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.learning-content article ol:not(.course-content-list):not(.ld-course-list) {
  counter-reset: rc-article-ol;
  list-style: none;
}

.learning-content article ol:not(.course-content-list):not(.ld-course-list) li {
  counter-increment: rc-article-ol;
  position: relative;
  margin: 0 0 0.4em;
  padding-left: 1.6em;
}

.learning-content article ol:not(.course-content-list):not(.ld-course-list) li::before {
  content: counter(rc-article-ol) '.';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--felt);
}

.learning-content article ul:not(.course-content-list):not(.ld-course-list) li {
  position: relative;
  margin: 0 0 0.4em;
  padding-left: 1.1em;
}

.learning-content article ul:not(.course-content-list):not(.ld-course-list) li::before {
  content: '\00b7';
  position: absolute;
  left: 0;
  font-weight: 900;
  color: var(--felt);
}

.learning-content p { margin: 0 0 16px; }
.learning-content img { max-width: 100%; height: auto; }

.learning-content article figure {
  margin: 18px 0;
}

.learning-content article figure img {
  display: block;
  border-radius: 4px;
}

.lesson-inline-media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
  margin: 18px 0 22px;
}

.lesson-inline-media-row figure {
  margin: 0;
  flex: 0 0 auto;
}

.lesson-inline-media-row figure img {
  display: block;
  max-height: 118px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

.learning-content article h3.lesson-section-heading {
  margin: 28px 0 12px;
  font-family: Bitter, Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: normal;
  color: #1b1f2a;
  text-transform: none;
}

.learning-content article h3.lesson-hand-street {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 28px;
  padding-bottom: 0;
  font-family: Bitter, Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  letter-spacing: normal;
  color: #444;
  border-bottom: none;
  line-height: 1;
  white-space: nowrap;
}

.learning-content article h3.lesson-hand-street::before,
.learning-content article h3.lesson-hand-street::after {
  content: "";
  flex: 1 1 auto;
  border-top: 1px solid #e1e1e1;
}

.lesson-pro-callout {
  display: grid;
  grid-template-columns: minmax(150px, 198px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin: 14px 0 22px;
  padding: 16px 18px;
  background: #f7f7f7;
  border: 1px solid #e1e1e1;
  border-radius: 0;
  box-shadow: none;
}

.learning-content article figure.lesson-pro-callout-media {
  margin: 0;
  text-align: center;
}

.learning-content article figure.lesson-pro-callout-media img {
  display: inline-block;
  width: 198px;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.lesson-pro-callout-copy {
  min-width: 0;
}

.lesson-pro-callout-intro {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 26.56px;
  color: #1b1f2a;
}

.lesson-pro-callout-detail {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 26.56px;
  color: #1b1f2a;
}

.lesson-pro-callout-cta {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: normal;
  color: #252525;
}

.lesson-hand-history {
  margin: 20px 0 42px;
  padding: 24px;
  background: #f7f7f7;
}

.learning-content article .lesson-hand-history > :first-child {
  margin-top: 0;
}

.learning-content article .lesson-hand-history > :last-child {
  margin-bottom: 0;
}

.learning-content article .lesson-hand-history h2 {
  margin: 22px 0 10px;
  font-family: Bitter, Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--felt);
}

.learning-content article .lesson-hand-history > h2:first-child {
  margin-top: 0;
}

.learning-content article .lesson-hand-history h3.lesson-hand-street:first-child {
  margin-top: 0;
}

.learning-content article .lesson-hand-history p {
  margin: 0 0 18px;
  color: #1b1f2a;
}

.learning-content article .lesson-hand-history p:first-child {
  margin-bottom: 28px;
}

.learning-content article .lesson-hand-history strong {
  color: #190000;
}

.learning-content article .lesson-hand-history .lesson-action-line {
  margin: 0 0 22px;
}

.learning-content article .lesson-hand-history .lesson-action-line strong {
  color: #ff0000;
}

.lesson-action-folded {
  text-decoration: line-through;
  color: #3b3b3b;
}

.learning-content article figure.lesson-card-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 0 0 28px;
}

.learning-content article figure.lesson-card-row img {
  display: block;
  width: 44px;
  height: 70px;
  max-width: none;
  border-radius: 0;
}

.learning-content article figure.lesson-card-row-board img + img {
  margin-left: 0;
}

.learning-content article figure.lesson-card-row-single img,
.learning-content article figure.lesson-card-row-board img {
  margin-right: 0;
}

.learning-content article figure.lesson-topic-media {
  margin: 24px 0;
  text-align: center;
}

.learning-content article figure.lesson-topic-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto 24px;
  border-radius: 0;
}

.learning-content article figure.lesson-spr-chart img {
  width: min(600px, 100%);
}

.learning-content article figure.lesson-spr-zones img {
  width: min(500px, 100%);
}

.learning-content article figure.lesson-range-chart img {
  width: min(406px, 100%);
}

.lesson-callout-important {
  margin: 22px 0;
  border: 2px solid #f4524d;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

.lesson-callout-inner {
  display: flex;
  align-items: stretch;
}

.lesson-callout-bar {
  flex: 0 0 52px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16px;
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  color: #f4524d;
  background: rgba(244, 82, 77, 0.12);
}

.lesson-callout-copy {
  flex: 1;
  padding: 16px 16px 16px 12px;
  min-width: 0;
}

.lesson-callout-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3231f;
}

.lesson-callout-lead {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  color: #a3231f;
}

.lesson-callout-detail {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #a3231f;
}

.lesson-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  font-size: 16px;
  line-height: 1.45;
  table-layout: fixed;
}

.lesson-compare-table th {
  background: #d92f3a;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 16px;
  letter-spacing: 0.04em;
  border: none;
}

.lesson-compare-table td {
  text-align: center;
  padding: 16px 20px;
  color: #1b1f2a;
  vertical-align: top;
  width: 50%;
  border: none;
}

.lesson-compare-table tbody tr:nth-child(odd) td {
  background: #f5f5f5;
}

.lesson-compare-table tbody tr:nth-child(even) td {
  background: #fff;
}

details.lesson-topic-faq.rcp-acc {
  margin-top: 28px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(87, 158, 214, 0.35);
}

details.lesson-topic-faq.rcp-acc summary.rcp-acc-summary {
  font-family: Bitter, Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  background: #579ed6;
  color: #fff;
  padding: 14px 20px 14px 46px;
}

details.lesson-topic-faq.rcp-acc summary.rcp-acc-summary::before {
  color: #fff;
  font-weight: 700;
}

details.lesson-topic-faq.rcp-acc[open] summary.rcp-acc-summary {
  background: #579ed6;
  color: #fff;
}

details.lesson-topic-faq.rcp-acc .rcp-acc-body {
  padding: 14px 20px;
  background: #ffffff;
  color: #000;
  border-top: 1px solid rgba(87, 158, 214, 0.25);
}

/* FAQ uses a light panel; override chart-accordion body text colors (meant for dark panels). */
details.lesson-topic-faq.rcp-acc .rcp-acc-body p {
  color: #000;
}

details.lesson-topic-faq.rcp-acc .rcp-acc-body a {
  color: #126b8f;
}

details.lesson-topic-faq.rcp-acc .rcp-acc-body em,
details.lesson-topic-faq.rcp-acc .rcp-acc-body strong {
  color: #000;
}

.learning-content nav.course-content-nav {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.learning-content nav.course-content-nav h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.learning-content nav.course-content-nav ul.course-content-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-content nav.course-content-nav ul.course-content-list > li {
  margin: 0;
  padding: 0;
}

.learning-content nav.course-content-nav .course-content-l2 > a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--felt);
  background: #eef5f2;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.learning-content nav.course-content-nav .course-content-l2 > a:hover {
  background: #e4eee9;
}

.learning-content nav.course-content-nav .course-content-l3 > a {
  display: block;
  padding: 6px 12px 6px 22px;
  font-size: 14px;
  font-weight: 500;
  color: #126b8f;
  border-left: 3px solid transparent;
}

.learning-content nav.course-content-nav .course-content-l3 > a:hover {
  border-left-color: rgba(18, 107, 143, 0.35);
  background: rgba(18, 107, 143, 0.06);
}

.learning-content nav.course-content-nav a.course-content-current-link {
  font-weight: 800;
  color: var(--felt);
  background: rgba(217, 47, 58, 0.08);
  border-left-color: var(--chip);
}

.learning-content nav.course-content-nav .course-content-l2 > a.course-content-current-link {
  border-left: none;
  box-shadow: inset 3px 0 0 var(--chip);
}

.rcp-chart-accordions {
  margin: 12px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 61, 53, .07);
}

details.rcp-acc + details.rcp-acc {
  border-top: 1px solid var(--line);
}

details.rcp-acc summary.rcp-acc-summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 14px;
  margin: 0;
  background: #eef2f0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  -webkit-user-select: none;
  user-select: none;
}

details.rcp-acc summary.rcp-acc-summary::-webkit-details-marker {
  display: none;
}

details.rcp-acc summary.rcp-acc-summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 22px;
  text-align: center;
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  color: var(--muted);
}

details.rcp-acc[open] summary.rcp-acc-summary::before {
  content: "\2212";
  color: #fff;
}

details.rcp-acc[open] summary.rcp-acc-summary {
  background: #3d6ea8;
  color: #fff;
}

.rcp-acc-body {
  padding: 16px;
  background: #121a17;
  border-top: 1px solid #2a3833;
  /* Dark panel is for charts; body text must be light or it reads as “black screen” */
  color: #e8f0ec;
}

.learning-content article .rcp-acc-body p {
  color: #dce8e3;
  margin: 0 0 12px;
}

.learning-content article .rcp-acc-body p:last-child {
  margin-bottom: 0;
}

.learning-content article .rcp-acc-body a {
  color: #7ec8ff;
}

.learning-content article .rcp-acc-body em,
.learning-content article .rcp-acc-body strong {
  color: #fff;
}

.rcp-acc-body figure {
  margin: 0;
}

.rcp-acc-body figcaption {
  display: none;
}

.rcp-acc-body img {
  display: block;
  width: 100%;
  height: auto;
}

.rcp-range-block-title {
  margin: 34px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--felt);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
}

.rcp-range-inline-section-title {
  margin: 26px 0 12px;
  font-size: 17px;
  font-weight: 900;
  color: var(--felt-2);
}

.lesson-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px 12px;
  margin: 0 0 14px;
  padding: 8px 10px;
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.lesson-nav-back {
  flex: 0 0 auto;
  width: max-content;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: var(--felt);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.lesson-nav > div {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: min(100%, 240px);
}

.lesson-nav > div > span:empty {
  display: none;
}

.lesson-nav-prev,
.lesson-nav-next {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.lesson-nav-next {
  text-align: right;
  border-color: #bfd8cc;
}

.lesson-nav small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.2;
}

.lesson-nav strong {
  color: var(--felt);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.lesson-nav a:hover {
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 61, 53, .1);
}

.learndash-content {
  margin-top: 34px;
  padding: 22px;
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.learndash-content h2 {
  margin: 0 0 8px;
  color: var(--felt);
}

.ld-course-list,
.ld-course-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ld-lesson {
  margin-top: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.ld-lesson > a {
  color: var(--ink);
  font-weight: 900;
}

.ld-topic {
  margin: 8px 0 0 22px;
  padding-left: 12px;
  border-left: 3px solid #d9e7df;
}

.ld-topic a {
  color: #255b72;
  font-weight: 700;
}

.ld-icon { display: none; }

.learn-sidebar a.rc-has-video-nav-badge {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.learn-sidebar a.rc-has-video-nav-badge::before {
  content: "\25b6";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  color: #0f3d35 !important;
  background: #ffdf7a !important;
  border: 1px solid rgba(217, 164, 65, 0.55) !important;
  font-size: 7px;
  line-height: 1;
  box-shadow: none;
}

.learn-sidebar a.rc-has-video-nav-badge::after {
  content: none;
}

.learn-sidebar .rc-video-nav-badge {
  display: none !important;
}

.learn-sidebar a.sidebar-link-current.rc-has-video-nav-badge::before {
  border-color: rgba(217, 164, 65, 0.72) !important;
}

.video-cover-card,
.video-placeholder {
  margin: 24px 0;
  overflow: hidden;
  background: #101715;
  border-radius: 8px;
}

.video-cover-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(230px, .9fr);
}

section.rc-vod-embed.video-cover-card {
  display: block;
  grid-template-columns: unset;
  background: #eff6f2;
  border: 1px solid #c5ddd2;
}

/* 待发布视频占位（学员端不展示原文链接、不发起播放） */
section.rc-pending-video-placeholder.video-cover-card {
  display: block;
  grid-template-columns: unset;
  background: linear-gradient(145deg, #1a2420 0%, #101715 55%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 200px;
}

.rc-pending-video-public-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 28px;
  text-align: center;
}

.rc-pending-video-public-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.rc-pending-video-public-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.35);
  transform: translateX(3px);
}

.rc-pending-video-public-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e8f0ec;
}

.rc-pending-video-public-hint {
  margin: 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: rgba(232, 240, 236, 0.72);
}

/* 学员端：点播就绪前不展示后台编辑卡片与原文链接（防脚本加载前闪露） */
.learning-content article section[data-vod-file-id]:not(.rc-vod-ready) .rc-vod-chip,
.learning-content article section.video-placeholder:not(.rc-vod-ready):not(:has(.rc-vod-loading-face)):not(:has(.rc-pending-video-public-face)):not(:has(.tc-vod-player-wrap)) > h2,
.learning-content article section.video-placeholder:not(.rc-vod-ready):not(:has(.rc-vod-loading-face)):not(:has(.rc-pending-video-public-face)):not(:has(.tc-vod-player-wrap)) > p,
.learning-content article section.video-placeholder:not(.rc-vod-ready):not(:has(.rc-vod-loading-face)):not(:has(.rc-pending-video-public-face)):not(:has(.tc-vod-player-wrap)) .video-meta,
.learning-content article section.video-placeholder:not(.rc-vod-ready):not(:has(.rc-vod-loading-face)):not(:has(.rc-pending-video-public-face)):not(:has(.tc-vod-player-wrap)) .video-cover-fallback {
  display: none !important;
}

.learning-content article section.rc-vod-loading,
.learning-content article section[data-vod-file-id]:not(.rc-vod-ready):not(:has(.tc-vod-player-wrap)),
.learning-content article section[data-vod-file-id].rc-vod-ready:has(.tc-vod-player-wrap) {
  display: block;
  grid-template-columns: unset;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: linear-gradient(145deg, #1a2420 0%, #101715 55%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.rc-vod-loading-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 40px 28px;
  text-align: center;
}

.rc-vod-loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(184, 240, 216, 0.95);
  animation: rc-vod-loading-spin 0.85s linear infinite;
}

@keyframes rc-vod-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.rc-vod-loading-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e8f0ec;
}

.rc-vod-loading-hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: rgba(232, 240, 236, 0.65);
}

/* 懒加载：点击前仅封面，不请求 play-info / 分片 */
.learning-content article section[data-vod-file-id]:not(.rc-vod-ready) {
  cursor: default;
}

.rc-vod-lazy-poster {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #1a2420 0%, #101715 55%);
}

.rc-vod-lazy-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.rc-vod-lazy-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 0;
  padding: 40px 28px;
  text-align: center;
  background: rgba(8, 12, 10, 0.42);
  transition: background 0.2s ease;
}

.rc-vod-lazy-poster.rc-vod-lazy-has-cover .rc-vod-lazy-overlay {
  background: rgba(8, 12, 10, 0.38);
}

.rc-vod-lazy-poster.rc-vod-lazy-has-cover:hover .rc-vod-lazy-overlay {
  background: rgba(8, 12, 10, 0.48);
}

.rc-vod-trial-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(8, 12, 10, 0.72);
  border: 1px solid rgba(184, 240, 216, 0.35);
  color: #eef5f2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: right;
  pointer-events: none;
}

.rc-vod-lazy-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(184, 240, 216, 0.18);
  border: 2px solid rgba(184, 240, 216, 0.55);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.rc-vod-lazy-play-btn:hover {
  transform: scale(1.05);
  background: rgba(184, 240, 216, 0.28);
  border-color: rgba(184, 240, 216, 0.85);
}

.rc-vod-lazy-play-btn:focus-visible {
  outline: 2px solid rgba(184, 240, 216, 0.9);
  outline-offset: 4px;
}

.rc-vod-lazy-play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent rgba(232, 240, 236, 0.92);
}

.rc-vod-lazy-play-label {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e8f0ec;
}

.rc-vod-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.rc-vod-chip-main {
  flex: 1;
  min-width: 200px;
}

.rc-vod-chip-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #0f3d35;
}

.rc-vod-chip-title {
  display: block;
  margin: 0 0 12px;
  font-size: 16px;
  color: #18211f;
  line-height: 1.35;
}

.rc-vod-chip-meta {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 12px;
  align-items: baseline;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #c8ddd2;
  border-radius: 12px;
}

.rc-vod-chip-meta dt {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  color: #64706c;
  letter-spacing: 0.04em;
}

.rc-vod-chip-meta dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #18211f;
}

.rc-vod-chip-meta dd:last-of-type {
  word-break: break-all;
}

.rc-vod-chip-id-inline {
  font-size: 11px;
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 500;
  color: #64706c;
}

.rc-vod-chip-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64706c;
}

.rc-vod-chip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rc-vod-chip-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #94b8aa;
  background: #fff;
  color: #0f3d35;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.rc-vod-chip-btn-danger {
  border-color: rgba(217, 47, 58, 0.35);
  color: #d92f3a;
}

.video-cover-img,
.video-cover-fallback {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  background: linear-gradient(135deg, #263531, #101715);
}

.video-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.video-cover-fallback::before {
  content: "▶";
  width: 66px;
  height: 66px;
  margin-right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--chip);
  border-radius: 50%;
}

.video-meta {
  padding: 24px;
  color: #dfe9e4;
}

.video-meta h2 {
  margin: 0 0 10px;
  color: #fff;
}

.video-meta a {
  color: #fff;
  overflow-wrap: anywhere;
}

.video-note {
  color: #c3cec8;
  font-size: 13px;
}

.tc-vod-player-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #0a0f0d;
}

.learning-content article section[data-vod-file-id] .tc-vod-player-wrap {
  aspect-ratio: 16 / 9;
}

.tc-vod-player-wrap video.tc-vod-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

p.tc-vod-error {
  margin: 0;
  padding: 18px 20px;
  color: #ffb4b4;
  font-size: 14px;
}

.tc-vod-trial-ended {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 28px;
  background: rgba(10, 15, 13, 0.88);
  color: #eef5f2;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  z-index: 2;
}

.tc-vod-trial-ended[hidden] {
  display: none !important;
}

.tc-vod-trial-ended p {
  margin: 0;
}

.tc-vod-trial-hint {
  font-size: 13px;
  color: #b8c9c0;
  max-width: 420px;
  line-height: 1.5;
}

.tc-vod-trial-support {
  margin: 0;
  font-size: 13px;
  color: #b8c9c0;
  max-width: 420px;
  line-height: 1.5;
  text-align: center;
}

.tc-vod-trial-support strong {
  color: #eef5f2;
}

.tc-vod-trial-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 440px;
}

.tc-vod-trial-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #eef5f2;
}

.tc-vod-trial-input {
  width: 100%;
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid rgba(184, 240, 216, 0.35);
  border-radius: 8px;
  background: rgba(8, 12, 10, 0.65);
  color: #eef5f2;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-align: center;
}

.tc-vod-trial-input:focus {
  outline: 2px solid rgba(184, 240, 216, 0.75);
  outline-offset: 2px;
  border-color: rgba(184, 240, 216, 0.6);
}

.tc-vod-trial-err {
  margin: 0;
  min-height: 1.25em;
  font-size: 13px;
  color: #ffb4b4;
}

.tc-vod-trial-submit {
  margin-top: 4px;
  padding: 11px 22px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #3d8f6a 0%, #2a6b4f 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.tc-vod-trial-submit:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.tc-vod-trial-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.map-course {
  margin: 18px 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-course h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.map-course details {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.map-course summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f7faf7;
}

.map-course summary:hover {
  background: #eef6f1;
}

.map-course summary::-webkit-details-marker {
  display: none;
}

.map-course summary::before {
  content: "▶";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--felt-2);
  border-radius: 50%;
  font-size: 11px;
  transition: transform .18s ease;
}

.map-course details[open] summary::before {
  transform: rotate(90deg);
  background: var(--chip);
}

.map-course summary > span:not(.map-course-lock) {
  color: var(--muted);
  font-size: 13px;
  margin-left: auto;
  white-space: nowrap;
}

.map-course summary > span:not(.map-course-lock)::after {
  content: " · 点击展开";
  color: #8a9792;
  font-weight: 700;
}

.map-course details[open] summary > span:not(.map-course-lock)::after {
  content: " · 点击收起";
}

.map-course summary .map-course-lock {
  margin-left: 0;
  flex-shrink: 0;
}

.map-course summary .map-course-lock::after {
  content: none !important;
}

.map-course ul {
  margin: 10px 0 0 24px;
}

.map-course li {
  margin: 6px 0;
}

/* —— Course map page —— */
.map-page .map-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 200px 48px 28px;
}

.map-page .map-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.map-hero-enhanced {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  min-height: auto;
  margin-bottom: 8px;
}

.map-hero-eyebrow {
  margin: 0 0 10px;
  color: #c8ddd4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-hero-enhanced h1 {
  font-family: Bitter, Georgia, "Times New Roman", serif;
}

.map-hero-link {
  flex: 0 0 auto;
  padding: 12px 18px;
  color: #10231f;
  background: #fff;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.map-hero-link:hover {
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.map-float-nav {
  position: fixed;
  top: 84px;
  right: max(12px, calc((100vw - 1180px) / 2 + 12px));
  z-index: 18;
  width: 156px;
  padding: 14px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 61, 53, 0.12);
}

.map-float-nav-title {
  margin: 0 0 10px;
  padding: 0 8px 8px;
  color: var(--felt);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.map-float-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-float-nav-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 8px;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.map-float-nav-list a:hover {
  text-decoration: none;
  background: #edf5f1;
}

.map-float-nav-list a.is-active {
  background: #e4f0ea;
  box-shadow: inset 3px 0 0 var(--chip);
}

.map-float-nav-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  background: var(--felt-2);
  border-radius: 8px;
}

.map-float-nav-list a.is-active .map-float-nav-num {
  background: var(--chip);
}

.map-float-nav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.map-float-nav-text strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.map-float-nav-text em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.map-float-nav-top {
  display: block;
  margin-top: 10px;
  padding: 8px;
  text-align: center;
  color: var(--felt-2);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.map-float-nav-top:hover {
  color: var(--chip);
  text-decoration: none;
}

.map-page .map-level {
  scroll-margin-top: 88px;
  box-shadow: 0 2px 12px rgba(15, 61, 53, 0.04);
}

.map-page .map-level > h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  font-family: Bitter, Georgia, "Times New Roman", serif;
}

.map-page .map-level > h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 28px;
  background: var(--chip);
  border-radius: 3px;
  vertical-align: middle;
}

.map-page .map-course h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.map-page .map-course h3 a {
  color: var(--felt);
  font-weight: 700;
}

.map-page .map-course h3 a:hover {
  color: var(--chip);
}

.map-course-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #b45309;
  flex-shrink: 0;
}

.map-course-lock[hidden] {
  display: none !important;
}

.map-course-lock svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.map-course-locked h3 a,
.map-entry-locked > a {
  color: #8a6d3b;
}

.learning-content article h1,
.learning-content article .lesson-topic-title-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.learning-content article.map-entry-locked h1,
.learning-content article .map-entry-locked.lesson-topic-title-line {
  color: #8a6d3b;
}

.map-page .map-course summary > a {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--felt);
}

.map-page .map-course summary.map-entry-locked > a {
  color: #8a6d3b;
}

.map-page .map-course ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.map-page .map-course li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  border-top: 1px solid #eef3f0;
}

.map-page .map-course li .map-course-lock {
  margin-right: 10px;
  flex-shrink: 0;
}

.map-page .map-course li a {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 8px 12px 8px 36px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  position: relative;
}

.map-page .map-course li a::before {
  content: "·";
  position: absolute;
  left: 18px;
  color: var(--felt-2);
  font-weight: 800;
}

.map-page .map-course li a:hover {
  background: #f3f9f5;
  text-decoration: none;
  color: var(--felt);
}

@media (max-width: 1100px) {
  .map-page .map-layout {
    padding-right: 28px;
  }

  .map-float-nav {
    top: auto;
    right: 12px;
    bottom: 16px;
    width: auto;
    max-width: calc(100vw - 24px);
    padding: 10px;
    border-radius: 999px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 28px rgba(15, 61, 53, 0.18);
  }

  .map-float-nav-title,
  .map-float-nav-top {
    display: none;
  }

  .map-float-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .map-float-nav-list a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f9f5;
  }

  .map-float-nav-list a.is-active {
    background: var(--felt);
    box-shadow: none;
  }

  .map-float-nav-list a.is-active .map-float-nav-num {
    background: var(--chip);
  }

  .map-float-nav-list a.is-active .map-float-nav-text strong,
  .map-float-nav-list a.is-active .map-float-nav-text em {
    color: #fff;
  }

  .map-float-nav-text em {
    display: none;
  }

  .map-float-nav-text strong {
    font-size: 12px;
  }

  .map-float-nav-num {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .learn-topbar,
  .study-hero,
  .map-hero,
  .map-hero-enhanced {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero {
    padding: 32px 24px;
  }

  .home-hero-aside {
    flex: 1 1 auto;
    width: 100%;
  }

  .home-path {
    grid-template-columns: 1fr;
  }

  .home-level-intro {
    grid-template-columns: 1fr;
  }

  .home-level-media {
    max-height: 220px;
    aspect-ratio: 16 / 9;
  }

  .learning-shell {
    grid-template-columns: 1fr;
  }

  .learn-sidebar {
    position: static;
    max-height: none;
  }

  .learning-content {
    padding: 24px;
  }

  .video-cover-card {
    grid-template-columns: 1fr;
  }
}

/* —— 激活弹层 —— */
.license-modal-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 61, 53, 0.12), rgba(16, 35, 31, 0.08)),
    var(--bg);
}

body.license-modal-open {
  overflow: hidden;
}

body.license-modal-open > header,
body.license-modal-open > main,
body.license-modal-open > .home-wrap,
body.license-modal-open > .map-layout,
body.license-modal-open > .breadcrumbs,
body.license-modal-open > .learning-shell {
  pointer-events: none;
  user-select: none;
}

/* 顶栏激活按钮在弹层打开时仍可点击（关闭弹层 / 查看账户信息） */
body.license-modal-open > header.learn-topbar {
  pointer-events: auto;
  user-select: auto;
  filter: none;
}

/* 门禁页弹层：不模糊正文，直接隐藏，避免标题从弹窗下方透出 */
body.license-gated-page.license-modal-open > header,
body.license-gated-page.license-modal-open > .breadcrumbs,
body.license-gated-page.license-modal-open > .learning-shell {
  visibility: hidden;
  filter: none;
}

body.license-modal-open:not(.license-gated-page) > header.learn-topbar {
  filter: none;
}

body.license-modal-open:not(.license-gated-page) > header:not(.learn-topbar),
body.license-modal-open:not(.license-gated-page) > main,
body.license-modal-open:not(.license-gated-page) > .home-wrap,
body.license-modal-open:not(.license-gated-page) > .map-layout,
body.license-modal-open:not(.license-gated-page) > .breadcrumbs,
body.license-modal-open:not(.license-gated-page) > .learning-shell {
  filter: blur(3px);
}

.rcp-license-placeholder {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.rcp-license-placeholder p {
  margin: 0;
}

.license-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 35, 31, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: license-modal-in 0.2s ease-out;
}

.license-modal-overlay[hidden] {
  display: none !important;
}

@keyframes license-modal-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.license-modal-dialog {
  position: relative;
  width: min(100%, 400px);
  padding: 28px 24px 24px;
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 24px 48px rgba(16, 35, 31, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  animation: license-dialog-in 0.25s ease-out;
}

@keyframes license-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.license-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.license-modal-close:hover {
  background: var(--bg);
  color: var(--ink);
}

.license-modal-title {
  margin: 0 0 6px;
  font-family: Bitter, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--felt);
}

.license-modal-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.license-modal-desc:empty,
.license-modal-desc[hidden] {
  display: none;
}

.license-modal-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.license-modal-input:focus {
  outline: none;
  border-color: var(--felt-2);
  box-shadow: 0 0 0 3px rgba(21, 87, 75, 0.15);
}

.license-modal-err {
  min-height: 1.25em;
  margin: 10px 0 0;
  color: var(--chip);
  font-size: 0.85rem;
  text-align: center;
}

.license-modal-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.5;
}

.license-modal-note strong {
  color: var(--felt);
  font-weight: 700;
}

.license-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding-bottom: 2px;
  background: var(--paper);
}

.license-modal-primary {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: var(--felt);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.license-modal-primary:hover:not(:disabled) {
  background: var(--felt-2);
}

.license-modal-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.license-modal-secondary {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.license-modal-secondary:hover {
  color: var(--felt);
  text-decoration: none;
}

/* —— 顶栏激活状态 —— */
.learn-topbar .rcp-license-nav-active {
  color: #b8f0d8 !important;
  cursor: pointer;
}

.rcp-license-popover {
  position: absolute;
  z-index: 1100;
  width: min(100vw - 24px, 320px);
}

.rcp-license-popover[hidden] {
  display: none !important;
}

.rcp-license-popover-inner {
  position: relative;
  padding: 18px 16px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16, 35, 31, 0.22);
}

.rcp-license-popover-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}

.rcp-license-popover-title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--felt);
}

.rcp-license-popover-dl {
  margin: 0;
  font-size: 0.88rem;
}

.rcp-license-popover-dl dt {
  margin: 10px 0 4px;
  color: var(--muted);
  font-weight: 600;
}

.rcp-license-popover-dl dt:first-child {
  margin-top: 0;
}

.rcp-license-popover-dl dd {
  margin: 0;
  color: var(--ink);
  word-break: break-all;
}

.rcp-license-popover-dl code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
}

.rcp-license-device-list {
  margin: 0;
  padding-left: 1.1em;
  list-style: disc;
}

.rcp-license-device-list li {
  margin-bottom: 8px;
}

.rcp-license-device-list small {
  color: var(--muted);
}

.rcp-license-popover-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.rcp-license-popover-note strong {
  color: var(--felt);
}

.rcp-license-upgrade-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rcp-license-upgrade-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--felt);
}

.rcp-license-upgrade-hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.rcp-license-upgrade-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.rcp-license-upgrade-input:focus {
  outline: 2px solid rgba(42, 107, 79, 0.35);
  border-color: var(--felt);
}

.rcp-license-upgrade-err {
  margin: 8px 0 0;
  min-height: 1.2em;
  font-size: 0.82rem;
  color: #b42318;
}

.rcp-license-upgrade-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #3d8f6a 0%, #2a6b4f 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.rcp-license-upgrade-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.rcp-license-upgrade-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
