:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#222d43;background:#f4f6fb;font-size:16px;--blue:#315bd5;--ink:#222d43;--red:#c6313f;--muted:#62728a;--line:#dce3f0}*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #f4b542;outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed}[hidden]{display:none!important}h1,h2,p{margin:0}h1{font-size:clamp(25px,4vw,34px);letter-spacing:-.02em;line-height:1.25}h2{font-size:18px}.topbar{min-height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:12px max(20px,calc((100vw - 1320px)/2));gap:16px}.brand{display:flex;gap:12px;align-items:center}.brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--blue);color:#fff;font:700 19px Georgia,serif}.brand strong,.brand small{display:block}.brand strong{font-size:17px}.brand small{font-size:12px;color:var(--muted);margin-top:3px}.map-toggle{display:none;border:1px solid var(--line);background:#fff;color:var(--blue);border-radius:10px;padding:10px}.layout{max-width:1320px;margin:auto;display:grid;grid-template-columns:230px minmax(0,660px) 240px;gap:32px;padding:34px 20px 60px}aside{min-width:0}.side-head{display:flex;justify-content:space-between;align-items:center}.side-head span,.muted{font-size:13px;color:var(--muted)}.muted{line-height:1.6;margin-top:7px}#lessons{display:grid;gap:4px;margin-top:16px}.lesson{display:flex;align-items:baseline;gap:10px;width:100%;text-align:left;border:0;background:transparent;border-radius:10px;padding:11px 10px;color:#52637c;line-height:1.35;font-size:14px}.lesson.active{background:#e3ebff;color:#274ab1;font-weight:700}.lesson:disabled{color:#8995a5}.lesson .number{font-size:12px;font-variant-numeric:tabular-nums;min-width:20px}.chapter-line{display:flex;justify-content:space-between;align-items:center;color:var(--blue);font-size:13px;font-weight:700}.chapter-line span:last-child{color:var(--muted);font-variant-numeric:tabular-nums}.track{height:6px;border-radius:20px;background:#dfe6f2;overflow:hidden;margin:12px 0 25px}.track span{display:block;width:0;height:100%;background:var(--blue);border-radius:20px;transition:width .25s}.intro{font-size:14px;color:var(--muted);line-height:1.6;margin:8px 0 20px}.word-card{background:#fff;border:1px solid #e5ebf6;border-radius:22px;padding:22px;box-shadow:0 12px 30px rgba(49,70,125,.06)}.word-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:13px;font-weight:600}.meaning{background:#edf3ff;color:#3154b8;padding:7px 11px;border-radius:11px;font-size:14px}.meaning:empty{display:none}.word{text-align:center;padding:22px 0 9px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(40px,9vw,70px);font-weight:700;line-height:1.15;overflow-wrap:anywhere}.vowel{color:var(--red)}.separator{color:#f0a438;padding:0 .13em}.legend{display:flex;justify-content:center;gap:16px;color:var(--muted);font-size:12px;flex-wrap:wrap}.legend span{display:flex;align-items:center;gap:5px}.red-dot,.ink-dot{width:8px;height:8px;border-radius:50%;background:var(--red)}.ink-dot{background:var(--ink)}.word-detail{display:flex;align-items:center;gap:9px;border-top:1px solid #edf0f6;margin-top:22px;padding-top:15px;font-size:13px;color:var(--muted)}.word-detail strong{font:700 23px Georgia,serif;color:var(--ink)}.word-detail strong.vowel{color:var(--red)}.item-status{margin-left:auto;background:#edf3ff;color:#3154b8;border-radius:20px;padding:6px 10px;white-space:nowrap}.ipa-row{display:flex;gap:12px;align-items:center;color:var(--muted);font-size:13px;margin-top:13px}.ipa-row strong{font:600 19px Georgia,serif;color:var(--ink);overflow-wrap:anywhere}.vowel-note{font-size:12px;color:#5e6e87;line-height:1.5;margin-top:10px}.tip{display:flex;align-items:center;gap:10px;background:#eaf0fd;border-radius:13px;margin-top:14px;padding:13px 15px;color:#36517e;font-size:14px;line-height:1.5}.tip-mark{color:#4269d3;font-size:20px}.learn-actions{display:flex;gap:10px;margin-top:16px}.secondary,.next{min-height:46px;border-radius:12px;padding:11px 16px;border:1px solid #d0dbef;background:#fff;color:#3154b8;font-weight:650}.learn-actions button{flex:1}.split-detail{background:#fff;margin-top:12px;border:1px solid var(--line);border-radius:16px;padding:18px}.split-detail h2{font-size:15px}.split-word{font:700 29px Georgia,serif;margin:12px 0}.split-detail p{color:var(--muted);font-size:13px;line-height:1.55}.practice{margin-top:22px}.practice-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.practice-head p{font-size:14px;color:var(--muted);margin-top:5px;line-height:1.5}.practice-tag{background:#fff2dd;color:#80590f;font-size:12px;font-weight:700;padding:7px 10px;border-radius:20px;white-space:nowrap}.record{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;min-height:60px;margin-top:15px;border:0;border-radius:15px;background:var(--blue);color:white;font-size:16px;font-weight:700;touch-action:none;user-select:none;-webkit-user-select:none;transition:background .15s,transform .15s}.record[data-state="recording"]{background:#bd3441;transform:scale(.99)}.mic{font-size:13px;display:grid;place-items:center;width:25px;height:25px;border:2px solid currentColor;border-radius:50%}.fine{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0}.result{padding:13px 15px;background:#eaf1ff;color:#304f85;border-radius:12px;font-size:14px;line-height:1.55}.result.error{background:#fff0eb;color:#963f2f}.result.success{background:#e8f5ed;color:#226d43}.bottom{display:flex;justify-content:space-between;gap:12px;margin-top:20px}.bottom button{flex:1}.next{background:var(--blue);border-color:var(--blue);color:white}.service{margin-top:18px;font-size:13px;line-height:1.55;color:var(--muted)}.foot{margin-top:10px}.help{padding-top:5px}.help ol{padding-left:20px;color:#52637c;line-height:1.6;font-size:14px}.help li{padding:5px 0}.help-note{margin-top:22px;background:#e9f1ff;padding:18px;border-radius:14px;font-size:14px;line-height:1.6;color:#36517e}.help-note p{margin-top:8px}::selection{background:#d6e3ff;color:#182745}@media(max-width:1000px){.layout{grid-template-columns:210px minmax(0,1fr)}.help{display:none}}@media(max-width:700px){.topbar{min-height:70px;padding:10px 18px}.brand-mark{width:40px;height:40px}.brand strong{font-size:16px}.map-toggle{display:block}.layout{display:flex;flex-direction:column;padding:24px 18px 48px;gap:0}.course-map{display:none;margin-bottom:25px}.course-map.open{display:block}.course-map nav{max-height:40vh;overflow:auto}.word-card{padding:20px 16px}.learn-actions button{padding:10px;font-size:14px}.practice-tag{display:none}.help{display:none}}@media(max-width:350px){.layout{padding-left:13px;padding-right:13px}.word-card{padding:17px 12px}.word{font-size:39px}.legend{gap:9px}.learn-actions{flex-wrap:wrap}.learn-actions button{min-width:130px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.split-choices{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;margin:16px 0;font:700 26px Georgia,serif}.split-choices button{width:23px;height:42px;padding:0;border:0;border-radius:5px;background:#f0f3fa;color:#76859d;font-size:18px}.split-choices button[aria-pressed="true"]{background:#fff0d9;color:#9f6300}.split-actions{display:flex;gap:8px}.split-actions button{flex:1;font-size:13px}.split-detail p{margin-top:8px}#lessons details>summary{list-style:none;padding:12px 10px;color:#52637c;font-weight:700;font-size:14px;cursor:pointer}#lessons details>summary::before{content:"›";display:inline-block;width:16px;color:var(--blue)}#lessons details[open]>summary::before{transform:rotate(90deg)}
.word-meaning{display:flex;justify-content:center;align-items:baseline;gap:9px;margin:4px 0 12px;color:#52637c;font-size:13px}.word-meaning strong{color:#273957;font-size:16px}.word-detail{flex-wrap:wrap}.sound-listen{min-height:38px;padding:7px 13px;border:1px solid #bacbed;border-radius:10px;background:#edf3ff;color:#274ab1;font-size:13px;font-weight:700}.sound-audio-status{margin:8px 0 0;color:#52637c;font-size:12px;line-height:1.5}.examples{margin-top:18px}.examples-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.examples-heading h2{font-size:16px}.examples-heading span,.examples>p{color:#52637c;font-size:12px}.examples>p{margin:8px 0 0;line-height:1.5}.example-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:9px}.example-word{min-width:0;min-height:66px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:10px 12px;text-align:left;border:1px solid #d0dbef;border-radius:12px;background:#fff;color:#273957}.example-word strong{font:700 20px Georgia,serif;overflow-wrap:anywhere}.example-word span{color:#52637c;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.example-word.selected{border-color:#315bd5;background:#edf3ff}.example-word:disabled{opacity:.6}
.sound-reference{display:inline-block;margin:6px 0 0;color:#254da9;font-size:13px;font-weight:600;text-underline-offset:3px}
.pinyin-bridge,.blend-guide{border-top:1px solid #edf0f6;margin-top:16px;padding-top:14px}.pinyin-bridge h2,.blend-guide h2{font-size:14px;color:#3a4d6b}.pinyin-bridge strong{display:block;margin-top:7px;color:#274ab1;font-size:16px}.pinyin-bridge p,.blend-tip,.blend-note{margin-top:6px;color:#52637c;font-size:13px;line-height:1.55}.blend-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.blend-heading span{font-size:12px;color:#52637c}.phoneme-parts{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:11px 0 8px}.phoneme-part{display:flex;min-width:62px;min-height:56px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px 10px;border:1px solid #d0dbef;border-radius:10px;background:#f7f9ff;color:#273957}.phoneme-part strong{font:700 21px Georgia,serif}.phoneme-part strong.vowel{color:var(--red)}.phoneme-part span{font-size:12px;color:#52637c}.phoneme-plus{color:#7484a0;font-weight:600}.blend-note{font-size:12px}
.blend-result{display:flex;align-items:baseline;justify-content:center;gap:8px;margin-top:4px;color:#52637c}.blend-result strong{font:700 21px Georgia,serif;color:#273957}.blend-result>span:last-child{font:600 17px Georgia,serif;color:#273957}

/* A single, stable set of practice controls; it stays in the thumb zone on phones. */
.dock-actions{display:flex;align-items:stretch;gap:10px;margin-top:10px}
.dock-actions .record{flex:1;min-width:0;margin:0}
.dock-actions .next{flex:0 0 auto;min-width:118px}
.practice-dock .result{margin-top:12px}
.ipa-row{flex-wrap:wrap}
.ipa-row .listen-word{margin-left:auto}
@media(max-width:700px){
  .topbar{min-height:58px;padding:8px 15px}
  .brand-mark{width:36px;height:36px}
  .layout{padding:14px 15px calc(225px + env(safe-area-inset-bottom, 0px));}
  .track{margin:8px 0 13px}
  h1{font-size:24px}
  .intro{margin:4px 0 12px}
  .word-card{padding:15px}
  .word{padding:10px 0 3px;font-size:48px}
  .word-meaning{margin:2px 0 8px}
  .word-detail{margin-top:12px;padding-top:10px}
  .ipa-row{margin-top:7px}
  .vowel-note{margin-top:6px}
  .pinyin-bridge,.blend-guide{margin-top:10px;padding-top:9px}
  .pinyin-bridge strong{margin-top:4px}
  .pinyin-bridge p,.blend-tip,.blend-note{margin-top:4px}
  .phoneme-parts{margin:8px 0 4px}
  .practice-dock{position:fixed;z-index:20;left:0;right:0;bottom:0;padding:8px max(15px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(15px,env(safe-area-inset-left,0px));background:#fff;border-top:1px solid #dce3f0;box-shadow:0 -5px 18px rgba(34,45,67,.1)}
  .practice-dock .result{margin:0;padding:5px 8px;min-height:28px;max-height:5em;overflow:auto;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
  .dock-actions{margin-top:7px;gap:8px}
  .dock-actions .record{min-height:52px;padding:8px;font-size:15px;line-height:1.25}
  .dock-actions .next{min-width:100px;max-width:38%;padding:8px 9px;font-size:14px;line-height:1.25}
  .mic{flex:none;width:23px;height:23px}
}
@media(max-width:350px){.dock-actions .next{min-width:86px}.dock-actions .record{font-size:14px;gap:6px}}
