/* 古诗背诵：打开就是今天这一首，下面是全部古诗。课文页和答题页换成练习本样式。逻辑都在 assets/learn.js。 */
body.in-library .learn-topbar { display: none; }
.learn-shell.hub-shell { width: 100%; max-width: 1080px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) clamp(16px, 3vw, 32px) 28px; }
.learn-topbar.hub-topbar { height: 60px; gap: 12px; padding: 0 clamp(12px, 3vw, 32px); }
.learn-topbar .learn-back { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: #f3ebd9; color: #2b2721; font-size: 15px; font-weight: 600; }
.learn-topbar .learn-brand small { display: none; }
.learn-topbar .learn-brand { display: none !important; }
.learn-topbar .learner { margin-left: auto; }

.poem-head h1 { margin: 0; color: #2b2721; font: 400 clamp(32px, 6vw, 42px)/1.25 "Star Kai", "Kaiti SC", "STKaiti", "KaiTi", serif; }
.poem-head p { margin: 0; color: #5f584a; font-size: 16px; text-align: left; }

/* 今天这一首 */
.poem-today { display: flex; align-items: center; gap: 14px; width: 100%; margin: 16px 0; padding: 12px 16px 12px 12px; background: #fffdf7; border: 1px solid #e9e0cc; border-radius: 26px; box-shadow: 0 1px 2px rgba(74, 58, 28, .06), 0 6px 18px rgba(74, 58, 28, .07); color: #2b2721; text-align: left; cursor: pointer; transition: transform .12s ease; }
.poem-today:active { transform: scale(.985); }
.poem-today-art { position: relative; flex: none; display: block; width: 88px; height: 88px; overflow: hidden; border-radius: 18px; background: #f3ebd9; }
.poem-today-art .poem-scene { position: absolute; inset: 0; min-height: 0; height: 100%; }
.poem-today-art .scene-caption, .poem-today-art .scene-seal { display: none; }
.poem-today-art .poem-background { width: 100%; height: 100%; object-fit: cover; }
.poem-today-copy { flex: 1; min-width: 0; display: grid; gap: 1px; }
.poem-today-copy small { color: #a33019; font-size: 14px; font-weight: 700; }
.poem-today-copy b { font: 400 30px/1.25 "Star Kai", "Kaiti SC", "STKaiti", "KaiTi", serif; overflow-wrap: anywhere; }
.poem-today-copy span { color: #5f584a; font-size: 15px; line-height: 1.4; }
.poem-today-play { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #c43d26; box-shadow: 0 6px 16px rgba(196, 61, 38, .28); }
.poem-today-play svg { width: 26px; height: 26px; fill: #fff; }

/* 全部 / 地图 */
.poem-view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.poem-bar-note { min-width: 0; color: #5f584a; font-size: 14px; line-height: 1.4; }
.poem-view-seg { flex: none; display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px; background: #f3ebd9; }
.poem-view-toolbar .poem-view-seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent !important; color: #5f584a !important; font-size: 15px; font-weight: 600; box-shadow: none !important; cursor: pointer; }
.poem-view-toolbar .poem-view-seg button.active { background: #fffdf7 !important; color: #2b2721 !important; box-shadow: 0 1px 3px rgba(74, 58, 28, .16) !important; }

/* 每一首 */
.content-grid { gap: 12px !important; }
.content-card { border: 1px solid #e9e0cc !important; border-radius: 18px !important; box-shadow: none !important; }
.content-card:hover { box-shadow: 0 1px 2px rgba(74, 58, 28, .06), 0 6px 18px rgba(74, 58, 28, .07) !important; transform: none !important; }
.content-card .card-copy > span:first-child { display: none; }
.content-card .card-copy b { color: #2b2721; font: 400 24px/1.3 "Star Kai", "Kaiti SC", "STKaiti", "KaiTi", serif; }
.card-attribution { color: #5f584a !important; }
.card-attribution span { color: #5f584a !important; background: #f3ebd9 !important; }
.card-attribution strong { color: #5f584a !important; font-family: inherit !important; font-size: 14px !important; font-weight: 500 !important; }
.content-card .number-tag { background: #fffdf7 !important; color: #5f584a !important; border: 1px solid #e9e0cc !important; box-shadow: none !important; }
.content-card.is-recommended { border-color: #c43d26 !important; box-shadow: inset 0 0 0 1px #c43d26 !important; }
.content-card.is-done .card-copy b { color: #2f6239; }

/* 地图 */
.poem-map { padding: 16px !important; background: #fffdf7 !important; border: 1px solid #e9e0cc !important; border-radius: 26px !important; box-shadow: none !important; }
.poem-map-progress em { background: #3e7c4a !important; }
.volume-tabs button { min-height: 44px; border-color: #e9e0cc !important; background: #fbf6ea !important; color: #5f584a !important; box-shadow: none !important; }
.volume-tabs button[aria-selected="true"] { background: #fbe6dd !important; color: #a33019 !important; border-color: #c43d26 !important; }
.poem-nodes button > span { background: #fbf6ea !important; color: #5f584a !important; border-color: #d9cdb2 !important; box-shadow: none !important; }
.poem-nodes button.done > span { background: #e3f0dc !important; color: #2f6239 !important; border-color: #3e7c4a !important; }
.poem-nodes button.recommended > span { background: #c43d26 !important; color: #fff !important; border-color: #c43d26 !important; }

/* 课文 */
.lesson-head { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 0 10px !important; }
#exitLesson { display: none !important; }
.lesson-head { justify-content: flex-end; }
.lesson-head span, .lesson-head b { color: #5f584a !important; }
.lesson-card { background: #fffdf7 !important; border: 1px solid #e9e0cc !important; border-radius: 26px !important; box-shadow: none !important; overflow: hidden; }
.lesson-copy h1 { color: #2b2721 !important; font: 400 clamp(32px, 6vw, 44px)/1.25 "Star Kai", "Kaiti SC", "STKaiti", "KaiTi", serif !important; letter-spacing: 0 !important; }
.lesson-tag { display: none !important; }
.lesson-meta, .poem-attribution span { color: #5f584a !important; background: transparent !important; }
.poem-attribution strong { color: #2b2721 !important; }
.read-button { min-height: 48px; border: 0 !important; border-radius: 999px !important; background: #c43d26 !important; color: #fff !important; font-weight: 600; box-shadow: 0 6px 16px rgba(196, 61, 38, .28) !important; }
.pinyin-toggle { min-height: 48px; border: 0 !important; border-radius: 999px !important; background: #f3ebd9 !important; color: #5f584a !important; font-weight: 600; }
.pinyin-toggle.active { background: #fbe6dd !important; color: #a33019 !important; }
.voice-disclosure { background: transparent !important; border: 0 !important; padding: 4px 0 !important; color: #8a826f !important; font-size: 13px !important; }
body[data-page="reading"] .poem-line p { color: #2b2721 !important; font-family: "Star Kai", "Kaiti SC", "STKaiti", "KaiTi", serif !important; font-weight: 400 !important; }
body[data-page="reading"] .poem-line.is-reading p { color: #c43d26 !important; font-weight: 400 !important; }
.poem-line .pinyin-line { color: #8a826f !important; }
.poem-preface { border-left-color: #d9cdb2 !important; background: #fbf6ea !important; color: #5f584a !important; }
.explanation-box, .think-box, .word-box { background: #fbf6ea !important; background-image: none !important; border: 1px solid #e9e0cc !important; border-radius: 18px !important; box-shadow: none !important; color: #2b2721 !important; }
.explanation-box h2, .word-box h2, .think-box b { color: #2b2721 !important; font-weight: 700 !important; }
.explanation-box small, .explanation-box p, .word-box p, .think-box p { color: #5f584a !important; }
.line-explanations > *, .poem-summary { background: #fffdf7 !important; border-color: #e9e0cc !important; box-shadow: none !important; }
#wordChips > * { background: #fffdf7 !important; border: 1px solid #e9e0cc !important; color: #5f584a !important; box-shadow: none !important; }
.primary-button { min-height: 56px; border-radius: 999px !important; font-size: 19px; font-weight: 600; }

/* 答题 */
.quiz-head { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.quiz-head button { min-height: 44px; padding: 0 14px; border: 0 !important; border-radius: 999px; background: #f3ebd9 !important; color: #2b2721 !important; font-weight: 600; }
.quiz-head div { background: #e9e0cc !important; }
.quiz-head i { background: #c43d26 !important; }
.quiz-card { background: #fffdf7 !important; background-image: none !important; border: 1px solid #e9e0cc !important; border-radius: 26px !important; box-shadow: none !important; }
.quiz-kicker { background: #fbe6dd !important; color: #a33019 !important; }
.quiz-icon { display: none !important; }
.quiz-card h1 { color: #2b2721 !important; font-weight: 600 !important; letter-spacing: 0 !important; }
.answer-list button { min-height: 56px; border: 1.5px solid #e9e0cc !important; border-radius: 18px !important; background: #fbf6ea !important; color: #2b2721 !important; box-shadow: none !important; }
.answer-feedback { background: #fbf6ea !important; border: 1px solid #e9e0cc !important; border-radius: 18px !important; box-shadow: none !important; }
#nextQuestion { min-height: 48px; border: 0 !important; border-radius: 999px !important; background: #c43d26 !important; color: #fff !important; font-weight: 600; }
#nextQuestion[disabled] { opacity: .45; }

/* 完成 */
.result-card { background: #fffdf7 !important; background-image: none !important; border: 1px solid #e9e0cc !important; border-radius: 26px !important; box-shadow: none !important; }
.result-card h1 { font: 400 clamp(30px, 6vw, 40px)/1.25 "Star Kai", "Kaiti SC", "STKaiti", "KaiTi", serif !important; color: #2b2721 !important; }
.result-stars { color: #c43d26 !important; }
.result-stats > div { background: #fbf6ea !important; border-color: #e9e0cc !important; }
.result-actions button { min-height: 48px; border-radius: 999px !important; }
#backLibrary { background: #c43d26 !important; color: #fff !important; border: 0 !important; }
#askFox { background: #f3ebd9 !important; color: #2b2721 !important; border: 0 !important; }
