:root {
  --eco-canvas: #ffffff;
  --eco-surface: #f4f5ff;
  --eco-ink: #111114;
  --eco-muted: #727187;
  --eco-line: #e7e7f2;
  --eco-violet: #6e40ff;
  --eco-violet-deep: #4b22d6;
  --eco-sky: #0797ff;
  --eco-mint: #00a98f;
  --eco-yellow: #f4b400;
  --course-accent: var(--eco-violet);
  --course-accent-deep: var(--eco-violet-deep);
  --course-soft: #f1edff;
  --course-soft-strong: #e7deff;
  --course-border: #d9ccff;
  --course-text: #4b22d6;
  --course-shadow: 0 24px 74px rgba(79, 70, 138, 0.12);
}

body.course-llm {
  --course-accent: var(--eco-sky);
  --course-accent-deep: #006fc2;
  --course-soft: #edf7ff;
  --course-soft-strong: #d9efff;
  --course-border: #b9dfff;
  --course-text: #006fc2;
}

body.course-comfy {
  --course-accent: var(--eco-mint);
  --course-accent-deep: #007d6a;
  --course-soft: #ebfbf7;
  --course-soft-strong: #d4f5ed;
  --course-border: #aee8da;
  --course-text: #007d6a;
}

html {
  background: var(--eco-canvas);
  scroll-behavior: smooth;
}

body.ecosystem-course {
  --p: var(--course-accent);
  --p2: var(--course-accent-deep);
  --pg: color-mix(in srgb, var(--course-accent) 18%, transparent);
  --bg: #fafaff;
  --c1: #ffffff;
  --c2: var(--course-soft);
  --in: #f7f7fc;
  --t1: var(--eco-ink);
  --t2: #57566a;
  --t3: var(--eco-muted);
  --bd: var(--eco-line);
  --primary: var(--course-accent);
  --primary-dark: var(--course-accent-deep);
  --secondary: var(--eco-mint);
  --bg-dark: #fafaff;
  --bg-card: #ffffff;
  --bg-input: #f7f7fc;
  --text-primary: var(--eco-ink);
  --text-secondary: var(--eco-muted);
  --border: var(--eco-line);
  min-height: 100vh;
  background: #fafaff;
  color: var(--eco-ink);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body.ecosystem-course :where(button, input, textarea, select) {
  font: inherit;
}

body.ecosystem-course :where(a, button, input, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--course-accent) 24%, transparent);
  outline-offset: 3px;
}

.ecosystem-header {
  position: relative;
  z-index: 180;
  border-bottom: 1px solid var(--eco-line);
  background: #ffffff;
}

.ecosystem-header-inner {
  width: min(100% - 48px, 1480px);
  min-height: 74px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: clamp(24px, 4vw, 68px);
}

.ecosystem-brand {
  color: var(--eco-ink);
  text-decoration: none;
  font-size: 1.52rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.ecosystem-brand i {
  color: var(--eco-violet);
  font-style: normal;
}

.ecosystem-nav {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 38px);
  overflow-x: auto;
  scrollbar-width: none;
}

.ecosystem-nav::-webkit-scrollbar {
  display: none;
}

.ecosystem-nav a {
  position: relative;
  flex: none;
  display: inline-flex;
  min-height: 74px;
  align-items: center;
  color: #444350;
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 600;
  white-space: nowrap;
}

.ecosystem-nav a:hover {
  color: var(--eco-violet);
}

.ecosystem-nav a[aria-current="page"] {
  color: var(--eco-violet);
}

.ecosystem-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--eco-violet);
}

