/* 数学思维课。颜色、字号、圆角都取 base.css 的变量。
   练习纸和答案按 A4 打印：打印时只留纸面，导航、按钮都收起来。 */

/* ---------- 通用小件 ---------- */
.tk-kicker { display: block; color: var(--ink-faint); font-size: 14px; font-weight: 600; line-height: 1.5; }
.tk-strand { display: inline-flex; align-items: center; padding: 0 8px; margin-right: 6px; border-radius: 999px; background: var(--tint); color: var(--tone); font-size: 12.5px; font-weight: 700; line-height: 22px; white-space: nowrap; vertical-align: 1px; }
.tk-list { display: grid; gap: 6px; }
.tk-list > li { position: relative; padding-left: 18px; }
.tk-list > li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.tk-sub { margin: 4px 0 8px; color: var(--ink-soft); font-size: 15px; }
.tk-lead { margin: -4px 0 14px; color: var(--ink-soft); font-size: 15px; }
.tk-warn { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--r-s); background: var(--sun-tint); color: var(--sun); font-size: 15px; font-weight: 600; }
.tk-loading { padding: 60px 0; color: var(--ink-faint); text-align: center; }
.tk-foot-note { margin-top: 28px; }
.stars { margin-right: 6px; color: var(--sun); font-size: 13px; letter-spacing: 1px; white-space: nowrap; }

/* ---------- 课表：下一课 ---------- */
.tk-next { position: relative; display: grid; gap: 8px; padding: 22px 22px 22px 26px; overflow: hidden; }
.tk-next::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--tone, var(--seal)); }
.tk-next h2 { font: 400 clamp(32px, 6vw, 40px)/1.2 var(--font-kai); }
.tk-next p { color: var(--ink-soft); }
.tk-key { display: flex; gap: 10px; align-items: baseline; }
.tk-key b { flex: none; padding: 0 8px; border-radius: 6px; background: var(--tint, var(--seal-tint)); color: var(--tone, var(--seal)); font-size: 13px; line-height: 22px; }
.tk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tk-actions .icon { width: 20px; height: 20px; }
.eg { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin-top: 4px; color: var(--ink); line-height: 2; }
.eg-tag { flex: none; padding: 0 7px; border-radius: 6px; background: var(--paper-deep); color: var(--ink-soft); font-size: 13px; font-weight: 700; line-height: 22px; }
.eg-a { color: var(--ink-faint); font-size: 15px; }

/* ---------- 课表：怎么上课 ---------- */
.tk-how { padding: 18px; }
.tk-howflow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; counter-reset: step; }
.tk-howflow li { display: grid; align-content: start; gap: 2px; padding: 12px 14px; border-radius: var(--r-m); background: var(--paper); }
.tk-howflow b { font-size: 17px; }
.tk-howflow span:last-child { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.tk-min { justify-self: start; padding: 0 8px; border-radius: 999px; background: var(--seal-tint); color: var(--seal-deep); font-size: 12.5px; font-weight: 700; line-height: 22px; white-space: nowrap; }
.tk-more { margin-top: 14px; }
.tk-more summary { display: flex; align-items: center; min-height: 44px; color: var(--sky); font-weight: 600; cursor: pointer; }
.tk-more[open] summary { margin-bottom: 4px; }
.tk-hints { display: grid; gap: 6px; margin-bottom: 14px; counter-reset: hint; }
.tk-hints li { display: flex; gap: 10px; align-items: baseline; counter-increment: hint; }
.tk-hints li::before { content: counter(hint); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sky-tint); color: var(--sky); font-size: 13px; font-weight: 700; }

