@font-face{font-family:'Dela Gothic One';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/dela-gothic-one-latin.woff2') format('woff2')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('../assets/fonts/manrope-latin.woff2') format('woff2')}

:root{
  --p-cream:oklch(0.945 0.023 72);
  --p-paper:oklch(0.978 0.012 75);
  --p-forest:oklch(0.283 0.087 145);
  --p-forest-soft:oklch(0.42 0.055 145);
  --p-sage:oklch(0.68 0.045 172);
  --p-sage-pale:oklch(0.9 0.035 165);
  --p-coral:oklch(0.73 0.133 25);
  --p-pink:oklch(0.86 0.055 25);
  --p-sun:oklch(0.88 0.116 82);
  --surface:var(--p-cream);
  --surface-raised:var(--p-paper);
  --surface-band:var(--p-sage-pale);
  --text:var(--p-forest);
  --text-soft:var(--p-forest-soft);
  --accent:var(--p-coral);
  --highlight:var(--p-sun);
  --border:oklch(0.283 0.087 145 / .28);
  --font-body:'Manrope','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Noto Sans CJK SC',sans-serif;
  --font-display:'Dela Gothic One','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Noto Sans CJK SC',sans-serif;
  --radius:20px;
  --shadow:0 16px 40px oklch(0.283 0.087 145 / .13);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:20px}
body{min-width:320px;min-height:100dvh;font:16px/1.65 var(--font-body);color:var(--text);background-color:var(--surface);background-image:url('../assets/images/paper-noise.png');-webkit-font-smoothing:antialiased}
body:has(dialog[open]){overflow:hidden}
button,a,input{font:inherit}
button{color:inherit;cursor:pointer}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
svg{display:block}
button:disabled{cursor:not-allowed;opacity:.5}
::selection{background:var(--highlight);color:var(--text)}
:focus-visible{outline:3px solid var(--text);outline-offset:4px}
h1,h2,h3{line-height:1.25;text-wrap:balance}
p{max-width:70ch}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:8px;left:8px;z-index:50;padding:10px 16px;background:var(--text);color:var(--surface);border-radius:10px;transform:translateY(-150%)}
.skip-link:focus{transform:translateY(0)}
.container{width:min(100% - 40px,1200px);margin-inline:auto}
.display-en{font-family:var(--font-display);font-weight:400;letter-spacing:.015em}
.icon{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.site-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:20px;position:relative;z-index:10}
.brand{display:flex;align-items:center;gap:12px;min-height:48px}
.brand-mark{width:46px;height:46px;flex:none}
.brand-name{display:block;font-weight:800;font-size:18px;letter-spacing:.05em;line-height:1.25}
.brand-sub{display:block;font-size:12px;font-weight:600;letter-spacing:.14em;color:var(--text-soft);line-height:1.4}
.header-nav{display:flex;align-items:center;gap:8px}
.nav-link,.nav-cta{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px 16px;border-radius:999px;font-size:14px;font-weight:700;border:1.5px solid transparent;background:transparent;transition:background-color .18s ease,transform .18s ease}
.nav-link:hover{background:var(--surface-raised)}
.nav-cta{background:var(--text);color:var(--surface);border-color:var(--text)}
.nav-cta:hover{transform:translateY(-2px)}
.primary-btn,.secondary-btn,.text-btn,.record-btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 20px;border-radius:16px;font-weight:800;border:1.5px solid var(--text);transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease}
.primary-btn{background:var(--text);color:var(--surface);box-shadow:0 5px 0 oklch(0.283 0.087 145 / .18)}
.primary-btn:hover{transform:translateY(-2px);box-shadow:0 7px 0 oklch(0.283 0.087 145 / .18)}
.primary-btn:active{transform:translateY(1px);box-shadow:0 2px 0 oklch(0.283 0.087 145 / .18)}
.secondary-btn{background:var(--surface-raised);color:var(--text)}
.secondary-btn:hover{background:var(--highlight)}
.text-btn{background:transparent;border-color:transparent;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1.5px}
.text-btn:hover{background:var(--surface-raised)}

