:root {
  --paper: #FFF8EE;
  --paper-2: #FDF1E1;
  --card: #FFFFFF;
  --ink: #2A2320;
  --ink-2: #6B615A;
  --ink-3: #A1968C;
  --line: #F0E3D0;
  --line-2: #F7EDDE;
  --brand: #D8452F;
  --brand-dark: #B93521;
  --brand-soft: #FCEAE4;
  --green: #2E7D64;
  --green-soft: #E7F3EE;
  --gold: #F2A93B;
  --blue: #3E7CB1;

  --kai: "Kaiti SC", "KaiTi", "STKaiti", "楷体", "FandolKai", serif;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;

  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow: 0 12px 32px rgba(126, 84, 40, .09);
  --shadow-sm: 0 4px 14px rgba(126, 84, 40, .07);
  --max: 1080px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
main.wrap { padding-top: 12px; padding-bottom: 88px; min-height: 60vh; }

h1 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.25; font-weight: 800; letter-spacing: -.02em; margin: 34px 0 10px; }
h2 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
p { margin: 8px 0; }

.muted { color: var(--ink-3); }
.lede { color: var(--ink-2); font-size: 17px; margin: 0 0 6px; }
.label { color: var(--ink-3); font-size: 13px; margin: 16px 0 8px; letter-spacing: .04em; }
.eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: .16em; color: var(--brand);
  background: var(--brand-soft); padding: 4px 11px; border-radius: 999px; margin: 0 0 16px;
  font-weight: 600;
}

code { background: var(--paper-2); padding: .1em .4em; border-radius: 5px; font-size: .88em; }
pre {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; overflow-x: auto; line-height: 1.6; font-size: 14px;
}
pre code { background: none; padding: 0; }

/* ---------------- 顶栏 ---------------- */
header.site {
  background: rgba(255, 248, 238, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-2);
  position: sticky; top: 0; z-index: 30;
}
header.site .wrap { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .04em; }
.brand:hover { color: var(--ink); }
.brand-tile {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand);
  color: #fff; display: grid; place-items: center;
  font-family: var(--kai); font-size: 21px; line-height: 1;
  box-shadow: 0 4px 12px rgba(216, 69, 47, .28);
}
header.site nav { display: flex; gap: 22px; margin-left: auto; }
header.site nav a { font-size: 15px; color: var(--ink-2); font-weight: 500; }
header.site nav a:hover { color: var(--brand); }
.search input {
  font: inherit; font-size: 14px; width: 9.5em;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); transition: .18s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); width: 11em; }

/* ---------------- 通用 ---------------- */
.crumbs { margin-top: 24px; font-size: 13.5px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }

.note { font-size: 14px; color: var(--ink-3); margin: 10px 0 0; }
.note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

