.cave-dissolve{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:39;animation:caveDissolve 2.8s ease both}
@keyframes caveDissolve{from{opacity:1}to{opacity:0}}
#formulaStage{position:absolute;inset:0;pointer-events:none;color:#e3f3f5;overflow:hidden}
.formula-heading{position:absolute;top:4%;left:20px;right:20px;text-align:center;animation:formulaReveal 2.8s ease both}
.formula-heading>span{font-size:15px;color:#a5cdd9}
.formula-heading h2{font-size:28px;font-weight:500;margin:12px 0 8px}
.formula-heading p{font-size:16px;color:#c7b994;margin:0}
.open-equation{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:calc(100% - 48px);text-align:center;transition:top 2s ease,transform 2s ease;filter:drop-shadow(0 3px 10px #020711);animation:formulaReveal 3s ease both}
.open-equation>strong{display:block;font-size:32px;font-weight:600;margin-bottom:16px}
.equation-terms{display:flex;align-items:center;justify-content:center;gap:28px;font-size:38px;font-weight:600;line-height:1.45}
.equation-terms>b{font-weight:400;color:#c8b783}
.equation-terms>span{min-width:180px;white-space:nowrap}
.formula-console{position:absolute;bottom:3%;left:50%;transform:translateX(-50%);width:min(740px,calc(100% - 32px));display:flex;flex-direction:column;align-items:center;gap:16px;pointer-events:auto;transition:opacity .5s}
#keywordForm{display:flex;align-items:center;gap:12px;width:min(570px,100%)}
#keywordForm input{min-width:0;flex:1;width:100%;font:20px 'Microsoft YaHei',sans-serif;background:#061320cf;color:#e8f5fa;border:0;border-bottom:1px solid #7199ab;padding:12px;border-radius:0}
#keywordForm input:focus{outline:1px solid #ead5a1;outline-offset:3px}
#keywordForm .icon-button{width:48px;height:48px;padding:12px;flex:none}
.formula-commands{display:flex;gap:12px;align-items:center;justify-content:center}
.formula-commands button{min-height:48px;font-size:20px;padding:12px 20px}
.formula-commands .icon-button{width:48px;padding:12px}
#formulaStage[data-phase=condense] .formula-console,#formulaStage[data-phase=golden] .formula-console,#formulaStage[data-phase=ready] .formula-console{opacity:0;visibility:hidden;pointer-events:none}
#formulaStage[data-phase=condense] .open-equation{opacity:.45;transition:opacity 2s}
#formulaStage[data-phase=golden] .open-equation,#formulaStage[data-phase=ready] .open-equation{color:#ffdf92;text-shadow:0 0 18px #dc96377a,0 0 48px #d5933633}
#formulaStage[data-phase=golden] .equation-terms,#formulaStage[data-phase=ready] .equation-terms{background:linear-gradient(0deg,#d99235,#fff0c6,#e6bb61,#fff0c6);background-size:100% 250%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:goldenBreath 4s ease-in-out infinite}
#formulaStage[data-phase=golden] .formula-heading h2,#formulaStage[data-phase=ready] .formula-heading h2{opacity:0;transition:opacity .6s}
#formulaStage[data-phase=ready] .open-equation{top:25%;transform:translate(-50%,-50%) scale(.82)}
#formulaStage[data-phase=ready] .formula-heading{animation:none;opacity:0;transition:opacity 1.5s}
@keyframes goldenBreath{0%,100%{background-position:0 0;filter:drop-shadow(0 -2px 8px #f2ae4244)}50%{background-position:0 100%;filter:drop-shadow(0 -5px 14px #f2ae4277)}}
@keyframes formulaReveal{0%,35%{opacity:0}100%{opacity:1}}
@media(max-width:700px){
  .formula-heading{top:4%;left:12px;right:12px}
  .formula-heading h2{font-size:22px;margin:10px 0}
  .formula-heading>span,.formula-heading p{font-size:13px}
  .open-equation{width:calc(100% - 16px)}
  .open-equation>strong{font-size:25px;margin-bottom:14px}
  .equation-terms{font-size:23px;gap:8px;flex-wrap:wrap}
  .equation-terms>span{min-width:110px}
  #formulaStage[data-phase=golden] .equation-terms,#formulaStage[data-phase=ready] .equation-terms{font-size:22px;gap:4px;flex-wrap:wrap}
  #formulaStage[data-phase=golden] .equation-terms>span,#formulaStage[data-phase=ready] .equation-terms>span{min-width:0}
  .formula-console{bottom:2%;gap:12px}
  #keywordForm{gap:8px}
  #keywordForm input{font-size:16px;padding:10px 6px}
  .formula-commands{gap:8px;width:100%}
  .formula-commands button{font-size:16px;padding:10px 12px;min-height:44px}
  .formula-commands .icon-button{width:44px;padding:10px}
}
@media(max-height:600px){
  .formula-heading{top:2%}
  .formula-heading h2{display:none}
  .formula-heading p{font-size:12px;margin-top:5px}
  .formula-console{flex-direction:row;width:calc(100% - 32px);gap:18px;bottom:2%}
  #keywordForm{flex:1}
  .formula-commands{flex:none;width:auto}
  .formula-commands button{font-size:15px;padding:10px}
  .formula-heading>span{font-size:12px}
  .open-equation>strong{font-size:25px;margin-bottom:8px}
  .equation-terms{font-size:28px}
}
@media(prefers-reduced-motion:reduce){.formula-heading,.open-equation,.cave-dissolve{animation-duration:.01s}.equation-terms{animation:none!important}}
#homeworkList{max-width:1140px;gap:28px}
#homeworkList .kraft-envelope{display:block;position:relative;aspect-ratio:328/418;min-height:0;padding:0;background:transparent;border:0;border-radius:4px;box-shadow:none;overflow:hidden}
.kraft-art{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.kraft-art img{position:absolute;max-width:none;width:182.92683%;height:143.54067%;left:-42.68293%;top:-19.85646%}
.classified-stamp{position:absolute;top:10%;right:6%;transform:rotate(16deg);border-top:3px solid #a22e21;border-bottom:3px solid #a22e21;color:#a22e21;font:900 44px/1.05 'SimSun','Songti SC',serif;padding:2px 6px;opacity:.8;pointer-events:none}
.kraft-copy{position:absolute;top:44%;left:11%;right:11%;color:#17120b}
#homeworkList .kraft-copy h3{font-size:29px;line-height:1.35;font-weight:800;color:#17120b;margin:0 0 14px}
#homeworkList .kraft-copy .task-detail{font-size:24px;line-height:1.6;font-weight:600;text-align:center;color:#17120b;margin:0;overflow-wrap:anywhere}
@media(min-width:701px) and (max-width:1100px){
  #homeworkList{gap:20px}
  #homeworkList .kraft-copy h3{font-size:24px;margin-bottom:10px}
  #homeworkList .kraft-copy .task-detail{font-size:19px;line-height:1.5}
  .classified-stamp{font-size:34px}
}
@media(max-width:700px){
  #homeworkList{max-width:360px;gap:24px}
  #homeworkList .kraft-copy h3{font-size:26px;margin-bottom:12px}
  #homeworkList .kraft-copy .task-detail{font-size:23px;line-height:1.55}
  .classified-stamp{font-size:39px}
}
@media(min-width:701px) and (max-width:900px){#homeworkList{grid-template-columns:1fr;max-width:360px}}
