:root{--ink:#172033;--muted:#64748b;--paper:#f7f9fc;--white:#fff;--line:#dce4ef;--blue:#2563eb;--blue-dark:#1d4ed8;--cyan:#0e7490;--green:#15945b;--orange:#e76f27;--yellow:#f2b84b;--purple:#7257d8;--shadow:0 18px 50px rgba(30,55,90,.1);--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,sans-serif;line-height:1.7}button,a{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.section-shell{width:min(1180px,calc(100% - 48px));margin:auto}.site-header{position:sticky;top:0;z-index:20;background:rgba(247,249,252,.9);border-bottom:1px solid rgba(220,228,239,.8);backdrop-filter:blur(16px)}.header-inner{width:min(1240px,calc(100% - 48px));height:76px;margin:auto;display:flex;align-items:center;gap:34px}.brand{display:flex;align-items:center;gap:11px;margin-right:auto}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--ink);color:white;font-size:13px;letter-spacing:-.08em}.brand strong,.brand small{display:block}.brand strong{font-size:15px}.brand small{font-size:11px;color:var(--muted);margin-top:-2px}.main-nav{display:flex;align-items:center;gap:26px;font-size:14px;color:#4b5b73}.main-nav a{transition:color .2s}.main-nav a:hover{color:var(--blue)}.menu-button{display:none;border:0;background:none;font-size:25px}.hero{min-height:620px;display:grid;grid-template-columns:1.02fr .98fr;gap:50px;align-items:center;padding-top:55px;padding-bottom:70px}.eyebrow{margin:0 0 13px;color:var(--blue);font-size:12px;font-weight:800;letter-spacing:.15em}.hero h1{font-size:clamp(40px,5vw,68px);line-height:1.12;letter-spacing:-.05em;margin:0 0 24px;max-width:650px}.hero h1 span{color:var(--blue)}.hero-lead{max-width:600px;color:#53627a;font-size:17px;margin:0 0 30px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;border-radius:999px;padding:12px 21px;font-size:14px;font-weight:800;transition:transform .2s,box-shadow .2s,background .2s}.button:hover{transform:translateY(-2px)}.button.primary{background:var(--blue);color:white;box-shadow:0 10px 24px rgba(37,99,235,.22)}.button.primary:hover{background:var(--blue-dark)}.button.secondary{background:white;border-color:var(--line);color:var(--ink)}.hero-stats{display:flex;gap:28px;margin-top:46px}.hero-stats div{padding-right:28px;border-right:1px solid var(--line)}.hero-stats div:last-child{border-right:0}.hero-stats strong,.hero-stats span{display:block}.hero-stats strong{font-size:25px;line-height:1.2}.hero-stats span{font-size:12px;color:var(--muted);margin-top:3px}.hero-art{position:relative;height:475px;border-radius:35px;background:linear-gradient(145deg,#e8f1ff,#fff 60%,#e6f8f2);overflow:hidden;box-shadow:var(--shadow)}.orb{position:absolute;border-radius:50%;filter:blur(1px)}.orb-one{width:220px;height:220px;top:-65px;right:-25px;background:rgba(59,130,246,.14)}.orb-two{width:250px;height:250px;bottom:-110px;left:-60px;background:rgba(20,184,166,.14)}.device-card{position:absolute;left:50%;top:98px;transform:translateX(-50%);width:235px;height:270px;border-radius:24px;background:#1e2c44;box-shadow:0 22px 30px rgba(20,35,60,.22);padding:30px 30px;color:white}.chip-label{font-size:26px;font-weight:900;letter-spacing:.08em}.board-lines{display:flex;gap:9px;margin-top:23px}.board-lines i{display:block;height:100px;width:8px;border-radius:5px;background:linear-gradient(#82a4d8,#314c75)}.board-pin{position:absolute;width:15px;height:15px;border-radius:50%;background:#d8a857}.pin-left{left:22px;top:50px}.pin-right{right:22px;bottom:45px}.board-text{position:absolute;bottom:30px;left:30px;font-size:14px;color:#d5e4ff}.board-text small{font-size:10px;color:#90b0dc}.flow-node{position:absolute;padding:11px 15px 10px 12px;min-width:123px;border-radius:15px;background:rgba(255,255,255,.86);box-shadow:0 8px 20px rgba(40,60,90,.1);display:grid;grid-template-columns:30px 1fr;column-gap:8px}.flow-node .node-icon{grid-row:span 2;display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#e4efff;color:var(--blue);font-size:18px}.flow-node b{font-size:13px;line-height:1.25}.flow-node small{font-size:10px;color:var(--muted)}.sensor-node{left:25px;top:105px}.cloud-node{right:24px;top:75px}.dashboard-node{right:22px;bottom:57px}.flow-line{position:absolute;border-top:2px dashed #8fb3df;transform-origin:left}.line-one{left:168px;top:144px;width:155px;transform:rotate(5deg)}.line-two{right:131px;top:125px;width:90px;transform:rotate(-25deg)}.line-three{right:128px;bottom:120px;width:135px;transform:rotate(24deg)}.hero-caption{position:absolute;bottom:21px;left:0;right:0;text-align:center;color:#5d7899;font-size:12px;font-weight:700;letter-spacing:.1em}.content-section,.timeline-section,.standards-section,.code-section,.wiring-section,.worksheet-section,.reflection-section{padding:88px 0}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:32px}.section-heading h2{font-size:clamp(30px,4vw,45px);line-height:1.2;letter-spacing:-.045em;margin:0}.section-heading>p{max-width:405px;margin:0;color:var(--muted);font-size:14px}.goal-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.goal-card{position:relative;min-height:218px;padding:26px 24px;background:white;border:1px solid var(--line);border-radius:var(--radius);transition:transform .2s,box-shadow .2s}.goal-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.goal-card .number{font-size:12px;color:var(--blue);font-weight:900;letter-spacing:.1em}.goal-card h3{font-size:19px;margin:42px 0 9px}.goal-card p{font-size:13px;color:var(--muted);margin:0}.timeline-section{background:#eef4fb;width:100%;padding-left:max(24px,calc((100vw - 1180px)/2));padding-right:max(24px,calc((100vw - 1180px)/2))}.timeline-section .section-heading{max-width:1180px;margin-left:auto;margin-right:auto}.timeline{max-width:1180px;margin:auto;display:grid;grid-template-columns:repeat(5,1fr);position:relative}.timeline:before{content:"";position:absolute;left:8%;right:8%;top:13px;border-top:2px solid #c6d7eb}.time-step{position:relative;padding-right:20px}.time-step:before{content:"";position:relative;display:block;width:25px;height:25px;border-radius:50%;background:var(--blue);border:7px solid #eef4fb;box-shadow:0 0 0 2px #8bb0df;margin-bottom:20px}.time-step .time{font-size:11px;color:var(--blue);font-weight:900}.time-step h3{font-size:16px;margin:9px 0 7px}.time-step p{font-size:13px;color:var(--muted);margin:0 0 11px}.time-step small{font-size:11px;color:#4b6689}.component-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.component-card{display:flex;align-items:center;text-align:left;gap:13px;padding:17px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);transition:transform .2s,box-shadow .2s,border .2s}.component-card:hover,.component-card.active{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#9dbceb}.component-card strong,.component-card small{display:block}.component-card strong{font-size:15px}.component-card small{font-size:12px;color:var(--muted);margin-top:2px}.component-symbol{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;font-weight:900;flex:none}.esp-symbol{background:#e4edff;color:var(--blue);font-size:12px}.dht-symbol{background:#fff1de;color:#c46a16;font-size:21px}.light-symbol{background:#fff9d7;color:#ad8518;font-size:25px}.led-symbol{background:#ffe4e3;color:#d43b4a;font-size:25px}.mqtt-symbol{background:#e1f5f1;color:#12866e;font-size:26px}.node-symbol{background:#eee9ff;color:var(--purple);font-size:22px}.card-arrow{margin-left:auto;color:#9aa8ba;font-size:20px}.component-detail{display:flex;align-items:baseline;gap:18px;min-height:60px;padding:17px 20px;margin-top:17px;border-radius:16px;background:#eff6ff;color:#345579}.component-detail .detail-kicker{color:var(--blue);font-size:11px;font-weight:900;letter-spacing:.1em}.component-detail p{margin:0;font-size:14px}.standards-section{background:var(--ink);color:white;width:100%;padding-left:max(24px,calc((100vw - 1180px)/2));padding-right:max(24px,calc((100vw - 1180px)/2))}.standards-section .section-heading{max-width:1180px;margin-left:auto;margin-right:auto}.standards-section .eyebrow{color:#8eb8ff}.standards-section .section-heading>p{color:#b8c6d9}.standards-list{max-width:1180px;margin:auto}.standard-row{display:grid;grid-template-columns:65px 1fr auto;align-items:center;gap:20px;padding:21px 0;border-top:1px solid rgba(255,255,255,.15)}.standard-row:last-child{border-bottom:1px solid rgba(255,255,255,.15)}.standard-code{font-size:16px;color:#82adff;font-weight:900}.standard-row h3{font-size:16px;margin:0 0 3px}.standard-row p{font-size:13px;color:#b8c6d9;margin:0}.standard-level{padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.1);color:#d4e6ff;font-size:11px;white-space:nowrap}.code-layout{display:grid;grid-template-columns:205px 1fr;gap:16px}.code-tabs{display:flex;flex-direction:column;gap:8px}.code-tab{padding:14px 15px;text-align:left;border:1px solid var(--line);background:white;border-radius:13px;font-weight:800;color:var(--muted)}.code-tab.active{background:#eaf1ff;border-color:#9dbceb;color:var(--blue)}.code-panel{min-width:0;overflow:hidden;border-radius:18px;background:#122036;box-shadow:var(--shadow)}.code-toolbar{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;border-bottom:1px solid rgba(255,255,255,.08)}.code-toolbar i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;background:#ff876e}.code-toolbar i:nth-child(2){background:#ffcf6e}.code-toolbar i:nth-child(3){background:#5ed59b}.code-toolbar button{border:0;background:transparent;color:#aec5e8;font-size:12px}.code-panel pre{min-height:350px;max-height:430px;overflow:auto;margin:0;padding:24px;color:#d6e4fa;font:13px/1.8 Consolas,"Cascadia Code",monospace}.code-panel code{white-space:pre}.explain-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.explain-grid>div{display:flex;gap:10px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:15px}.explain-grid span{color:var(--blue);font-weight:900}.explain-grid p{font-size:13px;color:var(--muted);margin:0}.wiring-section{background:#edf8f5;width:100%;padding-left:max(24px,calc((100vw - 1180px)/2));padding-right:max(24px,calc((100vw - 1180px)/2))}.wiring-section .section-heading{max-width:1180px;margin-left:auto;margin-right:auto}.wiring-layout{max-width:1180px;margin:auto;display:grid;grid-template-columns:1fr 280px;gap:18px}.wiring-viewer{min-width:0;background:white;border:1px solid #d3e9e0;border-radius:22px;padding:16px;overflow:hidden}.zoom-controls{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-bottom:10px}.zoom-controls button{border:1px solid var(--line);background:white;border-radius:8px;padding:4px 10px;color:var(--ink);font-size:13px}.zoom-controls span{font-size:12px;color:var(--muted);min-width:43px;text-align:center}.wiring-stage{height:450px;overflow:auto;border-radius:15px;background:#f8fbff}.wiring-svg{display:block;width:100%;min-width:730px;height:auto;transform-origin:top left;transition:transform .18s}.wire path{fill:none;stroke-width:5;stroke-linecap:round}.wire-power path{stroke:#dc3b4a}.wire-ground path{stroke:#111827}.wire-data path{stroke:#2563eb}.wire-signal path{stroke:#15945b}.svg-board{fill:#1e2c44;stroke:#122036;stroke-width:4}.svg-title{font:700 23px Arial,"Microsoft JhengHei",sans-serif;fill:#f5f9ff}.svg-small{font:16px Arial,"Microsoft JhengHei",sans-serif;fill:#d4e6ff}.svg-pin text{font:700 14px Arial,"Microsoft JhengHei",sans-serif;fill:white}.svg-note,.svg-legend{font:14px Arial,"Microsoft JhengHei",sans-serif;fill:#52657b}.svg-box text{font-family:Arial,"Microsoft JhengHei",sans-serif}.pin-table-card{background:white;border:1px solid #d3e9e0;border-radius:22px;padding:22px;height:max-content}.pin-table-card h3{margin:0 0 14px;font-size:19px}.pin-row{display:grid;grid-template-columns:88px 1fr;gap:5px;padding:10px 0;border-top:1px solid #e7eef0}.pin-row code{color:var(--blue);font-size:12px;font-weight:800}.pin-row span{font-size:13px}.pin-row em{grid-column:2;color:var(--muted);font-size:11px;font-style:normal}.safety-note{margin-top:16px;padding:13px;border-radius:13px;background:#fff8df;color:#806323;font-size:12px}.worksheet-section{background:#fff}.score-box{display:flex;align-items:baseline;gap:6px;padding:10px 15px;border-radius:15px;background:#eaf1ff;color:var(--blue);white-space:nowrap}.score-box span{font-size:11px}.score-box strong{font-size:30px;line-height:1}.score-box small{font-size:12px}.worksheet-progress{height:7px;background:#e8edf3;border-radius:999px;overflow:hidden;margin:-7px 0 28px}.worksheet-progress div{height:100%;width:0;background:linear-gradient(90deg,var(--blue),#54b7ee);border-radius:999px;transition:width .35s}.worksheet-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.task-card{border:1px solid var(--line);border-radius:22px;background:#fff;padding:20px;box-shadow:0 8px 22px rgba(30,55,90,.04)}.task-head{display:flex;gap:12px;align-items:flex-start}.task-number{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#eaf1ff;color:var(--blue);font-size:13px;font-weight:900;flex:none}.task-head h3{margin:0;font-size:17px}.task-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.task-points{margin-left:auto;color:var(--blue);font-size:11px;font-weight:800;white-space:nowrap}.drag-game{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:19px}.drag-sources,.drop-targets,.role-bank{display:flex;flex-wrap:wrap;align-content:flex-start;gap:7px;padding:12px;border-radius:14px;background:#f8fafc;min-height:175px}.drag-label{width:100%;font-size:10px;color:var(--muted);font-weight:800;letter-spacing:.08em}.drag-chip,.drop-zone,.role-chip{border:1px solid #cbd8ea;background:white;border-radius:9px;padding:7px 9px;color:#35465e;font-size:11px}.drag-chip{cursor:grab}.drag-chip.dragging{opacity:.5}.drop-zone{width:100%;text-align:left;border-style:dashed}.drop-zone small{float:right;color:var(--muted)}.drop-zone.filled{border-style:solid;border-color:var(--green);background:#eaf9f1}.drop-zone.wrong{border-color:#df6060;background:#fff0f0}.task-footer{display:flex;align-items:center;gap:10px;margin-top:15px;min-height:31px}.check-button{border:0;border-radius:999px;background:var(--ink);color:white;padding:8px 13px;font-size:11px;font-weight:800}.feedback{font-size:12px;color:var(--muted)}.feedback.ok{color:var(--green);font-weight:800}.feedback.bad{color:#c43f3f;font-weight:800}.role-game{margin-top:19px}.role-bank{min-height:70px}.role-chip{cursor:grab}.role-targets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.role-zone{min-height:92px;padding:11px;border:1px dashed #b8c8dc;border-radius:13px;background:#fbfdff}.role-zone b,.role-zone small{display:block}.role-zone b{font-size:13px}.role-zone small{color:var(--muted);font-size:10px}.role-zone .role-chip{display:block;margin-top:8px;border-color:#98b9f0;background:#eef5ff}.role-zone.correct{border-color:var(--green);background:#f0fcf4}.role-zone.wrong{border-color:#df6060;background:#fff0f0}.quiz-options{margin-top:18px;padding:14px;border-radius:14px;background:#f8fafc}.quiz-question{font-size:12px;font-weight:800;margin:7px 0}.quiz-options label{display:block;padding:5px 0;color:#53627a;font-size:12px}.quiz-options input{accent-color:var(--blue);margin-right:7px}.flow-order{display:flex;flex-direction:column;gap:8px;margin-top:18px}.flow-step{display:flex;align-items:center;gap:10px;border:1px solid #cbd8ea;background:#fbfdff;border-radius:10px;padding:8px 11px;text-align:left;color:#35465e;font-size:12px}.flow-step span{display:grid;place-items:center;width:21px;height:21px;border-radius:6px;background:#eaf1ff;color:var(--blue);font-weight:900}.flow-step.selected{border-color:var(--blue);background:#eef5ff}.flow-step.correct{border-color:var(--green);background:#f0fcf4}.flow-step.wrong{border-color:#df6060;background:#fff0f0}.worksheet-result{display:flex;align-items:center;gap:15px;margin-top:22px;padding:18px 22px;border-radius:18px;background:#eaf9f1;border:1px solid #bce9cc}.result-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:var(--green);color:white;font-weight:900}.worksheet-result h3{margin:0;font-size:17px}.worksheet-result p{margin:3px 0 0;color:#4c745c;font-size:13px}.worksheet-result .button{margin-left:auto}.reflection-section{background:#f1f4f8;width:100%;padding-left:max(24px,calc((100vw - 1180px)/2));padding-right:max(24px,calc((100vw - 1180px)/2))}.reflection-section .section-heading{max-width:1180px;margin-left:auto;margin-right:auto}.reflection-grid{max-width:1180px;margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.reflection-grid label{font-size:13px;font-weight:800;color:#46566d}.reflection-grid textarea{display:block;width:100%;height:150px;resize:vertical;margin-top:8px;padding:13px;border:1px solid var(--line);border-radius:14px;background:white;color:var(--ink);font:13px/1.7 inherit}.reflection-grid textarea:focus{outline:2px solid #b7d0fb;border-color:var(--blue)}.reflection-actions{max-width:1180px;margin:20px auto 0;display:flex;align-items:center;gap:14px}.reflection-actions span{font-size:12px;color:var(--muted)}.site-footer{padding:24px 0;background:#fff;border-top:1px solid var(--line)}.footer-inner{display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px}@media(max-width:900px){.main-nav{gap:14px}.hero{grid-template-columns:1fr}.hero-art{min-height:430px}.goal-grid{grid-template-columns:repeat(2,1fr)}.timeline{grid-template-columns:1fr;gap:21px}.timeline:before{left:10px;top:13px;bottom:13px;border-top:0;border-left:2px solid #c6d7eb}.time-step{padding-left:48px;padding-right:0}.time-step:before{position:absolute;left:0;top:0}.component-grid{grid-template-columns:repeat(2,1fr)}.wiring-layout{grid-template-columns:1fr}.worksheet-grid{grid-template-columns:1fr}}@media(max-width:650px){.section-shell,.header-inner{width:min(100% - 30px,1180px)}.main-nav{display:none}.menu-button{display:block}.main-nav.open{position:absolute;display:flex;flex-direction:column;align-items:stretch;top:69px;right:15px;padding:12px 16px;background:white;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.hero{padding-top:38px}.hero h1{font-size:42px}.hero-art{height:390px}.sensor-node{left:15px;top:75px}.cloud-node{right:12px;top:52px}.dashboard-node{right:11px;bottom:40px}.device-card{top:88px}.section-heading{display:block}.section-heading>p{margin-top:14px}.goal-grid,.component-grid,.explain-grid,.reflection-grid{grid-template-columns:1fr}.standard-row{grid-template-columns:43px 1fr}.standard-level{grid-column:2;justify-self:start}.code-layout{grid-template-columns:1fr}.code-tabs{flex-direction:row;overflow:auto}.code-tab{white-space:nowrap}.drag-game{grid-template-columns:1fr}.role-targets{grid-template-columns:1fr}.footer-inner{display:block}.footer-inner span{display:block;margin:4px 0}.score-box{margin-top:18px;width:max-content}.worksheet-section .section-heading{display:flex;align-items:flex-start}.reflection-actions{display:block}.reflection-actions .button{margin-bottom:8px}.reflection-actions span{display:block}}
@media print{.site-header,.hero-art,.hero-actions,.worksheet-section,.site-footer,.reflection-actions{display:none!important}.content-section,.timeline-section,.standards-section,.code-section,.wiring-section,.reflection-section{padding:18px 0;background:white;color:#111}.section-shell,.timeline-section,.standards-section,.wiring-section,.reflection-section{width:100%;padding-left:20px;padding-right:20px}.reflection-grid textarea{border:1px solid #999}.reflection-grid{grid-template-columns:1fr}.reflection-grid textarea{height:120px}}