/* ---------- 课表：单元和每周 ---------- */
.tk-count { color: var(--ink-soft); font-size: 15px; font-weight: 600; white-space: nowrap; }
.tk-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 14px; }
.tk-unit { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); }
.tk-unit-head { display: flex; align-items: center; gap: 12px; }
.tk-unit-n { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--seal-tint); color: var(--seal); font-size: 26px; }
.tk-unit-head h3 { font-size: 18px; line-height: 1.35; }
.tk-unit-head small { color: var(--ink-faint); font-size: 13.5px; }
.tk-unit-intro { margin: 8px 0 6px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.tk-weeks { display: grid; }
.tk-week { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 6px; border-top: 1px solid var(--line); border-radius: 10px; transition: background-color .15s ease; }
.tk-weeks li:first-child .tk-week { border-top: 0; }
.tk-week:hover { background: var(--paper); }
.tk-week.is-next { background: var(--seal-tint); }
.tk-wn { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-deep); color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.tk-week.is-next .tk-wn { background: var(--seal); color: #fff; }
.tk-wt { flex: 1; min-width: 0; display: grid; }
.tk-wt b { font-size: 16.5px; line-height: 1.4; }
.tk-wt small { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.tk-state { flex: none; color: var(--ink-faint); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tk-state.is-ready { color: var(--sky); }
.tk-state.is-done { padding: 0 8px; border: 1.5px solid var(--seal); border-radius: 6px; color: var(--seal); line-height: 20px; transform: rotate(-4deg); }

/* ---------- 课表：材料 ---------- */
.tk-mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.tk-mat { padding: 16px; }
.tk-mat h3 { margin-bottom: 8px; font: 400 21px/1.3 var(--font-kai); }
.tk-mat ul { display: grid; gap: 10px; }
.tk-mat li { display: grid; gap: 2px; }
.tk-mat b { font-size: 16px; line-height: 1.45; }
.tk-mat a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tk-mat span { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* ---------- 一课：顶部、分页、底部 ---------- */
.tk-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tk-top > div { flex: 1; min-width: 0; }
.tk-top h1 { font: 400 clamp(30px, 5.5vw, 40px)/1.2 var(--font-kai); }
.tk-tabs { display: flex; width: fit-content; max-width: 100%; margin-bottom: 18px; }
.tk-tabs > a { min-height: 44px; padding: 0 20px; }
.tk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.tk-pager { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-pager .icon { width: 20px; height: 20px; }
.tk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.tk-tools .icon { width: 20px; height: 20px; }

/* ---------- 教案 ---------- */
.tk-block { margin-bottom: 22px; }
.tk-block > h2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font: 400 23px/1.3 var(--font-kai); }
.tk-block > h2 small { color: var(--ink-faint); font: 600 13.5px/1 var(--font-ui); }
.tk-block > p + h2 { margin-top: 16px; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chips span { padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.tk-flow { display: grid; gap: 12px; }
.tk-step { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); }
.tk-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.tk-step-head h3 { font-size: 18.5px; line-height: 1.4; }
.tk-rules { display: grid; gap: 6px; padding-left: 22px; list-style: decimal; }
.tk-eg { margin-top: 12px; padding: 14px; border-radius: var(--r-m); background: var(--paper); }
.tk-eg h4 { margin-bottom: 6px; color: var(--seal-deep); font-size: 15px; }
.tk-eg dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin-top: 10px; font-size: 15.5px; }
.tk-eg dt { padding: 0 8px; border-radius: 6px; background: var(--card); color: var(--ink-soft); font-size: 13px; font-weight: 700; line-height: 24px; white-space: nowrap; align-self: start; }
.tk-eg dd { margin: 0; }
.tk-eg dd ol { display: grid; gap: 4px; padding-left: 20px; list-style: decimal; }
.tk-quick { display: grid; gap: 8px; }
.tk-quick li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; padding: 8px 10px; border-radius: var(--r-s); background: var(--paper); font-size: 15.5px; line-height: 1.9; }
.tk-quick .prob-n { flex: none; }
.tk-quick em { color: var(--ink-soft); font-size: 14px; font-style: normal; }
.tk-day { flex: none; padding: 0 8px; border-radius: 6px; background: var(--sky-tint); color: var(--sky); font-size: 13px; font-weight: 700; line-height: 24px; }
.tk-card { margin: 4px 0 6px; padding: 14px 16px; border: 2px solid var(--seal); border-radius: var(--r-m); background: var(--card); }
.tk-card span { display: block; margin-bottom: 4px; color: var(--seal); font-size: 13px; font-weight: 700; }
.tk-card p { font-size: 20px; line-height: 1.7; }

/* ---------- 题目（教案、练习纸、答案共用） ---------- */
.prob-q { line-height: 2.05; }
.blank { display: inline-block; min-width: calc(var(--w, 2) * .62em + 1.3em); height: 1.6em; margin: 0 2px; padding: 0 .3em; border: 1.5px solid var(--ink-faint); border-radius: 6px; vertical-align: middle; line-height: 1.45em; text-align: center; }
.blank.is-filled { border-color: var(--seal); background: var(--seal-tint); color: var(--seal-deep); font-weight: 700; }
.prob-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; }
.prob-fig { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 28px; margin: 8px 0 4px; }
.fig { max-width: 100%; height: auto; overflow: visible; }
.fig line, .fig path, .fig polygon, .fig polyline { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fig circle { fill: var(--ink); }
.fig circle.ring { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.fig text { fill: var(--ink); font: 600 14px var(--font-ui); text-anchor: middle; }
.fig text.big { font-size: 20px; font-weight: 700; }
.fig .arc { stroke-width: 2.2; }
.fig .arc-0 { stroke: var(--seal); }
.fig .arc-1 { stroke: var(--sky); }
.fig .arc-2 { stroke: var(--leaf); }
.fig .arc-3 { stroke: var(--grape); }
.fig rect { fill: none; stroke: var(--ink); stroke-width: 2; }
.fig .shade { fill: var(--paper-deep); }
.fig .dash { stroke-dasharray: 5 4; stroke-width: 1.5; }
.fig text.small { font-size: 12.5px; }
.fig circle.person { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.fig circle.person.mark { fill: var(--seal); stroke: var(--seal-deep); }
.fig circle.crown { fill: var(--leaf-tint); stroke: var(--leaf); stroke-width: 1.5; }
.fig .c-top { fill: #fff; stroke-width: 1.3; }
.fig .c-right { fill: var(--paper-deep); stroke-width: 1.3; }
.fig .c-left { fill: var(--line-strong); stroke-width: 1.3; }
.fig circle.face { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.fig .hand-h { stroke-width: 4.5; }
.fig .hand-m { stroke-width: 2.5; }
.fig rect.cell { fill: var(--sun-tint); stroke: none; }
.fig line.edge { stroke-width: 2.4; }
.fig line.stick { stroke: var(--sun); stroke-width: 5; }
.fig circle.head { fill: var(--seal); }
.fig circle.node { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.fig circle.hollow { fill: none; stroke: var(--ink); stroke-width: 2; }
.numtable { margin: 6px 0; border-collapse: collapse; }
.numtable td { min-width: 52px; height: 44px; padding: 0 8px; border: 1.5px solid var(--line-strong); text-align: center; font-size: 19px; font-weight: 600; }
.numtable.sudoku { border: 3px solid var(--ink); }
.numtable.sudoku td { min-width: 44px; padding: 0; font-size: 21px; }
.numtable.sudoku tr:nth-child(2) td { border-bottom: 3px solid var(--ink); }
.numtable.sudoku td:nth-child(2) { border-right: 3px solid var(--ink); }
.numtable.sudoku .blank { min-width: 0; height: auto; margin: 0; padding: 0; border: 0; background: none; }
.numtable.sudoku .blank.is-filled { color: var(--seal-deep); }
.logic { margin: 8px 0 4px; border-collapse: collapse; font-size: 15px; }
.logic th, .logic td { min-width: 48px; height: 34px; padding: 0 8px; border: 1.5px solid var(--line-strong); text-align: center; }
.logic th { background: var(--paper-deep); font-weight: 600; white-space: nowrap; }
.logic tr:first-child th:first-child { background: transparent; border-top-color: transparent; border-left-color: transparent; }
.logic td.yes { color: var(--seal); font-weight: 800; font-size: 18px; }
.logic td.no { color: var(--ink-faint); }
.choices { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 4px 0; }
.choices li { display: flex; gap: 6px; align-items: baseline; font-size: 18px; }
.choices b { font-size: 15px; }
.write-lines { height: calc(var(--n) * 38px); margin-top: 4px; background: repeating-linear-gradient(to bottom, transparent 0 37px, var(--line-strong) 37px 38px); }

/* ---------- 练习纸和答案：纸面 ---------- */
.tk-paper { max-width: 820px; padding: clamp(18px, 4vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-1); }
.tk-paper-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--ink); }
.tk-paper-head span { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.tk-paper-head h1 { font: 400 34px/1.2 var(--font-kai); }
.tk-paper-meta { display: flex; gap: 18px; color: var(--ink-soft); font-size: 15px; }
.tk-paper-meta span::after { content: ""; display: inline-block; width: 92px; margin-left: 4px; border-bottom: 1.5px solid var(--ink-soft); }
.tk-paper section { margin-top: 18px; }
.tk-paper h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; font: 400 23px/1.3 var(--font-kai); }
.tk-paper h2 small { color: var(--ink-faint); font: 500 14px/1.3 var(--font-ui); }
.tk-probs { display: grid; gap: 14px; }
.prob { display: flex; gap: 10px; align-items: flex-start; font-size: 18px; }
.prob-side { flex: none; display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 34px; padding-top: 6px; }
.prob-side .stars { margin: 0; font-size: 10.5px; letter-spacing: 0; line-height: 1; }
.prob-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px 22px; }
.prob-main > .prob-q { flex: 1 1 8.5em; min-width: 0; }
.prob-main > .prob-fig, .prob-main > .tbl-wrap { flex: 0 1 auto; max-width: 100%; min-width: 0; }
.tbl-wrap { max-width: 100%; overflow-x: auto; }
.prob-main > .write-lines { flex: 1 1 100%; }
.tick { width: 22px; height: 22px; border: 1.5px solid var(--ink-soft); border-radius: 4px; }
.tk-sheet-card p.kai { padding: 12px 16px; border: 2px solid var(--seal); border-radius: var(--r-m); font-size: 21px; line-height: 1.75; }
.tk-learned { margin-top: 14px; padding-bottom: 28px; border-bottom: 1.5px solid var(--line-strong); color: var(--ink-soft); }
.tk-record { min-width: min(100%, 360px); }
.tk-cert { width: 100%; max-width: 560px; padding: 22px 26px; border: 6px double var(--seal); border-radius: var(--r-m); text-align: center; line-height: 2.1; }
.tk-cert-title { margin-bottom: 6px; color: var(--seal); font-size: 34px; letter-spacing: 8px; }
.tk-cert-sign { margin-top: 10px; color: var(--ink-soft); }
.tk-record td { height: 36px; }
.tk-keys { display: grid; gap: 10px; }
.key-item { display: flex; gap: 10px; align-items: flex-start; }
.key-item > .prob-n { margin-top: 2px; }
.key-a { color: var(--seal-deep); font-size: 18px; font-weight: 700; }
.how { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- 故事、工具箱、开场谜题、复习站、闯关地图 ---------- */
.tk-fox { flex: none; object-fit: contain; }
.tk-story { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; padding: 18px; }
.tk-story .tk-fox { width: 88px; height: 88px; }
.tk-story-text { flex: 1; min-width: 0; display: grid; gap: 8px; justify-items: start; }
.tk-story-text h2 { font: 400 28px/1.25 var(--font-kai); }
.tk-story-text p { color: var(--ink-soft); font-size: 15.5px; }
.tk-planets-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-planets-mini li { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--paper-deep); font-size: 14px; font-weight: 600; }
.tk-planets-mini small { color: var(--ink-faint); font-size: 12px; }
.tk-planets-mini li.is-going { background: var(--sun-tint); color: var(--sun); }
.tk-planets-mini li.is-done { background: var(--seal); color: #fff; }
.tk-planets-mini li.is-done small { color: rgba(255, 255, 255, .8); }
.tk-toolchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.tk-tool { display: inline-flex; align-items: center; gap: 5px; padding: 0 10px 0 3px; border-radius: 999px; background: var(--tint); color: var(--tone); font-size: 13px; font-weight: 700; line-height: 26px; white-space: nowrap; }
.tk-tool .kai { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #fff; font-size: 14px; }
.tk-toolbox { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.tk-toolcard { display: flex; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); }
.tk-toolicon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--tone); font-size: 26px; }
.tk-toolcard b { font-size: 17px; }
.tk-toolcard p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.tk-toolcard .tk-toolweeks { margin-top: 3px; color: var(--ink-faint); font-size: 13px; }
.tk-badge-line { display: block; margin-top: 2px; color: var(--seal); font-weight: 600; }
.tk-hook { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r-m); background: var(--sun-tint); }
.tk-hook .tk-fox { width: 56px; height: 56px; }
.tk-hook-q { margin-top: 6px; font-weight: 600; line-height: 2; }
.tk-hook-a { color: var(--seal-deep); font-weight: 700; }
.tk-hookbox { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; padding: 12px 14px; border: 2px dashed var(--sun); border-radius: var(--r-m); }
.tk-hookbox .tk-fox { width: 44px; height: 44px; }
.tk-hookbox > div { flex: 1; min-width: 0; }
.tk-hookbox p { font-size: 16.5px; line-height: 1.7; }
.tk-hook-label { margin-right: 8px; color: var(--sun); font: 400 19px/1 var(--font-kai); }
.tk-hook-tip { margin-left: 10px; color: var(--ink-faint); font-size: 13px; }
.tk-review-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 18px 0 10px; font: 400 21px/1.3 var(--font-kai); }
.tk-review-title small { color: var(--ink-faint); font: 500 14px/1.3 var(--font-ui); }
.tk-map-intro { margin-bottom: 12px; color: var(--ink-soft); }
.tk-planetlist { display: grid; gap: 10px; }
.tk-planet { padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-m); break-inside: avoid; }
.tk-planet-head { display: flex; align-items: center; gap: 10px; }
.tk-planet-head > div { display: grid; }
.tk-planet-head b { font-size: 17px; }
.tk-planet-head small { color: var(--ink-faint); font-size: 13px; }
.tk-planet .tk-unit-n { width: 36px; height: 36px; font-size: 21px; }
.tk-badge { margin-left: auto; padding: 3px 12px; border: 2px dashed var(--seal); border-radius: 999px; color: var(--seal); font-size: 14px; font-weight: 700; white-space: nowrap; }
.tk-badge.is-done { border-style: solid; background: var(--seal); color: #fff; }
.tk-stops { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.tk-stop { position: relative; display: grid; justify-items: center; gap: 3px; text-align: center; }
.tk-stop-n { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--ink-soft); border-radius: 50%; font-weight: 700; }
.tk-stop.is-boss .tk-stop-n { border: 3px solid var(--seal); color: var(--seal); }
.tk-stop-t { color: var(--ink-soft); font-size: 12.5px; line-height: 1.3; }
.tk-stop-seal { position: absolute; top: -4px; left: calc(50% + 6px); padding: 0 4px; border: 2px solid var(--seal); border-radius: 6px; background: rgba(255, 255, 255, .85); color: var(--seal); font-size: 15px; line-height: 1.25; transform: rotate(-12deg); }
@media (min-width: 640px), print {
  .tk-planet { display: grid; grid-template-columns: 178px minmax(0, 1fr); align-items: center; gap: 4px 12px; }
  .tk-planet-head { flex-wrap: wrap; gap: 6px 10px; }
  .tk-planet-head .tk-badge { margin-left: 0; }
  .tk-stops { margin-top: 0; }
}

@media (min-width: 760px) {
  .tk-probs.two { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .tk-probs.two > .wide { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .tk-next { padding: 18px 16px 18px 20px; }
  .tk-tabs { width: 100%; }
  .tk-tabs > a { flex: 1; padding: 0 10px; }
  .prob { font-size: 17px; }
  .tk-paper-head h1 { font-size: 30px; }
  .tk-eg dl { grid-template-columns: 1fr; gap: 4px; }
  .tk-eg dt { justify-self: start; }
  .tk-foot .btn { flex: 1; }
  .numtable td { min-width: 40px; padding: 0 5px; font-size: 17px; }
}

/* ---------- 打印：只要纸面 ---------- */
@media print {
  @page { size: A4; margin: 12mm 14mm; }
  html, body { background: #fff !important; }
  body { font-size: 12pt; }
  .page { max-width: none; padding: 0; }
  .skip-link, .tk-top, .tk-tabs, .tk-tools, .tk-foot, .tk-more summary { display: none !important; }
  .tk-paper { max-width: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .tk-paper-head h1 { font-size: 24pt; }
  .tk-paper h2 { font-size: 16pt; }
  .prob { font-size: 13pt; break-inside: avoid; }
  .prob-q { line-height: 1.95; }
  .tk-probs { gap: 8pt; }
  .tk-probs.two { grid-template-columns: 1fr 1fr; column-gap: 20pt; }
  .tk-probs.two > .wide { grid-column: 1 / -1; }
  .tk-paper section { margin-top: 12pt; }
  .prob-fig .fig { max-height: 140px; width: auto; }
  .tk-page-break { break-before: page; }
  .tk-paper-head .tk-toolchips, .tk-hook-tip { display: none; }
  .tk-hookbox { padding: 8px 12px; }
  .tk-tool, .tk-planets-mini li { background: none !important; border: 1px solid #888; color: #000 !important; }
  .tk-hookbox { border-color: #888; }
  .tk-map .tk-planet { padding: 5px 10px; }
  .tk-map .tk-stop-n { width: 34px; height: 34px; }
  .tk-map .tk-stop-t { font-size: 9pt; }
  .tk-map .tk-map-intro { margin-bottom: 6px; font-size: 11pt; }
  .tk-planetlist { gap: 7pt; }
  .tk-step, .tk-eg, .key-item, .tk-unit, .tk-mat { break-inside: avoid; }
  .blank { border-color: #555; }
  .blank.is-filled, .tk-card, .tk-sheet-card p.kai { background: #fff; color: #000; border-color: #000; }
  .fig line, .fig path, .fig polygon, .fig polyline, .fig circle.ring { stroke: #000; }
  .fig circle, .fig text { fill: #000; }
  .write-lines { background: repeating-linear-gradient(to bottom, transparent 0 33px, #999 33px 34px); height: calc(var(--n) * 34px); }
  a[href^="http"]::after { content: "（" attr(href) "）"; font-size: 9pt; color: #555; word-break: break-all; }
}
