/* 《校园夕歌》VR 课堂 · 纸、墨、朱印、夕阳 */
:root {
  --ink: #2a211b;
  --ink2: #55463a;
  --paper: #f4e8cf;
  --paper2: #e8d5ae;
  --edge: #c4a171;
  --seal: #b3302a;
  --seal2: #8a221d;
  --gold: #d9b46c;
  --gold2: #f3dca2;
  --dusk: #1c130d;
  --teal: #2f5a57;
  --kai: "KaiTi", "STKaiti", "Kaiti SC", "楷体", "BiauKai", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Hiragino Sans GB", sans-serif;
  --paper-img: none;
  --score-img: none;
  --note-img: none;
  --ink-img: none;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .16 0 0 0 .13 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  font-size: clamp(12px, 1.85vh, 30px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  overflow: hidden;
  background: #120c08;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
img { -webkit-user-drag: none; }

#pano { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; cursor: grab; }
body.dragging #pano { cursor: grabbing; }
#stage { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#actors, #spots { position: absolute; inset: 0; }

/* 纸张底纹：有 UI-PAPER 素材时叠用 */
.paperbg, #dialogue, .slip, #panel, #popup, .tile, .opt, .stepdone, #navpanel, .hub-note, .hw-note, #notefly {
  background-color: var(--paper);
  background-image: var(--grain), var(--paper-img), radial-gradient(120% 90% at 50% 40%, rgba(255, 250, 235, .7), rgba(214, 186, 136, .25));
  background-size: 220px 220px, 512px 512px, 100% 100%;
}

/* ———————— 顶栏 ———————— */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 42;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.2rem; pointer-events: none;
}
#topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: baseline; gap: .8rem; color: #fff6e4; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.brand b { font-family: var(--kai); font-size: 1.6rem; letter-spacing: .15em; position: relative; }
.brand b::after { content: ""; position: absolute; left: -.2rem; right: -.4rem; bottom: -.35rem; height: .5rem; background: var(--ink-img) center/100% 100% no-repeat, linear-gradient(90deg, rgba(179, 48, 42, .85), rgba(179, 48, 42, 0)); opacity: .8; border-radius: 50%; }
#scenename { font-family: var(--kai); font-size: 1rem; opacity: 0; letter-spacing: .1em; }
#scenename.show { animation: sceneName 4.5s ease forwards; }
@keyframes sceneName { 0% { opacity: 0; transform: translateX(-8px); } 15%, 75% { opacity: .9; transform: none; } 100% { opacity: 0; } }
body.at-start #topbar .brand, body.at-start #seals { visibility: hidden; }

#seals { display: flex; gap: .7rem; opacity: 0; transform: translateY(-10px); transition: .6s; }
#seals.on { opacity: 1; transform: none; }
.seal, .pseal {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem;
  font-family: var(--kai); font-weight: bold; color: #fff3e2; background: var(--seal);
  border-radius: .3rem; box-shadow: inset 0 0 0 .14rem rgba(255, 238, 220, .55), 0 3px 10px rgba(0, 0, 0, .35);
  transform: rotate(-4deg); position: relative;
}
.seal i, .pseal i { font-style: normal; font-size: 1.55rem; line-height: 1; }
.seal::after, .pseal::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grain); background-size: 120px; mix-blend-mode: screen; opacity: .9; pointer-events: none; }
.seal.empty, .pseal.empty { background: rgba(255, 245, 225, .12); color: rgba(255, 240, 220, .55); box-shadow: inset 0 0 0 .12rem rgba(255, 235, 210, .55); }
.pseal.empty { background: rgba(179, 48, 42, .06); color: rgba(179, 48, 42, .45); box-shadow: inset 0 0 0 .12rem rgba(179, 48, 42, .5); }
.seal.stamp { animation: stampIn .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes stampIn { 0% { transform: scale(2.4) rotate(-14deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-4deg); } }

.tools { display: flex; gap: .55rem; }
.tools button {
  width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 1px solid rgba(243, 220, 162, .45);
  background: rgba(28, 19, 13, .55); display: grid; place-items: center; backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
}
.tools button:hover { background: rgba(60, 40, 26, .75); transform: translateY(-1px); }
.tools svg { width: 1.35rem; height: 1.35rem; fill: var(--gold2); }
#btnSound .off { display: none; }
#btnSound.off .on { display: none; }
#btnSound.off .off { display: inline; }

/* ———————— 热点 ———————— */
.spot {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  display: flex; align-items: center; gap: .5rem;
  margin: -1.6rem 0 0 -1.6rem; padding: 0; border: 0; background: none;
  animation: spotIn .6s ease both;
}
.spot.off { visibility: hidden; }
.spot b {
  position: relative; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  font-family: var(--kai); font-size: 1.45rem; font-weight: normal; color: #fff7e8;
  background: radial-gradient(circle, rgba(42, 28, 18, .78) 55%, rgba(42, 28, 18, .35));
  box-shadow: 0 0 0 .14rem var(--gold2), 0 0 1.4rem rgba(243, 220, 162, .55);
  transition: transform .25s;
}
.spot .ring { position: absolute; left: 0; top: 0; width: 3.2rem; height: 3.2rem; border-radius: 50%; border: .14rem solid var(--gold2); animation: ripple 2.4s ease-out infinite; }
.spot span {
  font-family: var(--kai); font-size: 1.15rem; color: var(--ink); white-space: nowrap;
  background: rgba(244, 232, 207, .92); padding: .25rem .7rem; border-radius: .25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform .25s;
}
.spot:hover b, .spot:focus-visible b { transform: scale(1.12); }
.spot:hover span { transform: translateX(3px); }
.spot.main b { width: 3.8rem; height: 3.8rem; font-size: 1.7rem; background: radial-gradient(circle, rgba(179, 48, 42, .95) 55%, rgba(179, 48, 42, .5)); box-shadow: 0 0 0 .16rem var(--gold2), 0 0 2rem rgba(255, 200, 140, .8); }
.spot.main .ring { width: 3.8rem; height: 3.8rem; border-color: #ffd9a0; }
.spot.main { margin: -1.9rem 0 0 -1.9rem; }
.spot.nav b { background: radial-gradient(circle, rgba(47, 90, 87, .85) 55%, rgba(47, 90, 87, .4)); }
@keyframes ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes spotIn { from { opacity: 0; } to { opacity: 1; } }

/* ———————— 角色 ———————— */
.actor { position: absolute; left: 0; top: 0; pointer-events: none; visibility: hidden; will-change: transform; }
.actor[data-who="friends"] { z-index: 1; }
.actor[data-who="teacher"] { z-index: 2; }
.actor[data-who="aming"] { z-index: 3; }
.actor.on { visibility: visible; }
.actor img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 .6rem 1.2rem rgba(20, 10, 4, .45)); transform-origin: 50% 100%; opacity: 0; }
.actor .shadow { position: absolute; left: 18%; right: 18%; bottom: -2%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 10, 4, .45), rgba(20, 10, 4, 0)); opacity: 0; }
.actor.on img { animation: actorIn .55s cubic-bezier(.2, 1.3, .4, 1) forwards; }
.actor.on.ghost img { animation: ghostIn 1.2s ease forwards; }
.actor.on .shadow { animation: fadeIn .6s ease forwards; }
.actor.on.bounce img { animation: actorIn .55s cubic-bezier(.2, 1.3, .4, 1) forwards, bounce .45s ease; }
.actor.on.talking img { animation: actorIn .01s forwards, talk 1.4s ease-in-out infinite; }
.actor.leave img { animation: leave .9s ease-in forwards !important; }
.actor.leave .shadow, .actor.fadeout .shadow { animation: fadeOut .4s forwards !important; }
.actor.fadeout img { animation: fadeOut .45s forwards !important; }
.actor.ph img { outline: 2px dashed rgba(255, 255, 255, .35); outline-offset: -2px; }
@keyframes actorIn { from { opacity: 0; transform: translateY(6%) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ghostIn { from { opacity: 0; filter: blur(6px) drop-shadow(0 .6rem 1.2rem rgba(20, 10, 4, .45)); } to { opacity: 1; } }
@keyframes bounce { 0% { transform: scale(1, 1); } 35% { transform: scale(1.03, .96); } 70% { transform: scale(.99, 1.02); } 100% { transform: none; } }
@keyframes talk { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-1.2%); opacity: 1; } }
@keyframes leave { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-60%) translateY(4%) scale(.9); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

