/* 讲义样式（自动生成，请勿手改）
   来源：web/notes/*.html 的 <style>，已合并去重并统一加 .note-scope 前缀。
   重新生成：python tools/build_notes_css.py */
.note-scope{--bg:#f5f6f8; --card:#fff; --line:#e3e6ea; --line2:#eef0f3;
  --tx:#15181c; --tx2:#5b6470; --tx3:#8b949e;
  --pri:#2563eb; --pri-l:#eff4ff; --pri-d:#1d4ed8;
  --ok:#0f9960; --ok-l:#e8f6ef;
  --warn:#b45309; --warn-l:#fdf3e3;
  --dan:#c0392b; --dan-l:#fdecea;
  --pur:#7c3aed; --pur-l:#f2ecff;}
.note-scope *{box-sizing:border-box;margin:0;padding:0}
.note-scope{font-family:"PingFang SC","Microsoft YaHei",-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--tx);line-height:1.8;font-size:15px;-webkit-font-smoothing:antialiased}
.note-scope .wrap{max-width:960px;margin:0 auto;padding:0 20px 80px}
.note-scope .hero{background:linear-gradient(135deg,#1e3a8a,#2563eb 60%,#0ea5e9);color:#fff;padding:38px 0 32px}
.note-scope .hero .wrap{padding-bottom:0}
.note-scope .hero h1{font-size:26px;font-weight:700;margin-bottom:8px}
.note-scope .hero p{font-size:14.5px;opacity:.92;max-width:760px}
.note-scope .hero-meta{display:flex;gap:28px;margin-top:20px;flex-wrap:wrap}
.note-scope .hero-meta div{font-size:12px;opacity:.85}
.note-scope .hero-meta b{display:block;font-size:19px;font-weight:700;opacity:1;margin-top:1px}
.note-scope section{margin-top:34px}
.note-scope h2{font-size:20px;font-weight:700;margin-bottom:5px;display:flex;align-items:center;gap:9px}
.note-scope h2:before{content:"";width:4px;height:17px;background:var(--pri);border-radius:2px}
.note-scope .sec-sub{color:var(--tx2);font-size:13.5px;margin-bottom:14px}
.note-scope .card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:18px 20px}
.note-scope .nav{display:flex;flex-wrap:wrap;gap:7px}
.note-scope .nav a{background:#fff;border:1px solid var(--line);border-radius:7px;padding:6px 12px;font-size:13px;color:var(--tx2);text-decoration:none}
.note-scope .nav a:hover{border-color:var(--pri);color:var(--pri);background:var(--pri-l)}
.note-scope .wk{margin-top:26px}
.note-scope .wk-hd{display:flex;align-items:baseline;gap:11px;flex-wrap:wrap;padding-bottom:9px;border-bottom:2px solid var(--line);margin-bottom:14px}
.note-scope .wk-hd h3{font-size:17px;font-weight:700}
.note-scope .wk-hd .tag{font-size:11.5px;padding:2px 9px;border-radius:99px;background:var(--pri-l);color:var(--pri);font-weight:600}
.note-scope .wk-hd .gl{font-size:13px;color:var(--tx2);flex:1;min-width:200px}
.note-scope .dy{background:var(--card);border:1px solid var(--line);border-radius:10px;margin-bottom:12px;overflow:hidden}
.note-scope .dy-hd{padding:11px 17px;background:#fafbfc;border-bottom:1px solid var(--line2);display:flex;gap:11px;align-items:center}
.note-scope .dy-hd .n{flex:none;font-size:11.5px;font-weight:700;color:#fff;background:var(--pri);border-radius:5px;padding:2px 8px}
.note-scope .dy-hd h4{font-size:15px;font-weight:600}
.note-scope .dy-bd{padding:6px 17px 16px}
.note-scope .kp{padding:13px 0;border-bottom:1px dashed var(--line2)}
.note-scope .kp:last-child{border-bottom:none}
.note-scope .kp h5{font-size:14.5px;font-weight:600;margin-bottom:5px;color:var(--pri-d)}
.note-scope .kp p{font-size:14px;color:var(--tx);margin-bottom:6px}
.note-scope .kp p.tx2{color:var(--tx2)}
.note-scope .kp ul{margin:4px 0 6px 18px;font-size:13.8px;color:var(--tx2)}
.note-scope .kp li{margin:2px 0}
.note-scope pre{background:#f7f8fa;border:1px solid var(--line);border-left:3px solid var(--pri);border-radius:7px;padding:11px 14px;overflow-x:auto;margin:7px 0}
.note-scope code{font-family:"Cascadia Code",Consolas,Monaco,"Courier New",monospace;font-size:13px;color:#1a1d21;line-height:1.65}
.note-scope p code,.note-scope li code,.note-scope h5 code,.note-scope .tip code{background:var(--line2);padding:1px 5px;border-radius:4px;font-size:12.5px;color:var(--pri-d);border:none}
.note-scope pre code{background:none;padding:0;color:#1a1d21;font-size:13px}
.note-scope .tip{border-radius:7px;padding:9px 13px;font-size:13.4px;margin:7px 0}
.note-scope .tip b{display:block;font-size:12px;margin-bottom:3px;letter-spacing:.3px}
.note-scope .t-why{background:var(--pri-l);border:1px solid #d5e3ff;color:#1e40af}
.note-scope .t-why b{color:var(--pri-d)}
.note-scope .t-pit{background:var(--warn-l);border:1px solid #f6e2c2;color:#7c4a10}
.note-scope .t-pit b{color:var(--warn)}
.note-scope .t-try{background:var(--ok-l);border:1px solid #c9e8d8;color:#0b6b45}
.note-scope .t-try b{color:var(--ok)}
.note-scope .t-note{background:var(--pur-l);border:1px solid #ddd3fb;color:#5b21b6}
.note-scope .t-note b{color:var(--pur)}
.note-scope .q{background:#fff;border:1px solid var(--line);border-radius:8px;padding:11px 14px;font-size:13.6px;margin-top:9px}
.note-scope .q b{color:var(--tx);font-size:13.8px}
.note-scope .q .a{margin-top:7px;padding-top:7px;border-top:1px dashed var(--line2);color:var(--tx2)}
.note-scope details>summary{cursor:pointer;color:var(--pri);font-size:13.2px;user-select:none;padding:3px 0}
.note-scope details[open]>summary{margin-bottom:4px}
.note-scope .foot{text-align:center;color:var(--tx3);font-size:12.5px;margin-top:40px;padding-top:18px;border-top:1px solid var(--line)}
@media(max-width:640px){.note-scope .hero h1{font-size:21px}.note-scope .wrap{padding:0 13px 60px}}
.note-scope .pj{background:linear-gradient(135deg,#0f766e,#0d9488);color:#fff;border-radius:10px;padding:15px 18px;margin-top:12px}
.note-scope .pj h5{font-size:14.5px;font-weight:700;margin-bottom:5px}
.note-scope .pj p{font-size:13.6px;opacity:.95}
.note-scope .pj ul{margin:6px 0 0 18px;font-size:13.4px;opacity:.95}
.note-scope .t-dan{background:var(--dan-l);border:1px solid #f5c6c0;color:#8a2018}
.note-scope .t-dan b{color:var(--dan)}