.hero{display:grid;grid-template-columns:1.06fr .94fr;align-items:center;gap:64px;padding-block:56px 88px;position:relative}
.hero-copy{position:relative;z-index:2}
.hero h1{font-size:clamp(42px,5.2vw,74px);font-weight:800;letter-spacing:-.035em;margin:10px 0 26px}
.hero h1 span{position:relative;display:inline-block}
.hero-squiggle{position:absolute;width:100%;height:14px;left:0;bottom:-10px;color:var(--accent)}
.hero-lead{font-size:18px;line-height:1.8;color:var(--text-soft);max-width:32rem}
.hero-note{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:700;margin-top:24px}
.hero-note .icon{color:var(--accent)}
.hero-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:32px}
.hero-visual{position:relative;width:min(100%,440px);justify-self:center}
.hero-poster{position:relative;border:2px solid var(--text);border-radius:26px;padding:10px;background:var(--surface-raised);box-shadow:0 0 0 7px var(--surface-raised),var(--shadow);transform:rotate(1.8deg)}
.hero-poster img{border-radius:17px;width:100%}
.floating-badge{position:absolute;z-index:3;display:flex;align-items:center;gap:7px;padding:9px 14px;border:2px solid var(--text);border-radius:16px;box-shadow:0 0 0 4px var(--surface-raised);font-size:14px;font-weight:800;animation:float-badge 4s ease-in-out infinite}
.floating-badge .icon{width:18px;height:18px}
.badge-listen{left:-48px;top:16%;background:var(--highlight);transform:rotate(-7deg)}
.badge-read{right:-36px;top:43%;background:var(--p-pink);transform:rotate(6deg);animation-delay:-1.4s}
.badge-play{left:-30px;bottom:13%;background:var(--p-sage);transform:rotate(4deg);animation-delay:-2.6s}
@keyframes float-badge{0%,100%{translate:0 0}50%{translate:0 -8px}}

.how-band{background:var(--p-sage);border-block:1.5px solid var(--text)}
.how-inner{padding-block:44px}
.how-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:30px}
.how-heading h2{font-size:clamp(26px,3.5vw,38px)}
.how-heading p{font-weight:700}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.step{display:grid;grid-template-columns:44px 1fr;gap:14px;align-items:start}
.step-number{width:44px;height:44px;display:grid;place-items:center;border:2px solid var(--text);border-radius:50%;font-family:var(--font-display);font-size:18px;background:var(--surface)}
.step h3{font-size:19px;margin-bottom:4px}
.step p{font-size:15px;line-height:1.65}

.topics-section{padding-block:76px}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:32px}
.section-heading h2{font-size:clamp(30px,4vw,46px);letter-spacing:-.02em}
.section-heading p{font-size:15px;color:var(--text-soft)}
.topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.topic-card{min-height:158px;padding:22px;border:1.5px solid var(--border);border-radius:22px;background:var(--surface-raised);display:flex;flex-direction:column;justify-content:space-between;gap:18px}
.topic-card-icon{width:42px;height:42px;color:var(--text)}
.topic-card h3{font-size:20px}
.topic-card-en{font-size:13px;font-weight:700;color:var(--text-soft);margin-top:3px}
.topic-status{font-size:12px;font-weight:800;letter-spacing:.06em;color:var(--text-soft)}
.topic-card--active{grid-column:1/-1;display:grid;grid-template-columns:132px 1fr;align-items:center;border:2px solid var(--text);background:var(--highlight);transition:transform .2s ease,box-shadow .2s ease}
.topic-card--active:hover{transform:translateY(-4px) rotate(-.4deg);box-shadow:var(--shadow)}
.topic-card--active img{width:132px;border:1.5px solid var(--text);border-radius:14px;background:var(--surface)}
.topic-active-copy{display:flex;flex-direction:column;gap:10px}
.topic-active-title{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.topic-active-title .display-en{font-size:30px}
.topic-card--active h3{font-size:22px}
.topic-open{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:800}
.progress-line{height:9px;background:oklch(0.978 0.012 75 / .72);border:1px solid var(--text);border-radius:999px;overflow:hidden}
.progress-line>span{display:block;height:100%;background:var(--text);border-radius:inherit;transition:width .25s ease}
.progress-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;font-weight:800}

.parent-band{background:var(--p-pink);border-block:1.5px solid var(--text)}
.parent-inner{display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center;padding-block:52px}
.parent-inner h2{font-size:clamp(28px,4vw,42px);margin-bottom:12px}
.parent-inner p{font-size:17px}
.parent-points{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:18px;font-size:14px;font-weight:700}
.parent-points span{display:flex;align-items:center;gap:7px}
.parent-points .icon{width:18px;height:18px}
.site-footer{background:var(--text);color:var(--surface);margin-top:0}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:32px}
.footer-brand{font-weight:800;letter-spacing:.08em}
.footer-note{font-size:13px;opacity:.85;margin-top:3px}
.footer-links{display:flex;gap:8px}
.footer-links a{min-height:44px;display:inline-flex;align-items:center;padding:8px 12px;text-decoration:underline;text-underline-offset:5px}

