:root { --blue: #2f6fb2; --green: #2f6f4f; --ink: #3b3b3b; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; background: #fef6ea; color: var(--ink); }
a { color: var(--blue); }
.home-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 640px; margin: 0 auto; padding: 12px 16px; background: rgba(254, 246, 234, .96); border-bottom: 1px solid #f3e7d3; }
.home-logo { display: inline-flex; align-items: center; gap: 7px; color: #3f3a32; text-decoration: none; font-size: 18px; }
.home-logo b { font-size: 17px; }
.home-tag { color: #9b8d7b; font-size: 12px; }
.home { max-width: 640px; margin: 0 auto; padding: 22px 16px 36px; background: #fef6ea; }
.intro { text-align: center; }
.intro-kicker { margin: 0; color: #d98a57; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.intro h1 { margin: 12px 0 0; color: #493b2d; font-size: clamp(34px, 9vw, 52px); line-height: 1.06; letter-spacing: -.04em; }
.intro-sub { margin: 12px auto 0; max-width: 460px; color: #8a7a66; font-size: 14px; line-height: 1.7; }
.layers { margin-top: 26px; text-align: left; }
.layers-title { margin: 0 0 12px; color: #493b2d; font-size: 18px; }
.layer-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 6px; padding: 2px 0 8px; }
.layer-list::-webkit-scrollbar { display: none; }
.layer-card { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 140px; padding: 10px 3px 9px; border-radius: 16px; background: #fff; border: 1px solid #f3e7d3; box-shadow: 0 8px 18px rgba(122, 90, 58, .07); }
.layer-icon { display: flex; align-items: center; justify-content: center; width: auto; height: 46px; line-height: 0; }
.layer-icon img { display: block; width: 44px; height: 44px; }
.layer-main { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.layer-main b { color: #493b2d; font-size: 12px; line-height: 1.2; }
.layer-main b em { display: inline-flex; width: 12px; height: 12px; margin-right: 2px; border-radius: 999px; background: #ff8d59; color: #fff; font-size: 9px; font-style: normal; font-weight: 800; line-height: 11px; text-align: center; vertical-align: 1px; }
.layer-main small { color: #8a7a66; font-size: 10px; line-height: 1.35; }
.topics { margin-top: 30px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-title h2 { margin: 0; color: #493b2d; font-size: 21px; }
.section-title span { color: #a4937d; font-size: 12px; }
.topic-list { display: flex; flex-direction: column; gap: 10px; }
.topic-pill { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: 18px; background: #fff; text-decoration: none; color: #493b2d; border: 1px solid #f3e7d3; box-shadow: 0 4px 10px rgba(122, 90, 58, .05); }
.topic-emoji { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: #fef0e2; line-height: 0; }
.topic-main { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.topic-main b { font-size: 16px; }
.topic-main small { color: #9b8d7b; font-size: 12px; }
.topic-arrow { color: #cdbfaa; font-size: 23px; line-height: 1; }
.home-start { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding: 15px 16px; border-radius: 18px; background: #ff8d59; color: #fff; text-decoration: none; box-shadow: 0 10px 20px rgba(255, 141, 89, .25); }
.home-start span { display: flex; flex-direction: column; gap: 3px; }
.home-start small { color: rgba(255,255,255,.8); font-size: 11px; }
.home-start b { font-size: 17px; }
.home-start i { font-style: normal; font-weight: 800; font-size: 14px; }
.theme-page { max-width: 860px; margin: 0 auto; padding: 10px 12px 40px; }
.theme-head { text-align: center; padding: 24px 16px 18px; }
.theme-head-emoji { display: inline-flex; align-items: center; justify-content: center; width: 82px; height: 82px; border-radius: 24px; background: #fff; line-height: 0; box-shadow: 0 6px 16px rgba(122, 90, 58, .08); }
.theme-head h1 { margin: 14px 0 4px; color: #493b2d; font-size: 28px; }
.theme-head h1 small { display: block; margin-top: 5px; color: #a4937d; font-size: 13px; font-weight: 500; }
.theme-head p { max-width: 480px; margin: 10px auto 0; color: #8a7a66; font-size: 14px; line-height: 1.7; }
.word-grid-section { margin-top: 10px; }
main { max-width: 860px; margin: 0 auto; padding: 0 12px 30px; }
.theme h2 { margin: 26px 0 2px; font-size: 20px; }
.theme h2 .en { color: #9a9a9a; font-size: 14px; font-weight: 500; }
.theme .blurb { margin: 0 0 10px; color: #8a8a8a; font-size: 13px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.chip { background: #fff; border-radius: 14px; padding: 10px 6px; text-align: center; text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chip:active { transform: scale(.97); }
.chip-emoji { font-size: 30px; display: block; }
.chip-word { font-weight: 700; }
.chip-zh { font-size: 12px; color: #8a8a8a; display: block; }
.chip-seen { font-size: 10px; color: var(--green); }
.theme-page[data-theme="numbers"] .chips { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; max-width: 760px; margin: 0 auto; }
.theme-page[data-theme="numbers"] .chip.number-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 158px; padding: 14px 8px 11px; border: 1px solid #f3e7d3; border-radius: 22px; background: linear-gradient(180deg, #fffdf8 0%, #fff4e3 100%); box-shadow: 0 6px 14px rgba(90, 70, 50, .08); }
.theme-page[data-theme="numbers"] .number-chip-art { display: block; width: 74px; height: 74px; margin: 0 auto; line-height: 0; }
.theme-page[data-theme="numbers"] .number-chip-svg { display: block; width: 100%; height: 100%; }
.theme-page[data-theme="numbers"] .number-chip .chip-word { color: #493b2d; font-size: 19px; font-weight: 800; }
.theme-page[data-theme="numbers"] .number-chip .chip-zh { color: #8a7a66; font-size: 13px; }
.theme-page[data-theme="numbers"] .chip { animation: wt-chip-in .5s cubic-bezier(.22, .61, .36, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
body.style-crayon .theme-page[data-theme="numbers"] .chip.number-chip { background: #fffdf8; border: 2px solid #e3d7bf; border-radius: 20px 24px 18px 22px / 22px 18px 24px 20px; box-shadow: 3px 4px 0 #e6dac3; }
@keyframes wt-chip-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .theme-page[data-theme="numbers"] .chip { animation: none; } }
.word-nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; max-width: 800px; margin: 0 auto; }
.word-nav a { text-decoration: none; font-weight: 600; }
.card { background: var(--card-bg, #2f6fb2); border-radius: 22px; color: #fff; padding: 18px 16px; text-align: center; max-width: 360px; margin: 10px auto; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.card-word { font-size: 42px; font-weight: 800; background: none; border: 0; color: #fff; letter-spacing: 1px; cursor: pointer; padding: 0; }
.card-word .hl { color: #ffd93d; }
.card-zh { opacity: .85; font-size: 13px; }
.card-hook { display: block; background: none; border: 0; color: rgba(255,255,255,.85); font-size: 14px; cursor: pointer; margin: 8px auto 2px; }
.card-art-svg { width: 130px; height: 130px; }
.card-art-emoji { font-size: 88px; line-height: 1.25; }
.card-desc button { display: block; background: none; border: 0; color: rgba(255,255,255,.9); font-size: 13px; cursor: pointer; margin: 3px auto; }
.card-audio { font-size: 11px; opacity: .7; margin-top: 8px; }
.mindmap-wrap { background: #fff; border-radius: 18px; padding: 6px; margin: 14px auto; max-width: 800px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.mindmap { width: 100%; height: auto; display: block; }
.branch { cursor: pointer; }
.branch .reveal { opacity: 0; transition: opacity .35s; }
.branch.open .reveal { opacity: 1; }
.print-page .branch .reveal { opacity: 1; }
.sentences { max-width: 800px; margin: 10px auto; }
.sentences h3 { font-size: 16px; }
.sentences ol { list-style: none; padding: 0; margin: 0; }
.sentences li button { width: 100%; text-align: left; background: #fff; border: 0; border-radius: 12px; padding: 11px 12px; margin: 7px 0; font-size: 16px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.s-icon { margin-right: 8px; }
.print-btn { display: block; margin: 18px auto; background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font-size: 16px; cursor: pointer; }
.print-fab { position: fixed; right: 16px; bottom: 16px; background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 14px 22px; font-size: 16px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.print-fab:disabled { opacity: .6; cursor: wait; }
.pdf-state { position: fixed; right: 20px; bottom: 64px; font-size: 12px; color: #8a5a2b; }
.pack-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px -24px 18px; padding: 10px 24px; background: #f6f1e7f2; border-bottom: 1px solid #e2d8c4; }
.admin .pack-bar button { padding: 10px 20px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-size: 15px; cursor: pointer; }
.admin .pack-bar button:disabled { opacity: .6; cursor: wait; }
.admin-tabs { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; margin: 4px 0 16px; background: #fffdf8; border-bottom: 1px solid #eadfca; }
.admin-tabs a { padding: 6px 13px; border-radius: 999px; background: #f1e8d8; color: #6b5b45; font-size: 13px; text-decoration: none; }
.admin-tabs a.on { background: var(--green); color: #fff; }
.admin [data-panel][hidden] { display: none; }
.admin .theme-block { border: 1px solid #eadfca; border-radius: 12px; padding: 2px 12px 12px; margin: 0 0 12px; background: #fffdf8; }
.admin .theme-block summary { cursor: pointer; padding: 9px 2px; font-weight: 700; color: #4a3b2c; font-size: 15px; }
.admin .save-bar { position: sticky; top: 0; z-index: 30; background: #fffdf8; padding: 10px 0; margin: 0 0 12px; border-bottom: 1px solid #eadfca; }
.pack-state { font-size: 12px; color: #8a5a2b; }
.pack-px { font-size: 12px; color: #8a7a66; }
.pack-px select { margin-left: 4px; padding: 4px 6px; border: 1px solid #e5dccb; border-radius: 8px; background: #fffdf8; font-size: 12px; color: #5b4632; }
.pack-stage { max-width: 820px; margin: 0 auto; }
.pack-stage .print-page { background: #fff; border-radius: 14px; box-shadow: 0 1px 5px rgba(0,0,0,.1); margin: 0 0 18px; overflow: hidden; }
body.style-crayon .pack-stage .print-page { background: transparent; box-shadow: none; }
footer { text-align: center; font-size: 12px; color: #9a9a9a; padding: 20px; }
#tts-warn { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; background: #8a5a2b; color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 13px; display: none; z-index: 99; }
#tts-warn.show { display: block; }

/* Twemoji 矢量素材（清单 data/assets.json，CC-BY 4.0） */
.emo-svg { display: inline-block; vertical-align: -0.18em; }
.chip-emoji { font-size: 0; line-height: 1; }
.chip-emoji .emo-svg { vertical-align: middle; }
.card-art-emoji { font-size: 0; line-height: 0; }
.card-art-emoji .emo-svg { display: block; margin: 0 auto; }
.s-icon .emo-svg { vertical-align: -0.2em; }
footer .credit { font-size: 11px; color: #9a8f83; }
.print-credit { text-align: center; font-size: 11px; color: #9a8f83; margin: 8px 0 0; }

/* 画风切换 */
.style-switch { display: flex; gap: 6px; justify-content: center; margin: 10px 0 2px; }
.style-switch a { font-size: 12px; padding: 4px 12px; border-radius: 999px; background: #fffdf8; color: #8a7a66; text-decoration: none; border: 1px solid #e5dccb; }
.style-switch a.on { background: #5b4632; color: #fff8ec; border-color: #5b4632; }
body.style-crayon { background: #f2ecdf; }


/* 管理后台 */
.admin { max-width: 860px; margin: 0 auto; padding: 24px; }
.admin h1 { font-size: 22px; }
.admin .err, #msg.err { color: #c0392b; }
#msg.ok { color: #27ae60; }
.admin .hint { color: #999; font-size: 12px; }
.admin .back { font-size: 13px; margin-left: 10px; }
.admin input, .admin textarea { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 8px; font: 14px/1.4 inherit; margin: 4px 0 10px; box-sizing: border-box; }
.admin label { font-size: 12px; color: #777; }
.admin button { padding: 8px 18px; border: 0; border-radius: 8px; background: #2f6fb2; color: #fff; cursor: pointer; }
.admin button.linklike { background: none; color: #2f6fb2; text-decoration: underline; padding: 0; }
.admin-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; background: #fffdf8; border-radius: 10px; overflow: hidden; }
.admin-table td, .admin-table th { padding: 6px 10px; border-bottom: 1px solid #eee; font-size: 14px; text-align: left; }
.admin .off-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #f3d9d5; color: #a04a3d; font-size: 12px; vertical-align: middle; }
.admin-table tr.row-off td { color: #9a8f85; }
.stats-box h3 { margin: 14px 0 8px; font-size: 14px; color: #6b5643; }
.stat-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.stat-grid .stat { flex: 1 1 110px; background: #fffdf8; border: 1px solid #eadfce; border-radius: 10px; padding: 10px 12px; }
.stat-grid .stat b { display: block; font-size: 28px; line-height: 1; color: #2f6fb2; }
.stat-grid .stat span { display: block; margin-top: 6px; font-size: 12px; color: #8a7a66; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 72px; padding: 4px 2px 0; }
.bar-cell { flex: 1; min-width: 30px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; color: #8a7a66; font-size: 11px; }
.bar-cell i { display: block; width: 100%; max-width: 28px; background: linear-gradient(180deg, #7fb6e6, #2f6fb2); border-radius: 5px 5px 2px 2px; }
.bar-cell b { margin-top: 2px; color: #6b5643; font-size: 12px; }
.bar-cell small { display: block; margin-top: 1px; }
.stats-table code { font-size: 12px; color: #2f6fb2; }
.stats-note { margin: 14px 0 6px; padding: 10px 12px; background: #fffdf8; border: 1px dashed #dfd0b6; border-radius: 10px; font-size: 12px; color: #6b5b45; }
.stats-note summary { cursor: pointer; font-weight: 700; color: #4a3b2c; }
.stats-note ul { margin: 8px 0 0; padding-left: 18px; }
.stats-note li { margin: 4px 0; line-height: 1.65; }
.stats-note code { background: #f3ece0; padding: 1px 4px; border-radius: 4px; }
.admin fieldset { border: 1px dashed #ccc; border-radius: 10px; margin: 10px 0; }

.rec { margin-left: 8px; white-space: nowrap; }
.rec button { padding: 2px 8px; margin-left: 4px; font-size: 12px; background: #8a6f57; border-radius: 6px; }
.rec button:disabled { opacity: 0.35; cursor: not-allowed; }
.rec-state { font-size: 12px; color: #27ae60; margin-left: 6px; }
.answers input { width: 70%; display: inline-block; }

.card-art-override { display: block; margin: 0 auto; }

/* 介绍/联想 视图切换 */
.view-toggle { display: flex; gap: 8px; justify-content: center; margin: 12px 0 4px; }
.view-toggle button { font-size: 14px; padding: 6px 18px; border-radius: 999px; border: 1px solid #e5dccb; background: #fffdf8; color: #8a7a66; cursor: pointer; }
.view-toggle button.on { background: #b0655f; color: #fff8ec; border-color: #b0655f; }
.zh-bar { display: flex; justify-content: center; margin: 8px 0 0; }
.zh-bar button { font-size: 13px; padding: 4px 16px; border-radius: 999px; border: 1px solid #e5dccb; background: #fffdf8; color: #8a7a66; cursor: pointer; }
body.zh-on .zh-bar button { background: #b0655f; color: #fff8ec; border-color: #b0655f; }
.zh-t { display: none; }
body.zh-on .zh-t { display: block; }
.card-hook .zh-t, .card-desc .zh-t, .sentences .zh-t { font-size: 12px; color: #8a7a66; margin-top: 3px; font-weight: 400; }
body.style-crayon .zh-bar button { border: 2px solid #d9cbb2; box-shadow: 1.5px 2px 0 #e6dac3; }
.assoc-item text { user-select: none; }

/* 蜡笔绘本风（仅 style-crayon）：纸纹 + 手绘边 + 手写字体栈 */
body.style-crayon {
  background: #f2ecdf url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='140'%20height='140'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.85'%20numOctaves='2'%20seed='4'/%3E%3CfeColorMatrix%20values='0%200%200%200%200.45%200%200%200%200%200.40%200%200%200%200%200.32%200%200%200%200.05%200'/%3E%3C/filter%3E%3Crect%20width='140'%20height='140'%20filter='url(%23n)'/%3E%3C/svg%3E");
  font-family: "Chalkboard SE", "Comic Sans MS", "Yuanti SC", "YouYuan", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.style-crayon .card {
  background: #fffdf8; color: #4a3b2f;
  border: 3px solid var(--card-bg, #2f6fb2);
  border-radius: 24px 20px 26px 22px / 22px 26px 20px 24px;
  box-shadow: 4px 5px 0 rgba(90, 70, 50, .14);
}
body.style-crayon .card-word { color: #4a3b2f; }
body.style-crayon .card-word .hl {
  color: #4a3b2f; padding: 0 3px; border-radius: 4px;
  background: linear-gradient(transparent 56%, #ffe28a 56%, #ffe28a 92%, transparent 92%);
}
body.style-crayon .card-zh { color: #8a7a66; opacity: 1; }
body.style-crayon .card-hook { color: #6b5643; }
body.style-crayon .card-desc button { color: #6b5643; }
body.style-crayon .card-audio { color: #a4937d; opacity: 1; }
body.style-crayon .mindmap-wrap { background: transparent; box-shadow: none; padding: 0; }
body.style-crayon .chip {
  background: #fffdf8; border: 2px solid #e3d7bf;
  border-radius: 16px 18px 14px 17px / 17px 14px 18px 16px;
  box-shadow: 2px 3px 0 #e6dac3;
}
body.style-crayon .chips .chip:nth-child(odd) { transform: rotate(-.7deg); }
body.style-crayon .chips .chip:nth-child(even) { transform: rotate(.6deg); }
body.style-crayon .chip-zh { color: #a4937d; }
body.style-crayon .style-switch a, body.style-crayon .view-toggle button {
  border: 2px solid #d9cbb2; background: #fffdf8; box-shadow: 1.5px 2px 0 #e6dac3;
}
body.style-crayon .style-switch a.on { background: #5b4632; border-color: #5b4632; }
body.style-crayon .view-toggle button.on { background: #b0655f; border-color: #b0655f; }
body.style-crayon .sentences li button {
  background: #fffdf8; border: 2px solid #e3d7bf;
  border-radius: 14px 16px 13px 15px / 15px 13px 16px 14px;
  box-shadow: 2px 3px 0 #e6dac3;
}
body.style-crayon .print-btn { box-shadow: 2px 3px 0 rgba(90, 70, 50, .2); }
body.style-crayon .home-top { background: rgba(254, 246, 234, .96); border-bottom: 2px solid #e3d7bf; }
body.style-crayon .layer-card, body.style-crayon .topic-pill, body.style-crayon .theme-head-emoji { background: #fffdf8; border: 2px solid #e3d7bf; box-shadow: 2px 3px 0 #e6dac3; }

@media (max-width: 640px) {
  .home { padding: 16px 12px 28px; }
  .layers { margin-top: 22px; }
  .layer-list { gap: 6px; }
  .layer-card { min-height: 134px; padding: 8px 2px 8px; border-radius: 14px; }
  .layer-icon { height: 40px; }
  .layer-icon img { width: 38px; height: 38px; }
  .layer-main b { font-size: 11px; }
  .home-top { padding: 10px 12px; gap: 8px; flex-wrap: wrap; row-gap: 6px; }
  .home-logo { white-space: nowrap; flex: 0 0 auto; }
  .home-tag { display: none; }
  .style-switch { flex: 0 0 100%; justify-content: flex-end; margin: 0; }
  .style-switch a { padding: 4px 9px; font-size: 11px; }
}

.site-box { margin: 0 0 16px; padding: 10px 14px; border: 1px dashed #b8a58c; border-radius: 12px; background: #fffdf8; }
.site-box h2 { font-size: 15px; margin: 0 0 6px; }
.site-box .chk { margin-right: 16px; }

/* 访问限制与激活 */
.topic-pill.locked { opacity: .68; background: #f7f0e4; }
.topic-pill.locked .topic-arrow { font-size: 17px; }
.announcement { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: #fff4d6; border: 1px solid #f0dfab; color: #7a5b1f; font-size: 13px; line-height: 1.5; }
.announcement b { font-size: 15px; }
.announcement span { flex: 1; }
.unlock { max-width: 640px; margin: 0 auto; padding: 30px 16px 44px; }
.unlock-card { background: #fff; border: 1px solid #f3e7d3; border-radius: 20px; padding: 22px 18px; box-shadow: 0 8px 18px rgba(122, 90, 58, .07); text-align: center; }
.unlock-card h1 { margin: 0 0 8px; font-size: 24px; color: #493b2d; }
.unlock-card > p { margin: 0 0 16px; color: #8a7a66; font-size: 14px; line-height: 1.6; }
.unlock-card form { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin: 0 auto; }
.unlock-card input[type=text], .unlock-card input:not([type]) { padding: 11px 12px; border: 1px solid #e5dccb; border-radius: 12px; font-size: 15px; text-align: center; letter-spacing: .04em; }
.unlock-card button { padding: 11px 18px; border: 0; border-radius: 12px; background: #ff8d59; color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.unlock-msg { min-height: 18px; margin: 10px 0 0; color: #c14f3d; font-size: 13px; }
.unlock-buy { margin-top: 14px; font-size: 13px; }
.unlock-buy a { font-weight: 700; }
.unlock-qr { margin-top: 16px; }
.unlock-qr img { width: 200px; max-width: 62%; padding: 6px; border: 1px solid #f3e7d3; border-radius: 14px; background: #fff; }
.unlock-qr p { margin: 8px 0 0; font-size: 12px; color: #8a7a66; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin: 8px 0; }
.admin-grid label { display: block; }
.admin-grid input[type=number] { max-width: 110px; }
.lic-out { white-space: pre-wrap; background: #fffdf8; border: 1px dashed #b8a58c; border-radius: 10px; padding: 10px 12px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #2f6fb2; }

/* 10 以内加减法作业纸 */
.math-promo { margin-top: 26px; }
.math-cta { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 18px; background: linear-gradient(180deg, #fffdf8, #fff4e3); text-decoration: none; color: #493b2d; border: 1px solid #f3e7d3; box-shadow: 0 6px 14px rgba(90, 70, 50, .08); }
.math-cta-emoji { font-size: 30px; line-height: 1; }
.math-cta-main { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.math-cta-main b { font-size: 16px; }
.math-cta-main small { color: #9b8d7b; font-size: 12px; }
.math-cta-arrow { color: #cdbfaa; font-size: 23px; line-height: 1; }
body.style-crayon .math-cta { background: #fffdf8; border: 2px solid #e3d7bf; box-shadow: 2px 3px 0 #e6dac3; }
.math-main { max-width: 860px; margin: 0 auto; padding: 0 12px 40px; }
.math-head { text-align: center; padding: 16px 16px 4px; }
.math-head h1 { margin: 0; color: #493b2d; font-size: 26px; }
.math-head p { margin: 8px 0 0; color: #8a7a66; font-size: 13px; }
.math-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 4px; margin: 12px -12px 8px; padding: 10px 14px; background: #f6f1e7f2; border-bottom: 1px solid #e2d8c4; }
.math-bar-label { font-size: 12px; color: #8a7a66; margin-right: 2px; }
.math-pill-group { display: inline-flex; gap: 4px; margin-right: 8px; }
.math-pill { padding: 4px 11px; border-radius: 999px; background: #fffdf8; color: #6b5b45; font-size: 13px; text-decoration: none; border: 1px solid #e5dccb; white-space: nowrap; }
.math-pill.on { background: #ff8d59; color: #fff; border-color: #ff8d59; font-weight: 700; }
.math-pill.locked { color: #a99a86; border-style: dashed; }
.math-note { margin: 8px 0 0; text-align: center; color: #c14f3d; font-size: 13px; }
.math-note a { color: #c14f3d; font-weight: 700; }
.math-stage { max-width: 820px; margin: 0 auto; }
.math-stage .math-page { background: #fff; border-radius: 14px; box-shadow: 0 1px 5px rgba(0,0,0,.1); margin: 0 0 18px; overflow: hidden; }
body.style-crayon .math-stage .math-page { background: transparent; box-shadow: none; }
.math-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.math-btn { padding: 10px 18px; border: 0; border-radius: 999px; font-size: 14px; cursor: pointer; background: #fffdf8; color: #6b5b45; border: 1px solid #e5dccb; }
.math-btn.primary { background: var(--green); color: #fff; border-color: var(--green); font-weight: 700; }
.math-btn:disabled { opacity: .6; cursor: wait; }
.math-state { font-size: 12px; color: #8a5a2b; }
body.style-crayon .math-pill { border: 2px solid #d9cbb2; box-shadow: 1.5px 2px 0 #e6dac3; }
body.style-crayon .math-pill.on { background: #ff8d59; border-color: #ff8d59; }

.intro h1 .hw { white-space: nowrap; }
.words-head { text-align: center; margin: 6px 0 10px; }
.words-head h1 { font-size: 26px; color: #4a3b2f; margin: 0 0 4px; }
.words-head p { color: #8a7a66; margin: 0; font-size: 13px; }

/* 后台提醒 */
.notice-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #fff4d6; border: 1px solid #f0dfab; color: #7a5b1f; font-size: 14px; }
.notice-banner b { color: #8a4b1f; }
.notice-banner span { flex: 1; min-width: 0; }
.notice-banner a { color: #a4571f; font-weight: 700; text-decoration: none; white-space: nowrap; }
.notice-add { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.notice-add input[type=text] { flex: 1; min-width: 220px; padding: 8px 10px; border: 1px solid #d9cbb2; border-radius: 10px; }
.notice-add select, .notice-add input[type=date] { padding: 8px 10px; border: 1px solid #d9cbb2; border-radius: 10px; background: #fff; }
.notice-add button { padding: 8px 16px; border: none; border-radius: 10px; background: #5b4632; color: #fff; font-weight: 700; cursor: pointer; }
.notice-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.notice-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e6dcc9; border-radius: 12px; background: #fffdf8; }
.notice-item.done { opacity: .55; }
.notice-item.level-urgent { border-color: #e8b4a8; background: #fff3ef; }
.notice-badge { flex: 0 0 auto; font-size: 12px; padding: 2px 8px; border-radius: 999px; color: #fff; }
.notice-badge.info { background: #7aa7a0; }
.notice-badge.warn { background: #e0a23c; }
.notice-badge.urgent { background: #d9534f; }
.notice-text { flex: 1; min-width: 0; color: #4a3b2f; font-size: 14px; line-height: 1.5; }
.notice-text small { display: block; color: #8a7a66; font-size: 12px; }
.notice-ops { flex: 0 0 auto; display: flex; gap: 10px; }

/* 首页三大板块：学单词 / 做练习 / 听故事（大卡 + 缩略预览） */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 8px; }
.pillar { display: flex; flex-direction: column; background: #fffdf8; border: 2px solid #e5dccb; border-radius: 20px; overflow: hidden; text-decoration: none; color: #4a3b2f; box-shadow: 0 4px 14px rgba(74, 59, 47, .06); transition: transform .12s ease, box-shadow .12s ease; }
.pillar:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(74, 59, 47, .16); }
.pillar-thumb { min-height: 92px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 12px; }
.thumb-words { background: linear-gradient(135deg, #e6faf6, #d3f1ea); }
.thumb-practice { background: linear-gradient(135deg, #fff1e3, #ffe2cc); flex-direction: column; gap: 4px; }
.thumb-stories { background: linear-gradient(135deg, #eef0ff, #e0e5ff); font-size: 26px; }
.pv-word { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pv-word b { font-size: 11px; font-weight: 700; color: #4a3b2f; }
.pv-eq { font-size: 17px; font-weight: 800; color: #8a4b2f; letter-spacing: .5px; }
.pv-eq i { font-style: normal; color: #c0703f; margin: 0 3px; }
.pv-eq em { font-style: normal; color: #c0703f; }
.pv-album { font-size: 24px; line-height: 1; }
.pillar-body { padding: 12px 14px 2px; }
.pillar-body b { display: block; font-size: 18px; }
.pillar-body small { color: #8a7a66; font-size: 12.5px; }
.pillar-go { padding: 8px 14px 14px; color: #0f766e; font-weight: 700; font-size: 13px; }
@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; gap: 10px; margin: 14px 0 4px; }
  .pillar { flex-direction: row; align-items: stretch; }
  .pillar-thumb { flex: 0 0 92px; width: 92px; min-height: auto; padding: 8px; gap: 2px; }
  .thumb-practice { gap: 2px; }
  .pv-word b { display: none; }
  .pv-eq { font-size: 13px; letter-spacing: 0; }
  .pv-album { font-size: 22px; }
  .pillar-body { flex: 1; min-width: 0; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; }
  .pillar-body b { font-size: 17px; }
  .pillar-body small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pillar-go { display: none; }
}
