@font-face {
  font-family: "营造题字";
  src: url("fonts/ma-shan-zheng-title.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+5E8F, U+65F6, U+8425, U+9020;
}
:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --surface: #fcfbf8;
  --ink: #201e1b;
  --muted: #625f55;
  --green: #2b4c43;
  --deep: #213d35;
  --wash: #e8efe9;
  --line: #c6cabe;
  --rule: #98a597;
  --brush: "营造题字", "STKaiti", "KaiTi", serif;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--deep); text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
button { font: inherit; cursor: pointer; }
.skip { position: absolute; top: 8px; left: 12px; z-index: 1; padding: 8px; background: var(--surface); }
.skip:not(:focus) { clip-path: inset(100%); }
.shell { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.mast { background: var(--surface); border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; min-height: 70px; }
.brand { font: 400 1.9rem/1.1 var(--brush); white-space: nowrap; color: var(--ink); text-decoration: none; }
.mast-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; }
.mast-nav a { padding: 8px 10px; text-decoration: none; }
.mast-nav a:is(:hover,[aria-current]) { border-radius: 999px; background: var(--wash); }
.home { padding-block: 36px 48px; }
.guide-map { background: var(--surface); padding: 24px clamp(16px,3.8vw,44px) 32px; border: 1px solid var(--line); border-radius: 10px; }
.map-center { display: grid; justify-items: center; padding-bottom: 22px; position: relative; }
.map-center::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 1px; height: 22px; background: var(--rule); }
.map-center h2 { margin: 0; border: 1px solid var(--green); background: var(--green); color: var(--surface); border-radius: 999px; padding: 8px 22px; font-size: 1rem; line-height: 1.5; }
.branches { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.branch { position: relative; padding-top: 20px; }
.branch::before { content: ""; position: absolute; inset: 0 -12px auto; border-top: 1px solid var(--rule); }
.branch:first-child::before { left: 50%; }
.branch:last-child::before { right: 50%; }
.branch::after { content: ""; position: absolute; top: 0; left: 50%; height: 20px; width: 1px; background: var(--rule); }
.branch h3 { display: block; margin: 0 0 8px; padding: 8px 12px; background: var(--wash); border-radius: 4px; font-size: 1rem; text-align: center; color: var(--deep); }
.branch a { display: block; border: 1px solid #d8dcd2; border-radius: 5px; padding: 9px 12px; text-decoration: none; font-size: .95rem; line-height: 1.35; font-weight: 600; }
.branch a + a { margin-top: 6px; }
.branch a:hover { background: var(--wash); border-color: var(--rule); }
.branch a span { float: right; }
.branch small { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); font-weight: 400; }
.footer { border-top: 1px solid var(--line); padding-block: 16px 24px; color: var(--muted); font-size: .8rem; }

.lesson { max-width: 780px; padding-block: 36px 56px; }
.lesson h1 { margin: 0 0 12px; font-size: clamp(2rem,5vw,3rem); line-height: 1.15; color: var(--deep); }
.lesson p, .lesson li { line-height: 1.75; }
.lesson-progress { margin: 24px 0 18px; padding: 12px 16px; background: var(--wash); border-radius: 6px; color: var(--deep); display: flex; gap: 12px; align-items: center; }
.lesson-progress progress { accent-color: var(--green); width: 100px; }
.route-step { padding: 24px; margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); scroll-margin-top: 16px; }
.route-step h2 { color: var(--deep); margin: 0 0 8px; font-size: 1.25rem; }
.route-step p { margin: 8px 0 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.action { display: inline-flex; align-items: center; width: fit-content; min-height: 42px; padding: 8px 12px; border: 1px solid var(--green); border-radius: 5px; color: var(--surface); background: var(--green); font-size: .875rem; text-decoration: none; }
.action:hover { background: var(--deep); }
.action.secondary { color: var(--deep); background: var(--surface); border-color: var(--rule); }
.action.secondary:hover { background: var(--wash); }
button.action:disabled { color: var(--muted); background: var(--paper); border-color: var(--line); cursor: default; }
.quiz { display: grid; gap: 12px; }
.quiz fieldset { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); }
.quiz legend { font-weight: 600; color: var(--deep); }
.quiz label { padding: 5px 0; line-height: 1.5; }
.quiz input { accent-color: var(--green); }
.quiz-result { background: var(--wash); border-radius: 5px; padding: 8px 12px; }
.sources { font-size: .875rem; color: var(--muted); }
@media (max-width: 660px) {
  .shell { width: calc(100% - 32px); }
  .mast-inner { align-items: flex-start; flex-direction: column; gap: 4px; padding: 12px 0 6px; }
  .mast-nav { gap: 0; justify-content: space-between; width: 100%; }
  .mast-nav a { padding: 7px; }
  .home { padding-block: 16px 28px; }
  .eyebrow { font-size: .75rem; letter-spacing: .06em; margin-bottom: 8px; }
  .hero-figure img { height: auto; max-height: 124px; }
  .hero-figure figcaption { font-size: .65rem; margin-bottom: 0; }
  .guide-map { padding: 14px 12px 16px; }
  .map-center { justify-items: start; padding-bottom: 12px; }
  .map-center::after { left: 10px; height: 12px; }
  .branches { grid-template-columns: 1fr; gap: 10px; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--rule); }
  .branch { padding: 0; }
  .branch h3 { text-align: left; }
  .branch::before { top: 17px; left: -12px !important; width: 12px; }
  .branch::after { display: none; }
  .branch a { min-height: 44px; }
  .lesson { padding-top: 24px; }
  .route-step { padding: 16px; }
}