.topic-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;max-width:1440px;margin-inline:auto;border-top:1.5px solid var(--border)}
.poster-panel{position:sticky;top:0;height:100dvh;overflow:auto;padding:22px 26px;background:var(--surface-band);border-right:1.5px solid var(--border);display:flex;flex-direction:column}
.poster-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.poster-title{font-size:42px;line-height:1}
.poster-subtitle{font-size:14px;font-weight:700;margin-top:4px}
.poster-tools{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-block:8px 12px}
.poster-tools .text-btn{font-size:13px;min-height:44px;padding:8px 12px}
.poster-frame{position:relative;line-height:0;margin:auto;width:fit-content;max-width:100%}
.poster-frame>img{width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 220px);border:2px solid var(--text);border-radius:18px;background:var(--surface-raised);box-shadow:0 8px 24px oklch(0.283 0.087 145 / .12)}
.poster-tip{text-align:center;font-size:13px;font-weight:700;margin-top:10px}
.poster-interaction{position:absolute;pointer-events:none}
.poster-hit-map{position:absolute;inset:0;width:100%;height:100%;border-radius:16px;overflow:hidden;pointer-events:none}
.poster-hit-map path{fill:transparent;pointer-events:fill;cursor:pointer;touch-action:manipulation}
.poster-hit-map path.is-playing{fill:oklch(0.88 0.116 82 / .3)}
@media (hover:hover){.poster-hit-map path:hover{fill:oklch(0.88 0.116 82 / .18)}}
.poster-speaker{position:absolute;display:grid;place-items:center;padding:0;border:1px solid var(--text);border-radius:50%;background:var(--surface-raised);color:var(--text);pointer-events:auto;touch-action:manipulation;box-shadow:0 1px 3px oklch(0.28 0.08 145 / .22)}
.poster-speaker>svg,.poster-fallback-button>svg{width:14px;height:14px;flex:none}
.poster-speaker>span{display:none}
.poster-speaker.is-playing,.poster-fallback-button.is-playing{background:var(--highlight)}
.poster-speaker.is-done:not(.is-playing),.poster-fallback-button.is-done:not(.is-playing){background:var(--p-sage)}
.poster-fallback{margin:10px auto 0;max-width:100%}
.poster-fallback[hidden]{display:none}
.poster-fallback-label{margin:0 0 4px;font-size:13px;font-weight:700;text-align:center}
.poster-fallback-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.poster-fallback-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:6px 10px;border:1px solid var(--border);border-radius:999px;background:var(--surface-raised);color:var(--text);font-size:13px;font-weight:700;touch-action:manipulation}
.learning-panel{width:100%;max-width:700px;justify-self:center;padding:36px 32px 80px}
.lesson-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:42px}
.lesson-tab{min-height:44px;padding:8px 15px;border:1.5px solid var(--border);border-radius:999px;background:var(--surface-raised);font-size:14px;font-weight:800;transition:background-color .18s ease}
.lesson-tab:hover{background:var(--highlight)}
.lesson-section{margin-bottom:68px;scroll-margin-top:22px}
.lesson-section>h2{font-size:clamp(27px,3vw,36px);margin-bottom:10px;letter-spacing:-.02em}
.section-desc{color:var(--text-soft);font-size:16px;line-height:1.75}
.lesson-progress{display:flex;align-items:center;gap:12px;margin:20px 0 28px}
.lesson-progress .progress-line{flex:1}
.lesson-progress>span{font-size:13px;font-weight:800;white-space:nowrap}
.word-group{margin-top:34px}
.word-group-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:2px solid var(--text);padding-bottom:8px}
.word-group-title h3{font-size:19px}
.word-group-title span{font-size:12px;font-weight:700;color:var(--text-soft)}
.word-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:12px 0;border-bottom:1px dashed var(--border)}
.word-en{font-size:22px;font-weight:800;line-height:1.3}
.word-ipa{margin-top:2px;font-size:14px;font-weight:600;line-height:1.45;letter-spacing:.01em;color:var(--text-soft)}
.word-cn{font-size:13px;color:var(--text-soft);margin-top:2px}
.audio-btn{position:relative;width:48px;height:48px;display:inline-grid;place-items:center;flex:none;border:1.5px solid var(--text);border-radius:50%;background:var(--surface-raised);transition:background-color .16s ease,transform .16s ease}
.audio-btn:hover{background:var(--highlight);transform:scale(1.04)}
.audio-btn.is-playing{background:var(--highlight)}
.progress-ring{position:absolute;inset:-4px;width:54px;height:54px;transform:rotate(-90deg);pointer-events:none;opacity:0}
.is-playing .progress-ring{opacity:1}
.progress-ring circle{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-dasharray:144.51;stroke-dashoffset:144.51}
.slow-btn{min-width:52px;min-height:44px;padding:6px 9px;border:1.5px dashed var(--text);border-radius:14px;background:transparent;font-size:13px;font-weight:800;transition:background-color .16s ease}
.slow-btn:hover,.slow-btn.is-playing{background:var(--highlight)}
.sentence-card{padding:22px;margin-top:18px;border:1.5px solid var(--border);border-radius:22px;background:var(--surface-raised)}
.sentence-top{display:flex;justify-content:space-between;align-items:start;gap:16px}
.sentence-en{font-size:22px;font-weight:800;line-height:1.45}
.sentence-word{display:inline-block;min-height:44px;padding:4px 0;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:inherit;vertical-align:baseline;transition:background-color .16s ease}
.sentence-word:hover{background:var(--highlight)}
.sentence-word:active{background:var(--surface-band)}
.sentence-cn{font-size:14px;color:var(--text-soft);margin-top:5px}
.stars{display:flex;gap:2px;flex:none;color:var(--accent)}
.stars svg{width:21px;height:21px;fill:transparent;stroke:currentColor;stroke-width:1.7}
.stars svg.filled{fill:var(--highlight)}
.sentence-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}
.record-btn{background:var(--text);color:var(--surface);font-size:14px}
.record-btn:hover{transform:translateY(-2px)}
.record-btn.is-listening{background:var(--p-pink);color:var(--text)}
.feedback{margin-top:16px;padding:15px;border-radius:16px;background:var(--surface-band);font-size:14px}
.feedback[data-tone='retry']{background:var(--p-pink)}
.feedback-title{font-size:16px;font-weight:800;margin-bottom:5px}
.feedback p+p{margin-top:6px}
.transcript{font-size:13px;color:var(--text-soft)}
.word-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.word-chip{padding:4px 9px;border:1px dashed var(--text);border-radius:9px;font-size:13px;font-weight:800;background:var(--surface-raised)}
.feedback .text-btn{min-height:44px;font-size:13px;padding:6px 10px;margin-top:8px}
.recorded-audio{width:100%;margin-top:10px}
.quiz-intro{margin-top:20px;padding:24px;border:2px dashed var(--border);border-radius:24px;background:var(--surface-raised)}
.quiz-intro h3{font-size:20px;margin-bottom:6px}
.quiz-intro .primary-btn{margin-top:18px}
.quiz-session{margin-top:20px}
.quiz-prompt{padding:20px;border-radius:20px;background:var(--highlight);border:1.5px solid var(--text)}
.quiz-count{font-size:12px;font-weight:800;letter-spacing:.08em}
.quiz-prompt h3{font-size:24px;margin-top:4px}
.quiz-prompt p{font-size:14px;margin-top:3px}
.quiz-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.quiz-poster-wrap{position:relative;margin-top:16px;line-height:0}
.quiz-poster-wrap>img{width:100%;border:1.5px solid var(--text);border-radius:18px;transition:border-color .18s ease}
.quiz-poster-wrap.wrong>img{border-color:var(--accent)}
.quiz-target{position:absolute;min-width:44px;min-height:44px;border:3px solid transparent;border-radius:14px;background:transparent;transition:background-color .18s ease,border-color .18s ease}
.quiz-target:hover{border-color:oklch(0.283 0.087 145 / .45)}
.quiz-target.hint{border-color:var(--accent);border-style:dashed;background:oklch(0.88 0.116 82 / .3)}
.quiz-target.correct{border-color:var(--text);background:oklch(0.88 0.116 82 / .45)}
.quiz-target.wrong{border-color:var(--accent);background:oklch(0.86 0.055 25 / .45)}
.quiz-feedback{min-height:58px;margin-top:14px;font-size:15px;font-weight:700}
.quiz-actions{display:flex;flex-wrap:wrap;gap:10px}
.quiz-complete{padding:26px;margin-top:20px;border:2px solid var(--text);border-radius:24px;background:var(--highlight);text-align:center}
.quiz-complete h3{font-size:28px}
.quiz-complete .stars{justify-content:center;margin:12px 0}
.quiz-complete .stars svg{width:30px;height:30px}
.quiz-complete-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:18px}
.guide-invite{padding:26px;border-radius:24px;background:var(--p-pink);border:1.5px solid var(--text)}
.guide-invite h3{font-size:24px;margin-bottom:8px}
.guide-invite-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.reset-btn{margin-top:12px;min-height:44px;background:transparent;border:0;text-decoration:underline;text-underline-offset:4px;font-size:12px;color:var(--text-soft)}

