:root {
  --ink: #24231f;
  --muted: #77766f;
  --soft-muted: #99988f;
  --line: #e6e5df;
  --paper: #ffffff;
  --wash: #f5f5f2;
  --green: #b7f26c;
  --green-deep: #21311b;
  --apricot: #ffe5cd;
  --blue: #dceeff;
  --lilac: #ebe5ff;
  --pink: #ffe7ea;
  --yellow: #fff2be;
  --shadow: 0 18px 60px rgba(33, 33, 25, 0.09);
  --font-sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.topbar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 24px 0 16px;
  border-bottom: 1px solid rgba(230, 229, 223, 0.55);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #0d1809;
  font-size: 17px;
  font-weight: 900;
}

.brand-divider,
.action-divider {
  width: 1px;
  height: 22px;
  background: #d7d6d0;
}

.brand-title {
  overflow: hidden;
  font-size: 16px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-emoji {
  margin-right: 6px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #56564f;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--wash);
}

.menu-button span {
  margin-top: -6px;
  font-size: 20px;
  letter-spacing: 2px;
}

.search-glyph {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-glyph::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(48deg);
  transform-origin: left center;
}

.search-glyph.small {
  width: 15px;
  height: 15px;
  color: var(--soft-muted);
}

.page-menu {
  position: absolute;
  top: 56px;
  right: 62px;
  display: grid;
  width: 180px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow);
}

