/* 学生端样式 · 背单词：绘本页、年级卡、学习卡、错题本、排行榜、沉浸页。由原内联样式按顺序切出，层叠顺序依赖 index.html 中的引用顺序；相对路径以 app/student/ 为基准。 */
  /* ===== 背单词 ===== */
  .grades{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 16px}
  .grades button{font-family:"ZCOOL","PingFang SC",sans-serif;font-size:13px;letter-spacing:.06em;padding:9px 16px;
    border-radius:16px 14px 18px 14px / 14px 18px 14px 16px;border:1.5px solid rgba(203,171,120,.5);
    background:#fffaf0;color:#7a6340;cursor:pointer;box-shadow:0 2px 0 rgba(228,201,155,.34)}
  .grades button em{font-family:"Fredoka",sans-serif;font-style:normal;font-size:12px;color:#a3855a;margin-left:6px}
  .grades button.on{background:#f6d08a;border-color:#d9a244;color:#5a3d10;box-shadow:0 2px 0 #cf9128}
  .grades button.on em{color:#7c5a1c}
  .wbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}
  .wcount{font-size:12px;letter-spacing:.06em;color:#a3855a}
  .wcount b{font-family:"Fredoka",sans-serif;font-weight:400;font-size:17px;color:#6b5228;margin:0 2px}
  .wsearch{display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;
    border:1.5px solid rgba(203,171,120,.5);background:#fffaf0}
  .wsearch svg{width:15px;height:15px;flex:0 0 auto}
  .wsearch input{border:none;outline:none;background:none;width:186px;font-size:12.5px;color:#6b5228;
    font-family:"ZCOOL","PingFang SC",sans-serif;letter-spacing:.04em}
  .wsearch input::placeholder{color:#b8a184}
  .wlist{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
  .wcard{position:relative;padding:16px 18px 14px;background-color:#fffaf0;
    border:1.5px solid rgba(203,171,120,.44);border-radius:22px 18px 24px 20px / 20px 24px 18px 22px;
    box-shadow:0 3px 0 rgba(228,201,155,.3), inset 0 0 18px rgba(212,178,126,.13);background-repeat:no-repeat;
    background-image:radial-gradient(92% 80% at 4% -6%, rgba(246,205,150,.4) 0%, rgba(246,205,150,.16) 48%, rgba(246,205,150,0) 92%),
      radial-gradient(56% 48% at 94% 96%, rgba(224,190,160,.2) 0%, rgba(224,190,160,0) 88%)}
  .wcard.mem{opacity:1}
  .wcard.mem .w{color:#7a6850}
  .wcard.mem .weg .line{color:#7f6c50}
  .whead{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;padding-right:62px}
  .whead .w{font-family:"Fredoka","Segoe UI",sans-serif;font-size:27px;line-height:1.1;color:#4a3416}
  .whead .ipa{font-size:13px;color:#9a7c50;letter-spacing:.02em}
  .whead .cn{font-size:12px;color:#7a6340;margin-left:auto}
  .wsyl{display:flex;flex-wrap:wrap;gap:6px;margin:11px 0 10px}
  .wsyl button{font-family:"Fredoka","Segoe UI",sans-serif;font-size:13px;padding:5px 12px;border-radius:999px;
    border:1.5px dashed rgba(203,164,105,.8);background:#fffdf7;color:#6b5228;cursor:pointer}
  .wsyl button.done{background:rgba(212,238,221,.85);border-style:solid;border-color:#6aa98a;color:#3f6b54}
  .weg{margin-top:2px}
  .weg .line{display:flex;align-items:flex-start;gap:7px;margin-top:5px;font-size:12.5px;line-height:1.7;color:#6b5228}
  .weg .line button{flex:0 0 auto;width:22px;height:22px;padding:0;border:none;background:none;cursor:pointer;margin-top:1px}
  .weg .line button svg{width:16px;height:16px}
  .weg .line em{display:block;font-style:normal;font-size:11.5px;color:#a3855a;margin-top:1px}
  .wops{position:absolute;right:12px;top:12px;display:flex;gap:4px}
  .wops button{width:26px;height:26px;padding:0;border:none;background:rgba(255,253,246,.9);border-radius:50%;
    cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 0 rgba(228,201,155,.5)}
  .wops button svg{width:14px;height:14px}
  .wops button:hover{background:#fff3da}
  .wmem{margin-top:11px;font-family:"ZCOOL","PingFang SC",sans-serif;font-size:12px;letter-spacing:.06em;
    padding:6px 14px;border-radius:999px;border:1.5px solid rgba(203,171,120,.5);background:#fffdf6;color:#7a6340;cursor:pointer}
  .wmem.on{background:radial-gradient(circle at 30% 26%, #e6f6ec, #d4eedd);border-color:#6aa98a;color:#3f6b54}
  .wempty{padding:34px 20px;text-align:center;color:#a3855a;font-size:13px;line-height:2;
    border:1.5px dashed rgba(203,171,120,.6);border-radius:22px 18px 24px 20px / 20px 24px 18px 22px;background:#fffdf6}
  .wadd{margin-top:18px;padding:12px 26px;border-radius:20px 16px 20px 16px / 16px 20px 16px 20px;
    border:1.5px dashed rgba(203,164,105,.85);background:#fffaf0;color:#7a5a22;cursor:pointer;
    font-family:"ZCOOL","PingFang SC",sans-serif;font-size:13.5px;letter-spacing:.08em;box-shadow:0 2px 0 rgba(228,201,155,.36)}
  .wadd:hover{background:#fff3da}
  .wmask{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;
    background:rgba(14,22,38,.5);backdrop-filter:blur(3px)}
  .wmask[hidden]{display:none}
  .wmodal{width:min(560px,92vw);max-height:86vh;overflow:auto;padding:26px 28px 22px;background:#fdf6e6;
    border:1.5px solid rgba(203,171,120,.6);border-radius:26px 20px 28px 22px / 22px 28px 20px 26px;
    box-shadow:0 26px 50px rgba(6,12,24,.4)}
  .wmodal h3{margin:0 0 16px;font-family:"ZCOOL","PingFang SC",sans-serif;font-weight:400;font-size:22px;color:#5a3d10}
  .wmodal.small{width:min(400px,92vw);text-align:center}
  .wfields{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
  .wfields label{display:flex;flex-direction:column;gap:6px}
  .wfields label.wide{grid-column:1 / -1}
  .wfields span{font-size:11.5px;letter-spacing:.1em;color:#b98a2c}
  .wfields input,.wfields textarea{border:1.5px solid rgba(203,171,120,.55);border-radius:12px;padding:9px 11px;
    font-size:13px;color:#5a3d10;background:#fffdf6;outline:none;font-family:"ZCOOL","PingFang SC",sans-serif}
  .wfields input:focus,.wfields textarea:focus{border-color:#d9a244;box-shadow:0 0 0 3px rgba(240,199,107,.22)}
  .wfields textarea{min-height:110px;line-height:1.8;resize:vertical;font-family:"Segoe UI","PingFang SC",sans-serif}
  .wfoot{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
  .wbtn{padding:10px 20px;border-radius:18px 14px 18px 14px / 14px 18px 14px 18px;border:1.5px solid rgba(203,171,120,.55);
    background:#fffdf6;color:#7a6340;font-family:"ZCOOL","PingFang SC",sans-serif;font-size:13px;cursor:pointer}
  .wbtn.save{background:radial-gradient(120% 90% at 30% 20%, #ffe0a0, #eec162);border-color:#d9a244;color:#5a3d10;
    box-shadow:0 2px 0 #cf9128}
  .wbtn.del{background:#f6c9c2;border-color:#d98c7c;color:#7a3122}
  .wdelTip{color:#8a6a44;font-size:13px;line-height:1.9;margin:0 0 6px}
  @media (max-width:960px){
    .wlist{grid-template-columns:1fr}
    .wsearch input{width:120px}
    .wfields{grid-template-columns:1fr}
  }
  /* ===== 背单词：水彩绘本页 ===== */
  #p-words,#p-study,#p-manage,#p-wrong,#p-rank,#p-review{position:relative;margin:-38px -46px -42px;padding:34px 46px 104px;
    background-color:#dcecf6;background-image:url("../../assets/ui/water_sky.jpg");background-size:cover;
    background-position:center top;background-repeat:no-repeat;border-radius:30px;
    min-height:calc(100vh - 176px)}
  #p-words::before,#p-study::before,#p-manage::before,#p-wrong::before,#p-rank::before,#p-review::before{content:"";position:absolute;inset:0;
    pointer-events:none;background:linear-gradient(180deg, rgba(255,253,248,.34) 0%, rgba(255,251,243,.52) 58%, rgba(255,248,238,.72) 100%)}
  #p-words>*,#p-study>*,#p-manage>*,#p-wrong>*,#p-rank>*,#p-review>*{position:relative;z-index:1}
  #p-words{display:flex;flex-direction:column;justify-content:space-between}
  #p-words[hidden]{display:none}
  .pgblue .pageHead h1{color:#3b2a1a}
  .pgblue .pageHead .sub{color:#6b5a42}
  .pgblue .pageHead .eyebrow{color:#b98a2c}
  .pgblue .rule{background:linear-gradient(90deg,rgba(203,171,120,.75),rgba(203,171,120,0))}
  .sback{font-family:"ZCOOL","PingFang SC",sans-serif;font-size:12.5px;letter-spacing:.08em;padding:7px 16px;
    border-radius:999px;border:1.5px solid rgba(203,171,120,.6);background:rgba(255,253,246,.94);color:#6b5228;
    cursor:pointer;box-shadow:0 2px 0 rgba(228,201,155,.5);margin-bottom:16px}
  .sback:hover{background:#fff6e3}

  .gradeCards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0 18px}
  /* 「只看带动画的句子」入口：横向蓝绿条，和卡片区做区分 */
  .animGo{display:flex;align-items:center;gap:12px;width:100%;margin:18px 0 2px;padding:15px 20px;cursor:pointer;
    border-radius:18px;border:1.5px solid rgba(150,214,230,.8);
    background:linear-gradient(120deg, rgba(58,138,170,.96) 0%, rgba(30,96,142,.94) 100%);
    color:#f3faff;font-family:"ZCOOL","PingFang SC",sans-serif;
    box-shadow:0 7px 0 rgba(24,72,104,.55), 0 14px 24px rgba(30,80,120,.26), inset 0 2px 0 rgba(255,255,255,.35);
    transition:transform .14s ease}
  .animGo:hover{transform:translateY(-2px)}
  .animGo:active{transform:translateY(2px);box-shadow:0 3px 0 rgba(24,72,104,.55), 0 8px 16px rgba(30,80,120,.24)}
  .animGo .agn{font-size:16px;letter-spacing:.1em}
  .animGo .agg{font-family:"Fredoka",sans-serif;font-size:13px;padding:3px 11px;border-radius:999px;
    background:rgba(255,208,110,.95);color:#4a3416;box-shadow:0 2px 0 rgba(180,130,50,.45)}
  body.dark .animGo{background:linear-gradient(120deg, rgba(38,100,136,.96) 0%, rgba(18,54,88,.96) 100%);
    box-shadow:0 7px 0 rgba(10,32,52,.75), 0 14px 24px rgba(0,0,0,.34), inset 0 2px 0 rgba(255,255,255,.18)}
  @media (max-width:760px){ .animGo{flex-wrap:wrap;gap:8px} }
  .gcard{position:relative;text-align:left;padding:20px 22px 17px;cursor:pointer;
    border-radius:24px 20px 26px 22px / 22px 26px 20px 24px;border:1.5px solid rgba(203,171,120,.55);
    background:linear-gradient(180deg, rgba(255,253,247,.97) 0%, rgba(252,243,227,.94) 100%);
    box-shadow:0 8px 18px rgba(96,130,160,.2), inset 0 0 18px rgba(212,178,126,.16);
    font-family:"ZCOOL","PingFang SC",sans-serif;transition:transform .14s ease}
  .gcard:hover{transform:translateY(-3px);box-shadow:0 12px 22px rgba(96,130,160,.26), inset 0 0 18px rgba(212,178,126,.16)}
  .gcard .gname{font-size:17px;letter-spacing:.1em;color:#4a3416}
  .gcard .gmeta{margin-top:7px;font-family:"Fredoka",sans-serif;font-size:12.5px;color:#8a6a38}
  .gcard .gbar{margin-top:10px;height:5px;border-radius:999px;background:rgba(159,190,214,.3);overflow:hidden}
  .gcard .gbar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#9fd4ea,#5aa7c9);transition:width .3s}
  .gcard.empty{box-shadow:0 6px 14px rgba(96,130,160,.16), inset 0 0 18px rgba(212,178,126,.1)}

  .toolRow{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
  .tool{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 22px;cursor:pointer;
    border-radius:20px 16px 20px 16px / 16px 20px 16px 20px;border:1.5px solid rgba(203,171,120,.55);
    background:linear-gradient(180deg, rgba(255,253,247,.97), rgba(252,241,224,.94));color:#5a3d10;
    font-family:"ZCOOL","PingFang SC",sans-serif;font-size:14px;letter-spacing:.1em;
    box-shadow:0 5px 14px rgba(96,130,160,.18)}
  .tool:hover{background:#fff6e3}
  .tool em{font-family:"Fredoka",sans-serif;font-style:normal;font-size:13px;color:#b98a2c}

  /* 学习页：一个词一张卡 */
  .studyWrap{display:flex;flex-direction:column;align-items:center;justify-content:center;
    min-height:calc(100vh - 270px)}
  .studyTop{width:100%;max-width:660px;display:flex;align-items:center;gap:14px;margin-bottom:16px}
  .studyTop .sback{margin:0}
  .stcount{font-family:"Fredoka",sans-serif;font-size:12.5px;color:#7a6340;letter-spacing:.08em;white-space:nowrap}
  .stbar{flex:1;height:5px;border-radius:999px;background:rgba(255,255,255,.8);border:1px solid rgba(203,171,120,.35);overflow:hidden}
  .stbar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#f7d489,#eebf60);transition:width .35s}
  .scard{width:100%;max-width:660px;padding:34px 40px 28px;text-align:center;
    border-radius:30px 24px 32px 26px / 26px 32px 24px 30px;border:1.5px solid rgba(203,171,120,.55);
    background:linear-gradient(180deg, rgba(255,253,247,.98) 0%, rgba(252,242,226,.96) 100%);
    box-shadow:0 18px 36px rgba(96,130,160,.26), inset 0 0 30px rgba(212,178,126,.16)}
  .scard .sw{font-family:"Fredoka","Segoe UI",sans-serif;font-size:46px;line-height:1.1;color:#3b2a1a}
  .scard .sipa{margin-top:8px;font-size:15px;color:#9a7c50;letter-spacing:.03em;font-family:"Lucida Sans Unicode","Arial Unicode MS","Segoe UI",sans-serif}
  .scard .scn{margin-top:5px;font-family:"ZCOOL","PingFang SC",sans-serif;font-size:15px;color:#7a6340;letter-spacing:.08em}
  .ssyl{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;margin:20px 0 4px}
  .ssyl button{font-family:"Fredoka",sans-serif;font-size:16px;padding:8px 19px;border-radius:999px;cursor:pointer;
    border:1.5px dashed rgba(203,164,105,.85);background:#fffdf7;color:#5a3d10;transition:background .16s}
  .ssyl button:hover{background:#fff3da}
  .ssyl button.done{background:rgba(212,238,221,.92);border-style:solid;border-color:#6aa98a;color:#3f6b54}
  .ssents{margin-top:16px;text-align:left}
  .ssent{display:flex;align-items:flex-start;gap:10px;padding:9px 13px;margin-top:8px;border-radius:14px;
    background:rgba(255,255,255,.7);border:1px solid rgba(232,215,180,.8)}
  .ssent button{flex:0 0 auto;width:24px;height:24px;padding:0;border:none;background:none;cursor:pointer}
  .ssent button svg{width:17px;height:17px}
  .ssent .sen{font-size:14px;line-height:1.7;color:#4a3416}
  .ssent .scn2{display:block;font-size:12px;color:#9a7c50;margin-top:1px}
  .sfoot{display:flex;gap:12px;justify-content:center;margin-top:22px;flex-wrap:wrap}
  .sbtn{font-family:"ZCOOL","PingFang SC",sans-serif;font-size:14px;letter-spacing:.08em;padding:11px 24px;
    border-radius:18px 14px 18px 14px / 14px 18px 14px 18px;border:1.5px solid rgba(203,171,120,.6);
    background:#fffdf6;color:#7a6340;cursor:pointer;box-shadow:0 2px 0 rgba(228,201,155,.5)}
  .sbtn:hover{background:#fff6e3}
  .sbtn.ok{background:radial-gradient(120% 90% at 30% 20%, #dcf2e5, #bfe6d1);border-color:#6aa98a;color:#2f5a45;box-shadow:0 2px 0 #9ecfb4}
  .sbtn.miss{background:#f8d3cb;border-color:#d98c7c;color:#7a3122;box-shadow:0 2px 0 #dfb0a4}
  .swait{font-size:13px;color:#8a6a38;margin-top:14px}

  #studyWrap[hidden],#wordPracticeWrap[hidden]{display:none}
  #wordPracticeWrap:has(.wordPracticeCard){justify-content:flex-start}
  #rankWordPractice[hidden]{display:none}
  .wordPracticeImport{margin-inline-start:8px}
  .scard.wordPracticeCard{max-width:640px;padding:clamp(7px,2vw,17px);color:#263f52}
  .wordPracticeCard [hidden]{display:none}
  #dock[hidden]{display:none}
  .wordPracticeClue{margin:0 0 14px;font-size:clamp(18px,3.7vw,24px);line-height:1.35;font-weight:600}
  .wordPracticeVisual{position:relative;width:min(100%,560px);margin:0 auto 8px;border-radius:16px;overflow:hidden}
  .wordPracticeVisual:not(:has(> :not([hidden]))){display:none}
  .slotRow.wordPracticeSlots{width:fit-content;max-width:100%;min-height:44px;margin-inline:auto;padding:3px 4px;align-items:center}
  .wordPracticeLetters{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:4px;min-width:0;max-width:100%}
  .wordPracticeLetters .slotWord{flex-wrap:wrap;max-width:100%;justify-content:center}
  .wordPracticeSlots:focus-within .slot.current{border-bottom-color:#4a80ac}
  body.dark .wordPracticeSlots:focus-within .slot.current{border-bottom-color:#8bc5f2}
  .wordPracticePronounce{position:absolute;inset:0;width:100%;border:0;border-radius:4px;background:transparent;cursor:pointer}
  .wordPracticeSlots:has(.wordPracticePronounce:hover) .slot.ok{filter:brightness(1.12)}
  .wordPracticeCard button:focus-visible{
    outline:2px solid #4a80ac;outline-offset:3px}
  #wordPracticeFeedback{margin:4px 0 0;font-size:14px;color:#a2382b}
  #wordPracticeFeedback:empty{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%)}
  .wordPracticeIpa{margin:1px 0 0;color:#375467;font:500 16px/1.25 "Lucida Sans Unicode","Segoe UI",sans-serif}
  .wordPracticeExample{padding:5px 10px;font-size:clamp(12px,1.6vw,14px);line-height:1.35}
  .wordPracticeVisual:has(.storyStage:not([hidden])) .wordPracticeExample{position:absolute;inset:auto 0 0;color:#fff;background:rgb(14 24 39 / .84)}
  .wordPracticeExample p{margin:0;overflow-wrap:anywhere}
  .wordPracticeExample [lang=en]{font:500 clamp(14px,2vw,18px)/1.25 "Fredoka","Segoe UI",sans-serif}
  .wordPracticeExample [lang=en]+p{margin-top:2px}
  .wordPracticeCard .sfoot{gap:8px;margin-top:10px}
  .wordPracticeCard .sbtn{padding:8px 13px}
  .wordPracticeCard .sbtn:disabled{opacity:.48;cursor:default}
  .wordPracticeCard .sbtn svg{width:16px;height:16px;vertical-align:-3px;margin-inline-start:5px}
  @media (pointer:coarse){.wordPracticeCard .sbtn{min-height:44px}}
  #wordPracticeWrap:has(.wordPracticeCard) .studyTop{max-width:640px}
  #wordPracticeWrap .stcount{display:flex;align-items:baseline;min-width:0;gap:5px}
  .wordPracticeCourseName{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .wordPracticeStep{flex:none;white-space:nowrap}
  .wordPracticeDone h2{margin:0;font-size:clamp(24px,5vw,36px)}
  body.dark .scard.wordPracticeCard,body.dark .wordPracticeDone{color:#ecf5ff}
  body.dark #wordPracticeFeedback{color:#ffb3a9}
  body.dark .wordPracticeIpa{color:#c8dcef}

  /* 错题本 / 排行榜 */
  .wrows{display:flex;flex-direction:column;gap:10px;margin-top:20px}
  .wrow{display:flex;align-items:center;gap:12px;padding:12px 18px;border-radius:16px;
    background:rgba(255,253,247,.97);border:1.5px solid rgba(203,171,120,.5);box-shadow:0 5px 14px rgba(96,130,160,.16)}
  .wrow .rw{font-family:"Fredoka",sans-serif;font-size:20px;color:#4a3416}
  .wrow .rc{font-size:12px;color:#8a6a38}
  .wrow .rg{font-size:11.5px;color:#a3855a;margin-left:auto;margin-right:6px}
  .wrow .wbtns{display:flex;gap:8px}
  .wrow .wbtns button{font-family:"ZCOOL","PingFang SC",sans-serif;font-size:12px;padding:6px 13px;border-radius:12px;
    border:1.5px solid rgba(203,171,120,.55);background:#fffdf6;color:#7a6340;cursor:pointer}
  .wrow .wbtns button:hover{background:#fff4dc}
  .webox{text-align:center;padding:30px 18px;border-radius:18px;border:1.5px dashed rgba(203,171,120,.6);
    background:rgba(255,253,247,.9);color:#8a6a38;font-size:13px;line-height:2}
  .rk{display:grid;grid-template-columns:52px 1fr 128px;align-items:center;gap:14px;padding:14px 20px;border-radius:16px;
    background:rgba(255,253,247,.97);border:1.5px solid rgba(203,171,120,.5);box-shadow:0 5px 14px rgba(96,130,160,.16)}
  .rkno{font-family:"Fredoka",sans-serif;font-size:19px;color:#b98a2c;text-align:center}
  .rkbody .rkname{font-family:"ZCOOL","PingFang SC",sans-serif;font-size:14px;color:#4a3416;letter-spacing:.06em}
  .rkbody .rkmeta{font-size:11.5px;color:#a3855a;margin-top:3px}
  .rkend{text-align:right;font-family:"Fredoka",sans-serif;font-size:15px;color:#7a6340}
  .sumCard{margin-top:16px;padding:18px 22px;border-radius:20px;background:rgba(255,253,247,.94);
    border:1.5px solid rgba(203,171,120,.5);display:flex;gap:26px;flex-wrap:wrap;box-shadow:0 5px 14px rgba(96,130,160,.16)}
  .sumCard div{color:#6b5a42;font-size:12.5px;letter-spacing:.06em}
  .sumCard b{font-family:"Fredoka",sans-serif;font-size:22px;color:#b98a2c;margin-right:4px}

  @media (max-width:960px){
    #p-words,#p-study,#p-manage,#p-wrong,#p-rank,#p-review{margin:-26px -22px -32px;padding:26px 22px 96px;border-radius:26px}
    .gradeCards{grid-template-columns:repeat(2,1fr)}
    .toolRow{grid-template-columns:1fr}
    .scard{padding:26px 22px 22px}
    .scard .sw{font-size:38px}
    .rk{grid-template-columns:38px 1fr 84px;gap:10px;padding:12px 14px}
  }
  .whead .ipa{font-family:"Lucida Sans Unicode","Segoe UI",sans-serif}
  .wcard{background-color:rgba(255,253,247,.97);box-shadow:0 6px 16px rgba(96,130,160,.18), inset 0 0 18px rgba(212,178,126,.13)}
  .wlist{auto-rows:min-content}
  .tile--en{--c1:174,208,224;--c2:196,214,236}
  .tile--me{--c1:246,214,168;--c2:234,198,180}
  .tile .rvWord{font-family:"Fredoka","Segoe UI",sans-serif;font-size:26px;line-height:1.2;color:#3b2a1a}
  .tile .rvCn{font-family:"ZCOOL","PingFang SC",sans-serif;font-size:18px;line-height:1.45;color:#5a3d10;text-align:center}
  .ipaSeg{display:inline-flex;gap:6px;margin:16px 0 20px;padding:5px;border-radius:999px;
    background:rgba(255,253,247,.9);border:1.5px solid rgba(203,171,120,.5);box-shadow:0 3px 0 rgba(228,201,155,.28)}
  .ipaSeg button{border:none;background:none;padding:8px 18px;border-radius:999px;cursor:pointer;
    font-family:"ZCOOL","PingFang SC",sans-serif;font-size:13.5px;letter-spacing:.06em;color:#7a6340}
  .ipaSeg button:hover{color:#5a3c05}
  .ipaSeg button.on{background:linear-gradient(180deg,#f7d489,#f0c76b);color:#5a3c05;box-shadow:0 2px 0 #d8a941}
  .ipaPane[hidden]{display:none}
  .quizStats{color:#7a5a2a}
  .qSub{color:#8a6a3c}
  /* ============================================================
     设计规则（用户明确要求，后续改动不得违反）：
     1) 禁止使用牛奶色：米白 / 奶油底 / 奶黄渐变（#fffaf0、#fdf4e4、#fffdf6 一类）不得用于卡片与面板。
     2) 卡片与面板一律走"清透冷白 + 淡蓝/淡粉水彩块"，文字用深墨。
     3) 消消乐消除不重排：消失的格子保留占位，剩余卡片不得自动挪位。
     4) 消除必须有音效 + 爆点粒子/扩散环，保留解压手感。
     ============================================================ */
  .rvBoard{position:relative}
  .fx{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:3;border-radius:22px}
  .tile.hole{visibility:hidden;pointer-events:none}
  .spark{position:absolute;border-radius:50%;width:7px;height:7px;
    animation:sparkOut .72s cubic-bezier(.2,.7,.3,1) forwards}
  @keyframes sparkOut{
    0%{transform:translate(-50%,-50%) scale(.35);opacity:1}
    70%{opacity:.92}
    100%{transform:translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.2);opacity:0}}
  .ring{position:absolute;width:16px;height:16px;border-radius:50%;
    border:3px solid rgba(255,226,150,.95);box-shadow:0 0 10px rgba(255,206,110,.6);
    animation:ringOut .7s ease-out forwards}
  @keyframes ringOut{
    0%{transform:translate(-50%,-50%) scale(.5);opacity:1}
    100%{transform:translate(-50%,-50%) scale(5);opacity:0}}

  /* 去牛奶色：卡片改清透冷白 */
  .tile{background-color:#f4faff;border-color:rgba(140,176,204,.55);
    box-shadow:0 3px 0 rgba(150,186,214,.34), inset 0 0 20px rgba(160,200,228,.16)}
  .tile--en{background-color:#eaf5ff;
    background-image:radial-gradient(92% 80% at 4% -6%, rgba(148,204,240,.34) 0%, rgba(148,204,240,0) 88%),
      radial-gradient(56% 48% at 94% 96%, rgba(126,178,226,.24) 0%, rgba(126,178,226,0) 88%)}
  .tile--me{background-color:#fff0eb;
    background-image:radial-gradient(92% 80% at 4% -6%, rgba(255,186,164,.32) 0%, rgba(255,186,164,0) 88%),
      radial-gradient(56% 48% at 94% 96%, rgba(255,160,152,.22) 0%, rgba(255,160,152,0) 88%)}
  .tile .tag{color:#7a92a6}
  .tile--me .tag{color:#ab7f6a}
  .tile .rvWord{color:#223441}
  .tile .rvCn{color:#573a2c}
  .tile:hover{box-shadow:0 6px 16px rgba(78,120,155,.2), inset 0 0 20px rgba(160,200,228,.16)}
  .gcard,.tool,.scard,.wrow,.rk,.sumCard,.wcard,.ipaSeg,.sback,.wfields input,.wfields textarea,.wbtn{
    background-color:#f9fdff;border-color:rgba(142,178,206,.55);box-shadow:0 6px 16px rgba(78,120,155,.15)}
  .tool:hover{background-color:#eef8ff}
  .pairBar .refresh{background-color:#f9fdff;border-color:rgba(142,178,206,.55);color:#2f5a75;
    box-shadow:0 2px 0 rgba(150,186,214,.36)}
  .pairBar .refresh:hover{background-color:#eaf5ff}
  .tile.flash{box-shadow:0 0 0 7px rgba(255,228,156,.55), 0 0 34px rgba(255,206,110,.9);
    transition:box-shadow .1s ease}
  /* ===== 背单词首页：彩色年级卡 + 底部胶囊工具（参考图样式） ===== */
  #p-words{justify-content:center}
  .gradeCards{grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0 0}
  .gcard{padding:22px 22px 18px;border-radius:20px;border:1.5px solid rgba(255,255,255,.85);
    box-shadow:0 6px 16px rgba(96,120,150,.14)}
  .gcard.g1{background:linear-gradient(135deg,#f2c5bf 0%,#fae7de 100%)}
  .gcard.g2{background:linear-gradient(135deg,#f0cf98 0%,#fbead2 100%)}
  .gcard.g3{background:linear-gradient(135deg,#c9e4c6 0%,#ecf5e3 100%)}
  .gcard.g4{background:linear-gradient(135deg,#bcd9e7 0%,#e4f1f6 100%)}
  .gcard.g5{background:linear-gradient(135deg,#d5c5e4 0%,#f0e8f6 100%)}
  .gcard.g6{background:linear-gradient(135deg,#eec8a9 0%,#f9e5d5 100%)}
  .gcard:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(96,120,150,.2)}
  .gcard .gname{font-size:26px;letter-spacing:.12em;color:#3a3026;line-height:1.2}
  .gcard .gmeta{margin-top:6px;font-family:"ZCOOL","PingFang SC",sans-serif;font-size:12.5px;
    letter-spacing:.04em;color:rgba(58,48,38,.7)}
  .gcard .gbarwrap{display:flex;align-items:center;gap:10px;margin-top:18px}
  .gcard .gbar{flex:1;height:4px;border-radius:999px;background:rgba(255,255,255,.82);overflow:hidden}
  .gcard .gbar i{display:block;height:100%;border-radius:999px;background:rgba(90,68,46,.5)}
  .gcard.g1 .gbar i{background:#d98e86}
  .gcard.g2 .gbar i{background:#d9a55c}
  .gcard.g3 .gbar i{background:#8fbf8d}
  .gcard.g4 .gbar i{background:#7fb0c9}
  .gcard.g5 .gbar i{background:#a893c2}
  .gcard.g6 .gbar i{background:#cf9a74}
  .gcard .gcount{font-family:"ZCOOL","PingFang SC",sans-serif;font-size:12px;letter-spacing:.06em;
    color:rgba(58,48,38,.66);white-space:nowrap}
  .gcard.empty{opacity:.9}

  .toolRow{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin-top:22px}
  .tool{display:inline-flex;align-items:center;gap:7px;padding:9px 16px;border-radius:999px;
    background:rgba(255,255,255,.92);border:1.5px solid rgba(150,176,200,.45);color:#564434;
    font-family:"ZCOOL","PingFang SC",sans-serif;font-size:12.5px;letter-spacing:.07em;cursor:pointer;
    box-shadow:0 3px 8px rgba(78,120,155,.13);transition:transform .14s, background .14s}
  .tool svg{width:14px;height:14px;opacity:.75}
  .tool em{font-style:normal;font-family:"Fredoka",sans-serif;font-size:11.5px;color:#8a7a66;margin-left:1px}
  .tool:hover{transform:translateY(-1px);background:#fff}
  .tool.hl{background:linear-gradient(180deg,#ffe3a6,#f3c468);border-color:#e0b059;color:#5a3c05;
    box-shadow:0 3px 0 #d8a941}
  .tool.hl svg{opacity:.9}
  .tool.hl em{color:#8a5f10}
  @media (max-width:960px){
    .gcard .gname{font-size:19px}
    .toolRow{gap:8px}
    .tool{padding:8px 13px;font-size:12px}
  }
  /* ===== 背单词：独立沉浸页（脱离卡片，整屏渲染） ===== */
  .topbar{transition:opacity .3s ease, transform .3s ease}
  body.imm .topbar{opacity:0;transform:translateY(-18px);pointer-events:none}
  .panel.imm{position:fixed;inset:0;width:100%;height:100%;max-height:none;min-height:0;margin:0;
    padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;overflow-y:auto}
  .panel.imm #p-play,.panel.imm #p-pair,.panel.imm #p-words,.panel.imm #p-study,.panel.imm #p-manage,
  .panel.imm #p-wrong,.panel.imm #p-rank,.panel.imm #p-review{
    margin:0;border:0;border-radius:0;min-height:100%;
    padding:54px max(46px, calc((100% - 1120px)/2)) 124px}
  .panel.imm #p-study{padding-bottom:calc(32px + env(safe-area-inset-bottom))}
  .panel.imm #p-play::before,.panel.imm #p-pair::before,.panel.imm #p-words::before,
  .panel.imm #p-study::before,.panel.imm #p-manage::before,.panel.imm #p-wrong::before,
  .panel.imm #p-rank::before,.panel.imm #p-review::before{
    background:linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.24) 55%, rgba(255,255,255,.42) 100%)}
  body.imm .dock{background:rgba(255,253,246,.8)}
  body.imm .bgwrap img{filter:blur(2px) saturate(.95)}
  /* ===== 背单词沉浸页：冷白卡片（守禁牛奶色规则，页面贴天空通透） ===== */
  .scard{max-width:720px;padding:40px 46px 30px;border-radius:28px;
    border:1.5px solid rgba(148,180,206,.5);background:rgba(255,255,255,.92);
    box-shadow:0 26px 62px rgba(44,86,124,.22), inset 0 1px 0 rgba(255,255,255,.9)}
  .scard .sw{font-size:52px;color:#1f303c}
  .scard .sipa{color:#7b93a6}
  .scard .scn{color:#5b7385}
  .ssyl button{border-color:rgba(148,180,206,.75);background:rgba(247,251,255,.96);color:#32505f}
  .ssyl button:hover{background:#eaf5ff}
  .ssyl button.done{background:rgba(214,240,224,.95);border-color:#6aa98a;color:#2f5a45}
  .ssent{background:rgba(247,251,255,.92);border-color:rgba(148,180,206,.4)}
  .ssent .sen{color:#223441}
  .ssent .scn2{color:#7b93a6}
  .swait{color:#5b7385}
  .sbtn{border-color:rgba(148,180,206,.6);background:rgba(248,252,255,.96);color:#43606f;
    box-shadow:0 2px 0 rgba(190,212,228,.7)}
  .sbtn:hover{background:#eef8ff}
  .sbtn.ok{background:radial-gradient(120% 90% at 30% 20%, #dcf2e5, #bfe6d1);border-color:#6aa98a;color:#2f5a45;box-shadow:0 2px 0 #9ecfb4}
  .sbtn.miss{background:#f8d3cb;border-color:#d98c7c;color:#7a3122;box-shadow:0 2px 0 #dfb0a4}
  .stbar{background:rgba(255,255,255,.85);border-color:rgba(148,180,206,.45)}
  .stcount{color:#3f5b6b}
  .wrow,.rk,.sumCard,.webox{background:rgba(255,255,255,.92);border-color:rgba(148,180,206,.45);
    box-shadow:0 6px 18px rgba(44,86,124,.14)}
  .wrow .rw,.rkbody .rkname{color:#223441}
  .wrow .rc,.wrow .rg,.rkbody .rkmeta,.sumCard div{color:#6b8398}
  .rkend{color:#43606f}
  .sumCard b{color:#c08a2a}
  .wrow .wbtns button{background:rgba(248,252,255,.96);border-color:rgba(148,180,206,.55);color:#43606f}
  .wrow .wbtns button:hover{background:#eef8ff}
  .webox{color:#5b7385;border-style:dashed}
  .wcard{background:rgba(255,255,255,.94)!important;box-shadow:0 8px 22px rgba(44,86,124,.16)!important}
  .wfields input,.wfields textarea{background:rgba(250,253,255,.96);border-color:rgba(148,180,206,.5);color:#223441}

  /* 背单词练习卡片内部布局（外框见 practice-card.css）：中文 → 画面 / 例句（弹性区域）→ 字母格 → 反馈与音标。
     没有画面也没有例句时，中文放大居中占住画面区域，卡片尺寸不变。 */
  .pcBody.wordPracticeCard{gap:8px;color:#263f52;justify-content:center;container-type:size}
  .wordPracticeCard .wordPracticeClue{flex:none;margin:0}
  .wordPracticeCard .wordPracticeVisual{flex:0 1 auto;min-height:0;width:min(100%,calc((100cqh - 170px) * 16 / 9));margin:0 auto;
    display:flex;flex-direction:column;align-items:stretch;justify-content:center;border-radius:16px}
  .wordPracticeCard .wordPracticeVisual .storyStage{width:100%;height:auto;aspect-ratio:16/9;flex:none}
  .wordPracticeCard .wordPracticeVisual:not(:has(> :not([hidden]))){display:none}
  .wordPracticeCard:not(:has(.wordPracticeVisual > :not([hidden]))) .wordPracticeClue{flex:1 1 auto;display:grid;place-items:center;
    font-size:clamp(28px,6vw,44px)}
  .wordPracticeCard .wordPracticeVisual:not(:has(.storyStage:not([hidden]))) .wordPracticeExample{font-size:clamp(15px,2.4vw,19px)}
  .wordPracticeCard .wordPracticeSlots,.wordPracticeCard #wordPracticeFeedback,.wordPracticeCard .wordPracticeIpa{flex:none}
  .wordPracticeCard #wordPracticeFeedback{min-height:20px}
  .wordPracticeCard #wordPracticeFeedback:empty{position:static;width:auto;height:auto;clip-path:none}
  .pcBody.wordPracticeDone{justify-content:center;align-items:center}
  /* 背单词练习的作答区（app/game/spell-kit.css 的字母块 / 屏幕键盘），画面按剩下的高度缩放 */
  .wordPracticeCard .wordPracticeArea{flex:none}
  .wordPracticeCard .wordPracticeArea:empty{display:none}
  .wordPracticeCard:has(.spellBoard) .wordPracticeVisual{width:min(100%,calc((100cqh - 290px) * 16 / 9))}
  .wordPracticeCard:has(.parkKeyboard) .wordPracticeVisual{width:min(100%,calc((100cqh - 330px) * 16 / 9))}
  .wordPracticeStars{margin:10px 0 0;font-size:44px;line-height:1;letter-spacing:.12em;color:#f5b82e;text-shadow:0 3px 8px rgba(180,120,0,.25)}
  .wordPracticeStars i{font-style:normal;color:rgba(160,140,100,.25);text-shadow:none}
  .wordPracticeScore{margin:8px 0 0;font-size:16px;color:#5b6f88}
  body.dark .wordPracticeScore{color:#b7cbe0}
  body.dark .pcBody.wordPracticeCard,body.dark .pcBody.wordPracticeDone{color:#ecf5ff}
