/* 书林智友 · 课堂大屏、教师工具 */
.theme-big { font-size: 19px; }
.theme-big .topbar-title b { font-size: 24px; }
.head-btn { padding: 8px 14px; font-size: 14px; }
.head-btn.on { background: var(--jade); color: #fff; border-color: var(--jade); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; }

/* 大屏对话 */
.theme-big .chat-scroll { max-width: 1100px; padding-bottom: 210px; }
.theme-big .msg-bubble { font-size: 24px; line-height: 1.75; max-width: min(80%, 900px); }
.theme-big .msg .avatar.av-sm { width: 64px; height: 64px; }
.theme-big .chat-intro .avatar { width: 180px; height: 180px; }
.theme-big .chat-intro h2 { font-size: 40px; }
.theme-big .chat-chips, .theme-big .chat-input { max-width: 1100px; }
.theme-big .chat-input textarea { font-size: 22px; }
.theme-big .chat-chips .chip { font-size: 17px; }
.discuss-q { font-size: 26px; text-align: center; line-height: 1.6; color: var(--ink); margin: 6px 0 10px; }

/* 课堂菜单 */
.class-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 22px; }
.class-tile { position: relative; overflow: hidden; min-height: 230px; padding: 26px; border-radius: 26px; text-align: left; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow-lg); background: linear-gradient(180deg, rgba(40, 28, 18, .05), rgba(40, 28, 18, .78)), var(--bg) center / cover; transition: transform .35s var(--ease); }
.class-tile:hover { transform: translateY(-6px) scale(1.01); }
.class-tile h2 { font-size: 36px; letter-spacing: .08em; }
.class-tile p { font-size: 17px; opacity: .9; }
.ct-ic { position: absolute; top: 22px; left: 22px; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 250, 240, .92); color: var(--cinnabar); }
.ct-ic .ic { width: 30px; height: 30px; }