.ecosystem-account {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--eco-line);
  border-radius: 14px;
  background: var(--eco-surface);
  color: var(--eco-ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.ecosystem-account:hover {
  border-color: var(--eco-violet);
  background: #ffffff;
  color: var(--eco-violet);
}

body.ecosystem-course .navbar {
  position: sticky;
  top: 0;
  z-index: 150;
  padding: 0 clamp(20px, 3.3vw, 52px);
  border-bottom: 1px solid var(--eco-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: none;
}

body.ecosystem-course :is(.nav-inner, .navbar-content) {
  width: min(100%, 1480px);
  min-height: 72px;
  height: auto;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(270px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

body.ecosystem-course .logo {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px !important;
  color: var(--eco-ink);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

body.ecosystem-course .logo > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ecosystem-course .logo-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--course-accent);
  color: #ffffff;
  font-size: 0;
  box-shadow: none;
}

body.ecosystem-course .logo-icon::before {
  content: "AI";
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.course-claude .logo-icon::before {
  content: "C";
  font-size: 1rem;
}

body.course-comfy .logo-icon::before {
  content: "UI";
}

body.ecosystem-course .logo-t {
  background: none;
  color: var(--course-text);
  -webkit-text-fill-color: currentColor;
}

.course-return {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--course-border);
  border-radius: 12px;
  background: var(--course-soft);
  color: var(--course-text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.course-home {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--eco-muted);
  text-decoration: none;
  font-size: 0.79rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.course-home:hover {
  background: #f8f8fc;
  color: var(--eco-violet);
}

.course-home svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-return:hover {
  border-color: var(--course-accent);
  background: #ffffff;
  transform: translateX(-2px);
}

.course-return svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.ecosystem-course .nav-links {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

body.ecosystem-course .nav-links::-webkit-scrollbar {
  display: none;
}

body.ecosystem-course :is(.nb, .nav-btn) {
  min-height: 40px;
  flex: none;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #5d5b6e;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

body.ecosystem-course :is(.nb, .nav-btn):hover {
  border-color: var(--eco-line);
  background: #f8f8fc;
  color: var(--eco-ink);
}

body.ecosystem-course :is(.nb.on, .nav-btn.active) {
  border-color: var(--course-border);
  background: var(--course-soft);
  color: var(--course-text);
}

body.ecosystem-course #devInfoBtn {
  order: 9;
  color: var(--eco-muted) !important;
}

body.ecosystem-course :is(.stats, .stats-bar) {
  padding: 0 clamp(20px, 3.3vw, 52px);
  border-bottom: 1px solid var(--eco-line);
  background: #ffffff;
}

body.ecosystem-course :is(.stats-in, .stats-content) {
  width: min(100%, 1480px);
  min-height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  overflow-x: auto;
  scrollbar-width: none;
}

body.ecosystem-course :is(.stats-in, .stats-content)::-webkit-scrollbar {
  display: none;
}

body.ecosystem-course :is(.si, .stat-item) {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  padding-right: clamp(22px, 3vw, 48px);
  color: var(--eco-ink);
}

body.ecosystem-course :is(.si, .stat-item)::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 0;
  bottom: 9px;
  width: 1px;
  background: var(--eco-line);
}

body.ecosystem-course :is(.si-ic, .stat-icon) {
  display: none;
}

body.ecosystem-course :is(.si-v, .stat-value) {
  color: var(--eco-ink);
  font-size: 1.35rem;
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

body.ecosystem-course :is(.si-l, .stat-label) {
  margin-top: 5px;
  color: var(--eco-muted);
  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

body.ecosystem-course :is(.mc, .main-container) {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: clamp(28px, 3.2vw, 48px) clamp(20px, 3.3vw, 52px) 80px;
}

body.ecosystem-course .view {
  color: var(--eco-ink);
}

body.ecosystem-course :is(.arch-title, #practice-view > h2, #wrong-view > h2, #memorize-view > h2, #progress-view > h2) {
  margin-bottom: 12px !important;
  background: none;
  color: var(--eco-ink);
  -webkit-text-fill-color: currentColor;
  text-align: left;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

body.ecosystem-course .arch-sub {
  max-width: 72ch;
  margin-bottom: 28px;
  color: var(--eco-muted);
  text-align: left;
  font-size: 0.95rem;
}

body.ecosystem-course .arch-view > div[style*="text-align:center"] {
  margin-bottom: 30px !important;
  text-align: left !important;
}

body.ecosystem-course :is(.search-box, .sb) {
  position: relative;
  width: min(100%, 760px);
  margin: 0 0 16px;
}

body.ecosystem-course :is(.search-input, .si2) {
  width: 100%;
  min-height: 48px;
  padding: 0 17px 0 48px;
  border: 1px solid var(--eco-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--eco-ink);
  font-size: 0.9rem;
  box-shadow: none;
}

body.ecosystem-course :is(.search-input, .si2)::placeholder {
  color: #8a889a;
}

body.ecosystem-course :is(.search-input, .si2):focus {
  border-color: var(--course-accent);
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--course-accent) 12%, transparent);
}

body.ecosystem-course :is(.search-icon, .sb-ic) {
  position: absolute;
  z-index: 1;
  left: 17px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid var(--eco-muted);
  border-radius: 50%;
  color: transparent;
  font-size: 0;
  transform: translateY(-56%);
}

body.ecosystem-course :is(.search-icon, .sb-ic)::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--eco-muted);
  transform: rotate(45deg);
}

body.ecosystem-course :is(.filters, .fs) {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

body.ecosystem-course :is(.filters, .fs)::-webkit-scrollbar {
  display: none;
}

body.ecosystem-course :is(.filter-btn, .fb) {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--eco-line);
  border-radius: 12px;
  background: #ffffff;
  color: #5d5b6e;
  font-size: 0.79rem;
  font-weight: 650;
}

body.ecosystem-course :is(.filter-btn, .fb):hover {
  border-color: var(--course-border);
  color: var(--course-text);
}

body.ecosystem-course :is(.filter-btn.active, .fb.on) {
  border-color: var(--course-accent);
  background: var(--course-soft);
  color: var(--course-text);
}

body.ecosystem-course :is(.chapter-grid, .cg) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.ecosystem-course :is(.chapter-card, .cc) {
  position: relative;
  min-width: 0;
  min-height: 168px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--eco-line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--course-accent) 4%, #ffffff);
  color: var(--eco-ink);
  box-shadow: none;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 220ms ease;
}

body.ecosystem-course :is(.chapter-card, .cc)::before {
  content: none;
}

body.ecosystem-course :is(.chapter-card, .cc):hover {
  border-color: var(--course-border);
  box-shadow: var(--course-shadow);
  transform: translateY(-3px);
}

body.ecosystem-course :is(.chapter-card, .cc).completed {
  border-color: color-mix(in srgb, var(--eco-mint) 38%, var(--eco-line));
}

body.ecosystem-course :is(.chapter-header, .ch-h) {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

body.ecosystem-course :is(.chapter-icon, .ch-ic) {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--course-border);
  border-radius: 12px;
  background: var(--course-soft) !important;
  color: transparent;
  font-size: 0;
  box-shadow: none;
}

body.ecosystem-course :is(.chapter-icon, .ch-ic)::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--course-accent);
  border-radius: 4px;
  transform: rotate(45deg);
}

body.ecosystem-course :is(.chapter-info h3, .ch-i h3) {
  margin: 0 0 4px;
  color: var(--eco-ink);
  font-size: 1rem;
  font-weight: 750;
}

body.ecosystem-course :is(.chapter-subtitle, .ch-sub) {
  color: #5d5b6e;
  font-size: 0.84rem;
  line-height: 1.5;
}

body.ecosystem-course .ch-desc {
  margin: 16px 0 12px;
  color: var(--eco-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

body.ecosystem-course :is(.chapter-tags, .tags) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

body.ecosystem-course :is(.tag, .tg, .meta-tag, .mt, .badge) {
  padding: 4px 8px;
  border: 1px solid var(--eco-line);
  border-radius: 8px;
  background: #f8f8fc;
  color: #666478;
  font-size: 0.69rem;
  line-height: 1.2;
}

body.ecosystem-course :is(.chapter-meta, .ch-m) {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

body.ecosystem-course :is(.progress-bar, .pb) {
  height: 4px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 4px;
  background: #eeeef6;
}

body.ecosystem-course :is(.progress-fill, .pf) {
  height: 100%;
  border-radius: inherit;
  background: var(--course-accent);
}

body.ecosystem-course .arch-flow {
  position: relative;
  gap: 0;
  align-items: stretch;
  padding: 6px 0 20px 30px;
}

body.ecosystem-course .arch-flow::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 28px;
  left: 8px;
  width: 2px;
  background: var(--course-border);
}

body.ecosystem-course .arch-layer-label {
  position: relative;
  width: fit-content;
  margin: 13px 0 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--eco-ink);
  font-size: 0.78rem;
  font-weight: 750;
}

body.ecosystem-course .arch-layer-label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -27px;
  width: 12px;
  height: 12px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--course-accent);
  box-shadow: 0 0 0 1px var(--course-border);
  transform: translateY(-50%);
}

