/* Fully scoped components. No selectors target the host brand's product grid. */
.wt-demo,.wt-demo *,.wt-home,.wt-home *{box-sizing:border-box}
.wt-demo{--wt-ink:#202629;--wt-muted:#53605b;--wt-line:#dce3df;color:var(--wt-ink);font:16px/1.7 system-ui,"Microsoft YaHei",sans-serif;width:100%;min-width:0}
.wt-demo__shell{border:1px solid var(--wt-line);border-radius:24px;padding:clamp(18px,3.5vw,44px);background:#fff}
.wt-demo--home .wt-demo__shell{background:#f8faf9}
.wt-demo__topline{display:flex;justify-content:space-between;gap:14px;margin-bottom:26px;flex-wrap:wrap}
.wt-demo__kicker{font-size:12px;font-weight:750;letter-spacing:.09em;color:#28533f}.wt-demo__version{font-size:12px;color:#59645f}
.wt-demo__layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:center;gap:clamp(24px,5vw,64px)}
.wt-demo__copy h2{margin:10px 0 20px;font-size:clamp(26px,3vw,42px);line-height:1.3;letter-spacing:-.035em}
.wt-demo__step-label{margin:0;color:#80642d;font-size:14px;font-weight:750}.wt-demo__detail{min-height:5.4em;margin:0;color:#4c5b53;font-size:16px;line-height:1.8}
.wt-demo__resources{margin:24px 0;border-block:1px solid #dce3df;padding:10px 0}.wt-demo__resources p{display:flex;gap:16px;margin:8px 0;font-size:14px}.wt-demo__resources b{flex:none;color:#254937}.wt-demo__resources span{color:#435a4b}
.wt-demo__teaching{font-size:13px;color:#657068;line-height:1.8}.wt-demo__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.wt-demo__stage{min-width:0}.wt-demo__board-wrap{position:relative;max-width:510px;margin:auto;aspect-ratio:1}
.wt-demo__board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));width:100%;height:100%;overflow:hidden;border:8px solid #d7c495;border-radius:10px;background:#b8c9b2;box-shadow:0 0 0 2px #2e4b3e,5px 8px 0 #1b493016}
.wt-demo__cell{position:relative;min-width:0;background:#b8c9b2}.wt-demo__cell.is-dark{background:#557960}.wt-demo__cell.is-focus{box-shadow:inset 0 0 0 3px #f9dc82}.wt-demo__cell.is-target:after{content:"";position:absolute;inset:6px;border:2px dashed #ffe4a0;border-radius:3px;pointer-events:none}
.wt-demo__coord{position:absolute;bottom:1px;left:3px;font:10px/1.2 system-ui;color:#152f24;font-weight:750;z-index:2}.wt-demo__cell.is-dark .wt-demo__coord{color:#fff4d1}
.wt-demo__piece{position:absolute;inset:0;display:grid;place-items:center;--wt-piece-fill:#fff0bd;pointer-events:none}.wt-demo__piece--black{--wt-piece-fill:#1c3027}
.wt-demo__piece-motion{position:relative;display:block;width:32px;height:32px;filter:drop-shadow(1px 1px 0 #ba9754) drop-shadow(-1px -1px 0 #ba9754)}
.wt-demo__piece-sprite{position:absolute;top:0;left:0;width:2px;height:2px;background:transparent;image-rendering:pixelated}
/* Only the cell-sized travel wrapper moves; the pixel sprite stays centered. */
.wt-demo__move-layer{position:absolute;inset:8px;pointer-events:none;z-index:4}.wt-demo__travel{position:absolute;width:12.5%;height:12.5%;will-change:transform}.wt-demo__travel .wt-demo__piece{width:100%;height:100%}.wt-demo__board-note{text-align:center;font-size:12px;color:#5c685e;margin:15px 0 0}
.wt-demo__arrow-layer{position:absolute;inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);pointer-events:none;overflow:visible}.wt-demo__arrow{stroke:#fff0ad;stroke-width:1.3;stroke-dasharray:2 1;filter:drop-shadow(0 1px 1px #254a30);animation:wt-arrow-dash 2s linear infinite}
.wt-demo__stepbar{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:26px}.wt-demo__dot{display:inline-grid;place-items:center;min-width:44px;min-height:44px;border:0;background:transparent;color:#405344;cursor:pointer;font:inherit}.wt-demo__dot span{display:grid;place-items:center;width:29px;height:29px;border:1px solid #b9c9bd;border-radius:50%;font-size:13px}.wt-demo__dot.is-current span,.wt-demo__dot[aria-current=true] span{background:#254e3b;color:#fff4d3;border-color:#254e3b}
.wt-demo__controls,.wt-demo__control-group{display:flex;gap:10px;flex-wrap:wrap}.wt-demo__controls{justify-content:space-between;margin-top:18px;padding-top:20px;border-top:1px solid #dde4df}
.wt-demo__button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;border:1px solid #254e3b;border-radius:10px;background:#254e3b;color:#fff!important;text-decoration:none;font:650 14px/1.5 system-ui,"Microsoft YaHei",sans-serif;cursor:pointer}.wt-demo__button:hover{background:#38684f}.wt-demo__button--ghost{background:transparent;border-color:#bbc9c0;color:#284936!important}.wt-demo__button--ghost:hover{background:#eaf0ec}.wt-demo__button:disabled{opacity:.4;cursor:default}.wt-demo :focus-visible,.wt-home :focus-visible{outline:3px solid #a27c38;outline-offset:4px}
.wt-demo__status{font-size:13px;color:#526052;min-height:1.6em;margin:8px 0 0}.wt-demo__status:empty{min-height:0;margin:0}.wt-demo__fallback{display:block;width:100%;height:auto}
.wt-demo[data-mode=static] .wt-demo__arrow{animation:none}.wt-demo[data-reduced-motion=true] *{animation:none!important;transition:none!important}
@keyframes wt-arrow-dash{to{stroke-dashoffset:-12}}
.wt-home{max-width:1264px;margin:0 auto;padding:clamp(28px,5vw,70px) clamp(16px,3vw,40px);color:#22282a;background:#fff;font:16px/1.7 system-ui,"Microsoft YaHei",sans-serif}.wt-home [hidden]{display:none!important}.wt-home__heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:26px}.wt-home__heading h2{font-size:clamp(30px,4vw,48px);letter-spacing:-.04em;line-height:1.3;margin:6px 0}.wt-home__heading p{color:#59615e}.wt-home__eyebrow{font-size:12px;letter-spacing:.12em;color:#6b756f}.wt-home__links{display:flex;flex-wrap:wrap;gap:12px}.wt-home__links a{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;border:1px solid #ced6d0;border-radius:10px;text-decoration:none;color:#263a30;font-weight:650}.wt-home__links a:last-child{background:#202825;color:white;border-color:#202825}
.wt-carousel{min-width:0;margin:32px 0 52px}.wt-carousel__slides{overflow:hidden;border-radius:20px;border:1px solid #e0e5e1;background:#f5f7f6}.wt-carousel figure{margin:0}.wt-carousel picture,.wt-carousel img{display:block;width:100%;height:auto}.wt-carousel figcaption{padding:16px 24px;font-size:14px;color:#546159;background:#fff}.wt-carousel__controls{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px}.wt-carousel__controls button{min-width:44px;min-height:44px;border:1px solid #d4ddd6;border-radius:9px;background:white;color:#2e4d39;padding:8px 13px;font:inherit;cursor:pointer}.wt-carousel__controls button:disabled{opacity:.4}.wt-carousel__controls [data-wt-step][aria-current=true]{background:#254d39;color:#fff}.wt-carousel__controls>div{display:flex;gap:6px}.wt-carousel [role=status]{font-size:13px;color:#5b665f}.wt-carousel [role=status]:empty{margin:0}
@media(max-width:767px){.wt-demo__layout{grid-template-columns:1fr;gap:26px}.wt-demo__copy h2{font-size:29px}.wt-demo__detail{min-height:0}.wt-demo__shell{padding:20px 16px;border-radius:18px}.wt-demo__resources{margin:18px 0}.wt-demo__board-wrap{width:min(100%,420px)}.wt-demo__piece{transform:scale(.78)}.wt-demo__controls{gap:14px}.wt-demo__control-group{flex:1 1 auto}.wt-demo__button{flex:1 1 auto;padding-inline:12px}.wt-demo__actions{gap:8px}.wt-demo__topline{margin-bottom:20px}.wt-demo__version{font-size:11px}.wt-home__heading{display:block}.wt-home__heading p{font-size:15px}.wt-home__links{margin-top:20px}.wt-home__links a{font-size:14px}.wt-carousel figcaption{padding:15px 18px}.wt-carousel{margin-bottom:34px}.wt-demo__dot{min-width:44px;min-height:44px}.wt-demo__stepbar{gap:0}}
@media(prefers-reduced-motion:reduce){.wt-demo *,.wt-home *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.wt-demo[data-reduced-motion=true] .wt-demo__travel{transform:none!important}@media(prefers-reduced-motion:reduce){.wt-demo__travel{transform:none!important}}
