:root{--ink:#253d34;--green:#2f654d;--muted:#647569;--paper:#fbfaf4;--line:#dce3d5;--yellow:#f3cf6b;--soft:#e9efdf;--white:#fff;--radius:25px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:16px;line-height:1.7}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{opacity:.48;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d49b20;outline-offset:4px}header{max-width:1240px;margin:auto;display:flex;align-items:center;gap:30px;padding:24px 36px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;font-weight:750;font-size:18px;line-height:1.3}.brand small{display:block;font-weight:450;font-size:14px;margin-top:6px;letter-spacing:2px}.brandmark{display:grid;place-items:center;width:46px;height:49px;background:var(--green);color:white;border-radius:16px 16px 16px 4px;font:bold 35px Georgia;position:relative}.brandmark span{position:absolute;color:var(--yellow);right:7px;top:0;font-size:21px}nav{display:flex;gap:28px;margin-left:auto;font-size:15px}nav a:hover{color:var(--green);text-decoration:underline}.stars{background:#faedbf;border-radius:30px;padding:7px 15px;font-weight:700;white-space:nowrap}main{max-width:1168px;margin:auto;min-height:72vh;padding:42px 0 60px}footer{border-top:1px solid var(--line);padding:20px 36px;display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:12px}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:700;color:var(--green);text-transform:uppercase}.intro{max-width:750px;margin-bottom:28px}h1{font-size:clamp(30px,4vw,46px);line-height:1.25;letter-spacing:-1px;margin:13px 0 18px}h2{font-size:25px;line-height:1.4;margin:10px 0 12px}h3{font-size:19px;margin:8px 0}.muted,small{color:var(--muted)}p{margin:10px 0 20px}.btn{border:0;border-radius:13px;background:var(--green);color:white;font-weight:650;padding:13px 23px;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:49px}.btn:hover{background:#224d39}.btn.secondary{background:white;border:1px solid var(--line);color:var(--ink)}.btn.yellow{background:var(--yellow);color:var(--ink)}.btn.small{font-size:14px;padding:8px 15px;min-height:40px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px}.petcard{padding:0;overflow:hidden;text-align:left;color:var(--ink);border:2px solid transparent;box-shadow:0 2px 0 #d9dfd3;transition:transform .2s,border-color .2s}.petcard:hover{transform:translateY(-4px)}.petcard.selected{border-color:var(--green);box-shadow:0 0 0 3px #dae8d9}.petvisual{height:210px;background:#f5f1e7 url('companions.png') no-repeat;background-size:300% 100%;border-radius:20px}.petvisual.panda{background-position:left center}.petvisual.rabbit{background-position:center center}.petvisual.fox{background-position:right center}.petcard .copy{padding:17px 22px 22px}.tag{display:inline-block;font-size:12px;background:var(--soft);border-radius:20px;padding:4px 11px;font-weight:600}.petcard .choose{float:right;font-size:14px;font-weight:650;color:var(--green)}.sectiontop{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:32px 0 16px}.setupbar{margin-top:26px;display:flex;gap:20px;align-items:center;justify-content:space-between;padding:20px 24px;background:var(--soft);border-radius:18px}label{display:block;font-size:14px;font-weight:650;margin-bottom:7px}input,select{border:1px solid #b9c8b6;background:white;color:var(--ink);border-radius:11px;padding:11px 14px;max-width:100%;min-height:48px}input[type=text]{width:260px}.homegrid{display:grid;grid-template-columns:1.6fr 1fr;gap:24px}.feature{background:#e8efdd;border:1px solid #dae3cc;border-radius:30px;overflow:hidden;position:relative;padding:32px}.feature h1{font-size:40px;max-width:460px}.feature .petvisual{width:220px;height:230px;margin:20px auto 0;background-color:#f8f4e9}.featurehead{display:flex;justify-content:space-between;align-items:center}.side{display:grid;gap:18px}.side .card{padding:24px}.progress{height:8px;background:#e7ebdf;border-radius:10px;overflow:hidden;margin:12px 0}.progress span{display:block;height:100%;background:var(--green)}.path{display:flex;align-items:center;gap:16px;padding:15px 0;border-bottom:1px solid var(--line)}.path:last-child{border:0}.num{border:1px solid var(--line);border-radius:50%;width:37px;height:37px;display:grid;place-items:center;flex-shrink:0;font-size:14px;background:#f9f8f0}.path.active .num{background:var(--green);color:white}.path small{font-size:13px}.noticebox{background:#f7f2de;border-radius:14px;padding:14px 18px;font-size:14px;margin:18px 0}.lesson{max-width:910px;margin:auto}.lessonnav{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.lessonnav a{font-size:14px}.stepdots{display:flex;gap:7px}.stepdots i{display:block;width:26px;height:5px;border-radius:4px;background:var(--line)}.stepdots i.active{background:var(--green)}.lessonpanel{background:white;border:1px solid var(--line);border-radius:30px;padding:30px 38px;min-height:420px}.lessonpanel h1{font-size:32px}.lessonhead{display:flex;gap:18px;align-items:center}.mini{width:90px;height:90px;flex-shrink:0;border-radius:50%;background-size:300% 100%}.foodchoices{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin:28px 0}.food{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#fbfaf2;border:2px solid #e6e9de;color:var(--ink);border-radius:20px;padding:22px;min-width:145px;min-height:160px}.food.selected{border-color:var(--green);background:#edf3e6}.food .emoji{font-size:56px;line-height:1.2}.food .word{font-size:24px;font-weight:700}.feedback{min-height:42px;background:#f0f4e9;border-radius:12px;padding:10px 15px;font-size:15px;margin:20px 0}.lessonbottom{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:24px}.inputstage{background:#f6f7ef;padding:25px;border-radius:18px;margin:20px 0;text-align:center}.target{font-size:38px;font-weight:700;margin:8px}.pinyin{font-size:21px;letter-spacing:1px;color:var(--green)}.inputstage input{font-size:23px;text-align:center;width:min(100%,400px);margin:15px 0}.candidates{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.candidate{background:white;border:1px solid var(--line);border-radius:10px;padding:9px 18px;color:var(--ink);font-size:22px}.candidate:hover{border-color:var(--green)}.sheet{max-width:510px;margin:20px auto;background:#fff9df;border:1px solid #eadba2;border-radius:8px 8px 24px 24px;padding:30px;box-shadow:0 7px 0 #e7e4d7}.sheet h2{text-align:center;font-size:27px}.sheet li{list-style:none;font-size:23px;border-bottom:1px dashed #d9cdab;padding:10px 0}.sheet ul{padding:0}.sheet .sentence{font-size:20px}.bigstar{font-size:40px;color:#ad8014}.question{margin:22px 0}.question fieldset{border:0;padding:0;margin:0}.question legend{font-weight:700;margin-bottom:12px}.options{display:flex;gap:10px;flex-wrap:wrap}.option{border:1px solid var(--line);padding:12px 16px;border-radius:12px;background:white;color:var(--ink)}.option.selected{border:2px solid var(--green);background:var(--soft);padding:11px 15px}.report{width:100%;border-collapse:collapse;font-size:15px}.report td,.report th{text-align:left;padding:13px 8px;border-bottom:1px solid var(--line)}.report th{font-size:14px;color:var(--muted)}.note{font-size:14px;color:var(--muted);margin-top:15px}.empty{padding:45px;text-align:center}.link{background:none;border:0;color:var(--green);text-decoration:underline;font-size:14px;padding:8px}.decors{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.decor{font-size:16px;border:1px solid var(--line);border-radius:15px;padding:15px;background:white;color:var(--ink)}#notice:not(:empty){position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:90vw;background:var(--ink);color:white;border-radius:12px;padding:12px 22px;box-shadow:0 8px 30px #0002;z-index:10}.check{font-size:40px;color:var(--green)}.two{display:grid;grid-template-columns:1fr 1fr;gap:24px}.deco-display{font-size:30px;text-align:center;min-height:50px}html.quiet *{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:1200px){main{padding:32px 26px 48px}}@media(max-width:700px){header{padding:16px;gap:12px;flex-wrap:wrap}.brand{font-size:16px}.brandmark{width:39px;height:42px}nav{order:3;width:100%;justify-content:space-around;border-top:1px solid var(--line);padding-top:12px;gap:8px}.stars{margin-left:auto}main{padding:25px 16px 38px}.grid,.homegrid,.two{grid-template-columns:1fr}.petcard{display:grid;grid-template-columns:120px 1fr}.petvisual{height:150px}.petcard .copy{padding:15px}.petcard p{margin:5px 0}.petcard .choose{float:none;display:block}.setupbar{align-items:stretch;flex-direction:column}.feature{padding:24px}.feature h1{font-size:32px}.lessonpanel{padding:23px 18px}.lessonpanel h1{font-size:26px}.mini{width:65px;height:70px}.foodchoices{gap:9px}.food{min-width:90px;min-height:120px;padding:13px}.food .emoji{font-size:40px}.food .word{font-size:20px}.lessonbottom{align-items:stretch;flex-direction:column}.lessonbottom .btn{width:100%}.sheet{padding:20px}.sectiontop{align-items:start}footer{padding:18px;flex-direction:column;gap:5px}.report td,.report th{padding:10px 5px;font-size:14px}.intro h1{font-size:32px}}

/* Bilingual controls and on-demand learning support. */
.language-switch{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.language-switch small{font-size:12px}.language-switch>div{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}.language-switch button{border:0;background:white;padding:8px 10px;color:var(--ink);font-size:14px}.language-switch button[aria-pressed=true]{background:var(--green);color:white}.language-welcome{max-width:800px;margin:30px auto;padding:40px}.language-welcome h1 span{font-size:.65em}.language-settings{display:flex;gap:22px;flex-wrap:wrap}.word-help{max-width:260px;text-align:center}.word-help .row{justify-content:center;gap:2px}.word-help .link{font-size:14px;padding:7px}.meaning{font-size:18px;color:var(--green);margin-top:6px}.inputstage .word-help{margin:auto}.food:has(.word-help){min-width:190px}.lessonpanel .food:has(.word-help){align-self:flex-start}.word-help .pinyin{font-size:18px}.language-settings select{min-width:140px}header{flex-wrap:wrap}html[lang=en] h1{letter-spacing:-.5px}html[lang=en] .lessonpanel h1{font-size:30px}html[lang=en] .report td{overflow-wrap:anywhere}html[lang=en] .feature h1{font-size:38px}@media(max-width:700px){.language-switch{margin-left:auto}.language-switch small{display:none}header .stars{margin-left:0}header nav{order:4}.language-welcome{padding:24px}.food:has(.word-help){min-width:0;width:100%}.language-settings{flex-direction:column}html[lang=en] .feature h1{font-size:30px}}

/* Approved panda-and-Chinese-book identity; square at every breakpoint. */
header .brandmark{display:block;width:56px;height:56px;flex:0 0 56px;object-fit:contain;background:transparent;border-radius:0} @media(max-width:700px){header .brandmark{width:44px;height:44px;flex-basis:44px}}
/* English punctuation uses Latin font metrics; headings focused by script are not keyboard stops. */
html[lang="en"] body{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.flow-stage h1:focus,.word-detail h1[tabindex="-1"]:focus{outline:none}
.flow-review-link{border-top:1px solid #dbe7eb;padding:14px 0 0;margin:8px 0}
.flow-review{max-width:900px;margin-inline:auto}
.flow-review h1{margin-top:20px}