body.ecosystem-course .arch-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  justify-content: stretch;
  margin: 0 0 10px;
}

body.ecosystem-course .arch-node {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--eco-line) !important;
  border-radius: 16px;
  background: #ffffff !important;
  color: var(--eco-ink);
  text-align: left;
  box-shadow: none;
}

body.ecosystem-course .arch-node:hover {
  border-color: var(--course-border) !important;
  box-shadow: var(--course-shadow);
  transform: translateY(-2px);
}

body.ecosystem-course .arch-node .an-emoji,
body.ecosystem-course .arch-arrow {
  display: none;
}

body.ecosystem-course .arch-node .an-label {
  display: block;
  color: var(--eco-ink);
  font-size: 0.82rem;
  font-weight: 750;
}

body.ecosystem-course .arch-node .an-sub {
  display: block;
  margin-top: 4px;
  color: var(--eco-muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

body.ecosystem-course .arch-detail {
  padding: 22px;
  border: 1px solid var(--course-border);
  border-radius: 18px;
  background: var(--course-soft);
  box-shadow: none;
}

body.ecosystem-course :is(.learning-view, .lv) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  gap: clamp(24px, 3vw, 42px);
  align-items: start;
}

body.ecosystem-course :is(.content-area, .ca) {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.ecosystem-course :is(.content-header, .ca-h) {
  min-height: 64px;
  padding: 0 0 18px;
  border-bottom: 0;
  background: transparent;
}

body.ecosystem-course :is(.content-header .back-btn, .bb) {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--course-border);
  border-radius: 12px;
  background: var(--course-soft);
  color: var(--course-text);
  font-size: 0.8rem;
  font-weight: 700;
}

body.ecosystem-course :is(.content-header .back-btn, .bb):hover {
  border-color: var(--course-accent);
  background: #ffffff;
  color: var(--course-text);
}

body.ecosystem-course :is(.chapter-title, .ct-t) {
  color: var(--eco-ink);
  font-size: 1.05rem;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

body.ecosystem-course :is(.content-tabs, .c-tabs) {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  border-bottom: 1px solid var(--eco-line);
  scrollbar-width: none;
}

body.ecosystem-course :is(.content-tabs, .c-tabs)::-webkit-scrollbar {
  display: none;
}

body.ecosystem-course :is(.content-tab, .c-tab) {
  position: relative;
  min-height: 46px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--eco-muted);
  font-size: 0.83rem;
  font-weight: 700;
}

body.ecosystem-course :is(.content-tab, .c-tab):hover {
  background: transparent;
  color: var(--eco-ink);
}

body.ecosystem-course :is(.content-tab.active, .c-tab.on) {
  color: var(--course-text);
}

body.ecosystem-course :is(.content-tab.active, .c-tab.on)::after {
  height: 3px;
  background: var(--course-accent);
}

body.ecosystem-course :is(.tab-content, .tc) {
  max-height: none;
  padding: 30px 0 60px;
  overflow: visible;
}

body.ecosystem-course :is(.content-body, .cb) {
  max-width: 74ch;
  color: #34333f;
  font-size: 1rem;
  line-height: 1.78;
}

body.ecosystem-course :is(.content-body, .cb) :where(h1, h2, h3) {
  color: var(--eco-ink);
  letter-spacing: -0.025em;
}

body.ecosystem-course :is(.content-body h1, .cb h1) {
  margin: 0 0 22px;
  color: var(--eco-ink);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 780;
  line-height: 1.13;
}

body.ecosystem-course :is(.content-body h2, .cb h2) {
  margin: 42px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--eco-line);
  font-size: 1.32rem;
  font-weight: 760;
  line-height: 1.25;
}

