:root{
  --green:#16745b;
  --green-dark:#0f5c48;
  --green-soft:#eaf5f0;
  --ink:#17231f;
  --muted:#69766f;
  --line:#dde7e2;
  --paper:#fff;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif
}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;background:#fff;color:var(--ink)}
body{overflow:hidden}
button,input,select{font:inherit}
button{color:inherit;cursor:pointer}
.app{display:grid;grid-template-columns:260px minmax(460px,1fr) 350px;width:100%;height:100dvh;min-height:0;background:#fff}
.left-panel,.detail-panel{position:relative;z-index:2;min-height:0;background:#fff}
.left-panel{display:flex;flex-direction:column;border-right:1px solid var(--line)}
.brand-block{padding:17px 16px 14px;border-bottom:1px solid var(--line)}
.site-brand{display:flex;align-items:center;gap:9px;color:var(--ink);font-size:12px;font-weight:900;text-decoration:none}
.site-brand img{width:38px;height:38px;object-fit:contain;border-radius:50%}
.back{display:inline-flex;align-items:center;min-height:31px;margin-top:11px;padding:0 10px;border:1px solid #bad5cb;border-radius:9px;color:var(--green-dark);background:#fff;text-decoration:none;font-size:11px;font-weight:850}
.kicker{margin:16px 0 5px;color:var(--green);font-size:9px;font-weight:900;letter-spacing:.14em}
.brand-block h1{margin:0;font:700 25px/1.2 Georgia,"Songti SC",serif;letter-spacing:-.03em}
.intro{margin:7px 0 0;color:var(--muted);font-size:11px;line-height:1.65}
.module-list{flex:1;min-height:0;overflow:auto;padding:10px}
.module{display:grid;grid-template-columns:39px 1fr;gap:10px;align-items:center;width:100%;margin:4px 0;padding:9px;border:1px solid transparent;border-radius:13px;background:transparent;text-align:left;transition:.18s}
.module:hover{background:#f6faf8}
.module.active{border-color:#bbd8cd;background:var(--green-soft);box-shadow:0 6px 18px rgba(22,116,91,.07)}
.module-glyph{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;color:var(--green-dark);background:#dff0e9;font:900 11px/1 Georgia,"Songti SC",serif}
.module strong{display:block;font-size:12px;line-height:1.3}
.module small{display:block;margin-top:3px;color:#7a8881;font-size:9px}
.source-note{margin:0;padding:11px 14px;border-top:1px solid var(--line);color:#849089;font-size:9px;line-height:1.5}
.visual-stage{position:relative;min-width:0;min-height:0;overflow:hidden;background:#fff}
.visual-stage canvas{position:absolute;inset:0;width:100%;height:100%;background:#fff;touch-action:none}
.stage-head{position:absolute;z-index:3;top:20px;left:22px;right:22px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;pointer-events:none}
.stage-title{max-width:min(520px,72%);padding:12px 15px;border:1px solid rgba(210,226,219,.95);border-radius:16px;background:rgba(255,255,255,.91);box-shadow:0 12px 30px rgba(22,74,61,.08);backdrop-filter:blur(12px)}
.eyebrow{color:var(--green);font-size:9px;font-weight:900;letter-spacing:.08em}
.stage-title h2{margin:4px 0 3px;font:700 23px/1.2 Georgia,"Songti SC",serif}
.stage-title p{margin:0;color:var(--muted);font-size:10px}
.counter{padding:7px 10px;border:1px solid #d5e5df;border-radius:99px;color:var(--green-dark);background:rgba(255,255,255,.92);font-size:10px;font-weight:900}
.view-key{position:absolute;z-index:3;right:18px;bottom:118px;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;padding:8px 10px;border:1px solid #dde9e4;border-radius:11px;background:rgba(255,255,255,.92);color:#6c7b74;font-size:9px;box-shadow:0 8px 22px rgba(22,74,61,.06)}
.view-key span{display:flex;align-items:center;gap:4px}.view-key i{width:9px;height:9px;border-radius:50%}.macro-dot{background:#d99558}.micro-dot{background:var(--green)}
.phase-strip{position:absolute;z-index:3;left:50%;top:106px;display:flex;gap:5px;padding:5px;border:1px solid #dce9e3;border-radius:12px;background:rgba(255,255,255,.92);box-shadow:0 8px 24px rgba(22,74,61,.06);transform:translateX(-50%)}
.step{min-width:88px;padding:7px 9px;border-radius:8px;color:#7b8982;text-align:center;font-size:9px;font-weight:850;transition:.2s}
.step.active{color:#fff;background:var(--green)}
.transport{position:absolute;z-index:4;left:18px;right:18px;bottom:18px;display:grid;grid-template-columns:auto minmax(120px,1fr) auto auto;gap:10px;align-items:center;padding:11px 13px;border:1px solid #d9e7e1;border-radius:17px;background:rgba(255,255,255,.95);box-shadow:0 18px 42px rgba(22,74,61,.11);backdrop-filter:blur(15px)}
.play{width:40px;height:40px;border:0;border-radius:12px;color:#fff;background:var(--green);font-weight:900}
.play:hover{background:var(--green-dark)}
.timeline{min-width:0}.timeline-meta{display:flex;justify-content:space-between;gap:12px;margin-bottom:5px;color:#718078;font-size:9px;font-weight:750}.timeline-meta span:first-child{color:var(--green-dark)}
input[type=range]{display:block;width:100%;accent-color:var(--green)}
#speed,.reset{height:34px;border:1px solid #cfdfd8;border-radius:9px;background:#fff;color:#52665e;font-size:10px;font-weight:800}
#speed{padding:0 7px}.reset{padding:0 11px}
.detail-panel{overflow:auto;border-left:1px solid var(--line);padding:20px 18px 28px}
.detail-head{padding:2px 2px 16px}.detail-kicker{margin:0;color:var(--green);font-size:9px;font-weight:900;letter-spacing:.13em}.detail-head h2{margin:6px 0 4px;font:700 25px/1.2 Georgia,"Songti SC",serif}.detail-head>p:last-child{margin:0;color:var(--muted);font-size:10px;line-height:1.6}
.detail-card,.audit-card,.challenge-card{margin-top:11px;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fff}
.detail-card h3{margin:0 0 10px;font-size:12px}.equation-card{border-color:#cfe3db;background:linear-gradient(145deg,#fff,#f2f9f6)}
.equation{color:#173e33;font:700 16px/1.65 Georgia,"Times New Roman","Songti SC",serif;overflow-wrap:anywhere}
.condition{display:inline-block;margin-top:9px;padding:5px 8px;border-radius:8px;color:#805715;background:#fff4dc;font-size:9px;font-weight:850}
dl{display:grid;gap:10px;margin:0}dl div{display:grid;grid-template-columns:37px 1fr;gap:8px}dt{color:var(--green);font-size:10px;font-weight:900}dd{margin:0;color:#596861;font-size:10px;line-height:1.65}
.audit-card{border-style:dashed;background:#f7fbf9}.audit-card span,.challenge-card span{color:var(--green);font-size:9px;font-weight:900;letter-spacing:.08em}.audit-card p,.challenge-card p{margin:7px 0 0;color:#52645c;font-size:10px;line-height:1.65}
.challenge-card{background:#fffdf8}.challenge-card button{margin-top:10px;padding:7px 10px;border:1px solid #bed8ce;border-radius:9px;color:var(--green-dark);background:#fff;font-size:9px;font-weight:850}.challenge-card .answer{padding:9px;border-radius:9px;color:#31594d;background:var(--green-soft)}
@media(max-width:1080px){
  .app{grid-template-columns:230px minmax(420px,1fr) 300px}.step{min-width:74px}.detail-panel{padding-inline:14px}
}
@media(max-width:850px){
  body{overflow:auto}.app{display:block;height:auto}.left-panel{border-right:0;border-bottom:1px solid var(--line)}.module-list{display:flex;overflow-x:auto}.module{min-width:190px}.source-note{display:none}.visual-stage{height:650px}.detail-panel{border-left:0;border-top:1px solid var(--line)}.detail-head,.detail-card,.audit-card,.challenge-card{max-width:720px;margin-left:auto;margin-right:auto}
}
@media(max-width:560px){
  .brand-block{padding:13px}.site-brand img{width:34px;height:34px}.module{min-width:178px}.visual-stage{height:690px}.stage-head{top:12px;left:12px;right:12px}.stage-title{max-width:82%}.stage-title h2{font-size:19px}.phase-strip{top:102px;width:calc(100% - 24px);overflow:auto;justify-content:flex-start}.step{flex:1;min-width:90px}.view-key{left:12px;right:12px;bottom:126px;justify-content:flex-start}.transport{left:10px;right:10px;bottom:10px;grid-template-columns:auto 1fr auto}.reset{display:none}#speed{width:60px}.timeline-meta span:last-child{display:none}
}