/* 课桌上的乐谱 */
.deskscore { position: absolute; left: 0; top: 0; pointer-events: none; visibility: hidden; display: none; }
.deskscore.on { display: block; visibility: visible; }
body[data-mode="explore"] .deskscore { pointer-events: auto; cursor: pointer; }
.deskscore .paper {
  width: 100%; aspect-ratio: 3 / 2; transform: perspective(60rem) rotateX(50deg) rotateZ(-3deg);
  background: var(--score-img) center/100% 100% no-repeat, linear-gradient(160deg, #ecd9ad, #d8b97f);
  box-shadow: 0 1.2rem 2rem rgba(30, 15, 5, .45); border-radius: .3rem; padding: 6% 7%;
}
.deskscore .jianpu { width: 100%; height: 100%; opacity: .9; }
.deskscore.glow .paper { animation: deskGlow 1.6s ease-in-out infinite; }
@keyframes deskGlow { 0%, 100% { box-shadow: 0 1.2rem 2rem rgba(30, 15, 5, .45), 0 0 0 0 rgba(255, 210, 140, 0); } 50% { box-shadow: 0 1.2rem 2rem rgba(30, 15, 5, .45), 0 0 2.5rem .8rem rgba(255, 210, 140, .85); } }

/* 有真实旧纸素材时：去掉方形底色，阴影沿纸边 */
.real-score .start-score, .real-score .hub-score, .real-score .hw-score, .real-score .deskscore .paper {
  background: var(--score-img) center/100% 100% no-repeat; box-shadow: none; border-radius: 0;
}
.real-score .start-score { filter: drop-shadow(0 2.2rem 2.6rem rgba(0, 0, 0, .65)) drop-shadow(0 0 2.5rem rgba(255, 200, 120, .22)); }
.real-score .start-score:hover { box-shadow: none; filter: drop-shadow(0 2.2rem 2.6rem rgba(0, 0, 0, .65)) drop-shadow(0 0 3.5rem rgba(255, 210, 140, .5)); }
.real-score .hub-score, .real-score .hw-score { filter: drop-shadow(0 1rem 1.4rem rgba(40, 20, 8, .4)); }
.real-score .deskscore .paper { filter: drop-shadow(0 .8rem 1rem rgba(30, 15, 5, .5)); }
.real-score .deskscore.glow .paper { animation: deskGlowF 1.6s ease-in-out infinite; }
@keyframes deskGlowF { 0%, 100% { filter: drop-shadow(0 .8rem 1rem rgba(30, 15, 5, .5)); } 50% { filter: drop-shadow(0 .8rem 1rem rgba(30, 15, 5, .5)) drop-shadow(0 0 1.4rem rgba(255, 210, 140, .95)); } }

/* 庭院门匾上的字（旧式匾额从右往左读） */
.plaque { position: absolute; left: 0; top: 0; visibility: hidden; display: flex; justify-content: space-between; padding: 0 .45em; pointer-events: none; }
.plaque i { font-style: normal; font-family: var(--kai); font-weight: bold; color: #3a2414; opacity: .86; text-shadow: 0 1px 0 rgba(255, 230, 190, .35), 0 -1px 1px rgba(0, 0, 0, .35); }

/* ———————— 简谱 ———————— */
.jianpu { display: block; mix-blend-mode: multiply; }
.jianpu text { font-family: var(--kai); fill: #3b2a1e; }
.jianpu .jp-title { font-size: 46px; letter-spacing: 10px; font-weight: bold; }
.jianpu .jp-key { font-size: 30px; }
.jianpu .jp-key.frac { font-size: 22px; }
.jianpu .jp-frac, .jianpu .jp-bar, .jianpu .jp-beam { stroke: #3b2a1e; stroke-width: 2.6; }
.jianpu .jp-bar.fin { stroke-width: 6; }
.jianpu .jp-n { font-size: 36px; font-weight: bold; }
.jianpu .jp-w { font-size: 25px; }
.jianpu .jp-dot { fill: #3b2a1e; }
.jianpu .jp-slur { fill: none; stroke: #3b2a1e; stroke-width: 2.4; }

/* ———————— 开场 ———————— */
.screen { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fbeed6; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 45%, #3a2717 0%, #1d130c 55%, #0d0805 100%); }
.start-glow { position: absolute; inset: -20%; background: radial-gradient(35% 30% at 50% 52%, rgba(255, 205, 130, .28), rgba(255, 205, 130, 0)); animation: breathe 5s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
#startTitle { position: relative; font-family: var(--kai); font-weight: normal; font-size: 3.5rem; letter-spacing: .32em; margin: 0 0 .4rem .32em; color: #f6e2b4; text-shadow: 0 0 2rem rgba(255, 190, 110, .45); animation: rise 1.4s ease both; }
#startSub { position: relative; margin: 0 0 2.2vh; font-size: 1.05rem; letter-spacing: .2em; opacity: .7; animation: rise 1.4s .2s ease both; }
.start-score {
  position: relative; width: min(46rem, 74vw); aspect-ratio: 3 / 2; border: 0; padding: 4.6% 5.5%;
  background: var(--score-img) center/100% 100% no-repeat, linear-gradient(160deg, #ead6a9, #cfae74);
  border-radius: .4rem; box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, .65), 0 0 4rem rgba(255, 200, 120, .25);
  transform: rotate(-3deg); animation: floaty 6s ease-in-out infinite, rise 1.6s .3s ease both; transition: box-shadow .4s;
}
.start-score:hover { box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, .65), 0 0 6rem rgba(255, 210, 140, .55); }
.start-score .jianpu { width: 100%; height: 100%; opacity: .88; filter: sepia(.4); }
.start-hint { position: relative; margin: 3vh 0 1rem; font-family: var(--kai); font-size: 1.5rem; letter-spacing: .3em; color: var(--gold2); animation: pulse 2.2s ease-in-out infinite; }
.start-go { position: relative; border: 1px solid rgba(243, 220, 162, .5); background: rgba(243, 220, 162, .08); color: var(--gold2); border-radius: 2rem; padding: .45rem 2.2rem; font-family: var(--kai); font-size: 1.2rem; letter-spacing: .4em; }
@keyframes floaty { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-1.2vh); } }
@keyframes rise { from { opacity: 0; transform: translateY(2vh); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
#start.leaving .start-score { animation: none; transition: transform 1s cubic-bezier(.6, 0, .8, .4), opacity 1s, filter 1s; transform: scale(2.4) rotate(6deg); opacity: 0; filter: blur(6px) brightness(1.6); }
#start.leaving h1, #start.leaving p, #start.leaving .start-go { transition: opacity .5s; opacity: 0; }

#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 45; pointer-events: none; }
#tunnelText { position: fixed; left: 0; right: 0; top: 46%; z-index: 46; text-align: center; font-family: var(--kai); font-size: 2.6rem; letter-spacing: .5em; color: #fff0cf; opacity: 0; pointer-events: none; text-shadow: 0 0 1.5rem rgba(255, 200, 120, .9); }
body.tunneling #tunnelText { animation: tunnelText 2.4s ease forwards; }
@keyframes tunnelText { 0% { opacity: 0; transform: scale(.8); letter-spacing: .2em; } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); letter-spacing: .8em; } }
#flashlayer { position: fixed; inset: 0; z-index: 55; background: radial-gradient(circle at 50% 50%, #fffaf0, #ffe9c4); opacity: 0; pointer-events: none; transition: opacity .42s ease; }
#flashlayer.on { opacity: 1; }

#eyelids { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#eyelids .lid { position: absolute; left: -5%; right: -5%; height: 56%; background: #050302; transition: transform .55s cubic-bezier(.5, 0, .3, 1); transform: translateY(-110%); }
#eyelids .lid.top { top: 0; border-radius: 0 0 50% 50% / 0 0 22% 22%; box-shadow: 0 1.5rem 3rem 1.5rem #050302; }
#eyelids .lid.bottom { bottom: 0; transform: translateY(110%); border-radius: 50% 50% 0 0 / 22% 22% 0 0; box-shadow: 0 -1.5rem 3rem 1.5rem #050302; }
#eyelids.closed .lid { transform: none; transition-duration: .25s; }
#eyelids.half .lid.top { transform: translateY(-62%); }
#eyelids.half .lid.bottom { transform: translateY(62%); }
#eyelids.open .lid.top { transform: translateY(-115%); transition-duration: 1.1s; }
#eyelids.open .lid.bottom { transform: translateY(115%); transition-duration: 1.1s; }

#titlecard { position: fixed; inset: 0; z-index: 58; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; color: #fbe9c6; }
#titlecard small { font-family: var(--kai); font-size: 1.6rem; letter-spacing: .6em; opacity: .85; }
#titlecard b { font-family: var(--kai); font-weight: normal; font-size: 4.6rem; letter-spacing: .4em; margin-left: .4em; text-shadow: 0 0 2.5rem rgba(255, 190, 110, .55); }
#titlecard .inkline { display: block; width: 22rem; height: 1.6rem; margin-top: .4rem; background: var(--ink-img) center/100% 100% no-repeat, linear-gradient(90deg, rgba(179, 48, 42, 0), rgba(179, 48, 42, .9), rgba(179, 48, 42, 0)); filter: invert(0); opacity: .85; transform-origin: left; }
#titlecard.show small { animation: rise 1s ease both; }
#titlecard.show b { animation: rise 1.2s .25s ease both; }
#titlecard.show .inkline { animation: draw 1s .6s ease both; }
#titlecard.show { animation: fadeAway 2.3s ease forwards; }
@keyframes draw { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: .85; } }
@keyframes fadeAway { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }

/* ———————— 对白 ———————— */
#dialogue {
  position: fixed; z-index: 20; left: 50%; bottom: 4.5vh; transform: translateX(-50%);
  width: min(62rem, 92vw); min-height: 7.6rem; padding: 1.6rem 2.4rem 1.5rem 7.4rem;
  border-radius: .4rem; box-shadow: 0 1.2rem 3rem rgba(20, 10, 4, .5), inset 0 0 0 1px rgba(150, 110, 60, .35);
  cursor: pointer; animation: dlgIn .35s ease both;
}
#dialogue::before { content: ""; position: absolute; inset: .45rem; border: 1px solid rgba(150, 110, 60, .35); border-radius: .25rem; pointer-events: none; }
#dlgName {
  position: absolute; left: 1.6rem; top: 50%; transform: translateY(-50%) rotate(-3deg);
  writing-mode: vertical-rl; white-space: nowrap; font-family: var(--kai); font-size: 1.5rem; letter-spacing: .25em; color: #fff3e2;
  background: var(--seal); padding: .7rem .5rem; border-radius: .25rem; box-shadow: inset 0 0 0 .12rem rgba(255, 238, 220, .5);
}
#dialogue[data-who="me"] #dlgName { background: var(--teal); }
#dialogue[data-who="teacher"] #dlgName { background: #5b4a3a; }
#dlgText { margin: 0; font-family: var(--kai); font-size: 1.75rem; line-height: 1.6; color: var(--ink); min-height: 2.8rem; }
#dialogue .next { position: absolute; right: 1.4rem; bottom: .9rem; font-style: normal; color: var(--seal); font-size: 1.4rem; opacity: 0; }
#dialogue.ready .next { opacity: 1; animation: nudge 1s ease-in-out infinite; }
@keyframes dlgIn { from { opacity: 0; transform: translate(-50%, 1.2rem); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(.35rem); } }

#comic { position: fixed; z-index: 21; left: 50%; top: 30%; width: 15rem; height: 15rem; margin: -7.5rem 0 0 -7.5rem; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, #fffdf6 62%, #f2e6cc); box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .35); }
#comic::before, #comic::after { content: ""; position: absolute; border-radius: 50%; background: #fffdf6; box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .25); }
#comic::before { width: 2.4rem; height: 2.4rem; left: 8%; bottom: -1.6rem; }
#comic::after { width: 1.2rem; height: 1.2rem; left: 0; bottom: -3.2rem; }
#comic img { position: absolute; inset: 8% 14% 0; width: 72%; height: 92%; object-fit: contain; object-position: bottom; border-radius: 0 0 50% 50%; }
#comic.show { animation: comicIn .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes comicIn { from { transform: scale(.2) rotate(-10deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ———————— 选择纸条 ———————— */
#choices { position: fixed; z-index: 20; left: 0; right: 0; bottom: 8vh; display: flex; justify-content: center; gap: 3vw; pointer-events: none; }
.slip {
  pointer-events: auto; position: relative; width: min(31rem, 45vw); padding: 1.8rem 2rem 1.6rem; text-align: left; border: 0;
  border-radius: .3rem; box-shadow: 0 1.4rem 3rem rgba(20, 10, 4, .55); transform: rotate(calc((var(--i) - .5) * 3deg));
  animation: slipIn .7s calc(var(--i) * .15s) cubic-bezier(.2, 1.3, .4, 1) both; transition: transform .25s, box-shadow .25s, opacity .3s;
}
.slip:hover { transform: translateY(-.6rem) rotate(0deg); box-shadow: 0 2rem 3.6rem rgba(20, 10, 4, .6), 0 0 0 .15rem var(--gold); }
.slip em { position: absolute; top: -.9rem; left: 1.4rem; font-style: normal; font-family: var(--kai); font-size: 1.05rem; color: #fff3e2; background: var(--seal); padding: .2rem .8rem; border-radius: .2rem; letter-spacing: .15em; }
.slip:nth-child(2) em { background: var(--teal); }
.slip b { display: block; font-family: var(--kai); font-size: 1.85rem; font-weight: normal; margin: .3rem 0 .4rem; color: var(--ink); }
.slip span { font-size: 1rem; color: var(--ink2); }
.slip .tick { position: absolute; right: 1rem; top: 1rem; font-style: normal; font-size: .9rem; color: var(--seal); border: 1px solid var(--seal); padding: 0 .4rem; border-radius: .2rem; transform: rotate(8deg); }
#choices.picked .slip:not(.chosen) { opacity: 0; transform: translateY(2rem); }
#choices.picked .slip.chosen { transform: scale(1.06); box-shadow: 0 0 0 .2rem var(--gold2), 0 0 3rem rgba(255, 210, 140, .8); }
@keyframes slipIn { from { opacity: 0; transform: translateY(-40vh) rotate(-12deg); } to { opacity: 1; } }

/* ———————— 卷轴面板 ———————— */
#panel {
  position: fixed; z-index: 25; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(80rem, 94vw); height: min(47rem, 86vh); padding: 2.4rem 3rem 2.2rem;
  border-radius: .3rem; box-shadow: 0 2rem 5rem rgba(10, 5, 2, .6);
}
#panel::before, #panel::after {
  content: ""; position: absolute; left: -1.4rem; right: -1.4rem; height: 1.4rem; border-radius: .7rem;
  background: linear-gradient(180deg, #7a4f2e, #4a2e19 55%, #2e1c10); box-shadow: 0 .4rem .8rem rgba(0, 0, 0, .4);
}
#panel::before { top: -.7rem; }
#panel::after { bottom: -.7rem; }
#panel.unroll { animation: unroll .65s cubic-bezier(.3, .9, .3, 1) both; }
#panel.rolling { animation: rollup .38s ease-in both; }
@keyframes unroll { from { clip-path: inset(48% -2rem 48% -2rem); } to { clip-path: inset(-1rem -2rem -1rem -2rem); } }
@keyframes rollup { from { clip-path: inset(-1rem -2rem -1rem -2rem); opacity: 1; } to { clip-path: inset(48% -2rem 48% -2rem); opacity: .4; } }
#panelClose { position: absolute; z-index: 3; right: 1.2rem; top: 1.1rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(120, 80, 40, .4); background: rgba(255, 250, 238, .7); font-size: 1.6rem; line-height: 1; color: var(--ink2); }
#panelBody { height: 100%; overflow-y: auto; overflow-x: hidden; padding: 0 .4rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(120, 80, 40, .4) transparent; }
.phead { display: flex; align-items: center; gap: 1.1rem; margin: 0 0 1.1rem; }
.phead h2 { margin: 0; font-family: var(--kai); font-weight: normal; font-size: 2.2rem; letter-spacing: .15em; color: var(--ink); }
.phead p { margin: .1rem 0 0; font-size: 1rem; color: var(--ink2); letter-spacing: .1em; }
.pseal { width: 3.4rem; height: 3.4rem; flex: none; }
.pseal i { font-size: 2rem; }
.pback { position: absolute; left: 1.2rem; top: 1.1rem; z-index: 3; border: 0; background: none; font-family: var(--kai); font-size: 1.2rem; color: var(--seal); padding: .3rem .6rem; }
#panel[data-kind="step"] .phead { margin-left: 4.2rem; }
#panel[data-kind="scrolls"] > #panelBody > .bigbtn { display: block; margin: .6rem auto 0; }
.lead { margin: 0 0 1.2rem; font-family: var(--kai); font-size: 1.6rem; line-height: 1.55; color: var(--ink2); }
.lead.withbtn { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.lead .bigbtn { flex: none; }
.bigbtn {
  display: inline-flex; align-items: center; gap: .4rem; border: 0; border-radius: 2rem; padding: .7rem 2rem;
  font-family: var(--kai); font-size: 1.35rem; letter-spacing: .12em; color: #fff3e2; background: linear-gradient(180deg, #c23a32, #962620);
  box-shadow: 0 .5rem 1.2rem rgba(150, 38, 32, .35), inset 0 0 0 1px rgba(255, 220, 200, .3); transition: transform .2s, box-shadow .2s;
}
.bigbtn:hover { transform: translateY(-2px); box-shadow: 0 .8rem 1.6rem rgba(150, 38, 32, .45); }
.bigbtn.ghost { background: rgba(255, 250, 238, .6); color: var(--seal); box-shadow: inset 0 0 0 .12rem var(--seal); }
.bigbtn.small { padding: .5rem 1.4rem; font-size: 1.2rem; }

/* 作业总览 */
.hub { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.6rem; align-items: center; min-height: calc(100% - 6rem); padding-bottom: 1.5rem; }
.hub-score { position: relative; aspect-ratio: 3 / 2; padding: 5% 6%; border-radius: .3rem; background: var(--score-img) center/100% 100% no-repeat, linear-gradient(160deg, #ead6a9, #cfae74); box-shadow: 0 1rem 2rem rgba(40, 20, 8, .35); transform: rotate(-1.2deg); }
.hub-score .jianpu { width: 100%; height: 100%; opacity: .9; }
.hub-note, .hw-note {
  position: absolute; right: -1.5rem; bottom: -1.8rem; width: 62%; padding: 1rem 1.4rem .8rem; transform: rotate(3deg);
  font-family: var(--kai); color: #2b1d14; box-shadow: 0 .8rem 1.6rem rgba(40, 20, 8, .35);
  background: var(--note-img) center/100% 100% no-repeat, var(--paper);
}
.hub-note p, .hw-note p { margin: 0; font-size: 1.3rem; line-height: 1.55; }
.hub-note span, .hw-note span { display: block; text-align: right; font-size: 1rem; opacity: .75; }
.hub-tiles { display: flex; flex-direction: column; gap: 1rem; }
.tile {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 1.1rem; align-items: center; text-align: left;
  border: 0; padding: 1.1rem 1.4rem; border-radius: .35rem; box-shadow: 0 .5rem 1.2rem rgba(40, 20, 8, .22), inset 0 0 0 1px rgba(150, 110, 60, .3);
  animation: rise .6s calc(var(--i) * .1s + .2s) ease both; transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateX(.4rem); box-shadow: 0 .8rem 1.6rem rgba(40, 20, 8, .3), inset 0 0 0 .14rem var(--gold); }
.tile .pseal { grid-row: span 2; }
.tile b { font-family: var(--kai); font-size: 1.7rem; font-weight: normal; }
.tile small { grid-column: 2; font-size: .95rem; color: var(--ink2); }
.tile em { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-family: var(--kai); font-size: 1.1rem; color: #fff3e2; background: var(--seal); padding: .3rem 1rem; border-radius: 1rem; }
.tile.done em { background: none; color: var(--seal); box-shadow: inset 0 0 0 1px var(--seal); }
.hub-tiles .bigbtn { margin-top: .6rem; align-self: flex-start; animation: pulse 1.6s ease-in-out infinite; }

/* 范唱播放器 */
.player { display: flex; align-items: center; gap: 1.2rem; padding: .9rem 1.4rem; margin: 0 0 1.4rem; border-radius: 3rem; background: rgba(255, 250, 238, .55); box-shadow: inset 0 0 0 1px rgba(150, 110, 60, .3); }
.player .play { position: relative; flex: none; width: 3.8rem; height: 3.8rem; border-radius: 50%; border: 0; background: linear-gradient(180deg, #c23a32, #962620); box-shadow: 0 .4rem 1rem rgba(150, 38, 32, .4); }
.player .play i { position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: .75rem 0 .75rem 1.2rem; border-color: transparent transparent transparent #fff3e2; }
.player.on .play i { left: 50%; width: 1.1rem; height: 1.3rem; border: 0; border-left: .38rem solid #fff3e2; border-right: .38rem solid #fff3e2; }
.player.on .play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: .14rem solid rgba(194, 58, 50, .6); animation: ripple 1.6s ease-out infinite; }
.pinfo { flex: 1; min-width: 0; }
.pinfo b { display: block; font-family: var(--kai); font-weight: normal; font-size: 1.25rem; margin-bottom: .45rem; }
.prog { height: .4rem; border-radius: .2rem; background: rgba(120, 80, 40, .2); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--seal)); border-radius: inherit; }
.player .time { font-variant-numeric: tabular-nums; color: var(--ink2); font-size: 1rem; min-width: 2.6rem; }
.player.compact { flex-wrap: wrap; border-radius: 1rem; padding: 1rem 1.2rem; margin: 0; gap: .8rem 1rem; }
.player.compact .pinfo { flex-basis: calc(100% - 5rem); }
.beat { display: flex; align-items: flex-end; gap: .9rem; }
.lamp { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.lamp i { display: block; border-radius: 50%; background: rgba(179, 48, 42, .18); box-shadow: inset 0 0 0 .12rem rgba(179, 48, 42, .5); }
.lamp.s i { width: 2.6rem; height: 2.6rem; }
.lamp.w i { width: 1.6rem; height: 1.6rem; }
.lamp em { font-style: normal; font-family: var(--kai); font-size: 1rem; color: var(--ink2); }
.lamp.hit i { animation: lamp .5s ease-out; }
@keyframes lamp { 0% { background: var(--seal); box-shadow: 0 0 1.2rem rgba(255, 140, 90, .9); transform: scale(1.18); } 100% { background: rgba(179, 48, 42, .18); transform: scale(1); } }

/* 一听：选项 */
.qs { display: flex; flex-direction: column; gap: 1.5rem; margin-top: .6rem; }
.q { display: flex; align-items: center; gap: 1.2rem; }
.ql { flex: none; width: 5rem; text-align: center; font-family: var(--kai); font-size: 1.55rem; color: #fff3e2; background: #5b4a3a; padding: .45rem 0; border-radius: .25rem; }
.q.solved .ql { background: var(--seal); }
.opts { display: flex; flex-wrap: wrap; gap: .9rem; }
.opt { border: 0; padding: .8rem 2rem; border-radius: .35rem; font-family: var(--kai); font-size: 1.7rem; box-shadow: 0 .3rem .8rem rgba(40, 20, 8, .18), inset 0 0 0 1px rgba(150, 110, 60, .35); transition: transform .15s, opacity .3s; }
.opt:hover { transform: translateY(-2px); }
.q.solved .opt:not(.right) { opacity: .35; pointer-events: none; }
.opt.right { background: var(--seal); color: #fff3e2; box-shadow: 0 0 0 .14rem var(--gold2), 0 .4rem 1rem rgba(150, 38, 32, .4); }
.opt.right::after { content: " ✓"; }
.opt.wrong { animation: shake .45s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-.4rem); } 40%, 80% { transform: translateX(.4rem); } }

/* 二听：画面卡 */
.jing { display: flex; gap: 2rem; align-items: flex-start; }
.jing-side { flex: 1; min-width: 12rem; display: flex; flex-direction: column; gap: 1.2rem; }
.jing-side .checkrow { flex-direction: column; align-items: stretch; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; flex: none; width: min(68%, calc((min(47rem, 86vh) - 15.5rem) * 1.74)); transition: opacity .5s, transform .5s; }
.cards.fold { opacity: 0; transform: scale(.97); }
.card { position: relative; padding: 0; border: 0; border-radius: .35rem; overflow: hidden; aspect-ratio: 16 / 9; background: #d9c39a; box-shadow: 0 .4rem 1rem rgba(40, 20, 8, .25); animation: rise .5s calc(var(--i) * .05s) ease both; transition: transform .2s, box-shadow .2s, filter .3s; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card:hover { transform: translateY(-3px); }
.card .mark { position: absolute; right: .5rem; top: .5rem; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255, 250, 238, .75); box-shadow: inset 0 0 0 .14rem rgba(120, 80, 40, .5); }
.card.sel { box-shadow: 0 0 0 .22rem var(--gold), 0 .6rem 1.4rem rgba(40, 20, 8, .35); }
.card.sel .mark { background: var(--seal); box-shadow: inset 0 0 0 .14rem rgba(255, 238, 220, .6); }
.card.sel .mark::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff3e2; font-style: normal; font-size: 1.2rem; }
.card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .4rem .6rem; font-family: var(--kai); font-size: 1.15rem; color: #fff7e8; background: linear-gradient(transparent, rgba(20, 10, 4, .8)); opacity: 0; transition: opacity .3s; text-align: center; }
.card.right .cap, .card.wrong .cap { opacity: 1; }
.card.wrong { filter: grayscale(.9) brightness(.8); animation: shake .45s ease; }
.card.wrong .cap { background: linear-gradient(transparent, rgba(110, 20, 16, .85)); }
.checkrow { display: flex; align-items: center; gap: 1.4rem; margin: 1.3rem 0 0; flex-wrap: wrap; }
.checkrow.center { justify-content: center; }
.hint { font-family: var(--kai); font-size: 1.3rem; color: var(--seal); }
.storyline { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; position: relative; padding: .4rem 0; }
.storyline::before { content: ""; position: absolute; left: 3%; right: 3%; top: 38%; height: .3rem; background: linear-gradient(90deg, rgba(179, 48, 42, 0), rgba(179, 48, 42, .6), rgba(179, 48, 42, 0)); }
.storyline figure { position: relative; margin: 0; animation: rise .6s calc(var(--i) * .18s) ease both; }
.storyline img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .3rem; box-shadow: 0 0 0 .14rem var(--gold), 0 .5rem 1rem rgba(40, 20, 8, .3); display: block; }
.storyline figcaption { margin-top: .5rem; text-align: center; font-family: var(--kai); font-size: 1.1rem; line-height: 1.35; color: var(--ink); }

/* 三听：旋律线 */
.strips { display: flex; flex-direction: column; gap: .55rem; margin-top: 1rem; }
.strip { position: relative; display: grid; grid-template-columns: 2.8rem 4.6rem 1fr; grid-template-rows: auto auto; align-items: center; column-gap: .9rem; padding: .2rem 1rem; border-radius: .35rem; background: rgba(255, 250, 238, .5); box-shadow: inset 0 0 0 1px rgba(150, 110, 60, .25); cursor: pointer; transition: box-shadow .2s, background .2s; }
.strip:hover { background: rgba(255, 250, 238, .85); }
.strip .pp { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: #5b4a3a; color: #fff3e2; font-size: .95rem; padding-left: .15rem; }
.strip.playing .pp { background: var(--seal); }
.strip .no { font-family: var(--kai); font-size: 1.3rem; color: var(--ink2); }
.strip .graph { position: relative; height: 4.6rem; }
.mline { position: absolute; inset: 0; }
.strip .graph svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mline .top { position: absolute; width: .8rem; height: .8rem; margin: -.4rem 0 0 -.4rem; border-radius: 50%; background: var(--seal); opacity: 0; }
.strip .lyr { grid-column: 3; font-family: var(--kai); font-size: 1.1rem; color: var(--ink2); max-height: 0; overflow: hidden; opacity: 0; transition: .5s; }
.strips.lyrics .lyr { max-height: 2rem; opacity: 1; }
.graph .ink { fill: none; stroke: #2e231b; stroke-width: 4px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.graph .under { fill: none; stroke: rgba(150, 110, 60, .12); stroke-width: 9px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.graph .bar { stroke: rgba(120, 80, 40, .22); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.strip.peak .mline .top { opacity: 1; animation: lamp 1s ease 3; }
.playhead { position: absolute; top: 0; bottom: 0; left: 0; width: .2rem; background: var(--seal); border-radius: .1rem; opacity: 0; transition: left .08s linear; }
.strip.playing .playhead { opacity: 1; }
.strip.sel { box-shadow: 0 0 0 .2rem var(--gold), 0 .4rem 1rem rgba(40, 20, 8, .2); background: rgba(255, 246, 222, .95); }
.strip.same { box-shadow: 0 0 0 .22rem var(--seal), 0 0 1.6rem rgba(179, 48, 42, .35); background: #fff4e0; }
.strip.same .graph .ink { stroke: var(--seal); }
.strip.same::after { content: "相同"; position: absolute; right: .8rem; top: .5rem; font-family: var(--kai); font-size: 1rem; color: #fff3e2; background: var(--seal); padding: .1rem .6rem; border-radius: .2rem; transform: rotate(6deg); }
.strip.peak { box-shadow: 0 0 0 .22rem var(--gold), 0 0 1.6rem rgba(217, 180, 108, .45); }
.strip.nope { animation: shake .45s ease; }
.gumsg, .q2 { font-family: var(--kai); font-size: 1.35rem; color: var(--ink); margin: 1rem 0 0; }
.gumsg b, .q2 b, .stepdone b { color: var(--seal); font-weight: normal; }
.q2 { color: var(--teal); animation: rise .5s ease both; }

.stepdone { margin: 1.5rem 0 .5rem; padding: 1.2rem 1.6rem; border-radius: .4rem; box-shadow: 0 0 0 .14rem var(--gold), 0 .6rem 1.4rem rgba(40, 20, 8, .2); display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; animation: rise .6s .5s ease both; }
.stepdone p { flex: 1; min-width: 16rem; margin: 0; font-family: var(--kai); font-size: 1.4rem; line-height: 1.6; }

/* 支线知识卷 */
.scrolls { display: grid; grid-template-columns: 14rem 1fr; gap: 2.4rem; min-height: calc(100% - 9rem); align-items: center; }
.tabs { display: flex; flex-direction: column; gap: .9rem; }
.tab { position: relative; text-align: left; border: 0; border-radius: .3rem; padding: .9rem 1.1rem; background: rgba(91, 74, 58, .12); box-shadow: inset 0 0 0 1px rgba(150, 110, 60, .3); transition: .2s; }
.tab b { display: block; font-family: var(--kai); font-size: 1rem; color: var(--seal); font-weight: normal; }
.tab span { font-family: var(--kai); font-size: 1.5rem; }
.tab.on { background: #5b4a3a; color: #fff3e2; box-shadow: 0 .4rem 1rem rgba(40, 20, 8, .3); }
.tab.on b { color: var(--gold2); }
.tab.seen:not(.on)::after { content: "✓"; position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: var(--seal); }
.scrollview { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
.scrollview.in .sfig { animation: rise .6s ease both; }
.scrollview.in .stext p { animation: rise .6s calc(var(--k) * .35s + .25s) ease both; }
.sfig img { width: 100%; border-radius: .35rem; box-shadow: 0 0 0 .14rem var(--gold), 0 .8rem 1.6rem rgba(40, 20, 8, .3); display: block; }
.stext h3 { margin: 0 0 .9rem; font-family: var(--kai); font-weight: normal; font-size: 2.3rem; color: var(--ink); }
.stext p { margin: 0 0 1rem; font-family: var(--kai); font-size: 1.6rem; line-height: 1.6; color: var(--ink2); }
.stext .reveal { color: var(--seal); animation: rise .6s ease both; }
.namecard { display: grid; justify-items: center; gap: .3rem; padding: 1.6rem; border-radius: .4rem; background: rgba(91, 74, 58, .08); box-shadow: inset 0 0 0 1px rgba(150, 110, 60, .3); }
.namecard figure { margin: 0 0 .8rem; width: 52%; text-align: center; }
.namecard img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; filter: sepia(.45) contrast(1.05); border: .5rem solid #fbf3e2; box-shadow: 0 .8rem 1.6rem rgba(40, 20, 8, .35); display: block; }
.namecard figcaption { margin-top: .4rem; font-family: var(--kai); font-size: .95rem; color: var(--ink2); }
.namecard .noimg { width: 9rem; height: 9rem; display: grid; place-items: center; border-radius: 50%; background: var(--seal); color: #fff3e2; font-family: var(--kai); font-size: 4.6rem; margin-bottom: .8rem; }
.namecard b { font-family: var(--kai); font-size: 2.4rem; font-weight: normal; letter-spacing: .2em; }
.namecard span { font-family: var(--kai); font-size: 1.2rem; color: var(--ink2); }
.compare { display: flex; justify-content: center; gap: 2.4rem; flex-wrap: wrap; }
.disc { width: 12rem; height: 12rem; border-radius: 50%; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; color: #fff3e2;
  background: radial-gradient(circle, #6b5442 0 18%, #2e221a 19% 21%, #4a3a2e 22% 100%); box-shadow: 0 1rem 2rem rgba(40, 20, 8, .35), inset 0 0 0 .3rem rgba(217, 180, 108, .5); transition: transform .3s; }
.disc i { display: block; width: 0; height: 0; border-style: solid; border-width: .7rem 0 .7rem 1.1rem; border-color: transparent transparent transparent var(--gold2); margin-bottom: .3rem; }
.disc b { font-family: var(--kai); font-size: 1.4rem; font-weight: normal; }
.disc small { font-size: .9rem; opacity: .75; }
.disc.on { animation: spin 3s linear infinite; box-shadow: 0 0 0 .25rem var(--seal), 0 0 2rem rgba(179, 48, 42, .5); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ———————— 先生的作业（特写） ———————— */
#homework { position: fixed; inset: 0; z-index: 22; display: grid; place-items: center; pointer-events: auto; }
.hw-score { position: relative; width: min(52rem, 78vw); aspect-ratio: 3 / 2; padding: 4.6% 5.5%; border-radius: .35rem; background: var(--score-img) center/100% 100% no-repeat, linear-gradient(160deg, #ead6a9, #cfae74); box-shadow: 0 2rem 5rem rgba(0, 0, 0, .6); }
.hw-score .jianpu { width: 100%; height: 100%; opacity: .9; }
#homework.show .hw-score { animation: hwIn .9s cubic-bezier(.2, 1, .3, 1) both; }
#homework.hide .hw-score, #homework.hide .hw-note, #homework.hide .hw-ok { transition: .4s; opacity: 0; transform: translateY(4rem) scale(.9); }
.hw-note { right: auto; left: 50%; bottom: 10vh; width: min(30rem, 60vw); transform: translateX(-10%) rotate(3deg) translateY(30vh); opacity: 0; transition: transform .8s cubic-bezier(.2, 1.2, .4, 1), opacity .5s; }
.hw-note.in { opacity: 1; transform: translateX(-10%) rotate(3deg); }
.hw-note p { font-size: 1.6rem; }
.hw-ok { position: absolute; right: 8vw; bottom: 8vh; border: 0; border-radius: 2rem; padding: .7rem 2.4rem; font-family: var(--kai); font-size: 1.4rem; letter-spacing: .2em; color: #fff3e2; background: linear-gradient(180deg, #c23a32, #962620); box-shadow: 0 .6rem 1.4rem rgba(0, 0, 0, .4); opacity: 0; transform: translateY(1rem); transition: .5s; }
.hw-ok.in { opacity: 1; transform: none; }
@keyframes hwIn { from { opacity: 0; transform: translateY(30vh) rotate(-8deg) scale(.7); } to { opacity: 1; transform: rotate(-2deg); } }

#notefly { position: fixed; z-index: 22; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-2deg); padding: 1.6rem 2.6rem; border-radius: .3rem; box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, .55); text-align: center; font-family: var(--kai); }
#notefly p { margin: .2rem 0; font-size: 1.8rem; }
#notefly b { font-weight: normal; color: var(--seal); font-size: 2.6rem; }
#notefly.show { animation: noteGlow 2.2s ease both; }
@keyframes noteGlow { 0% { opacity: 0; transform: translate(-50%, -40%) rotate(-6deg); } 20% { opacity: 1; transform: translate(-50%, -50%) rotate(-2deg); } 55% { box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, .55), 0 0 4rem 1rem rgba(255, 210, 140, .8); } 100% { opacity: 1; } }

/* 放学时的歌词 */
#karaoke { position: fixed; z-index: 21; left: 0; right: 0; bottom: 8vh; text-align: center; pointer-events: none; }
.kline { font-family: var(--kai); font-size: 2.4rem; letter-spacing: .12em; color: rgba(255, 247, 232, .55); text-shadow: 0 .2rem 1rem rgba(0, 0, 0, .8); margin: .3rem 0; }
.kline span { transition: color .2s, text-shadow .2s; }
.kline span.lit { color: #ffe3a3; text-shadow: 0 0 1.2rem rgba(255, 190, 100, .9), 0 .2rem 1rem rgba(0, 0, 0, .8); }
.kline i { font-style: normal; }
#karaoke.show { animation: rise .8s ease both; }

/* ———————— 弹窗、视频、印章、提示 ———————— */
#popup { position: fixed; z-index: 35; left: 50%; bottom: 6vh; transform: translateX(-50%); width: min(44rem, 90vw); display: flex; gap: 1.4rem; align-items: center; padding: 1.3rem 3.6rem 1.3rem 1.4rem; border-radius: .4rem; box-shadow: 0 1.4rem 3rem rgba(20, 10, 4, .5); }
#popup img { width: 11rem; height: 11rem; object-fit: contain; flex: none; }
#popup h3 { margin: 0 0 .4rem; font-family: var(--kai); font-weight: normal; font-size: 1.7rem; color: var(--seal); }
#popup p { margin: 0; font-family: var(--kai); font-size: 1.35rem; line-height: 1.6; }
#popupClose { position: absolute; right: .8rem; top: .6rem; border: 0; background: none; font-size: 1.8rem; color: var(--ink2); }
#popup.show { animation: dlgIn .4s ease both; }

#videobox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(8, 5, 3, .92); }
#video { max-width: 92vw; max-height: 84vh; border-radius: .3rem; box-shadow: 0 0 0 .2rem rgba(217, 180, 108, .6), 0 2rem 5rem rgba(0, 0, 0, .7); background: #000; }
#videoClose { position: absolute; right: 2vw; top: 2vh; width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1px solid rgba(243, 220, 162, .6); background: rgba(40, 28, 18, .8); color: var(--gold2); font-size: 2rem; line-height: 1; }
#videobox.show #video { animation: rise .6s ease both; }

#bigseal { position: fixed; z-index: 75; left: 50%; top: 50%; width: 11rem; height: 11rem; margin: -5.5rem 0 0 -5.5rem; display: grid; place-items: center; pointer-events: none; background: var(--seal); border-radius: .8rem; box-shadow: inset 0 0 0 .5rem rgba(255, 238, 220, .55), 0 1.5rem 3rem rgba(0, 0, 0, .45); }
#bigseal::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grain); background-size: 160px; mix-blend-mode: screen; }
#bigseal i { font-style: normal; font-family: var(--kai); font-weight: bold; font-size: 7rem; color: #fff3e2; line-height: 1; }
#bigseal.go { animation: bigSeal 1.7s cubic-bezier(.2, 1, .3, 1) both; }
@keyframes bigSeal { 0% { opacity: 0; transform: scale(3) rotate(-25deg); } 22% { opacity: 1; transform: scale(.94) rotate(-6deg); } 30% { transform: scale(1.02) rotate(-6deg); } 80% { opacity: 1; transform: rotate(-6deg); } 100% { opacity: 0; transform: translate(0, -20vh) scale(.3) rotate(-6deg); } }

#toast { position: fixed; z-index: 85; left: 50%; top: 17vh; transform: translateX(-50%); padding: .6rem 1.6rem; border-radius: 2rem; background: rgba(28, 19, 13, .85); color: var(--gold2); font-family: var(--kai); font-size: 1.4rem; letter-spacing: .1em; box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .4); }
#toast.show { animation: dlgIn .35s ease both; }

/* ———————— 结尾 ———————— */
#end small { position: relative; font-family: var(--kai); font-size: 1.4rem; letter-spacing: .5em; opacity: .75; }
#end h2 { position: relative; margin: 1.2rem 0 .6rem; font-family: var(--kai); font-weight: normal; font-size: 4.2rem; letter-spacing: .3em; color: #f6e2b4; text-shadow: 0 0 2rem rgba(255, 190, 110, .5); }
#end p { position: relative; margin: 0 0 3rem; font-family: var(--kai); font-size: 2rem; letter-spacing: .2em; }
#end.show small { animation: rise 1s .3s ease both; }
#end.show h2 { animation: rise 1.2s .7s ease both; }
#end.show p { animation: rise 1.2s 1.2s ease both; }
#end.show .end-btns { animation: rise 1s 1.8s ease both; }
.end-btns { position: relative; display: flex; gap: 1.4rem; }
.end-btns button { border: 1px solid rgba(243, 220, 162, .5); background: rgba(243, 220, 162, .08); color: var(--gold2); border-radius: 2rem; padding: .55rem 2rem; font-family: var(--kai); font-size: 1.25rem; letter-spacing: .2em; }
.end-btns button:hover { background: rgba(243, 220, 162, .2); }

/* ———————— 老师导航 ———————— */
#navpanel { position: fixed; z-index: 80; right: 1rem; top: 4.6rem; width: min(22rem, 90vw); max-height: calc(100vh - 6rem); overflow-y: auto; padding: 1rem 1.2rem 1.2rem; border-radius: .4rem; box-shadow: 0 1.6rem 3.6rem rgba(10, 5, 2, .6); animation: dlgInR .3s ease both; }
@keyframes dlgInR { from { opacity: 0; transform: translateX(1rem); } to { opacity: 1; transform: none; } }
#navpanel header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
#navpanel header b { font-family: var(--kai); font-size: 1.4rem; font-weight: normal; color: var(--seal); }
#navpanel header button { border: 0; background: none; font-size: 1.6rem; color: var(--ink2); }
#navList { display: flex; flex-direction: column; gap: .35rem; }
#navList button { display: flex; align-items: center; gap: .7rem; text-align: left; border: 0; border-radius: .3rem; padding: .55rem .7rem; background: rgba(91, 74, 58, .08); font-family: var(--kai); font-size: 1.15rem; }
#navList button:hover { background: rgba(179, 48, 42, .12); }
#navList em { font-style: normal; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #5b4a3a; color: #fff3e2; font-size: .85rem; font-family: var(--sans); }
.navopts { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed rgba(150, 110, 60, .4); font-size: 1rem; }
.navopts label { display: flex; align-items: center; gap: .3rem; }
.navopts button { border: 1px solid var(--seal); color: var(--seal); background: none; border-radius: 1rem; padding: .2rem .9rem; font-size: .95rem; }
.navtip { margin: .9rem 0 0; font-size: .85rem; color: var(--ink2); line-height: 1.5; }

#error { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(10, 6, 4, .8); }
#error div { width: min(34rem, 90vw); padding: 1.6rem 2rem; border-radius: .4rem; background: var(--paper); text-align: center; }
#error b { font-family: var(--kai); font-size: 1.5rem; color: var(--seal); }
#error p { line-height: 1.6; }
#error button { border: 0; border-radius: 1.5rem; padding: .4rem 1.6rem; background: var(--seal); color: #fff; }
.dbg { position: fixed; left: 50%; top: 50%; z-index: 90; transform: translate(-50%, 1.4rem); padding: .2rem .6rem; font: 12px/1.4 monospace; color: #fff; background: rgba(0, 0, 0, .6); border-radius: 3px; pointer-events: none; }
.dbg::before { content: ""; position: absolute; left: 50%; top: -1.6rem; width: 1px; height: 1.2rem; background: #fff; }

/* 模式：剧情中不显示热点 */
body[data-mode="none"] #spots, body[data-mode="panel"] #spots, body[data-mode="look"] #spots { display: none; }

/* 减弱动态 */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .05s !important; }

/* 窄屏、竖屏 */
@media (max-width: 900px), (orientation: portrait) {
  :root { font-size: clamp(11px, 1.6vw, 18px); }
  #panel { width: 96vw; height: 90vh; padding: 2rem 1.2rem 1.6rem; }
  .hub, .scrolls, .scrollview { grid-template-columns: 1fr; }
  .hub-note { position: relative; right: 0; bottom: 0; width: 100%; margin-top: 1rem; }
  .storyline { grid-template-columns: repeat(3, 1fr); }
  .tabs { flex-direction: row; overflow-x: auto; }
  #choices { flex-direction: column; align-items: center; }
  .slip { width: 86vw; }
  .brand span { display: none; }
}

/* ———————————————————— 10.6 补充：学唱、回家路上、家门口 ———————————————————— */
:root { --pk: #f3a6b5; --ye: #f6d36b; --cy: #8fd8dc; --gr: #a9d98d; --or: #f4a66a; --tl: #3f8f8a; }

/* 学唱进度条（顶栏下方，从左到右） */
#learnbar { position: absolute; left: 50%; top: 4.2rem; transform: translateX(-50%); display: none; gap: .35rem; padding: .35rem .5rem; border-radius: 2rem; background: rgba(28, 19, 13, .62); backdrop-filter: blur(4px); box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, .3); }
#learnbar.on { display: flex; }
.lstep { display: flex; align-items: center; gap: .25rem; border: 0; border-radius: 1.2rem; padding: .25rem .7rem .25rem .35rem; background: none; color: rgba(255, 240, 215, .72); font-family: var(--kai); font-size: 1rem; white-space: nowrap; }
.lstep i { font-style: normal; font-size: 1.25rem; color: var(--gold2); }
.lstep.done { color: #fff3e2; background: rgba(179, 48, 42, .55); }
.lstep.done i::after { content: "✓"; font-size: .8rem; margin-left: .1rem; }
.lstep.next { box-shadow: inset 0 0 0 .12rem var(--gold2); color: #fff; animation: pulse 1.6s ease-in-out infinite; }
.lstep.cur { background: var(--seal); color: #fff; }

/* 教室学唱热点 */
.spot.learnspot b { background: radial-gradient(circle, rgba(47, 90, 87, .9) 55%, rgba(47, 90, 87, .45)); }
.spot.learnspot span em { font-style: normal; color: var(--seal); margin-right: .25rem; font-size: 1.25rem; }
.spot.learnspot.done b { background: radial-gradient(circle, rgba(179, 48, 42, .92) 55%, rgba(179, 48, 42, .5)); }
.spot.learnspot.done span::after { content: " ✓"; color: var(--seal); }
.spot.learnspot.next b { box-shadow: 0 0 0 .18rem #ffe0a6, 0 0 2.4rem rgba(255, 220, 150, .95); transform: scale(1.12); }
.spot.learnspot:not(.next):not(.done) { opacity: .82; }
.pnum { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; flex: none; border-radius: 50%; font-family: var(--kai); font-size: 2.2rem; color: #fff3e2; background: var(--tl); box-shadow: inset 0 0 0 .14rem rgba(255, 238, 220, .5); }

/* 音频按钮 */
.trackbar { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin: 1rem 0 .4rem; }
.tbtn, .ctl { display: inline-flex; align-items: center; gap: .55rem; border: 0; border-radius: 2rem; padding: .6rem 1.6rem .6rem 1rem; font-family: var(--kai); font-size: 1.3rem; color: var(--ink); background: rgba(255, 250, 238, .75); box-shadow: inset 0 0 0 .12rem rgba(150, 110, 60, .45), 0 .3rem .8rem rgba(40, 20, 8, .15); transition: transform .15s; }
.tbtn:hover, .ctl:hover { transform: translateY(-2px); }
.tbtn i, .ctl i { display: block; width: 0; height: 0; border-style: solid; border-width: .5rem 0 .5rem .8rem; border-color: transparent transparent transparent var(--seal); }
.tbtn.on, .ctl.on { background: var(--seal); color: #fff3e2; box-shadow: 0 0 0 .14rem var(--gold2), 0 .4rem 1rem rgba(150, 38, 32, .4); }
.tbtn.on i, .ctl.on i { width: .9rem; height: 1rem; border: 0; border-left: .3rem solid #fff3e2; border-right: .3rem solid #fff3e2; }
.ctl.small { font-size: 1.1rem; padding: .45rem 1.1rem .45rem .8rem; }

/* 乐谱纸 */
.lsheet { position: relative; padding: 1rem 1.6rem; border-radius: .4rem; background: rgba(255, 252, 244, .72); box-shadow: inset 0 0 0 1px rgba(150, 110, 60, .25); }
.lsheet.paperscore { background: var(--score-img) center/100% 100% no-repeat, rgba(250, 240, 214, .85); padding: 1.2rem 2.6rem; }
.chips + .lsheet .jp2 { max-height: calc(min(47rem, 86vh) - 21rem); }
.organpage .jp2 { max-height: calc(min(47rem, 86vh) - 17rem); }
.lsheet.slim .jp2 { max-height: 11rem; }
.lbintro p { font-size: 1.35rem; }
.real-score .lsheet.paperscore { background: var(--score-img) center/100% 100% no-repeat; filter: drop-shadow(0 .8rem 1.2rem rgba(40, 20, 8, .3)); }
.lsheet.slim { padding: .6rem 1rem; }
.jp2 { display: block; width: 100%; height: auto; max-height: calc(min(47rem, 86vh) - 17rem); }
.pageview .jp2 { max-height: calc(min(47rem, 86vh) - 20rem); }
.cmprow .jp2 { max-height: 7.4rem; }
.jp2 text { font-family: var(--kai); fill: #3b2a1e; }
.jp2 .jp-title { font-size: 50px; font-weight: bold; letter-spacing: 10px; }
.jp2 .jp-key { font-size: 30px; }
.jp2 .jp-key.frac { font-size: 22px; }
.jp2 .jp-tempo, .jp2 .jp-credit { font-size: 24px; }
.jp2 .jp-lno { font-size: 44px; fill: rgba(150, 110, 60, .45); font-style: italic; }
.jp2 .jp-n { font-size: 38px; font-weight: bold; transition: fill .15s; }
.jp2 .jp-w { font-size: 28px; transition: fill .15s; }
.jp2 .jp-frac, .jp2 .jp-bar, .jp2 .jp-beam { stroke: #3b2a1e; stroke-width: 2.6; }
.jp2 .jp-bar.fin { stroke-width: 6; }
.jp2 .jp-dot { fill: #3b2a1e; }
.jp2 .jp-slur { fill: none; stroke: #3b2a1e; stroke-width: 2.4; }
.jp2 .pcdot { opacity: 0; transition: opacity .5s; }
.jp2.colored .pcdot.pink { fill: var(--pk); opacity: .75; }
.jp2.colored .pcdot.yellow { fill: var(--ye); opacity: .75; }
.jp2.colored .pcdot.cyan { fill: var(--cy); opacity: .75; }
.jp2.colored .pcdot.green { fill: var(--gr); opacity: .75; }
.jp2.colored .pcdot.orange { fill: var(--or); opacity: .75; }
.jp2 .hiband { fill: rgba(244, 166, 106, .32); transition: opacity .5s; }
.jp2 .hitag { font-size: 30px; fill: #c2603a; font-weight: bold; transition: opacity .5s; }
.jp2.nohi .hiband, .jp2.nohi .hitag { opacity: 0; }
.jp2 .mk.multi { fill: rgba(169, 217, 141, .55); transition: opacity .4s; }
.jp2 .mk.sync { fill: rgba(143, 216, 220, .55); transition: opacity .4s; }
.jp2 .mk.syncarrow { fill: none; stroke: #2b8fd0; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: opacity .4s; }
.jp2 .breath { font-size: 34px; fill: #2f5a57; font-weight: bold; transition: opacity .4s; }
.jp2.hide-multi .mk.multi, .jp2.hide-sync .mk.sync, .jp2.hide-sync .mk.syncarrow, .jp2.hide-breath .breath { opacity: 0; }
.jp2 .jp-n.lit { fill: #7a3a20; }
.jp2 .jp-w.lit { fill: var(--seal); }
.jp2 .jp-n.now, .jp2 .jp-w.now { fill: #d23a2a; }
.jp2 .jp-n.now { font-size: 46px; }
.chips { display: flex; justify-content: center; gap: .9rem; margin: -.2rem 0 .8rem; }
.chip { border: 0; border-radius: 2rem; padding: .4rem 1.3rem; font-family: var(--kai); font-size: 1.25rem; background: rgba(255, 250, 238, .7); box-shadow: inset 0 0 0 .12rem rgba(150, 110, 60, .4); }
.chip.multi.on { background: var(--gr); box-shadow: none; }
.chip.sync.on { background: var(--cy); box-shadow: none; }
.chip.breath.on { background: #2f5a57; color: #fff; box-shadow: none; }

/* 节奏朗读 */
.readbox { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.6rem; border-radius: .4rem; background: rgba(255, 252, 244, .72); box-shadow: inset 0 0 0 1px rgba(150, 110, 60, .25); }
.rline { display: flex; align-items: baseline; flex-wrap: wrap; font-family: var(--kai); font-size: 2rem; line-height: 1.75; }
.rline .beat { display: inline-flex; align-items: baseline; justify-content: center; min-width: 4.2rem; padding: 0 .2rem; margin: 0 .35rem; }
.rline .beat.pair { gap: .15rem; border-bottom: .14rem solid #3b2a1e; line-height: 1.3; margin-bottom: .2rem; }
.rline b { font-weight: normal; transition: color .15s, text-shadow .15s; }
.rline b.lit { color: var(--seal); }
.rline b.now { color: #d23a2a; text-shadow: 0 0 .8rem rgba(255, 170, 120, .9); }
.rline b.syn { background: rgba(244, 166, 106, .55); border-radius: .3rem; padding: 0 .2rem; }
.rline .hold { font-style: normal; color: rgba(59, 42, 30, .6); }
.rline .pu { font-style: normal; font-size: 1.4rem; color: var(--ink2); }
.rline .rbar { font-style: normal; color: rgba(59, 42, 30, .55); margin: 0 .3rem; }
.readtip { margin: .8rem 0 0; text-align: center; font-family: var(--kai); font-size: 1.25rem; color: var(--ink2); }
.readtip b { color: #c2603a; font-weight: normal; }
.rline b.rhyme { border-radius: 50%; transition: color .15s, box-shadow .25s, background .25s; }
.readbox.show-rhyme b.rhyme { background: rgba(244, 166, 106, .24); box-shadow: 0 0 0 .1rem var(--seal); color: var(--seal); }
.lesson-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: .8rem 0; }
.original-score h3 { margin: 0 0 .5rem; text-align: center; font-family: var(--kai); font-size: 1.7rem; letter-spacing: .3em; }
.original-score img { display: block; width: 100%; height: auto; max-height: calc(min(47rem, 86vh) - 21rem); object-fit: contain; }
.fullscore.show-original, .real-score .fullscore.show-original { background: #fffaf0; filter: none; }
.performance-tip { margin: -.2rem 0 .7rem; text-align: center; font-family: var(--kai); color: var(--ink2); font-size: 1.3rem; line-height: 1.6; }
.score-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; }
.fullscore .score-columns .jp2 { max-height: none; }
.donebox.performance-done { min-height: 0; margin-top: .8rem; }

/* 分页 */
.pager { display: flex; align-items: center; gap: .6rem; margin: -.4rem 0 1rem; }
.ptab { display: flex; align-items: center; gap: .4rem; border: 0; border-radius: 2rem; padding: .35rem 1.1rem .35rem .4rem; font-family: var(--kai); font-size: 1.2rem; background: rgba(91, 74, 58, .1); }
.ptab em { font-style: normal; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #5b4a3a; color: #fff3e2; font-size: .9rem; }
.ptab.on { background: #5b4a3a; color: #fff3e2; }
.ptab.on em { background: var(--seal); }
.pnext { margin-left: auto; border: 0; border-radius: 2rem; padding: .4rem 1.3rem; font-family: var(--kai); font-size: 1.2rem; color: #fff3e2; background: var(--seal); }
.pageview.in { animation: rise .5s ease both; }
.lmsg { font-family: var(--kai); font-size: 1.45rem; line-height: 1.6; color: var(--ink); margin: .9rem 0; text-align: center; }
.lmsg b { color: var(--seal); font-weight: normal; }
.lmsg.hidden { opacity: 0; }
.lmsg.reveal { color: var(--seal); animation: rise .6s ease both; }
.pageview > .bigbtn { display: block; margin: .9rem auto 0; }

/* 五声调式 */
.pentagon { display: grid; grid-template-columns: 1fr 16rem; gap: 1.4rem; align-items: start; }
.pentagon .jp2 { max-height: calc(min(47rem, 86vh) - 21rem); }
.ladderbox { display: flex; flex-direction: column; align-items: stretch; gap: .8rem; }
.ladderbox .lq { margin: 0; font-family: var(--kai); font-size: 1.25rem; line-height: 1.5; }
.ladderbox .bigbtn { justify-content: center; }
.ladderbox .lmsg { font-size: 1.15rem; line-height: 1.5; text-align: left; margin: 0; transition: opacity .6s; }
.ladderbox .bigbtn.small { padding: .4rem 1rem; font-size: 1.1rem; }
.ladder { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-height: 13.6rem; }
.rung { position: relative; display: grid; place-items: center; width: 3rem; height: 2.05rem; border-radius: 50%; font-family: var(--kai); font-size: 1.6rem; font-weight: bold; opacity: 0; transform: translateY(1rem) scale(.6); transition: opacity .4s calc(var(--i) * .22s), transform .5s calc(var(--i) * .22s) cubic-bezier(.2, 1.5, .4, 1); }
.rung.pink { background: var(--pk); } .rung.yellow { background: var(--ye); } .rung.cyan { background: var(--cy); } .rung.green { background: var(--gr); } .rung.orange { background: var(--or); }
.rung i { position: absolute; bottom: .15rem; left: 50%; width: .3rem; height: .3rem; margin-left: -.15rem; border-radius: 50%; background: #3b2a1e; }
.ladder.show .rung { opacity: 1; transform: none; }
.organbar { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin: 0 0 .9rem; }

/* 歌词情感、寓意 */
.moodbox { display: flex; flex-direction: column; gap: 1rem; }
.mood { position: relative; text-align: left; border: 0; border-radius: .5rem; padding: .8rem 11rem .8rem 1.6rem; font-family: var(--kai); background: rgba(255, 252, 244, .75); box-shadow: inset 0 0 0 1px rgba(150, 110, 60, .25); }
.mood p { margin: .1rem 0; font-size: 1.75rem; }
.mood.green { background: linear-gradient(90deg, rgba(169, 217, 141, .45), rgba(255, 252, 244, .6)); }
.mood.teal { background: linear-gradient(90deg, rgba(143, 216, 220, .45), rgba(255, 252, 244, .6)); }
.mood.red { background: linear-gradient(90deg, rgba(243, 166, 181, .5), rgba(255, 252, 244, .6)); }
.mood em { position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%) scale(.6); opacity: 0; font-style: normal; font-size: 1.5rem; padding: .3rem 1rem; border-radius: 2rem; border: .14rem dashed currentColor; transition: .45s cubic-bezier(.2, 1.5, .4, 1); }
.mood.green em { color: #3c8a2a; } .mood.teal em { color: #1d7c78; } .mood.red em { color: #c23a5a; }
.mood.open em { opacity: 1; transform: translateY(-50%); }
.meangrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mean { position: relative; border: 0; padding: 0; border-radius: .7rem; overflow: hidden; aspect-ratio: 9 / 20; max-height: 52vh; background: #5b4a3a; box-shadow: 0 .6rem 1.4rem rgba(40, 20, 8, .3); }
.mean img { width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(14px) brightness(.55); transform: scale(1.1); transition: filter .7s, transform .7s; }
.mean span { position: absolute; inset: auto 0 1rem; text-align: center; font-family: var(--kai); font-size: 1.6rem; color: #fff3e2; text-shadow: 0 .2rem .6rem rgba(0, 0, 0, .7); opacity: 0; transition: opacity .6s .3s; }
.mean::before { content: "点开"; position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font-family: var(--kai); font-size: 1.4rem; color: rgba(255, 243, 226, .85); transition: opacity .4s; }
.mean.open img { filter: none; transform: none; }
.mean.open::before { opacity: 0; }
.mean.open span { opacity: 0; }

/* 老六板 */
.lbintro p { margin: .2rem 0 .6rem; font-family: var(--kai); font-size: 1.45rem; line-height: 1.65; }
.lbintro b { color: var(--seal); font-weight: normal; }
.jp2 .bnum { font-size: 30px; fill: #b3302a; opacity: 0; transition: opacity .3s; }
.jp2 .bnum.on { opacity: 1; }
.cmpsheet { display: flex; flex-direction: column; gap: .2rem; }
.cmprow { display: grid; grid-template-columns: 9rem 2.2rem 1fr; align-items: center; gap: .5rem; }
.cmprow > span { font-family: var(--kai); font-size: 1.3rem; }
.cmprow .meter { display: grid; place-items: center; font-family: var(--kai); font-size: 1rem; line-height: 1.05; padding: .2rem .4rem; border: .14rem solid var(--seal); border-radius: .3rem; color: var(--seal); }
.cmprow .jp2 { max-height: 7.4rem; }
.cmptable { width: 100%; margin: 1rem 0 .6rem; border-collapse: collapse; font-family: var(--kai); font-size: 1.35rem; text-align: center; }
.cmptable th { background: #8fc0e8; padding: .55rem; font-weight: normal; border: 2px solid #fff; }
.cmptable td { padding: .45rem; border: 2px solid #fff; }
.cmptable tr.r0 td { background: #f6efc6; }
.cmptable tr.r1 td { background: #f3d0d8; }
.cmptable .cell { border: 0; background: none; font: inherit; color: transparent; text-shadow: 0 0 .7rem rgba(91, 74, 58, .55); width: 100%; transition: color .4s, text-shadow .4s; }
.cmptable tr.r0 .cell.open { color: #c46a1c; text-shadow: none; }
.cmptable tr.r1 .cell.open { color: #c23a5a; text-shadow: none; }
.nt { position: relative; margin: 0 .12rem; }
.nt.low::after { content: ""; position: absolute; left: 50%; bottom: -.15rem; width: .22rem; height: .22rem; margin-left: -.11rem; border-radius: 50%; background: currentColor; }

/* 我已基本会唱 */
.donebox { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; min-height: 50%; text-align: center; }
.donebox p { font-family: var(--kai); font-size: 1.8rem; margin: 0; }
.bigbtn.huge { font-size: 2rem; padding: 1rem 3.6rem; animation: pulse 1.6s ease-in-out infinite; }

/* 旋律编创 */
.notechips { display: flex; justify-content: center; gap: 1.2rem; margin: .4rem 0 1.6rem; }
.nchip { position: relative; width: 4.4rem; height: 4.4rem; border: 0; border-radius: 50%; font-family: var(--kai); font-size: 2.1rem; font-weight: bold; box-shadow: 0 .4rem 1rem rgba(40, 20, 8, .2); transition: transform .15s; }
.nchip:hover { transform: translateY(-3px) scale(1.05); }
.nchip i, .slot b i, .rung i { position: absolute; bottom: .35rem; left: 50%; width: .32rem; height: .32rem; margin-left: -.16rem; border-radius: 50%; background: #3b2a1e; }
.nchip.pink, .slot b.pink { background: var(--pk); } .nchip.yellow, .slot b.yellow { background: var(--ye); } .nchip.cyan, .slot b.cyan { background: var(--cy); }
.nchip.green, .slot b.green { background: var(--gr); } .nchip.orange, .slot b.orange { background: var(--or); }
.rhythm { display: flex; justify-content: center; align-items: flex-end; gap: .4rem; padding: 1.2rem 1rem 1.6rem; border-radius: .5rem; background: rgba(255, 252, 244, .75); box-shadow: inset 0 0 0 1px rgba(150, 110, 60, .25); }
.rmeter { font-family: var(--kai); font-size: 1.3rem; line-height: 1.05; text-align: center; margin-right: .6rem; align-self: center; }
.meas { display: flex; align-items: flex-end; gap: 1rem; padding: 0 .6rem; }
.rgrp { display: flex; gap: .3rem; padding-bottom: .4rem; }
.rgrp.beam { border-bottom: .16rem solid #3b2a1e; }
.rgrp.mixed { position: relative; }
.rgrp.mixed::after { content: ""; position: absolute; right: 0; bottom: .25rem; width: calc(66% - .1rem); height: .16rem; background: #3b2a1e; }
.slot { position: relative; display: grid; place-items: center; width: 3.6rem; height: 4.6rem; border: 0; border-radius: .5rem; background: rgba(91, 74, 58, .07); box-shadow: inset 0 0 0 .12rem rgba(150, 110, 60, .35); font-family: var(--kai); }
.slot.six { width: 3.1rem; }
.slot .x { font-style: normal; position: absolute; bottom: -1.9rem; font-family: var(--sans); font-size: 1rem; color: var(--ink2); }
.slot b { position: relative; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; font-size: 1.7rem; }
.slot.sel { box-shadow: inset 0 0 0 .2rem var(--seal), 0 0 1rem rgba(179, 48, 42, .35); }
.slot.now { transform: translateY(-.4rem); box-shadow: inset 0 0 0 .2rem var(--gold), 0 0 1.4rem rgba(217, 180, 108, .7); }
.meas .hold { font-family: var(--kai); font-size: 2rem; padding-bottom: 1.1rem; }
.rhythm .rbar { display: block; width: .14rem; height: 5rem; background: #3b2a1e; align-self: center; }
.rhythm .rbar.fin { width: .45rem; box-shadow: -.35rem 0 0 -.14rem #3b2a1e; }

/* 打击乐伴奏 */
.percwrap { display: grid; grid-template-columns: 1fr 22rem; gap: 2rem; align-items: center; }
.pcard { display: flex; border: .3rem solid #8a6420; border-radius: .3rem; background: #fff; }
.pmeas { flex: 1; display: flex; align-items: flex-end; justify-content: space-around; padding: 1rem .6rem; border-right: .3rem solid #8a6420; }
.pmeas:last-child { border-right: 0; }
.pbeat { display: flex; gap: .1rem; padding: .3rem .4rem .5rem; border-radius: .5rem; transition: background .1s, transform .1s; }
.pbeat img { height: 5.6rem; width: auto; object-fit: contain; }
.pbeat.pair { border-bottom: .3rem solid #8a6420; border-radius: .5rem .5rem 0 0; }
.pbeat.now { background: rgba(255, 210, 140, .8); transform: scale(1.08); }
.autotoggle { display: flex; align-items: center; gap: .4rem; margin-top: .9rem; font-family: var(--kai); font-size: 1.15rem; }
.insts { display: flex; justify-content: center; gap: 1.4rem; }
.inst { display: flex; flex-direction: column; align-items: center; gap: .3rem; border: 0; background: none; font-family: var(--kai); font-size: 1.4rem; }
.inst img { width: 9rem; height: 9rem; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .3rem #8a6420, 0 .6rem 1.4rem rgba(40, 20, 8, .25); padding: .6rem; }
.inst.hit img { animation: hitpop .25s ease; }
@keyframes hitpop { 50% { transform: scale(1.12) rotate(-6deg); box-shadow: 0 0 0 .3rem var(--seal), 0 0 2rem rgba(255, 190, 120, .9); } }

/* 支线揭晓（多段） */
.stext .reveal p { margin: 0 0 .7rem; color: var(--seal); animation: rise .6s ease both; }

/* 家门口：信封与信 */
#letter { position: fixed; inset: 0; z-index: 26; display: grid; place-items: center; pointer-events: none; }
#letter .envelope { pointer-events: auto; position: relative; width: min(30rem, 60vw); border: 0; background: none; padding: 0; animation: envIn .9s cubic-bezier(.2, 1.3, .4, 1) both; filter: drop-shadow(0 1.4rem 2rem rgba(0, 0, 0, .55)); }
#letter .envelope img { width: 100%; display: block; animation: floaty 4s ease-in-out infinite; }
#letter .envelope span { position: absolute; left: 50%; bottom: -2.6rem; transform: translateX(-50%); font-family: var(--kai); font-size: 1.4rem; color: #fff3e2; text-shadow: 0 .2rem .6rem rgba(0, 0, 0, .8); white-space: nowrap; animation: pulse 1.6s ease-in-out infinite; }
#letter.opening .envelope { transition: transform .9s ease, opacity .9s; transform: translateY(30vh) scale(.8); opacity: 0; }
#letter .sheet { display: none; }
#letter.open .envelope { display: none; }
#letter.open .sheet { display: flex; flex-direction: column; align-items: center; gap: 1rem; pointer-events: auto; animation: hwIn 1s cubic-bezier(.2, 1, .3, 1) both; }
#letter .paper { width: min(64rem, 86vw); aspect-ratio: 3 / 2; max-height: 76vh; background-size: 100% 100%; background-repeat: no-repeat; padding: 6% 9% 5%; font-family: var(--kai); color: #2b1d14; filter: drop-shadow(0 1.6rem 2.4rem rgba(0, 0, 0, .55)); display: flex; flex-direction: column; justify-content: center; }
#letter .paper p { margin: .25rem 0; font-size: clamp(16px, 3.05vh, 40px); line-height: 1.7; opacity: 0; transform: translateY(.6rem); transition: opacity .8s, transform .8s; }
#letter .paper p.in { opacity: 1; transform: none; }
#letter .paper .hello { text-indent: 2em; }
#letter .paper .bd { text-indent: 2em; }
#letter .paper .bye { text-indent: 2em; font-size: clamp(18px, 3.5vh, 46px); color: var(--seal); }
#letter .paper .sign { text-align: right; }
#letter .back { opacity: 0; transform: translateY(1rem); transition: .6s; }
#letter .back.in { opacity: 1; transform: none; }
@keyframes envIn { from { opacity: 0; transform: translateY(-30vh) rotate(-12deg) scale(.7); } to { opacity: 1; transform: none; } }

/* 结尾定格：老师的课件封面 */
#final { position: fixed; inset: 0; z-index: 41; background: #1a120c; animation: fadeIn 1.2s ease both; }
body.at-final #topbar .brand, body.at-final #seals, body.at-final #learnbar { visibility: hidden; }
body.at-final .tools { opacity: .25; transition: opacity .3s; }
body.at-final .tools:hover { opacity: 1; }
#final img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 导航里的七处线索 */
.navspots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; margin: -.1rem 0 .3rem 2.3rem; }
.navspots button { border: 0; border-radius: .3rem; padding: .3rem .2rem; background: rgba(47, 90, 87, .1); font-family: var(--kai); font-size: 1.05rem; color: var(--tl); line-height: 1.2; }
.navspots button small { display: block; font-size: .8rem; color: var(--ink2); }
.navspots button:hover { background: rgba(47, 90, 87, .22); }

@media (max-width: 900px), (orientation: portrait) {
  .pentagon, .percwrap { grid-template-columns: 1fr; }
  .meangrid { grid-template-columns: repeat(2, 1fr); }
  #learnbar .lstep span { display: none; }
  .mood { padding-right: 1.6rem; }
  .mood em { position: static; transform: none; display: inline-block; margin-top: .4rem; }
}
/* 学生探索版：内容始终在教室里，六个标签可直接到达各处热点。 */
body.student { --student-border: rgba(122, 84, 43, .24); font-size: 16px; }
.student #topbar { z-index: 44; padding: max(16px, env(safe-area-inset-top)) 24px 12px; background: linear-gradient(#160e0ab8, transparent); gap: 16px; }
.student .brand { gap: 16px; }
.student .brand b { font-size: clamp(22px, 2.2vw, 34px); }
.student .brand > span { font-size: 13px; border-left: 1px solid #eed9b36b; padding-left: 16px; }
.student .tools { gap: 8px; }
.student .tools button { width: auto; min-width: 52px; height: 42px; padding: 0 13px; border-radius: 24px; color: #f8eacd; font-size: 13px; }
.student .tools button[aria-pressed="true"] { background: #e9d6ac; color: #382619; }
#entry { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #160f09a8, #160f09e0); color: #fff3d9; }
.entry-card { text-align: center; padding: 38px 24px; max-width: 630px; }
.eyebrow { display: block; color: #896d43; letter-spacing: .18em; font-size: 12px; font-weight: 600; }
.entry-card .eyebrow { color: #d9be87; }
.entry-card h1 { font-family: var(--kai); font-size: clamp(48px, 8vw, 92px); font-weight: 400; letter-spacing: .16em; margin: 22px 0; }
.entry-card p { color: #efddba; font-size: 17px; margin: 0 0 30px; }
.entry-card .bigbtn { padding: 14px 40px; font-size: 20px; }
.entry-card small { display: block; font-size: 12px; margin-top: 24px; opacity: .74; }
#lookHint { position: fixed; z-index: 8; bottom: 93px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .05em; color: #fff0d6; text-shadow: 0 2px 5px #000; pointer-events: none; }
#exploreNav { position: fixed; z-index: 44; left: 50%; transform: translateX(-50%); bottom: max(18px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: min(1000px, calc(100vw - 40px)); padding: 8px; border: 1px solid #dcc49d73; border-radius: 16px; background: #261b12d9; backdrop-filter: blur(12px); box-shadow: 0 12px 40px #0006; }
#exploreNav button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 8px; color: #faedce; background: transparent; border: none; border-radius: 9px; font-size: 14px; }
#exploreNav button:hover, #exploreNav button[aria-current] { background: #ecd7b2; color: #3d2a1c; }
#exploreNav em { font-style: normal; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; opacity: .75; flex: none; }
.student #scrim { position: fixed; z-index: 24; inset: 0; background: #110a054d; backdrop-filter: blur(2px); }
.student #panel { z-index: 30; top: 82px; bottom: 105px; left: 50%; transform: translateX(-50%); width: min(1120px, 93vw); height: auto; max-height: none; padding: 30px 35px 20px; border-radius: 5px; }
.student #panelBody { padding: 0 8px 24px 0; }
.student #panelClose { top: 17px; right: 17px; width: 38px; height: 38px; font-size: 24px; }
.student-panel-head { padding-right: 40px; margin-bottom: 24px; }
.student-panel-head h2 { font: 400 clamp(24px, 2.6vw, 36px)/1.35 var(--kai); margin: 8px 0 0; letter-spacing: .07em; }
.student-lead { font-family: var(--kai); font-size: 21px; line-height: 1.55; margin: 0 0 9px; }
.small-note { font-size: 12px; line-height: 1.65; color: #7b6955; margin: 8px 0 18px; }
.knowledge-layout { display: flex; gap: 35px; align-items: center; min-height: 280px; }
.knowledge-layout figure { margin: 0; flex: 0 0 43%; }
.knowledge-layout img { width: 100%; border: 7px solid #fef3de; box-shadow: 0 8px 24px #5b341f30; border-radius: 3px; display: block; }
.knowledge-layout .knowledge-portrait { flex-basis: 230px; max-width: 36%; }
.knowledge-portrait figcaption { color: #77634d; font-size: 12px; text-align: center; margin-top: 10px; }
.knowledge-text { min-width: 0; flex: 1; }
.knowledge-text > p { font: 400 clamp(18px, 1.7vw, 24px)/1.8 var(--kai); margin: 0 0 20px; }
.knowledge-text .person-name b { display: block; font-size: 32px; font-weight: 400; }
.knowledge-text .person-name span { display: block; font-size: 16px; color: #806c53; }
.knowledge-reveal { border-top: 1px solid var(--student-border); margin-top: 25px; padding: 20px 0; }
.knowledge-reveal summary { color: #9b332a; cursor: pointer; font-size: 18px; }
.knowledge-reveal p { font-family: var(--kai); font-size: 20px; line-height: 1.65; }
.teacher-video { display: block; width: min(100%, 870px); max-height: 53vh; background: #19130e; margin: 18px auto 0; border-radius: 8px; }
.sound-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sound-card { padding: 16px; background: #fff7e6b8; border: 1px solid var(--student-border); border-radius: 11px; }
.sound-name { display: flex; gap: 10px; align-items: center; }
.sound-name i { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: #ead9b9; color: #8e4d2f; font: 400 22px var(--kai); }
.sound-card h3 { font-size: 16px; margin: 0; }
.sound-card p { font-size: 13px; line-height: 1.7; min-height: 44px; color: #76614d; margin: 10px 0 13px; }
.effect-play, .plain-button, .quick-question { background: #fffaef; border: 1px solid #bf9f74; border-radius: 18px; padding: 7px 13px; font-size: 13px; min-height: 34px; }
.effect-play.on, #mixPlay.on { background: #2f5a57; color: #fff5dd; }
.sound-pick { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: 12px; cursor: pointer; }
.sound-pick input { width: 16px; height: 16px; accent-color: #a84c35; }
.mix-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0 0; }
.mix-row label { font-size: 13px; color: #715c44; }
.mix-row select { color: #553d2a; background: #fff7e6; border: 1px solid #cbb28c; border-radius: 7px; padding: 8px; font: inherit; }
.student .mix-row .bigbtn { font-size: 15px; padding: 9px 20px; }
.sound-state { margin: 13px 0 21px; font-size: 13px; color: #7b6955; min-height: 20px; }
.guide-box { padding: 20px; border-radius: 10px; background: #e5d8bc; border: 1px solid #cbb58d; }
.guide-box h3 { margin: 0; font-family: var(--kai); font-size: 24px; font-weight: 400; }
.guide-box .small-note { margin-bottom: 10px; }
.guide-quick { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 16px; }
.quick-question { background: #efe4cc; font-size: 12px; }
#askForm { display: flex; gap: 8px; }
#askInput { min-width: 0; flex: 1; font: inherit; font-size: 15px; border: 1px solid #bfa477; border-radius: 8px; background: #fff9eb; padding: 12px; user-select: text; }
#askForm button { border: none; border-radius: 8px; padding: 10px 18px; background: #2f5a57; color: #fff5db; font-size: 14px; white-space: nowrap; }
#guideReply { margin-top: 16px; color: #4b3b2c; font-size: 15px; line-height: 1.8; user-select: text; }
#guideSounds { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.student .pager { flex-wrap: wrap; }
.student .ptab { font-size: 17px; }
.student .pnext { font-size: 17px; }
.student .lbintro p, .student .lmsg { font-size: 20px; }
.student .cmptable { font-size: 18px; }
.student .cmprow { grid-template-columns: 110px 30px 1fr; }
.student .cmprow > span { font-size: 17px; }
.student .jp2 { max-height: none; }
.student .pageview .jp2 { max-height: none; }
.student .cmprow .jp2 { max-height: 130px; }
.student .lsheet.slim .jp2 { max-height: 220px; }
.student #toast { z-index: 80; bottom: 110px; font-size: 14px; max-width: calc(100vw - 30px); }
.student.reduce-motion *, .student.reduce-motion *::before, .student.reduce-motion *::after { animation: none !important; transition: none !important; }
@media (max-width: 700px) {
  .student #topbar { padding: max(12px, env(safe-area-inset-top)) 12px 8px; flex-wrap: wrap; gap: 13px; }
  .student .brand { width: 100%; justify-content: space-between; }
  .student .brand b { font-size: 23px; }
  .student .brand > span { font-size: 12px; }
  .student .tools { width: 100%; justify-content: flex-end; }
  .student .tools button { height: 35px; font-size: 12px; padding: 0 12px; }
  #exploreNav { grid-template-columns: repeat(3, 1fr); width: calc(100vw - 18px); bottom: max(8px, env(safe-area-inset-bottom)); gap: 4px; padding: 6px; border-radius: 12px; }
  #exploreNav button { gap: 6px; min-height: 39px; padding: 5px 3px; font-size: 12px; }
  #exploreNav em { width: 20px; height: 20px; font-size: 11px; }
  #lookHint { bottom: 108px; font-size: 11px; }
  .student #panel { top: 112px; bottom: 112px; width: calc(100vw - 18px); padding: 22px 16px 10px; }
  .student #panel::before, .student #panel::after { left: -3px; right: -3px; height: 8px; }
  .student #panel::before { top: -4px; } .student #panel::after { bottom: -4px; }
  .student #panelClose { top: 12px; right: 12px; }
  .student-panel-head { margin-bottom: 16px; } .student-panel-head h2 { font-size: 25px; }
  .knowledge-layout { flex-direction: column; gap: 20px; min-height: 0; }
  .knowledge-layout figure { width: 100%; flex-basis: auto; }
  .knowledge-layout .knowledge-portrait { max-width: 170px; flex-basis: auto; }
  .knowledge-text > p { font-size: 20px; margin-bottom: 16px; }
  .sound-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sound-card { padding: 11px; } .sound-card h3 { font-size: 14px; }
  .sound-card p { font-size: 12px; min-height: 61px; }
  .sound-name { gap: 7px; } .sound-name i { width: 27px; height: 27px; font-size: 18px; flex: none; }
  .sound-pick { margin: 8px 0 0 3px; }
  .mix-row { gap: 10px; }
  .guide-box { padding: 14px; } #askInput { font-size: 14px; padding: 10px; } #askForm button { padding: 10px 12px; }
  .student .pager { gap: 7px; } .student .ptab { font-size: 14px; padding: 7px 9px; } .student .ptab em { display: none; }
  .student .pnext { font-size: 14px; padding: 7px 10px; }
  .student .cmprow { grid-template-columns: 77px 22px 1fr; gap: 3px; } .student .cmprow > span { font-size: 13px; }
  .student .cmptable { font-size: 14px; } .student .cmptable th, .student .cmptable td { padding: 7px 3px; }
  .student .cmptable th:last-child { max-width: 72px; }
  .student .lbintro p, .student .lmsg { font-size: 18px; }
  .student .bigbtn.small { font-size: 17px; padding: 9px 15px; }
  .student #toast { bottom: 120px; }
}
@media (max-height: 580px) and (min-width: 701px) {
  .student #panel { top: 70px; bottom: 91px; padding: 20px 30px; }
  .student-panel-head { margin-bottom: 16px; }
  #exploreNav { bottom: 10px; } #lookHint { display: none; }
}