body.ecosystem-course :is(.content-body h3, .cb h3) {
  margin: 28px 0 10px;
  font-size: 1.08rem;
  font-weight: 750;
}

body.ecosystem-course :is(.content-body p, .cb p, .content-body li, .cb li) {
  color: #444350;
  font-size: 1rem;
  line-height: 1.78;
}

body.ecosystem-course :is(.content-body pre, .cb pre, .flow) {
  margin: 20px 0;
  padding: 18px 20px;
  overflow-x: auto;
  border: 0;
  border-radius: 14px;
  background: #181525;
  color: #f3f0ff;
  font-size: 0.84rem;
  line-height: 1.65;
}

body.ecosystem-course :is(.content-body pre, .cb pre) code {
  color: inherit;
}

body.ecosystem-course :is(.content-body p code, .cb p code) {
  border-radius: 6px;
  background: var(--course-soft);
  color: var(--course-text);
}

body.ecosystem-course :is(.content-body blockquote, .cb blockquote, .ib) {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid var(--course-border);
  border-left-width: 1px;
  border-radius: 14px;
  background: var(--course-soft);
  color: #444350;
}

body.ecosystem-course :is(.analogy, .vs, .why-best, .interview, .impl) {
  margin: 34px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

body.ecosystem-course :is(.content-body table, .cb table) {
  width: 100%;
  margin: 22px 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--eco-line);
  border-radius: 14px;
  background: #ffffff;
  font-size: 0.85rem;
}

