:root{--ink:#203f34;--green:#1c674c;--muted:#7c8c7b;--line:#dfe7da;--paper:#f7f8f2;--soft:#edf2e7;--net:#2378cc;--pure:#24945e;--waste:#d68130;--raw:#7b8794}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",sans-serif}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #d9a667;outline-offset:4px}button:disabled{opacity:.45;cursor:default}header{max-width:1320px;margin:auto;padding:0 36px;height:94px;display:flex;align-items:center;gap:25px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-size:23px;font-weight:700}.brand img{width:45px;height:45px;object-fit:contain}.brand small{display:block;font-size:9px;font-weight:400;letter-spacing:1.6px;margin-top:5px}.edition{margin-left:auto;font-size:10px;letter-spacing:2px;color:var(--muted)}.edition b{margin-left:14px;font-weight:400;color:var(--green)}.icon-btn{width:34px;height:34px;border:1px solid #d6e0cc;border-radius:50%;background:transparent;color:var(--green);font-size:19px}.icon-btn:hover{background:var(--soft)}main{max-width:1280px;padding:0 35px;margin:auto}.intro{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:47px 0 34px}.eyebrow{display:flex;align-items:center;gap:8px;color:#86957a;font-size:9px;font-weight:500;letter-spacing:2px}.eyebrow i{width:6px;height:6px;border-radius:50%;background:#9cae86}h1{font-size:39px;letter-spacing:-1.6px;line-height:1.5;margin:16px 0 12px}h1 span{color:#74896a}.intro p{font-size:12px;line-height:1.9;color:var(--muted);margin:0}.progress-card{min-width:155px;border-left:1px solid #dfe5d7;padding:0 0 0 32px;display:flex;flex-direction:column;gap:10px}.progress-card>span{font-size:10px;color:#7d8b72}.progress-card>strong{font-size:38px;font-weight:400;letter-spacing:2px}.progress-card strong small{font-size:18px;color:#a0ae91}.progress-card>small{font-size:9px;color:#a3ac98}.console,.report-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px 28px 0}.console-top{display:flex;align-items:center;justify-content:space-between;gap:25px}.console-top h2{font-size:23px;margin:10px 0 23px}.console-top h2 span{vertical-align:middle;border:1px solid #dee7d6;font-size:9px;padding:4px 7px;font-weight:400;border-radius:5px;color:#8c9c7b;margin-left:6px}.level-tabs{display:flex;gap:4px;padding:4px;border-radius:9px;background:#eef3e6;margin-bottom:12px}.level-tabs button{border:0;padding:11px 19px;background:transparent;font-size:11px;color:#859377;border-radius:6px}.level-tabs .active{background:#fff;color:var(--green);box-shadow:0 1px 5px #153c1810;font-weight:600}.mission{display:flex;gap:18px;align-items:center;background:#edf3e6;padding:18px 20px;border:1px solid #e1e8d8;border-radius:10px}.mission>span:first-child{font-size:10px;white-space:nowrap;padding:7px 11px;border:1px solid #d1ddc7;border-radius:20px;color:#74915f}.mission h3{font-size:17px;margin:0 0 7px}.mission p{font-size:11px;color:#7a8c70;line-height:1.9;margin:0;max-width:690px}.attempts{margin-left:auto;font-size:9px;color:#98a48b;white-space:nowrap}.attempts b{font-weight:500;color:#71875e}.control-area{display:grid;grid-template-columns:1fr 205px;gap:26px;padding:25px 0 20px}.valves{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.valve-control{display:flex;align-items:center;gap:9px;padding:12px 10px;border:1px solid #dfe7d8;border-radius:9px;background:#fcfdf9;text-align:left;min-height:66px;color:var(--ink)}.valve-control:hover{border-color:#9aaf88}.valve-code-box{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;flex-shrink:0;background:#edf0e7;color:#8d9b80;font-size:10px}.valve-name{font-size:11px;line-height:1.5}.valve-name small{display:block;font-size:8px;margin-top:5px;color:#9ba88d;white-space:nowrap}.switch{display:block;flex-shrink:0;width:26px;height:15px;border-radius:20px;background:#d7dfd0;margin-left:auto;position:relative}.switch i{position:absolute;left:3px;top:3px;width:9px;height:9px;border-radius:50%;background:#fff;transition:left .15s}.valve-control.open{background:#f0f7ea;border-color:#a5be92}.valve-control.open .switch{background:#579e71}.valve-control.open .switch i{left:14px}.valve-control.open .valve-code-box{background:#d9ead0;color:#547c43}.actions{display:grid;grid-template-columns:1fr 65px;gap:9px;align-content:start}.primary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 17px;border:0;border-radius:8px;background:var(--green);color:#fff;font-size:12px}.primary:hover{background:#155139}.secondary{border:1px solid #d5dfcc;border-radius:8px;background:#fff;color:#7d8f6b;font-size:11px}.text-btn{grid-column:1/-1;border:0;background:transparent;text-align:left;font-size:10px;color:#8c9c7b;padding:4px 0}.actions p{grid-column:1/-1;font-size:9px;line-height:1.8;color:#a0ac94;margin:2px 0 0}.run-bar{display:flex;align-items:center;gap:9px;background:#f3f6ed;border:1px solid #e7ecdf;border-radius:8px;padding:11px 14px}.run-bar>span:first-child{width:6px;height:6px;border-radius:50%;background:#b5c0a8;flex-shrink:0}.run-bar>span.running{background:#4ca877;animation:pulse 1s infinite}.run-bar p{font-size:10px;color:#7a8d6e;margin:0;line-height:1.7}.run-bar>span:last-child{margin-left:auto;font-size:9px;color:#9ba88c;white-space:nowrap}.diagram-wrap{margin-top:20px;padding:10px 0 0;background:#fbfcf7;border:1px solid #edf0e6;border-radius:12px}.diagram-wrap svg{display:block;width:100%;height:auto;overflow:visible}.diagram-wrap text{font-family:"Microsoft YaHei","PingFang SC",sans-serif;fill:#3f5c4c;font-size:16px;font-weight:400}.diagram-wrap .small-label{font-size:13px;fill:#90a087}.diagram-wrap .device-label{font-size:14px;fill:#536b54}.diagram-wrap .model-label{font-size:11px;fill:#8d9e81;letter-spacing:.2px}.diagram-wrap .group-title{font-size:17px;font-weight:600}.diagram-wrap .demand-label{font-size:14px;fill:#708667}.diagram-wrap .valve-code{font-size:12px;fill:#657c5b;font-weight:600}.pipe-base{fill:none;stroke:#dfe6de;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.water-pipe{fill:none;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;opacity:0}.water-pipe.wet{opacity:.65}.water-pipe.flowing{opacity:1}.return-pipe{stroke-dasharray:7 5}.water-drop{stroke:#fff;stroke-width:1;pointer-events:none}.valve-body{fill:#fff;stroke:#95a98a;stroke-width:1.5}.valve-body.open{fill:#e7f2de;stroke:#5a8a54}.valve-handle{stroke:#496c4a;stroke-width:3.5;stroke-linecap:round}.diagram-valve{cursor:pointer}.diagram-valve:hover .valve-body{stroke:#d49b54;stroke-width:2.5}.diagram-valve:focus-visible{outline:none}.diagram-valve:focus-visible .valve-body{stroke:#d49b54;stroke-width:4}.device-halo{fill:transparent;stroke:transparent;stroke-width:2}.device-halo.supplied{fill:#e8f5e033;stroke:#b1d4a477}.device-halo.contaminated{fill:#f7e9da55;stroke:#c98c58}.filter-symbol{fill:#f0f5e8;stroke:#b6c9a3;stroke-width:1.5}.diagram-wrap .filter-text{font-size:13px;fill:#779265}.legend{display:flex;flex-wrap:wrap;gap:20px;justify-content:center;padding:20px 0 16px;color:#85957c;font-size:10px}.legend>span{display:flex;align-items:center;gap:6px}.legend i{display:inline-block;width:17px;height:3px;background:var(--raw)}.legend i.net{background:var(--net)}.legend i.pure{background:var(--pure)}.legend i.waste{background:var(--waste)}.valve-guide{border-top:1px solid #edf0e6;padding:13px 0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:21px;font-size:9px;color:#94a188}.valve-guide>span{display:flex;align-items:center;gap:5px}.valve-guide svg{width:47px;height:25px;overflow:visible}.valve-guide path{fill:none;stroke:#97aa89;stroke-width:2}.valve-guide .handle{stroke:#496c4a;stroke-width:3}.valve-guide circle{fill:white;stroke:#9bad8e;stroke-width:1.2}.valve-guide b{font-weight:500;color:#718969}.model-note{font-size:9px;color:#a1ac96;line-height:1.9;margin:0;border-top:1px solid #edf0e6;padding:13px 0 17px}.report-card{margin-top:26px;padding-bottom:24px}.report-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.report-heading h2{font-size:20px;margin:11px 0 18px}.report-heading>span{font-size:10px;color:#9ba78f;padding:6px 10px;background:#f0f3e9;border-radius:20px;white-space:nowrap}.report-heading>span.passed{background:#e2efdb;color:#50854a}.report-heading>span.failed{background:#fbefdd;color:#ac8959}.placeholder{font-size:12px;color:#a1ac94;line-height:1.9;margin:8px 0}.result-banner{display:flex;gap:14px;align-items:center;padding:18px 20px;border-radius:11px;background:#f8f3e7}.result-banner>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#eee0c1;color:#a98652;flex-shrink:0}.result-banner h3{font-size:15px;margin:0 0 7px}.result-banner p{font-size:11px;color:#9a8b6c;line-height:1.8;margin:0}.result-banner.success{background:#edf5e6}.result-banner.success>span{background:#d8ebca;color:#64894f}.result-banner.success p{color:#7e956d}.water-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.summary-item{border:1px solid #e4eadc;border-radius:10px;padding:15px 17px;display:flex;flex-direction:column;gap:9px}.summary-item>span{font-size:10px;color:#8e9b82}.summary-item strong{font-size:18px;font-weight:500}.summary-item small{font-size:9px;line-height:1.8;color:#a2ac96}.water-net{color:var(--net)}.water-pure{color:var(--pure)}.water-waste{color:var(--waste)}.water-raw{color:var(--raw)}.water-dry{color:#b0b9a7}.system-summary{display:flex;flex-wrap:wrap;gap:20px;padding:12px 0;font-size:10px;color:#9aa58e}.system-summary b{font-weight:400;color:#718767}.system-summary b.danger{color:#bd8550}.issues{list-style:none;padding:0;margin:12px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.issues li{border-left:2px solid #dcc293;padding:8px 12px;background:#fcfaf3;border-radius:0 6px 6px 0;color:#9d8d6a;font-size:11px;line-height:1.9}.pass-note{font-size:11px;color:#7e956c;margin:15px 0}#next-level{margin-top:18px;max-width:320px;width:100%}footer{padding:28px 0 25px;display:flex;justify-content:space-between;font-size:9px;color:#9ca98e}dialog{border:1px solid #dce5d4;border-radius:20px;width:min(460px,calc(100% - 32px));padding:36px 29px;color:var(--ink);box-shadow:0 25px 90px #193b2d33}dialog::backdrop{background:#18382c55;backdrop-filter:blur(5px)}dialog .close{position:absolute;right:12px;top:12px}dialog h2{font-size:27px;line-height:1.5}dialog p{font-size:12px;line-height:1.95;color:#7f906f}dialog .primary{width:100%;margin-top:22px}@keyframes pulse{50%{box-shadow:0 0 0 4px #5da77922}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:1050px){.control-area{grid-template-columns:1fr 180px;gap:18px}.valves{grid-template-columns:repeat(2,minmax(0,1fr))}.mission{gap:13px}.attempts{display:none}h1{font-size:34px}.actions{align-self:center}.console{padding:24px 21px 0}}@media(max-width:650px){header{padding:0 20px;height:75px}.brand{font-size:20px}.brand img{width:40px;height:40px}.brand small{font-size:8px}.edition{font-size:8px;letter-spacing:1px;white-space:nowrap}.edition b{margin-left:7px}main{padding:0 15px}.intro{padding:29px 0 25px;gap:10px}.intro .eyebrow{font-size:7px;letter-spacing:1.2px}h1{font-size:28px;letter-spacing:-1px;max-width:280px;line-height:1.5}h1 span{display:block}.intro p{font-size:10px;line-height:1.9}.progress-card{min-width:71px;padding-left:13px;gap:8px}.progress-card>span{font-size:8px}.progress-card>strong{font-size:29px}.progress-card strong small{font-size:12px}.progress-card>small{display:none}.console,.report-card{padding:20px 12px 0;border-radius:14px}.console-top{display:block}.console-top h2{font-size:20px;margin-bottom:17px}.console-top .eyebrow{font-size:8px;letter-spacing:1.5px}.level-tabs{margin-bottom:14px}.level-tabs button{flex:1;font-size:11px;padding:11px 8px}.mission{padding:14px 12px;gap:11px;align-items:flex-start}.mission>span:first-child{font-size:8px;padding:5px 7px;white-space:nowrap}.mission h3{font-size:15px}.mission p{font-size:10px}.control-area{display:flex;flex-direction:column;gap:14px;padding:18px 0 15px}.valves{gap:7px}.valve-control{gap:6px;padding:10px 7px;min-height:65px}.valve-code-box{width:24px;height:25px;font-size:9px;flex-shrink:0}.valve-name{font-size:9px}.valve-name small{font-size:7px;margin-top:4px}.switch{width:23px;height:14px}.switch i{width:8px;height:8px}.valve-control.open .switch i{left:12px}.actions{display:grid;grid-template-columns:1fr 70px 1fr;gap:9px;width:100%}.primary{font-size:11px;padding:13px 12px}.actions p{display:none}.text-btn{grid-column:auto;font-size:8px;text-align:center}.run-bar{padding:10px 10px;gap:7px;min-height:46px}.run-bar p{font-size:9px}.run-bar>span:last-child{font-size:8px}.diagram-wrap{padding-top:0;margin-top:14px}.diagram-wrap .small-label{font-size:15px}.diagram-wrap .device-label{font-size:16px}.diagram-wrap .model-label{font-size:13px}.diagram-wrap .demand-label{font-size:16px}.diagram-wrap .valve-code{font-size:15px}.diagram-wrap .group-title{font-size:17px}.legend{gap:13px;font-size:8px;padding:15px 0}.legend>span{gap:4px}.legend i{width:13px}.valve-guide{gap:10px;font-size:8px;justify-content:flex-start;padding:10px 0}.valve-guide svg{width:37px;height:23px}.model-note{font-size:8px;padding-bottom:14px}.report-card{padding-bottom:18px;margin-top:18px}.report-heading h2{font-size:16px;line-height:1.7;margin-bottom:14px}.report-heading .eyebrow{font-size:7px;letter-spacing:1px}.report-heading>span{font-size:8px;padding:5px 7px}.placeholder{font-size:10px}.result-banner{padding:14px 12px;gap:10px}.result-banner h3{font-size:13px;line-height:1.7}.result-banner p{font-size:10px}.result-banner>span{width:23px;height:23px;font-size:12px}.water-summary{gap:7px}.summary-item{padding:11px 9px;gap:7px}.summary-item>span{font-size:8px}.summary-item strong{font-size:13px;line-height:1.5}.summary-item small{font-size:8px}.system-summary{gap:10px;font-size:9px;line-height:1.9}.issues{grid-template-columns:1fr}.issues li{font-size:10px}.pass-note{font-size:10px}footer{display:block;text-align:center;font-size:8px;line-height:2.3}footer>span{display:block}}
@media(max-width:650px){.valves{grid-template-columns:1fr}.valve-control{min-height:61px;padding:10px 13px;gap:12px}.valve-code-box{width:30px;height:30px;font-size:12px}.valve-name{font-size:13px}.valve-name small{font-size:10px}.switch{width:29px;height:17px}.switch i{width:11px;height:11px}.valve-control.open .switch i{left:15px}.mission p,.intro p{font-size:12px}.level-tabs button,.primary,.secondary{font-size:13px}.text-btn{font-size:11px}.run-bar p{font-size:11px}.model-note{font-size:11px}.legend,.valve-guide{font-size:10px}.placeholder,.issues li,.result-banner p,.system-summary{font-size:12px}}

.level-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-width:530px;gap:4px}.level-tabs button{padding:10px 8px}.console-top{align-items:flex-start}.console-top>div:first-child{padding-top:9px}@media(max-width:1050px){.console-top{display:block}.level-tabs{min-width:0;width:100%}}@media(max-width:650px){.level-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.level-tabs button{font-size:12px;min-height:43px}}

.device-halo.maintenance{stroke:#cf8c3c;stroke-width:2.5;stroke-dasharray:7 5;fill:#d49b5410}