.page-menu a,
.page-menu button {
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.page-menu a:hover,
.page-menu button:hover {
  background: var(--wash);
}

.hero {
  display: flex;
  min-height: 530px;
  padding: 128px 28px 72px;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  text-align: center;
  background:
    radial-gradient(circle at 50% 80%, rgba(183, 242, 108, 0.13), transparent 30%),
    linear-gradient(#fff, #fff);
}

.hero-eyebrow,
.section-kicker,
.books-kicker,
.article-kicker {
  margin: 0 0 15px;
  color: #8a897f;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero-subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 19px);
  letter-spacing: 0.03em;
}

.content-shell,
.article-shell {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
}

.notice-card {
  display: flex;
  min-height: 64px;
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.notice-main {
  font-weight: 750;
}

.notice-side {
  color: #e8611c;
  text-align: right;
}

.section-heading {
  margin: 74px 0 24px;
}

.compact-heading {
  margin-top: 54px;
}

.section-heading h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.directory-list {
  display: grid;
  gap: 10px;
}

.directory-card {
  position: relative;
  display: grid;
  min-height: 92px;
  padding: 18px 58px 18px 20px;
  align-items: center;
  grid-template-columns: 46px 1fr;
  border: 1px solid #e5e5e2;
  border-radius: 8px;
  background: var(--card-color, #f4f4f2);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.directory-card:hover {
  z-index: 1;
  border-color: #c8c7c0;
  box-shadow: 0 10px 30px rgba(39, 39, 31, 0.08);
  transform: translateY(-2px);
}

.directory-icon {
  font-size: 29px;
  filter: saturate(0.88);
}

.directory-copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 700;
}

.directory-copy span {
  color: #96958f;
  font-size: 13px;
}

.directory-arrow {
  position: absolute;
  top: 50%;
  right: 22px;
  color: #aaa9a2;
  font-size: 19px;
  opacity: 0;
  transform: translate(-5px, -50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.directory-card:hover .directory-arrow {
  opacity: 1;
  transform: translate(0, -50%);
}

.feedback-section {
  margin-top: 76px;
}

.banner-title {
  display: flex;
  min-height: 64px;
  padding: 10px 22px;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  background: var(--apricot);
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.feedback-card {
  display: grid;
  margin-top: 8px;
  padding: 22px;
  align-items: start;
  grid-template-columns: 28px 1fr;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
}

.feedback-card h2 {
  margin: 1px 0 8px;
  font-size: 15px;
  line-height: 1.65;
}

.feedback-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.feedback-bulb {
  padding-top: 1px;
}

.text-link {
  margin: 15px 0 0 28px;
  color: #e65c19;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.books-showcase {
  margin: 18px 0 100px;
  padding-top: 18px;
}

.books-hero {
  display: flex;
  min-height: 220px;
  padding: 48px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: #f3f3f1;
}

.books-hero h2 {
  margin: 0 0 12px;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.books-hero p:last-child {
  display: inline-block;
  margin: 0;
  padding: 6px 10px;
  border-radius: 4px;
  color: #fff;
  background: #161614;
  font-size: 13px;
}

.line-books {
  display: flex;
  height: 92px;
  align-items: flex-end;
  gap: 5px;
  transform: rotate(4deg);
}

.line-books span {
  display: block;
  width: 13px;
  height: 72px;
  border: 1.5px solid #6b6b66;
  background: #fff;
}

.line-books span:nth-child(2) {
  height: 86px;
}

.line-books span:nth-child(3) {
  width: 17px;
  height: 78px;
}

.line-books span:nth-child(4) {
  height: 90px;
  margin-left: 6px;
  transform: rotate(-15deg);
  transform-origin: bottom;
}

.book-preview-grid {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.book-cover {
  position: relative;
  display: flex;
  min-height: 178px;
  padding: 16px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(22, 22, 20, 0.1);
  border-radius: 4px;
  color: var(--book-ink, #24231f);
  background: var(--book-color, #ece8dd);
}

.book-cover::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.18;
}

.book-cover small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.book-cover strong {
  position: relative;
  z-index: 1;
  max-width: 88px;
  font-size: 20px;
  line-height: 1.25;
}

.wide-link {
  display: flex;
  margin-top: 10px;
  padding: 15px 18px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.wide-link:hover {
  border-color: #bcbab1;
  background: var(--wash);
}

.site-footer {
  display: flex;
  padding: 28px 0 40px;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--soft-muted);
  font-size: 11px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.article-cover {
  min-height: 300px;
  margin-top: 64px;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.88), transparent 24%),
    linear-gradient(135deg, var(--cover-a, #eef7e4), var(--cover-b, #f9f9f5));
}

.article-shell {
  margin-top: -62px;
  padding-bottom: 100px;
}

.breadcrumb {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.article-heading {
  padding: 44px 46px 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 45px rgba(35, 35, 27, 0.07);
}

.article-icon {
  display: block;
  margin-bottom: 25px;
  font-size: 42px;
}

.article-heading h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 58px);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.article-intro {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.article-callout {
  margin: 14px 0 42px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--callout, var(--green));
  border-radius: 8px;
  color: #56554f;
  background: #fafaf8;
  font-size: 14px;
  line-height: 1.75;
}

.article-section {
  margin-top: 48px;
}

.article-section-label {
  margin: 0 0 8px;
  color: var(--soft-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.article-section h2 {
  margin: 0 0 10px;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.article-section > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

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

.chapter-card {
  display: block;
  min-height: 198px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--chapter-bg, #f5f5f2);
}

.chapter-link {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.chapter-link:hover {
  border-color: #bdbcb4;
  box-shadow: 0 10px 26px rgba(34, 34, 28, 0.07);
  transform: translateY(-2px);
}

.chapter-card .chapter-number {
  display: flex;
  width: 28px;
  height: 28px;
  margin-bottom: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.chapter-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.chapter-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.chapter-open {
  display: flex;
  margin-top: 18px;
  align-items: center;
  justify-content: space-between;
  color: #45443e;
  font-size: 11px;
  font-weight: 800;
}

.lesson-heading-row {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.lesson-heading-row h2 {
  margin-bottom: 8px;
}

.lesson-heading-row p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.lesson-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.lesson-actions button {
  padding: 8px 11px;
  border: 1px solid #cfcec7;
  border-radius: 7px;
  color: #55544e;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.lesson-actions button:hover {
  border-color: #8f8e87;
  color: var(--ink);
}

.lesson-list {
  display: grid;
  gap: 10px;
}

.lesson-card {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.lesson-card[open] {
  border-color: #b8b7af;
  box-shadow: 0 12px 34px rgba(34, 34, 28, 0.06);
}

.lesson-card summary {
  display: grid;
  min-height: 84px;
  padding: 18px 20px;
  align-items: center;
  grid-template-columns: 38px 1fr 28px;
  gap: 12px;
  background: #fafaf8;
  cursor: pointer;
  list-style: none;
}

.lesson-card summary::-webkit-details-marker {
  display: none;
}

.lesson-number {
  color: #99988f;
  font-size: 11px;
  font-weight: 850;
}

.lesson-summary-copy {
  display: grid;
  gap: 5px;
}

.lesson-summary-copy strong {
  font-size: 15px;
  line-height: 1.5;
}

.lesson-summary-copy small {
  color: var(--soft-muted);
  font-size: 10px;
}

.lesson-toggle {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid #d4d3cc;
  border-radius: 50%;
  background: #fff;
}

.lesson-toggle::before,
.lesson-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1px;
  background: #57564f;
  content: "";
  transform: translate(-50%, -50%);
}

.lesson-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 160ms ease;
}

.lesson-card[open] .lesson-toggle::after {
  transform: translate(-50%, -50%) rotate(0);
}

.lesson-body {
  display: grid;
  padding: 8px 28px 28px 70px;
  gap: 22px;
  border-top: 1px solid #ecebe6;
}

.lesson-section {
  padding-top: 20px;
}

.lesson-section + .lesson-section {
  border-top: 1px dashed #deddd6;
}

.lesson-section h3 {
  margin: 0 0 11px;
  font-size: 14px;
  line-height: 1.5;
}

.lesson-section p {
  margin: 0 0 10px;
  color: #57564f;
  font-size: 13px;
  line-height: 1.9;
}

.lesson-section p:last-child {
  margin-bottom: 0;
}

.detail-toolbar {
  display: flex;
  margin: 28px 0 0;
  padding: 13px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafaf8;
  color: var(--muted);
  font-size: 12px;
}

.detail-toolbar a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.detail-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.detail-item {
  display: grid;
  min-height: 58px;
  padding: 13px 15px;
  align-items: center;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  line-height: 1.55;
}

.detail-number {
  color: var(--soft-muted);
  font-size: 10px;
  font-weight: 850;
}

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

.method-card {
  display: grid;
  min-height: 126px;
  padding: 19px;
  grid-template-columns: 32px 1fr;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f4;
}

.method-card > span {
  color: var(--soft-muted);
  font-size: 10px;
  font-weight: 850;
}

.method-card h3 {
  margin: 0 0 7px;
  font-size: 14px;
}

.method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.scenario-list,
.model-list {
  display: grid;
  gap: 10px;
}

.scenario-card {
  display: grid;
  padding: 18px;
  align-items: start;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffaf8;
}

.scenario-index {
  color: #a4655f;
  font-size: 10px;
  font-weight: 850;
}

.scenario-card h3 {
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.55;
}

.scenario-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.scenario-card button,
.topic-detail-heading button,
.topic-question button {
  padding: 7px 10px;
  border: 1px solid #cfcec7;
  border-radius: 6px;
  color: #4f4e48;
  background: #fff;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.scenario-card button:hover,
.topic-detail-heading button:hover,
.topic-question button:hover {
  border-color: #8f8e87;
  color: var(--ink);
}

.model-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.model-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffcf2;
}

.model-card-top {
  display: flex;
  margin-bottom: 16px;
  align-items: baseline;
  gap: 11px;
}

.model-card-top span {
  color: #a48435;
  font-size: 10px;
  font-weight: 850;
}

.model-card h3 {
  margin: 0;
  font-size: 17px;
}

.model-card > strong {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
}

.model-card > p,
.model-example {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.model-example {
  margin-top: 15px;
  padding: 12px;
  border-radius: 7px;
  background: rgba(239, 211, 128, 0.22);
}

.model-example small {
  display: block;
  margin-bottom: 4px;
  color: #877031;
  font-weight: 800;
}

.topic-detail-heading {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.topic-detail-heading h2 {
  margin-bottom: 0;
}

.topic-detail-heading button {
  flex: 0 0 auto;
}

.topic-library {
  display: grid;
  gap: 8px;
}

.topic-section-heading {
  margin: 30px 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.topic-section-heading:first-child {
  margin-top: 0;
}

.topic-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid #7bc8ac;
  color: var(--muted);
  background: #f1f8f5;
  font-size: 12px;
  line-height: 1.7;
}

.topic-question {
  display: grid;
  min-height: 56px;
  padding: 11px 13px;
  align-items: center;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.topic-question p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.topic-number {
  color: #5e927f;
  font-size: 10px;
  font-weight: 850;
}

.detail-pagination {
  display: grid;
  margin-top: 64px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-pagination a {
  display: grid;
  min-height: 92px;
  padding: 18px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: #fafaf8;
  text-decoration: none;
}

.detail-pagination a:last-child {
  text-align: right;
}

.detail-pagination small {
  margin-bottom: 7px;
  color: var(--soft-muted);
}

.detail-pagination strong {
  font-size: 13px;
}

.practice-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.practice-list li {
  display: grid;
  padding: 16px 18px;
  align-items: start;
  grid-template-columns: 24px 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
}

.practice-list li span:first-child {
  color: #58a126;
  font-weight: 900;
}

.script-list {
  display: grid;
  gap: 10px;
}

.script-card {
  position: relative;
  padding: 18px 78px 18px 18px;
  border-radius: 8px;
  color: #f8f8f4;
  background: #24231f;
  font-size: 13px;
  line-height: 1.75;
}

.script-card small {
  display: block;
  margin-bottom: 5px;
  color: #aaa99f;
}

.copy-script {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 9px;
  border: 1px solid #55544e;
  border-radius: 6px;
  color: #deddd6;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.copy-script:hover {
  border-color: #8b8a81;
  color: #fff;
}

.mind-flow {
  display: grid;
  gap: 9px;
}

.mind-step {
  position: relative;
  display: grid;
  min-height: 74px;
  padding: 16px 20px;
  align-items: center;
  grid-template-columns: 42px 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mind-step:not(:last-child)::after {
  position: absolute;
  z-index: -1;
  bottom: -11px;
  left: 35px;
  width: 1px;
  height: 12px;
  background: #c9c8c1;
  content: "";
}

.mind-step strong {
  font-size: 14px;
}

.mind-step p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.mind-index {
  color: var(--soft-muted);
  font-size: 11px;
  font-weight: 850;
}

.topic-generator {
  display: grid;
  padding: 28px;
  justify-items: start;
  border-radius: 10px;
  color: #fff;
  background: #24231f;
}

.topic-generator p {
  min-height: 58px;
  margin: 0 0 24px;
  font-size: 21px;
  font-weight: 720;
  line-height: 1.5;
}

.topic-generator button {
  padding: 9px 13px;
  border: 0;
  border-radius: 7px;
  color: #17230f;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.resource-box {
  display: flex;
  padding: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #cbdced;
  border-radius: 8px;
  background: var(--blue);
}

.resource-box strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.resource-box span {
  color: #687683;
  font-size: 12px;
}

.resource-box button {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid #9bb2c7;
  border-radius: 7px;
  color: #263847;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.article-end {
  display: grid;
  margin-top: 80px;
  padding-top: 34px;
  justify-items: center;
  border-top: 1px solid var(--line);
  text-align: center;
}

.article-end > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
}

.article-end p {
  margin: 16px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.article-end a {
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  z-index: 50;
  right: 26px;
  bottom: 26px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0 0 6px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 35px rgba(33, 33, 25, 0.1);
  font-size: 24px;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.search-dialog {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  padding: 5vh 14px 20px;
  place-items: start center;
  overflow: auto;
  border: 0;
  background: rgba(32, 32, 27, 0.34);
  backdrop-filter: blur(3px);
}

.search-dialog[hidden] {
  display: none;
}

.search-panel {
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  padding: 20px;
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(25, 25, 18, 0.24);
}

.search-header {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
}

.search-header label {
  font-size: 14px;
  font-weight: 800;
}

.close-button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: var(--wash);
  font-size: 20px;
  cursor: pointer;
}

.search-input-wrap {
  display: grid;
  padding: 0 13px;
  align-items: center;
  grid-template-columns: 22px 1fr auto;
  border: 1.5px solid #c8c7c0;
  border-radius: 9px;
}

.search-input-wrap:focus-within {
  border-color: #7d7c74;
  box-shadow: 0 0 0 3px rgba(183, 242, 108, 0.25);
}

.search-input-wrap input {
  height: 46px;
  border: 0;
  outline: 0;
}

.search-input-wrap kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--soft-muted);
  background: var(--wash);
  font-size: 9px;
}

.search-results {
  display: grid;
  max-height: 490px;
  margin-top: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  gap: 5px;
}

.search-result {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px;
  grid-template-columns: 32px 1fr;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.search-result > span:last-child {
  min-width: 0;
}

.search-result:hover {
  background: var(--wash);
}

.search-result strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.search-result small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-empty {
  padding: 40px 10px;
  color: var(--soft-muted);
  font-size: 13px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 150;
  bottom: 28px;
  left: 50%;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: #24231f;
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  left: 20px;
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  color: #fff;
  background: #24231f;
  text-align: center;
}

@media (max-width: 720px) {
  .topbar {
    height: 58px;
    padding: 0 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-divider {
    display: none;
  }

  .brand-title {
    max-width: 175px;
    font-size: 14px;
  }

  .brand-emoji {
    display: none;
  }

  .top-actions {
    gap: 4px;
  }

  .action-divider {
    display: none;
  }

  .page-menu {
    top: 53px;
    right: 10px;
  }

  .hero {
    min-height: 410px;
    padding-top: 110px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-subtitle {
    max-width: 280px;
    font-size: 14px;
    line-height: 1.7;
  }

  .content-shell,
  .article-shell {
    width: min(100% - 24px, 760px);
  }

  .notice-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .notice-side {
    padding-left: 24px;
    text-align: left;
  }

  .directory-card {
    min-height: 88px;
  }

  .directory-arrow {
    display: none;
  }

  .feedback-card {
    grid-template-columns: 24px 1fr;
  }

  .text-link {
    grid-column: 2;
    margin-left: 0;
  }

  .banner-title {
    font-size: 24px;
  }

  .books-hero {
    min-height: 190px;
    padding: 30px;
  }

  .books-hero h2 {
    font-size: 34px;
  }

  .line-books {
    transform: scale(0.75) rotate(4deg);
  }

  .book-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-cover {
    min-height: 165px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }

  .article-cover {
    min-height: 230px;
    margin-top: 58px;
  }

  .article-shell {
    margin-top: -48px;
  }

  .article-heading {
    padding: 34px 26px 30px;
  }

  .article-heading h1 {
    font-size: 38px;
  }

  .article-intro {
    font-size: 14px;
  }

  .chapter-grid {
    grid-template-columns: 1fr;
  }

  .chapter-card {
    min-height: 160px;
  }

  .chapter-card .chapter-number {
    margin-bottom: 22px;
  }

  .lesson-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .lesson-card summary {
    min-height: 78px;
    padding: 15px;
    grid-template-columns: 28px 1fr 26px;
    gap: 8px;
  }

  .lesson-summary-copy strong {
    font-size: 14px;
  }

  .lesson-body {
    padding: 4px 18px 22px 51px;
    gap: 16px;
  }

  .lesson-section p {
    font-size: 12px;
  }

  .detail-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .detail-list,
  .method-grid,
  .model-list,
  .detail-pagination {
    grid-template-columns: 1fr;
  }

  .method-card {
    min-height: auto;
  }

  .scenario-card {
    grid-template-columns: 30px 1fr;
  }

  .scenario-card button {
    grid-column: 2;
    width: max-content;
  }

  .topic-detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .topic-question {
    grid-template-columns: 32px 1fr;
  }

  .topic-question button {
    grid-column: 2;
    width: max-content;
  }

  .detail-pagination a:last-child {
    text-align: left;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }

  .resource-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .topbar,
  .back-to-top,
  .page-menu,
  .search-dialog,
  .toast {
    display: none !important;
  }

  .article-cover {
    min-height: 80px;
    margin-top: 0;
  }

  .article-shell {
    width: 100%;
    margin-top: 0;
  }

  .article-heading {
    padding: 30px 0;
    border: 0;
    box-shadow: none;
  }

  .chapter-card,
  .practice-list li,
  .script-card {
    break-inside: avoid;
  }

  .home-view .hero {
    min-height: 280px;
  }
}