body.ecosystem-course :is(.content-body th, .content-body td, .cb th, .cb td) {
  padding: 11px 13px;
  border: 0;
  border-right: 1px solid var(--eco-line);
  border-bottom: 1px solid var(--eco-line);
  color: #444350;
}

body.ecosystem-course :is(.content-body th, .cb th, .cb table.cmp th) {
  background: var(--course-soft);
  color: var(--eco-ink);
  font-weight: 700;
}

body.ecosystem-course :is(.sidebar, .side) {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.ecosystem-course :is(.sidebar-card, .sc) {
  overflow: hidden;
  border: 1px solid var(--eco-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

body.ecosystem-course :is(.sidebar-header, .sc-h) {
  padding: 15px 17px;
  border-bottom: 1px solid var(--eco-line);
  background: var(--course-soft);
  color: var(--eco-ink);
  font-size: 0.82rem;
  font-weight: 750;
}

body.ecosystem-course :is(.sidebar-content, .sc-c) {
  padding: 12px;
}

body.ecosystem-course .sidebar .key-points-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--eco-line);
  border-radius: 0;
  background: transparent;
  color: #555365;
  font-size: 0.8rem;
  line-height: 1.55;
}

body.ecosystem-course .sidebar .key-points-list li:last-child {
  border-bottom: 0;
}

body.ecosystem-course .sidebar .key-points-list li::before {
  content: none;
}

body.ecosystem-course .sidebar .objective-num {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 8px;
  background: var(--course-soft);
  color: var(--course-text);
  font-size: 0.68rem;
}

body.ecosystem-course :is(.objective-item, .oi) {
  gap: 9px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--eco-line);
  color: #555365;
  font-size: 0.8rem;
}

body.ecosystem-course :is(.objective-number, .oi-n) {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 8px;
  background: var(--course-soft);
  color: var(--course-text);
  font-size: 0.68rem;
}

body.ecosystem-course :is(.chapter-nav-item, .ni) {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #666478;
  font-size: 0.76rem;
  line-height: 1.45;
}