/* 选人物 */
.pick-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 10px; scrollbar-width: thin; }
.pick { position: relative; overflow: hidden; flex: 0 0 160px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 10px; border-radius: 20px; border: 1px solid var(--line); background: #fffaf0; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.pick::before { content: ""; position: absolute; inset: 0 0 50% 0; background: var(--bg) center / cover; opacity: .35; }
.pick > * { position: relative; }
.pick:hover { transform: translateY(-4px); }
.pick b { font-size: 20px; margin-top: 6px; } .pick small { font-size: 13px; color: var(--ink-3); }

/* 故事接龙 */
.relay { display: grid; grid-template-columns: 340px 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.relay-open { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; padding: 12px; border-radius: 14px; background: rgba(199, 154, 58, .1); }
.relay-open p { font-size: 18px; }
.relay-scroll { height: 46vh; min-height: 300px; overflow-y: auto; }
.relay-turn { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.relay-turn p { font-size: 24px; margin-top: 4px; }
.relay-input { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.relay-input .input { font-size: 20px; }
.relay-input .chip { flex-shrink: 0; font-size: 16px; padding: 8px 14px; }
#r-fb .paper { margin-top: 12px; font-size: 19px; }

/* 作品展示 */
.show { margin-top: 18px; }
.show-stage { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 18px; }
.show-work { position: relative; padding: 30px; }
.show-text { font-size: 26px; line-height: 1.9; margin: 12px 0 18px; }
.show-ai { font-size: 19px; }
.like { font-size: 18px; } .like b { color: var(--cinnabar); }

/* 知识竞赛 */
.battle-setup { display: grid; grid-template-columns: 300px 1fr; gap: 24px; margin-top: 20px; align-items: center; }
.setup-img { border-radius: 18px; }
.battle { display: grid; grid-template-columns: 1fr 320px; gap: 18px; margin-top: 18px; align-items: start; }
.battle-top { display: flex; align-items: center; justify-content: space-between; }
.battle-q { font-size: 34px; line-height: 1.5; margin: 16px 0 22px; }
.big-opts { grid-template-columns: 1fr 1fr; gap: 14px; }
.big-opts .opt { font-size: 24px; padding: 18px; }
.big-opts .opt-k { width: 40px; height: 40px; font-size: 20px; }
.clock { --p: 100; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, #fffaf0 78%, transparent 80%), conic-gradient(var(--jade) calc(var(--p) * 1%), var(--paper-2) 0); transition: background .3s; }
.clock b { font-family: var(--serif); font-size: 34px; }
.clock.hurry { background: radial-gradient(closest-side, #fffaf0 78%, transparent 80%), conic-gradient(var(--cinnabar) calc(var(--p) * 1%), var(--paper-2) 0); animation: pulse 1s infinite; }
.clock.hurry b { color: var(--cinnabar); }
.score-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; }
.score-btns .btn { border-width: 2px; font-size: 17px; }
.score-btns .btn.on { opacity: .55; }
#b-ctrl { flex-direction: column; align-items: center; }
.battle-side h3 { display: flex; align-items: center; gap: 6px; font-size: 24px; margin-bottom: 12px; color: var(--gold); }
.board-row { display: grid; grid-template-columns: 1fr; gap: 4px; margin-bottom: 14px; position: relative; }
.board-name { font-weight: 700; font-size: 18px; }
.board-bar { height: 16px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin-right: 50px; }
.board-bar i { display: block; height: 100%; border-radius: inherit; transition: width .6s var(--ease); }
.board-row b { position: absolute; right: 0; bottom: -6px; font-size: 26px; }
.podium-wrap { margin-top: 30px; }
.podium-title { text-align: center; font-size: 46px; display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--gold); }
.podium-title .ic { width: 44px; height: 44px; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin: 30px 0; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 200px; }
.pod b { font-size: 26px; } .pod span { font-size: 20px; color: var(--ink-2); }
.pod-col { width: 100%; border-radius: 16px 16px 0 0; color: #fff; font-family: var(--serif); font-size: 54px; display: grid; place-items: center; box-shadow: var(--shadow-lg); animation: grow .8s var(--ease) both; transform-origin: bottom; }
.pod-1 .pod-col { height: 220px; } .pod-2 .pod-col { height: 160px; animation-delay: .2s; } .pod-3 .pod-col { height: 120px; animation-delay: .35s; }
@keyframes grow { from { transform: scaleY(0); } }

/* 教师工具 */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 12px; }
.mascot-say img[src*="mode-teacher"] { object-position: center; }
.prep { display: grid; grid-template-columns: 360px 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.prep-form { position: sticky; top: 80px; }
.prep-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.prep-out .md { min-height: 300px; }
.role { display: grid; grid-template-columns: 320px 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.role-card { text-align: center; } .role-card .avatar { margin: 0 auto 10px; } .role-card h2 { font-size: 30px; }
.role-card p { margin: 8px 0; text-align: left; font-size: 15px; }
.facts { padding-left: 1.3em; margin: 8px 0 14px; } .facts li { margin: 6px 0; }
details summary { cursor: pointer; color: var(--cinnabar); font-weight: 600; }
.prompt { white-space: pre-wrap; font-size: 13px; background: var(--paper-2); padding: 14px; border-radius: 12px; margin-top: 10px; max-height: 420px; overflow: auto; font-family: ui-monospace, Consolas, monospace; }
.bank-q { margin-bottom: 10px; }
.bank-head { display: flex; align-items: center; gap: 8px; } .bank-head b { flex: 1; }
.bank-opts { padding-left: 1.6em; margin: 6px 0; font-size: 15px; list-style: upper-alpha; }
.ai-q { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); text-align: left; font-size: 14px; }
.ai-q input { margin-top: 4px; width: 18px; height: 18px; }
.share { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; margin-top: 18px; }
.qr { background: #fff; padding: 10px; border-radius: 16px; box-shadow: var(--shadow); }
.share h3 { font-size: 24px; }
.link-box { display: flex; gap: 8px; margin: 12px 0; }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0; }
.guide-steps h3, .guide h3 { font-size: 20px; color: var(--cinnabar); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.guide-steps p { font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.guide-list { padding-left: 1.3em; font-size: 15px; color: var(--ink-2); } .guide-list li { margin: 6px 0; }

/* 课堂小工具 */
.tool-tabs .chip { font-size: 17px; padding: 10px 18px; }
.tool-tabs .chip .ic { width: 20px; height: 20px; }
.tool-grid { display: grid; grid-template-columns: 360px 1fr; gap: 18px; margin-top: 14px; align-items: stretch; }
.tool-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 420px; }
.roll-name { font-size: clamp(60px, 10vw, 130px); color: var(--cinnabar); min-height: 1.3em; text-align: center; }
.roll-name.pop { animation: pop .6s var(--ease); text-shadow: 0 6px 24px rgba(184, 67, 47, .3); }
.timer-stage { margin-top: 14px; }
.timer-face { width: min(640px, 100%); text-align: center; padding: 20px; border-radius: 26px; transition: background .3s; }
.timer-face b { font-size: clamp(90px, 16vw, 200px); line-height: 1.1; display: block; font-variant-numeric: tabular-nums; }
.timer-face .bar { height: 14px; margin-top: 10px; } .timer-face .bar > i { transition: width 1s linear; }
.timer-face.hurry b { color: var(--cinnabar); animation: pulse 1s infinite; }
.timer-face.over { animation: flash .6s 6; } .timer-face.over b { color: var(--cinnabar); }
@keyframes flash { 50% { background: rgba(184, 67, 47, .18); } }
.tm-custom { width: 52px; border: none; background: transparent; outline: none; border-bottom: 1px solid var(--line); text-align: center; }
.vote-stage { min-height: 420px; }
.vote-q { font-size: 30px; margin-bottom: 18px; }
.vote-row { display: grid; grid-template-columns: 180px 1fr 50px 50px; gap: 12px; align-items: center; width: 100%; padding: 10px; border-radius: 14px; text-align: left; transition: background .2s; }
.vote-row:hover { background: rgba(199, 154, 58, .1); }
.vote-row .bar { height: 26px; } .vote-t { font-size: 20px; font-weight: 700; } .vote-row b { font-size: 26px; text-align: right; }

@media (max-width: 900px) {
    .class-menu, .relay, .show-stage, .battle, .battle-setup, .prep, .role, .share, .guide-steps, .tool-grid { grid-template-columns: 1fr; }
    .prep-form { position: static; }
    .big-opts { grid-template-columns: 1fr; }
    .vote-row { grid-template-columns: 100px 1fr 40px 40px; }
}