.footer-links{flex-wrap:wrap}
.topic-active-visual{position:relative;width:fit-content}
.topic-active-visual>span{position:absolute;right:-9px;bottom:12px;min-width:44px;height:36px;display:grid;place-items:center;padding-inline:8px;border:1.5px solid var(--text);border-radius:999px;background:var(--surface-raised);font-size:13px;font-weight:800;box-shadow:0 0 0 3px var(--highlight)}

.breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding-block:12px 24px;font-size:13px;font-weight:700;color:var(--text-soft)}
.breadcrumb a{min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:5px}
.breadcrumb a:hover{color:var(--text)}
.library-main,.resource-main{padding-bottom:88px}
.library-layout{display:grid;grid-template-columns:320px minmax(0,1fr);align-items:start;gap:42px}
.library-intro{position:sticky;top:24px;height:calc(100dvh - 190px);min-height:640px;max-height:860px;padding:30px;display:flex;flex-direction:column;justify-content:space-between;gap:40px;border:2px solid var(--text);border-radius:28px;background:var(--text);color:var(--surface)}
.library-eyebrow,.resource-kicker{font-size:11px;font-weight:800;letter-spacing:.15em}
.library-intro h1{margin-top:22px;font-size:clamp(34px,3vw,42px);line-height:1.08;letter-spacing:-.02em}
.library-cn{margin-top:8px;font-size:25px;font-weight:800}
.library-lead{margin-top:24px;font-size:15px;line-height:1.9;color:var(--surface-band)}
.library-count{display:flex;align-items:center;gap:17px;margin-top:30px;padding-top:24px;border-top:1px dashed oklch(0.978 0.012 75 / .48)}
.library-count strong{font-size:72px;font-weight:400;line-height:1;color:var(--highlight)}
.library-count span{font-size:13px;font-weight:700;line-height:1.7}
.library-corn p{font-size:14px;line-height:1.8}
.library-corn .primary-btn{width:100%;margin-top:18px;padding-inline:14px;background:var(--highlight);color:var(--text);border-color:var(--surface);box-shadow:0 5px 0 oklch(0.978 0.012 75 / .18);font-size:13px}
.library-index-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:24px}
.library-index-head h2{font-size:clamp(25px,3vw,34px)}
.library-index-head>span{flex:none;padding-bottom:4px;font-size:11px;font-weight:800;letter-spacing:.13em;color:var(--text-soft)}
.vegetable-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 22px}
.vegetable-card{min-width:0;padding-top:15px;border-top:1.5px dashed var(--border)}
.vegetable-card-link{display:block}
.vegetable-thumb{position:relative;overflow:hidden;border:1.5px solid var(--text);border-radius:18px;background:var(--surface-raised)}
.vegetable-thumb img{width:100%;aspect-ratio:560 / 792;object-fit:cover;transition:transform .25s ease}
.vegetable-card-link:hover .vegetable-thumb img{transform:scale(1.025) rotate(-.6deg)}
.vegetable-number{position:static;width:36px;height:36px;display:grid;place-items:center;margin-bottom:10px;border:1.5px solid var(--text);border-radius:50%;background:var(--surface-raised);font-size:11px;font-weight:800}
.vegetable-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-top:14px}
.vegetable-card-title h3{font-size:clamp(17px,2vw,23px);line-height:1.15;letter-spacing:-.015em}
.vegetable-card-title p{margin-top:4px;font-size:14px;font-weight:800}
.vegetable-card-title .icon{width:19px;height:19px;margin-top:2px}
.vegetable-lead{margin-top:12px;font-size:13px;line-height:1.7;color:var(--text-soft)}
.vegetable-card-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:13px;padding-top:10px;border-top:1px dashed var(--border);font-size:11px;font-weight:800;color:var(--text-soft)}

