:root{color-scheme:light;--paper:#f8f7f1;--white:#fffefa;--ink:#223b35;--muted:#4e625a;--line:#d7dad0;--green:#235043;--yellow:#f4cd6c;--rust:#a54b2f;font:16px/1.55 "Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;scroll-behavior:smooth}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}h1,h2,h3,p{margin:0}button,input{font:inherit}button,a{touch-action:manipulation}a{color:inherit}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #b2642e;outline-offset:3px}[hidden]{display:none!important}
.wrap{width:min(1120px,calc(100% - 72px));margin-inline:auto}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.skip{position:absolute;z-index:2;background:white;padding:.5rem}
.site-header{border-bottom:1px solid var(--line)}.header-inner,.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:73px}.brand{display:inline-flex;align-items:center;gap:.66rem;font-weight:850;letter-spacing:.045em;text-decoration:none}.mark{display:grid;place-items:center;background:var(--green);color:var(--yellow);width:32px;height:32px;line-height:1;border-radius:7px;font-size:21px}
nav{display:flex;align-items:center;gap:1.65rem;flex-wrap:wrap}nav a,footer a{text-decoration:none;font-size:.93rem;font-weight:650}nav a:hover,footer a:hover{text-decoration:underline}#saved-count{display:inline-block;background:#e4ebe2;border-radius:1rem;padding:0 .4rem}
.hero{display:grid;grid-template-columns:1fr 1.08fr;align-items:center;gap:clamp(28px,6vw,82px);padding-block:70px 62px}.eyebrow{font-weight:750;color:var(--rust);letter-spacing:.16em;display:flex;align-items:center;gap:.65rem;font-size:.9rem}.eyebrow span{width:17px;height:1px;background:currentColor}
h1{font-family:"Noto Serif TC","PMingLiU",serif;font-size:clamp(3rem,6vw,5.1rem);letter-spacing:.035em;line-height:1.13;margin:15px 0 19px;font-weight:900}h1 span{color:var(--rust)}.lede{max-width:420px;color:var(--muted);font-size:1.12rem;line-height:1.85}.primary,.actions a:first-child{display:inline-flex;justify-content:center;align-items:center;background:var(--green);color:white;padding:.65rem 1.1rem;border-radius:6px;text-decoration:none;font-weight:720}.primary{margin-top:1.5rem;padding:.72rem 1.3rem}.primary:hover,.actions a:first-child:hover{background:#16392f}
.demo{background:#24463d;border-radius:10px;padding:17px 20px 10px;color:#fffdf4;box-shadow:7px 7px 0 #e5ddc3;min-width:0}.demo-heading,.demo-bottom{display:flex;align-items:center;justify-content:space-between;gap:.8rem}.demo-heading{margin-bottom:12px}.demo-heading strong{letter-spacing:.065em}.demo-heading span{font-size:.88rem;color:#f6db99}.graph{border-radius:5px;background-color:#e8efe2;background-image:linear-gradient(#cadacb 1px,transparent 1px),linear-gradient(90deg,#cadacb 1px,transparent 1px);background-size:20px 20px;overflow:hidden}.graph canvas{display:block;width:100%;height:auto}.demo-bottom{margin-top:12px}.demo-bottom p{font-size:.95rem;font-weight:650}.choices{display:flex;gap:6px}.choices button{background:transparent;border:1px solid #9db5a8;color:white;min-width:40px;min-height:38px;border-radius:5px;font-weight:750}.choices button:hover,.choices button[aria-pressed=true]{background:var(--yellow);border-color:var(--yellow);color:#25372b}.feedback{color:#ffe7a8;min-height:1.4em;margin-top:5px;font-size:.88rem}
.library{padding:41px 0 60px;background:#eff1ea;border-block:1px solid var(--line);scroll-margin-top:10px}.library-head,.filterbar{display:flex;align-items:center;justify-content:space-between;gap:1rem}.library-head{margin-bottom:18px}h2{font-family:"Noto Serif TC","PMingLiU",serif;font-size:2.25rem;letter-spacing:.065em}.search{display:flex;align-items:center;gap:.65rem;background:var(--white);border:1px solid #b6c4b9;border-radius:6px;padding:.63rem .9rem;width:min(100%,322px)}.search:focus-within{outline:2px solid var(--green);outline-offset:1px}.search input{width:100%;min-width:0;background:transparent;border:0;outline:none;color:var(--ink)}.search input:focus-visible{outline:none}.search-icon{position:relative;display:inline-block;width:13px;height:13px;border:2px solid var(--green);border-radius:100%;flex:none;margin-right:3px}.search-icon:after{content:"";position:absolute;right:-5px;bottom:-3px;width:6px;height:2px;background:var(--green);transform:rotate(45deg)}
.filterbar{margin-bottom:18px}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{background:transparent;border:1px solid #b7c2b7;border-radius:5px;padding:.4rem .75rem;color:var(--ink);font-size:.92rem;font-weight:650}.chip[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}.chip:hover:not([aria-pressed=true]){background:#dce6dc}.result-count{flex:none;color:var(--muted);font-size:.9rem}
.resources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.resource{display:flex;flex-direction:column;align-items:start;background:var(--white);border:1px solid #d3dbd0;border-top:3px solid var(--accent);border-radius:7px;padding:15px 18px 18px;min-width:0;--accent:#446c58}.resource[data-category=math]{--accent:#a04b31}.resource[data-category=scratch]{--accent:#865c12}.resource[data-category=code]{--accent:#245e73}.resource[data-category=workshop]{--accent:#67517d}.card-head{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;margin-bottom:8px}.category{font-size:.88rem;letter-spacing:.03em;font-weight:800;color:var(--accent)}.bookmark{background:transparent;border:1px solid var(--line);border-radius:6px;color:var(--ink);padding:.35rem .55rem;font-size:.86rem;min-height:35px}.bookmark[aria-pressed=true]{background:#f6e5ae;border-color:#c99936}.bookmark:hover{border-color:var(--green)}h3{font-size:1.27rem;line-height:1.35;letter-spacing:.01em;margin-bottom:8px}.description{color:var(--muted);margin-bottom:12px}.tags{display:flex;flex-wrap:wrap;gap:.35rem .65rem;margin:0 0 16px;padding:0;list-style:none;color:#4d6359;font-size:.87rem}.tags li:before{content:"#";color:#527569;margin-right:2px}.actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:auto}.actions a{min-height:40px;border:1px solid #c9d1c6;border-radius:5px;padding:.48rem .65rem;font-size:.9rem;font-weight:700;text-decoration:none}.actions a:first-child{padding:.48rem .68rem;border-color:var(--green)}.actions a:not(:first-child):hover{background:#e7eee4}.empty{grid-column:1/-1;padding:1.5rem;border:1px dashed #a3b3a5;border-radius:6px;color:var(--muted)}
.footer-inner{min-height:80px;font-size:.9rem;color:var(--muted)}footer strong{color:var(--ink)}
@media(max-width:900px){.hero{gap:32px;padding-block:50px}.resources{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.wrap{width:calc(100% - 32px)}.header-inner{display:block;padding-block:12px}.header-inner nav{gap:1.1rem;margin-top:8px}.hero{grid-template-columns:1fr;padding-block:32px 40px;gap:25px}.demo{padding-inline:14px}.library{padding-block:28px 37px}.library-head{align-items:start;flex-direction:column;gap:8px}.search{width:100%}.filterbar{align-items:flex-start;flex-direction:column;gap:6px}.resources{gap:10px}.footer-inner{flex-wrap:wrap;padding-block:13px;min-height:0}.footer-inner span{order:2;width:100%}}
@media(max-width:485px){.resources{grid-template-columns:1fr}.demo-bottom p{font-size:.9rem}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}}