body.ecosystem-course :is(.chapter-nav-item, .ni):hover {
  border-color: var(--eco-line);
  background: #f8f8fc;
  color: var(--eco-ink);
}

body.ecosystem-course :is(.chapter-nav-item.active, .ni.on) {
  border-color: var(--course-border);
  background: var(--course-soft);
  color: var(--course-text);
}

body.ecosystem-course :is(.btn, .back-btn, .bb) {
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

body.ecosystem-course :is(.btn-primary, .btn1) {
  border: 1px solid var(--course-accent);
  background: var(--course-accent);
  color: #ffffff;
}

body.ecosystem-course :is(.btn-primary, .btn1):hover {
  border-color: var(--course-accent-deep);
  background: var(--course-accent-deep);
}

body.ecosystem-course :is(.btn-secondary, .btn2) {
  border: 1px solid var(--eco-line);
  background: #ffffff;
  color: var(--eco-ink);
}

body.ecosystem-course :is(.quiz-card, .qq, .wrong-question-card, .wc, .progress-card, .pc) {
  border: 1px solid var(--eco-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

body.ecosystem-course :is(.option, .opt) {
  border: 1px solid var(--eco-line);
  border-radius: 12px;
  background: #ffffff;
  color: #444350;
}

body.ecosystem-course :is(.option, .opt):hover:not(.disabled):not(.dis) {
  border-color: var(--course-border);
  background: var(--course-soft);
}

body.ecosystem-course :is(.memorize-card, .memf, .memb) {
  border: 1px solid var(--course-border);
  border-radius: 20px;
  background: #ffffff;
  color: var(--eco-ink);
  box-shadow: var(--course-shadow);
}

body.ecosystem-course :is(.ds-key-area) {
  margin-left: auto;
}

body.ecosystem-course :is(.auth-user-btn-placeholder, .ds-key-btn) {
  min-height: 38px;
  border: 1px solid var(--eco-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--eco-ink);
  font-size: 0.76rem;
  font-weight: 700;
}

body.ecosystem-course #dsApiKey {
  min-height: 38px;
  border: 1px solid var(--eco-line);
  border-radius: 12px;
  background: #f8f8fc;
  color: var(--eco-ink);
}

body.ecosystem-course :is(.mobile-bnav) {
  border-top: 1px solid var(--eco-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -16px 48px rgba(79, 70, 138, 0.08);
}

body.ecosystem-course .mbn-ic {
  display: none;
}

body.ecosystem-course .mbn-item {
  color: var(--eco-muted);
  font-family: inherit;
}

body.ecosystem-course .mbn-item.on {
  color: var(--course-text);
}

body.ecosystem-course > div[style*="text-align:center"][style*="font-size:10px"] {
  display: none;
}

.ecosystem-footer {
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--eco-line);
  background: #ffffff;
  text-align: center;
}

.ecosystem-footer a {
  color: var(--eco-muted);
  text-decoration: none;
  font-size: 0.72rem;
}

.ecosystem-footer a:hover {
  color: var(--eco-violet);
}

@media (max-width: 1180px) {
  .ecosystem-header-inner {
    width: min(100% - 36px, 1480px);
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 28px;
  }

  .ecosystem-nav {
    justify-content: flex-start;
  }

  .ecosystem-account {
    display: none;
  }

  body.ecosystem-course :is(.nav-inner, .navbar-content) {
    grid-template-columns: minmax(240px, auto) minmax(0, 1fr);
  }

  body.ecosystem-course :is(.learning-view, .lv) {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  body.ecosystem-course .arch-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.ecosystem-course .ds-key-area {
    display: none;
  }
}

@media (max-width: 920px) {
  body.ecosystem-course #live2dMiniIcon {
    display: none;
  }

  .ecosystem-header-inner {
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 20px;
  }

  .ecosystem-brand {
    min-height: 58px;
    display: flex;
    align-items: center;
  }

  .ecosystem-nav {
    justify-content: flex-start;
    margin: 0 -20px;
    padding: 0 20px;
  }

  .ecosystem-nav a {
    min-height: 46px;
    font-size: 0.82rem;
  }

  body.ecosystem-course .navbar {
    padding: 0 20px;
  }

  body.ecosystem-course :is(.nav-inner, .navbar-content) {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 0 8px;
  }

  body.ecosystem-course .logo {
    min-height: 44px;
  }

  body.ecosystem-course .nav-links {
    justify-content: flex-start;
    margin: 0 -20px;
    padding: 6px 20px 2px;
  }

  body.ecosystem-course :is(.stats, .stats-bar) {
    padding: 0 20px;
  }

  body.ecosystem-course :is(.stats-in, .stats-content) {
    min-height: 76px;
    gap: 24px;
  }

  body.ecosystem-course :is(.chapter-grid, .cg) {
    grid-template-columns: 1fr;
  }

  body.ecosystem-course :is(.learning-view, .lv) {
    grid-template-columns: 1fr;
  }

  body.ecosystem-course :is(.sidebar, .side) {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 2;
  }

  body.ecosystem-course .arch-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.ecosystem-course {
    font-size: 15px;
  }

  .ecosystem-header-inner {
    padding: 0 16px;
  }

  .ecosystem-nav {
    margin: 0 -16px;
    padding: 0 16px;
  }

  body.ecosystem-course .navbar {
    padding: 0 16px;
  }

  body.ecosystem-course :is(.nav-inner, .navbar-content) {
    padding-top: 9px;
  }

  body.ecosystem-course .logo {
    gap: 8px !important;
  }

  body.ecosystem-course .logo-icon {
    display: none;
  }

  .course-home {
    min-height: 36px;
    padding: 0 8px;
  }

  .course-return {
    min-height: 36px;
    padding: 0 10px;
  }

  body.ecosystem-course .nav-links {
    margin: 0 -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  body.ecosystem-course :is(.stats, .stats-bar) {
    padding: 0 16px;
  }

  body.ecosystem-course :is(.stats-in, .stats-content) {
    min-height: 68px;
    gap: 18px;
  }

  body.ecosystem-course :is(.si, .stat-item) {
    padding-right: 18px;
  }

  body.ecosystem-course :is(.si-v, .stat-value) {
    font-size: 1.08rem;
  }

  body.ecosystem-course :is(.mc, .main-container) {
    padding: 24px 16px 88px;
  }

  body.ecosystem-course :is(.arch-title, #practice-view > h2, #wrong-view > h2, #memorize-view > h2, #progress-view > h2) {
    font-size: 1.75rem;
  }

  body.ecosystem-course .arch-flow {
    padding-left: 22px;
  }

  body.ecosystem-course .arch-flow::before {
    left: 5px;
  }

  body.ecosystem-course .arch-layer-label::before {
    left: -21px;
  }

  body.ecosystem-course .arch-row {
    grid-template-columns: 1fr;
  }

  body.ecosystem-course :is(.chapter-card, .cc) {
    min-height: 0;
    padding: 20px;
  }

  body.ecosystem-course :is(.content-header, .ca-h) {
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
  }

  body.ecosystem-course :is(.chapter-title, .ct-t) {
    width: 100%;
    order: 2;
    font-size: 0.94rem;
  }

  body.ecosystem-course :is(.content-header, .ca-h) > div[style*="width"] {
    display: none;
  }

  body.ecosystem-course :is(.content-tabs, .c-tabs) {
    gap: 22px;
  }

  body.ecosystem-course :is(.tab-content, .tc) {
    padding-top: 24px;
  }

  body.ecosystem-course :is(.content-body, .cb) {
    max-width: none;
  }

  body.ecosystem-course :is(.content-body p, .cb p, .content-body li, .cb li) {
    font-size: 0.96rem;
  }

  body.ecosystem-course :is(.sidebar, .side) {
    grid-template-columns: 1fr;
  }

  body.ecosystem-course :is(.content-body table, .cb table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

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