.resource-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);align-items:start;gap:54px}
.resource-poster{padding:22px;border:1.5px solid var(--text);border-radius:28px;background:var(--surface-band)}
.resource-poster img{width:100%;border:1.5px solid var(--text);border-radius:17px;background:var(--surface-raised)}
.resource-copy{position:sticky;top:28px;padding-top:16px}
.resource-kicker{color:var(--text-soft)}
.resource-copy h1{margin-top:18px;font-size:clamp(40px,5vw,68px);line-height:1.08;letter-spacing:-.025em}
.resource-cn{margin-top:10px;font-size:28px;font-weight:800}
.resource-lead{margin-top:24px;font-size:17px;line-height:1.85;color:var(--text-soft)}
.resource-facts{margin-top:28px;border-block:1.5px solid var(--border)}
.resource-facts>div{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:14px}
.resource-facts>div+div{border-top:1px dashed var(--border)}
.resource-facts dt{font-size:14px;font-weight:800}
.resource-facts dd{font-size:13px;color:var(--text-soft);text-align:right}
.resource-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.resource-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:16px;font-size:13px;font-weight:800}
.resource-links a{min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:5px}
.resource-links a:hover{color:var(--accent)}
.resource-note{display:flex;align-items:flex-start;gap:12px;margin-top:24px;padding:18px;border:1.5px solid var(--text);border-radius:18px;background:var(--highlight)}
.resource-note .icon{margin-top:2px}
.resource-note p{font-size:14px;line-height:1.75}