.branch:focus-within h3, .branch:hover h3 { background: #d6e3d9; }
.branch h3, .branch a { transition: background-color .22s, border-color .22s; }
@media (prefers-reduced-motion: no-preference) {
  .map-center::after, .branch::after, .branch::before {
    animation: trace-guide .35s cubic-bezier(.22,1,.36,1) both;
  }
  .map-center::after, .branch::after { transform-origin: center top; --trace: scaleY(0); }
  .branch::before { transform-origin: center; --trace: scaleX(0); animation-delay: .12s; }
  .branch::after { animation-delay: .25s; }
  .branch a span { transition: transform .22s cubic-bezier(.22,1,.36,1); }
  .branch a:is(:hover,:focus-visible) span { transform: translate(2px,-2px); }
  @keyframes trace-guide {
    from { transform: var(--trace); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
}


@font-face {
  font-family: "建筑节点题字";
  src: url("fonts/ma-shan-zheng-buildings.woff2") format("woff2");
  font-display: swap;
}
.mind-showcase { background: #f6f1e7; }
.mind-demo-stage {
  background: radial-gradient(circle at 80% 24%, #7e8e7824, transparent 40%),
    radial-gradient(circle at 18% 78%, #9f95751f, transparent 44%);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  align-items: center; gap: clamp(24px, 4vw, 60px);
  min-height: 700px; padding-block: 56px 64px;
}
.mind-demo-copy h2 { margin: 16px 0; font: 600 clamp(1.9rem,3.4vw,2.75rem)/1.18 "Songti SC","STSong","SimSun",serif; }
.mind-demo-copy p { margin: 0 0 20px; font-size: 1rem; line-height: 1.75; color: #554e45; }
.mind-demo-copy .story-sticker { display: inline-flex; padding: 8px 16px; border-radius: 999px; background: #dce1d4; color: var(--deep); font-size: .875rem; box-shadow: 0 6px 18px #201e1b18; }
.mind-demo-copy .story-cta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mind-demo-copy .story-cta { display: inline-flex; align-items: center; min-height: 44px; border-radius: 999px; padding: 8px 16px; background: #e4ddca; color: #201e1b; text-decoration: none; font-size: .875rem; font-weight: 600; box-shadow: 0 8px 22px #201e1b25; }
.mind-demo-copy .cta-green { background: #40594c; color: #fcfbf8; }
.mind-demo-copy .story-cta:hover { box-shadow: 0 8px 22px #201e1b40; }
.mind-board-preview { position: relative; height: clamp(420px,47vw,570px); border-radius: 26px; background: radial-gradient(#201e1b1a 1px,transparent 1px) 0 0 / 20px 20px,#fcfbf8; border: 1px solid #201e1b1a; box-shadow: 0 18px 48px #201e1b1a; }
.mind-svg-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mind-branch-path { fill: none; stroke-width: 3; stroke-linecap: round; }
.mind-node-pill { position: absolute; transform: translate(-50%,-50%); white-space: nowrap; padding: 9px 13px; border-radius: 999px; text-decoration: none; font-size: .84rem; font-weight: 700; background: #dce1d4; color: var(--deep); box-shadow: 0 6px 17px #201e1b1f; }
.mind-node-pill:hover, .mind-node-pill:focus-visible { box-shadow: 0 8px 20px #201e1b33; }
.mind-node-root { background: #201e1b; color: #fcfbf8; font-size: 1rem; padding: 12px 18px; }
.mind-node-leaf { background: #fcfbf8; color: #201e1b; border: 1px solid #201e1b29; font: 400 .875rem/1.2 "KaiTi",serif; }
@media (prefers-reduced-motion: no-preference) {
  .mind-board-preview[data-drawn] .mind-branch-path { stroke-dasharray: 1; animation: draw-mind .62s cubic-bezier(.22,1,.36,1) both; }
  .mind-board-preview[data-drawn] .mind-branch-path:nth-child(n+5) { animation-delay: .12s; }
  .mind-node-pill { transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s; }
  .mind-node-pill:hover, .mind-node-pill:focus-visible { transform: translate(-50%,-50%) scale(1.06); }
  @keyframes draw-mind { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
@media (max-width: 850px) {
  .mind-demo-stage { grid-template-columns: 1fr; min-height: 0; padding-block: 32px; }
  .mind-board-preview { height: clamp(325px,63vw,510px); }
}
@media (max-width: 490px) {
  .mind-board-preview { border-radius: 14px; }
  .mind-node-pill { font-size: .72rem; padding: 8px 7px; }
  .mind-node-root { font-size: .8rem; padding: 8px 9px; }
}

.mind-board-preview[data-drawn] .mind-node-leaf { font-family: "建筑节点题字","KaiTi",serif; }