.progress { margin-top: 22px; padding: 12px 16px; border-radius: var(--r-md); background: var(--brand-soft); font-size: 14px; color: var(--ink-2); }
.progress a { color: var(--brand); font-weight: 600; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 46px 0 16px;
}
.section-head h1, .section-head h2 { margin: 0; }
.section-head h1 { font-size: 30px; }
.section-head .muted { font-size: 13.5px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink-2);
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: .16s;
  white-space: nowrap;
}
.btn:hover { border-color: #E2D2BB; color: var(--ink); transform: translateY(-1px); }
.btn.small { padding: 4px 11px; font-size: 13px; border-radius: 9px; }
.btn.primary {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 6px 16px rgba(216, 69, 47, .26);
}
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.lg { padding: 14px 30px; font-size: 16.5px; border-radius: 15px; }
.btn.ghost { background: transparent; }
.btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.toggle {
  padding: 6px 12px; border: 0; border-radius: 10px; background: transparent;
  font: inherit; font-size: 13.5px; color: var(--ink-3); cursor: pointer;
}
.toggle:hover { color: var(--ink); background: var(--paper-2); }
.toggle .off, html.hide-py .toggle .on { display: none; }
html.hide-py .toggle .off { display: inline; }
html.hide-py .py, html.hide-py .hero-py, html.hide-py .fc-front { visibility: hidden; }

/* ---------------- 田字格 ---------------- */
.tzg {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: var(--s, 64px); height: var(--s, 64px);
  border: 1.5px solid #E7CDB2; border-radius: 8px;
  background: #fffdf8;
  font-family: var(--kai); font-size: calc(var(--s, 64px) * .72);
  line-height: 1; color: var(--ink); flex: none;
}
.tzg::before, .tzg::after {
  content: ""; position: absolute; pointer-events: none;
  border-style: dashed; border-color: #EBD9C2; border-width: 0;
}
.tzg::before { left: 50%; top: 0; bottom: 0; border-left-width: 1px; }
.tzg::after { top: 50%; left: 0; right: 0; border-top-width: 1px; }
.tzg > svg { width: 100%; height: 100%; }
.tzg.big { --s: 132px; border-width: 2px; border-color: var(--brand); }
.tzg.writer { --s: 190px; border-width: 2px; border-color: var(--brand); }
.tzg.step { --s: 34px; border-color: #EFE0CB; }
.tzg.tx-box { --s: 44px; border-color: #C9B79C; }

.zi { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; flex: none; }
.zi .py { font-size: 12.5px; line-height: 1; color: var(--ink-3); letter-spacing: .02em; height: 1em; }
.zi:hover .tzg { border-color: var(--brand); }
.zi:hover .py { color: var(--brand); }
.zi.small .tzg { --s: 46px; }
.zi.small .py { font-size: 11px; }
.zi.current .tzg { border-color: var(--brand); background: var(--brand-soft); }

.grid { display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: flex-start; }
.mini-grid { display: flex; flex-wrap: wrap; gap: 10px 12px; }

/* ---------------- 首页 ---------------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 34px 0 10px; }
.hero h1 { margin: 0 0 16px; }
.hero-sub { font-size: 17.5px; color: var(--ink-2); margin: 0 0 26px; max-width: 30em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-meta { font-size: 14px; color: var(--ink-3); margin: 18px 0 0; }
.hero-visual { display: flex; justify-content: center; }

.demo-card {
  background: var(--card); border-radius: 28px; padding: 22px;
  box-shadow: var(--shadow); border: 1px solid #FBEFDD;
  width: 320px; transform: rotate(-1.2deg);
}
.demo-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.demo-pill { font-size: 12.5px; color: var(--ink-3); background: var(--paper-2); border-radius: 999px; padding: 4px 10px; }
.demo-stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.demo-writer { display: flex; justify-content: center; }
.demo-caption { text-align: center; font-size: 13px; color: var(--ink-3); margin: 12px 0 0; }
.demo-py { text-align: center; font-size: 20px; color: var(--brand); margin: 8px 0 0; letter-spacing: .04em; }

.cont { margin: 34px 0 0; }
.cont-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.cont-k { font-size: 12.5px; color: var(--brand); margin: 0 0 4px; letter-spacing: .1em; font-weight: 700; }
.cont-t { font-size: 20px; margin: 0 0 2px; }
.cont-s { font-size: 14px; color: var(--ink-3); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow-sm);
}
.step-n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.step-card:nth-child(1) .step-n { background: var(--brand-soft); color: var(--brand); }
.step-card:nth-child(2) .step-n { background: var(--green-soft); color: var(--green); }
.step-card:nth-child(3) .step-n { background: #FDF1DC; color: #B87A18; }
.step-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 16px; }
.book-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px;
  transition: .16s; box-shadow: var(--shadow-sm);
}
.book-card:hover { transform: translateY(-2px); border-color: #E7D3B8; }
.book-card .bk-grade { font-size: 12.5px; color: var(--ink-3); letter-spacing: .06em; }
.book-card .bk-name { font-size: 19px; font-weight: 700; margin: 2px 0 8px; }
.book-card .bk-meta { font-size: 13px; color: var(--ink-3); }
.book-card.pending { opacity: .5; box-shadow: none; }

/* ---------------- 课本页 ---------------- */
.book-meta { color: var(--ink-3); font-size: 14.5px; margin: 2px 0 0; }
.unit { margin-top: 42px; }
.unit-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.unit-head h2 { font-size: 15px; color: var(--ink-3); font-weight: 600; letter-spacing: .06em; }
.unit-tools { display: flex; gap: 2px; margin-left: auto; }
.section-head .tools .btn, .unit-tools .btn {
  border-color: transparent; background: none; color: var(--ink-3); box-shadow: none; padding: 3px 9px;
}
.section-head .tools .btn:hover, .unit-tools .btn:hover { background: var(--paper-2); color: var(--ink); transform: none; }

.lessons { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.lessons li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); }
.lessons li:last-child { border-bottom: 0; }
.lessons .ls-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 14px; padding: 15px 18px; }
.lessons .t { font-size: 16.5px; font-weight: 600; flex: none; }
.lessons .ls-main:hover .t { color: var(--brand); }
.lessons .n { margin-left: auto; color: var(--ink-3); font-size: 13px; flex: none; font-variant-numeric: tabular-nums; }
.lessons .ls-go {
  margin-right: 14px; flex: none; font-size: 13.5px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 5px 14px; transition: .15s;
}
.lessons .ls-go:hover { background: var(--brand); color: #fff; }

/* ---------------- 课文页 ---------------- */
.lesson-meta { color: var(--ink-3); font-size: 14px; }
.lesson-meta span + span::before { content: "·"; margin: 0 .55em; color: #D9C9B2; }
.word-row { display: flex; gap: 16px; align-items: flex-start; padding: 10px 0; }
.word-row > .zi { margin-top: 3px; }
.word-row .words { margin: 0; }

/* ---------------- 字页 ---------------- */
.char-layout { display: grid; grid-template-columns: 250px 1fr; gap: 52px; align-items: start; margin-top: 30px; }
.char-main { min-width: 0; }
.char-aside { position: sticky; top: 90px; }
.hero-char { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-py { font-size: 24px; color: var(--ink); margin: 0; letter-spacing: .03em; font-weight: 600; }
.hero-radical { font-size: 13.5px; color: var(--ink-3); margin: 0; }
.char-section { margin-top: 40px; }
.char-section:first-child { margin-top: 0; }
.char-section > h2 { font-size: 15px; color: var(--ink-3); font-weight: 700; letter-spacing: .08em; margin-bottom: 14px; }
.reading { padding: 2px 0 4px; }
.reading-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.py-tag { font-size: 19px; color: var(--brand); font-weight: 600; letter-spacing: .03em; }
.reading-meta { color: var(--ink-3); font-size: 13.5px; }
.reading-extra {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 13.5px; color: var(--ink-3);
}
.reading-extra .py-tag { font-size: 16px; color: var(--ink-2); }

.words { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 10px 0 0; }
.words li {
  padding: 5px 13px; border-radius: 10px; background: var(--paper-2);
  font-size: 16px; color: var(--ink); transition: .12s;
}
html.can-say .words li { cursor: pointer; }
html.can-say .words li:hover { background: var(--brand-soft); color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 0; }
.chip {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 4px 12px; border-radius: 10px; background: var(--paper-2);
  color: var(--ink); font-family: var(--kai); font-size: 19px; transition: .12s;
}
.chip small { font-family: var(--sans); font-size: 11px; color: var(--ink-3); }
.chip:hover { background: var(--brand-soft); color: var(--brand); }
.chip.big { font-size: 22px; }

.hx-grid { display: flex; flex-wrap: wrap; gap: 18px; }
.hx-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hx-part { font-size: 11.5px; color: var(--ink-3); }

.bishun { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.bishun-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.bishun-ctl .muted { flex-basis: 100%; font-size: 12.5px; min-height: 1.2em; margin: 2px 0 0; }
.bishun-steps { display: flex; flex-wrap: wrap; gap: 5px; }
.more-words { margin-top: 12px; }
.more-words summary { cursor: pointer; font-size: 13.5px; color: var(--ink-3); }
.more-words summary:hover { color: var(--brand); }
.more-words[open] summary { margin-bottom: 10px; }

/* ---------------- 复习 ---------------- */
.review-lesson { margin-top: 34px; }
.review-lesson h2 { font-size: 16px; }
.review-lesson h2 a:hover { color: var(--brand); }
.review-lesson .grid { margin-top: 12px; }

/* ---------------- 复习卡 ---------------- */
.cards-modes { display: flex; gap: 6px; }
.fc-deck { margin-top: 30px; max-width: 540px; }
.cards-count { font-size: 13.5px; color: var(--ink-3); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.fc {
  height: 260px; border: 1px solid var(--line); border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center; cursor: pointer; outline: none;
  background: var(--card); box-shadow: var(--shadow);
}
.fc:focus-visible { border-color: var(--brand); }
.fc-front { font-family: var(--kai); font-size: 7rem; line-height: 1; }
.fc-back .big-py { font-size: 2.8rem; color: var(--brand); line-height: 1.2; }
.fc-back .words { justify-content: center; }
.cards-ctl { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.cards-ctl .btn { padding: 12px 20px; }
.cards-ctl .btn.primary, .cards-ctl .btn.danger { flex: 1 1 110px; }
.cards-done { margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.cards-tools { margin-top: 14px; }
kbd {
  font-family: var(--sans); font-size: 11px; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; margin-left: 5px;
}

/* ---------------- 打印页 ---------------- */
.tx-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 8px 0 0; font-size: 14px; color: var(--ink-3); }
.tx-controls label { display: inline-flex; align-items: center; gap: 7px; }
select {
  font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; color: var(--ink);
}
.sheet {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 36px; margin-top: 26px; box-shadow: var(--shadow-sm);
}
.sheet h1 { margin: 0 0 4px; font-size: 24px; }
.sheet .sub { color: var(--ink-3); font-size: 13.5px; margin: 0; }
.tx-meta { color: var(--ink-3); font-size: 13.5px; margin: 16px 0 24px; }
.tx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 20px 12px; list-style: none; padding: 0; margin: 0; }
.tx-grid li { display: flex; flex-direction: column; gap: 7px; }
.tx-py { font-size: 13.5px; color: var(--ink-2); }
.tx-py .tx-no { color: var(--brand); margin-right: 5px; font-variant-numeric: tabular-nums; }
.tx-boxes { display: flex; gap: 3px; }
.mh-row { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.mh-py { width: 4.6em; font-size: 12.5px; color: var(--ink-3); text-align: right; flex: none; }
.mh-cell { --s: 44px; }
.mh-cell.trace { color: #E2D9C9; }
.answers-page { page-break-before: always; break-before: page; margin-top: 46px; }
.answers-page h2 { font-size: 18px; margin-bottom: 16px; }

/* ---------------- 说明页 ---------------- */
table.plain { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
table.plain th, table.plain td { border-bottom: 1px solid var(--line); padding: 11px 12px 11px 0; text-align: left; vertical-align: top; }
table.plain th { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 14px; }
.feat p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ---------------- 查字 ---------------- */
.search.big { margin: 24px 0; }
.search.big input {
  width: 100%; margin: 0; padding: 15px 20px; border-radius: 16px; font-size: 17px;
  background: #fff; border: 1.5px solid var(--line);
}
.results { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 14px; }
.result-row { display: flex; align-items: center; gap: 16px; }

/* ---------------- 拼音表 ---------------- */
.letter-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 10px; }
.letter-nav a { padding: 5px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); background: var(--paper-2); }
.letter-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.py-group { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.py-group .py-tag { width: 4.4em; flex: none; font-size: 15px; color: var(--ink-2); }
.py-group .chips { margin: 0; }
.duoyin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 32px; margin-top: 28px; }
.duoyin { display: flex; gap: 14px; align-items: flex-start; }
.duoyin .tzg { --s: 48px; }
.duoyin-body { min-width: 0; }
.duoyin-row { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; line-height: 1.9; }
.duoyin-row .r { flex: none; width: 3em; color: var(--ink); font-weight: 600; }
.duoyin-row .muted { font-size: 12.5px; }

/* ---------------- 学习报告 ---------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 28px 0 8px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm);
}
.stat b { font-size: 32px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--brand); }
.stat span { font-size: 13px; color: var(--ink-3); }
.wrong-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.wrong-item {
  width: 84px; height: 92px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; box-shadow: var(--shadow-sm);
}
.wrong-item:hover { border-color: var(--brand); transform: translateY(-2px); }
.w-char { font-family: var(--kai); font-size: 30px; line-height: 1; }
.w-n { font-size: 11px; color: var(--ink-3); }
.recent { list-style: none; padding: 0; margin: 10px 0; }
.recent li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 15.5px;
}
.recent .muted { font-size: 12.5px; }
.empty { text-align: center; padding: 64px 0 40px; color: var(--ink-3); }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 46px 0 10px; }
.sec-head h2 { font-size: 20px; }
.link-quiet { font-size: 14px; color: var(--ink-3); }
.link-quiet:hover { color: var(--brand); }

/* ---------------- 页脚 ---------------- */
footer.site { border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: 13.5px; padding: 26px 0 36px; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 20px; }
  .hero-visual { order: -1; }
  .demo-card { width: 280px; transform: none; }
  .char-layout { grid-template-columns: 1fr; gap: 34px; }
  .char-aside { position: static; }
  .hero-char { flex-direction: row; align-items: center; gap: 20px; }
  .bishun { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  header.site .wrap { height: auto; padding: 12px 18px; flex-wrap: wrap; gap: 10px 16px; }
  header.site nav { margin-left: auto; gap: 14px; }
  header.site nav a { font-size: 14px; }
  .search { order: 3; flex-basis: 100%; }
  .search input, .search input:focus { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .cont-card { flex-direction: column; align-items: flex-start; }
  .lessons .ls-main { padding: 14px 14px; gap: 10px; }
  .lessons .t { font-size: 15.5px; }
  .sheet { padding: 22px 16px; }
  h1 { font-size: 30px; }
}
@media (max-width: 480px) {
  .tzg { --s: 58px; }
  .zi.small .tzg { --s: 44px; }
  .grid { gap: 14px 14px; }
  .tzg.big { --s: 104px; }
}

/* ---------------- 打印 ---------------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; font-size: 12pt; }
  header.site, footer.site, .no-print, .pager, .progress, .crumbs, .tools, .toggle { display: none !important; }
  main.wrap { max-width: none; padding: 0; }
  a { color: #000; }
  .sheet { border: none; padding: 0; margin: 0; box-shadow: none; }
  .tzg { border-color: #999; background: #fff; }
  .tzg::before, .tzg::after { border-color: #ccc; }
  .words li, .chip { background: none; padding: 0; margin-right: 10px; }
  .answers-page { margin-top: 0; }
  .mh-cell.trace { color: #c9c9c9; }
}
.btn.brand { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.btn.brand:hover { background: var(--brand); color: #fff; }