.guide-dialog{width:min(900px,calc(100% - 32px));max-height:90dvh;margin:auto;padding:0;border:2px solid var(--text);border-radius:26px;background:var(--surface);color:var(--text);box-shadow:var(--shadow);overflow:auto}
.guide-dialog::backdrop,.confirm-dialog::backdrop{background:oklch(0.283 0.087 145 / .52);backdrop-filter:blur(4px)}
.guide-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:var(--surface);border-bottom:1.5px solid var(--border)}
.guide-head h2{font-size:23px}
.guide-head p{font-size:13px;color:var(--text-soft)}
.close-btn{width:44px;height:44px;display:grid;place-items:center;flex:none;border:1.5px solid var(--text);border-radius:50%;background:var(--surface-raised);transition:background-color .18s ease}
.close-btn:hover{background:var(--highlight)}
.guide-downloads{display:flex;gap:8px;flex-wrap:wrap;padding:16px 24px 0}
.guide-downloads a{min-height:44px;display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border:1.5px solid var(--border);border-radius:12px;font-size:13px;font-weight:800;background:var(--surface-raised)}
.guide-downloads a:hover{background:var(--highlight)}
.guide-tabs{display:flex;gap:8px;overflow-x:auto;padding:18px 24px 0;scrollbar-width:thin}
.guide-tab{min-height:44px;flex:none;padding:8px 15px;border:1.5px solid var(--text);border-radius:999px;background:transparent;font-size:14px;font-weight:800}
.guide-tab[aria-selected='true']{background:var(--text);color:var(--surface)}
.guide-audio-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 24px 0;padding:10px 12px 10px 14px;border:1.5px solid var(--border);border-radius:16px;background:var(--surface-raised)}
.guide-audio-toolbar>span{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:800}
.guide-audio-toolbar>span .icon{width:18px;height:18px}
.guide-rate-switch{display:flex;gap:4px;flex:none;padding:3px;border-radius:999px;background:var(--surface-band)}
.guide-rate-switch button{min-width:58px;min-height:40px;padding:6px 12px;border:0;border-radius:999px;background:transparent;font-size:13px;font-weight:800}
.guide-rate-switch button[aria-pressed='true']{background:var(--text);color:var(--surface)}
.guide-body{padding:22px 28px 36px}
.guide-body>h3{font-size:26px;margin-bottom:8px}
.guide-intro{font-size:15px;line-height:1.8;padding-bottom:18px;border-bottom:2px solid var(--text)}
.guide-block{padding:22px 0;border-bottom:1px dashed var(--border)}
.guide-block h4{font-size:18px;margin-bottom:8px}
.guide-script{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px}
.guide-en{font-size:17px;font-weight:700;line-height:1.65}
.guide-cn{margin-top:5px;line-height:1.75}
.guide-inline-en{font-weight:800}
.guide-audio-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;padding:8px 12px;border:1.5px solid var(--border);border-radius:12px;background:var(--surface-raised);font-size:13px;font-weight:800;transition:background-color .18s ease,border-color .18s ease}
.guide-audio-btn .icon{width:19px;height:19px}
.guide-audio-btn:hover,.guide-audio-btn.is-playing{border-color:var(--text);background:var(--highlight)}
.guide-audio-btn--compact{width:44px;padding:0;border-radius:50%}
.guide-response{display:flex;align-items:center;justify-content:space-between;gap:12px}
.guide-response .guide-cn{flex:1}
.guide-response--note{align-items:flex-start;margin-top:10px}
.guide-response--note .guide-note{flex:1;margin-top:0}
.guide-note{display:inline-block;margin-top:10px;padding:8px 12px;border-radius:12px;background:var(--surface-raised);font-size:13px;font-weight:600}
.safety{margin-top:14px;padding:15px;border:1.5px solid var(--accent);border-radius:16px;background:var(--p-pink);font-size:14px;font-weight:700;line-height:1.7}
.guide-footnote{padding:20px 24px;border-top:1.5px solid var(--border);font-size:12px;color:var(--text-soft);text-align:center}
.confirm-dialog{width:min(440px,calc(100% - 32px));margin:auto;padding:26px;border:2px solid var(--text);border-radius:24px;background:var(--surface);color:var(--text)}
.confirm-dialog h2{font-size:24px;margin-bottom:10px}
.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.dictionary-dialog{width:min(400px,calc(100% - 32px));margin:auto;padding:26px;border:2px solid var(--text);border-radius:24px;background:var(--surface-raised);color:var(--text);box-shadow:var(--shadow)}
.dictionary-dialog::backdrop{background:oklch(0.283 0.087 145 / .52);backdrop-filter:blur(4px)}
.dictionary-layout{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px}
.dictionary-word{font-size:clamp(30px,8vw,40px);font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.dictionary-ipa{margin-top:8px;font-size:20px;line-height:1.5;color:var(--text-soft)}
.dictionary-cn{margin-top:18px;padding-top:16px;border-top:1px dashed var(--border);font-size:18px;font-weight:700;line-height:1.7}
.toast{position:fixed;left:50%;bottom:24px;z-index:40;max-width:calc(100% - 32px);padding:11px 18px;border-radius:999px;background:var(--text);color:var(--surface);font-size:14px;font-weight:700;box-shadow:var(--shadow);opacity:0;pointer-events:none;transform:translate(-50%,18px);transition:opacity .2s ease,transform .2s ease;text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
.noscript{margin:40px auto;padding:20px;max-width:600px;border:2px solid var(--text);border-radius:20px;background:var(--p-pink)}

.guide-head-actions{display:flex;align-items:center;gap:10px;flex:none}
.learning-panel [hidden],.poster-tools [hidden]{display:none!important}

@media (max-width:1100px){
  .floating-badge.badge-read{right:0}
  .library-layout{grid-template-columns:270px minmax(0,1fr);gap:30px}
  .library-intro{padding:24px}
  .vegetable-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .resource-layout{gap:34px}
}
@media (max-width:1000px){
  .hero{gap:36px}
  .floating-badge.badge-listen{left:-20px}
  .floating-badge.badge-read{right:0}
  .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .topic-main{grid-template-columns:minmax(0,1fr);max-width:760px}
  .resource-layout{grid-template-columns:1fr;gap:30px}
  .resource-poster{width:min(100%,700px);margin-inline:auto}
  .resource-copy{position:relative;top:auto;width:min(100%,700px);margin-inline:auto;padding-top:0}
  .poster-panel{position:relative;height:auto;overflow:visible;border-right:0;border-bottom:1.5px solid var(--border);padding:24px}
  .poster-frame>img{width:100%;max-height:none}
  .poster-frame{width:min(100%,600px)}
  .learning-panel{max-width:700px}
}
@media (max-width:800px){
  .hero{grid-template-columns:1fr;padding-block:36px 70px;gap:60px}
  .library-layout{grid-template-columns:1fr}
  .library-intro{position:relative;top:auto;height:auto;min-height:0;max-height:none;display:grid;grid-template-columns:1.08fr .92fr;align-items:end}
  .vegetable-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hero-copy{max-width:620px}
  .hero-visual{width:min(86%,420px)}
  .how-heading,.section-heading{align-items:start;flex-direction:column;gap:8px}
  .steps{grid-template-columns:1fr;gap:24px}
  .parent-inner{grid-template-columns:1fr;gap:24px}
  .parent-inner .primary-btn{justify-self:start}
}
@media (max-width:560px){
  .container{width:min(100% - 28px,1200px)}
  .site-header{gap:8px;padding-block:14px}
  .brand{gap:8px}
  .brand-mark{width:40px;height:40px}
  .brand-name{font-size:16px}
  .brand-sub{font-size:10px;letter-spacing:.08em}
  .header-nav{gap:4px}
  .nav-link--optional{display:none}
  .nav-cta{padding:7px 12px;font-size:12px}
  .hero{padding-top:28px;gap:48px}
  .hero h1{font-size:42px;margin-bottom:22px}
  .hero-lead{font-size:16px}
  .hero-actions{align-items:stretch;flex-direction:column}
  .hero-actions .primary-btn,.hero-actions .text-btn{width:100%}
  .floating-badge{font-size:12px;padding:7px 10px}
  .floating-badge.badge-listen{left:-16px;top:12%}
  .floating-badge.badge-read{right:-18px}
  .floating-badge.badge-play{left:-12px}
  .how-inner{padding-block:36px}
  .topics-section{padding-block:54px}
  .topic-grid{gap:12px}
  .topic-card{min-height:142px;padding:16px;border-radius:18px}
  .topic-card--active{grid-template-columns:92px 1fr;gap:14px}
  .topic-card--active img{width:92px}
  .topic-active-visual>span{right:-6px;bottom:8px;min-width:40px;height:32px;font-size:12px}
  .topic-active-title{gap:6px}
  .topic-active-title .display-en{font-size:24px}
  .topic-card--active h3{font-size:18px}
  .topic-open{font-size:12px}
  .topic-card-icon{width:34px;height:34px}
  .topic-card h3{font-size:17px}
  .footer-inner{align-items:flex-start;flex-direction:column;gap:12px}
  .library-main,.resource-main{padding-bottom:60px}
  .breadcrumb{padding-block:8px 16px}
  .library-intro{display:flex;min-height:0;padding:24px;gap:28px}
  .library-intro h1{font-size:38px}
  .library-count strong{font-size:64px}
  .library-index-head{align-items:flex-start}
  .vegetable-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 14px}
  .vegetable-card{padding-top:12px}
  .vegetable-number{width:32px;height:32px;margin-bottom:8px}
  .vegetable-card-title h3{font-size:18px}
  .vegetable-lead{font-size:12px}
  .resource-poster{padding:12px;border-radius:20px}
  .resource-poster img{border-radius:12px}
  .resource-copy h1{font-size:42px}
  .resource-cn{font-size:24px}
  .resource-lead{font-size:16px}
  .resource-facts>div{align-items:flex-start;gap:14px}
  .resource-actions{flex-direction:column}
  .resource-actions .primary-btn,.resource-actions .secondary-btn{width:100%}
  .poster-panel{padding:18px 14px}
  .poster-panel-head{flex-wrap:wrap}
  .poster-panel-head>div{min-width:0}
  .poster-panel-head>a{flex:none;white-space:nowrap}
  .poster-title{font-size:36px;overflow-wrap:anywhere}
  .poster-tools{margin-top:4px}
  .learning-panel{padding:28px 16px 64px}
  .lesson-nav{gap:6px;margin-bottom:34px}
  .lesson-tab{padding:7px 12px;font-size:13px}
  .lesson-section{margin-bottom:56px}
  .word-en{font-size:20px}
  .word-row{gap:7px}
  .sentence-card{padding:17px}
  .sentence-top{flex-direction:column;gap:8px}
  .sentence-en{font-size:20px}
  .sentence-controls{gap:8px}
  .quiz-prompt h3{font-size:21px}
  .guide-head{padding:16px;flex-wrap:wrap}
  .guide-head>div:first-child{flex:1 1 100%}
  .guide-head h2{font-size:20px}
  .guide-head-actions{width:100%;justify-content:flex-end}
  .guide-tabs{padding-inline:16px}
  .guide-audio-toolbar{margin-inline:16px;padding-left:11px}
  .guide-audio-toolbar>span{font-size:12px}
  .guide-rate-switch button{min-width:52px;padding-inline:9px}
  .guide-body{padding:20px 18px 30px}
  .guide-script{grid-template-columns:1fr;gap:9px}
  .guide-script .guide-audio-btn{justify-self:start}
  .guide-downloads{padding-inline:16px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

.practice-stars { margin: 6px 0; }
.sentence-feedback:empty { display: none; }
.practice-corrections { margin: 8px 0; padding: 0; list-style: none; }
.practice-corrections li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0; }
.practice-word { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; cursor: pointer; }
.practice-word .icon { width: 16px; height: 16px; }
.sentence-feedback .transcript strong { margin-right: 0.25em; }

.course-practice-link,
.course-guide-link { white-space: nowrap; }
.practice-model-progress { display: block; width: 100%; margin-top: 10px; accent-color: var(--text); }
#sentences-title:focus:not(:focus-visible) { outline: none; }
@media (max-width: 560px) {
  .course-guide-link { padding-inline: 8px; font-size: 12px; }
  .course-practice-link { padding-inline: 10px; }
}

.practice-card { --practice-green: #38695f; --practice-purple: #533e73; }
.practice-card .sentence-top { flex-direction: row; gap: 10px; align-items: start; }
.practice-card-prompt { flex: 1; min-width: 0; }
.practice-card .sentence-en { color: var(--practice-green); overflow-wrap: anywhere; }
.practice-card .sentence-cn { color: #685778; }
.practice-card-number {
  display: grid; flex: none; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; color: #fff; background: #a44354; font-weight: 800;
}
.practice-best {
  display: inline-block; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  color: #56384a; background: #ffcc81; font-size: 12px; font-weight: 800;
}
.practice-card .sentence-controls { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; }
.practice-card .record-btn, .practice-demo, .practice-card .slow-btn { border-radius: 999px; }
.practice-card .record-btn { background: var(--practice-green); color: white; border-color: var(--practice-green); padding-inline: 10px; }
.practice-card .record-btn.is-listening { color: #633646; background: #f6d8da; border-color: #a44354; }
.practice-demo {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 48px;
  padding: 5px 12px; border: 1.5px solid #aaa0b8; background: #fff; color: var(--practice-purple);
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.practice-demo.is-playing { background: #eeebf4; }
.practice-demo .icon { width: 17px; height: 17px; }
.practice-card .slow-btn { min-width: 42px; padding-inline: 7px; font-size: 12px; }
.practice-graded { color: var(--practice-purple); background: #f5eee5; }
.practice-score-summary { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.practice-score-bubble {
  display: grid; place-items: center; width: clamp(48px, 12vw, 68px); aspect-ratio: 1;
  border-radius: 50%; background: var(--practice-green); color: #fff; font-size: 23px; font-weight: 800;
}
.practice-score-details { min-width: 0; font-size: 12px; }
.practice-score-line { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
.practice-score-line meter {
  width: 100%; min-width: 0; height: 8px; appearance: none; border: 0; border-radius: 999px; background: #e1d9cf;
}
.practice-score-line meter::-webkit-meter-bar { height: 8px; background: #e1d9cf; border: 0; border-radius: 999px; }
.practice-score-line meter::-webkit-meter-optimum-value { background: var(--practice-green); border-radius: 999px; }
.practice-score-line meter::-moz-meter-bar { background: var(--practice-green); border-radius: 999px; }
.practice-score-details p { color: #685778; margin-top: 4px; }
.practice-score-message { margin-top: 9px; font-weight: 800; }
@media (max-width: 350px) {
  .practice-card { padding: 12px; }
  .practice-card .sentence-top { gap: 6px; }
  .practice-card .record-btn .icon { width: 16px; height: 16px; }
  .practice-card .record-btn { gap: 5px; }
  .practice-demo { padding-inline: 7px; }
}
@media (max-width: 350px) {
  .practice-card .sentence-top { display: grid; grid-template-columns: auto 1fr; }
  .practice-card-prompt { grid-area: 2 / 1 / 3 / 3; }
  .practice-card [data-practice-best] { grid-area: 1 / 2 / 2 / 3; justify-self: end; }
}
