/* 老鬼庆开发工具集 — 样式 */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --r-lg: 16px; --r-md: 12px; --r-sm: 8px;
  --c1: #38bdf8; --c2: #818cf8; --c3: #f472b6; --c4: #34d399; --c5: #fbbf24;
  --side-w: 262px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
[data-theme="dark"] {
  --bg: #0b0f17;
  --bg2: #0f1420;
  --panel: #121826;
  --panel2: #172033;
  --line: #222c40;
  --line2: #2e3a52;
  --tx: #e8edf7;
  --tx2: #9aa7bd;
  --tx3: #64718a;
  --in: #0d131f;
  --accent: #38bdf8;
  --shadow: 0 18px 40px -24px rgba(0,0,0,.9);
}
[data-theme="light"] {
  --bg: #f4f7fc;
  --bg2: #ffffff;
  --panel: #ffffff;
  --panel2: #f7f9fd;
  --line: #e2e8f2;
  --line2: #cfd9e8;
  --tx: #101828;
  --tx2: #51607a;
  --tx3: #8896ad;
  --in: #fbfcfe;
  --accent: #0284c7;
  --shadow: 0 16px 34px -26px rgba(16,24,40,.35);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font-family: var(--font); font-size: 14px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(56,189,248,.3); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 6px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }

.side {
  width: var(--side-w); flex: none; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg2); border-right: 1px solid var(--line);
  padding: 16px 12px 12px; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 10px; border-radius: var(--r-sm); transition: background .16s; }
a.brand:hover { background: var(--panel2); }
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, var(--c1), var(--c2)); color: #04121f;
  box-shadow: 0 8px 20px -10px rgba(56,189,248,.85);
}
.brand-logo svg { width: 19px; height: 19px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-txt b { font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap; }
.brand-txt em { font-style: normal; font-size: 10.5px; color: var(--tx3); letter-spacing: .06em; text-transform: uppercase; }

.side-search {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--in);
}
.side-search svg { width: 15px; height: 15px; color: var(--tx3); flex: none; }
.side-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--tx); font: inherit; font-size: 13px; }
.side-search input::placeholder { color: var(--tx3); }
.side-search:focus-within { border-color: var(--accent); }

.side-nav { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 14px; padding: 2px 2px 8px; }
.nav-group-title {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx3);
  font-weight: 600; padding: 0 10px 5px;
}
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: var(--r-sm);
  color: var(--tx2); font-size: 13.2px; cursor: pointer; position: relative;
  transition: background .16s, color .16s; border: 0; background: none; width: 100%; text-align: left;
  font-family: inherit;
}
.nav-item svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.nav-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item:hover { background: var(--panel2); color: var(--tx); }
.nav-item.active { background: linear-gradient(90deg, rgba(56,189,248,.16), rgba(129,140,248,.06)); color: var(--tx); font-weight: 600; }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 2px;
  border-radius: 2px; background: linear-gradient(var(--c1), var(--c2));
}
.nav-empty { color: var(--tx3); font-size: 12.5px; padding: 6px 10px; }
.nav-count { margin-left: auto; font-size: 10.5px; color: var(--tx3); font-family: var(--mono); }

.side-foot { display: flex; align-items: center; gap: 8px; padding: 8px 4px 2px; border-top: 1px solid var(--line); }
.ver { font-family: var(--mono); font-size: 11px; color: var(--tx3); margin-left: auto; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 22px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tx3); min-width: 0; }
.crumbs a:hover { color: var(--tx); }
.crumbs span:last-child { color: var(--tx); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.local-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--c4);
  padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(52,211,153,.28);
  background: rgba(52,211,153,.08); white-space: nowrap;
}
.local-tag svg { width: 13px; height: 13px; }

.view { padding: 24px 22px 60px; max-width: 1180px; width: 100%; margin: 0 auto; }

/* ---------- 通用控件 ---------- */
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); color: var(--tx2);
  transition: .18s var(--ease);
}
.icon-btn:hover { color: var(--tx); border-color: var(--line2); }
.icon-btn svg { width: 17px; height: 17px; }
[data-pref="dark"] .ic-moon, [data-pref="dark"] .ic-sys { display: none; }
[data-pref="light"] .ic-sun, [data-pref="light"] .ic-sys { display: none; }
[data-pref="system"] .ic-sun, [data-pref="system"] .ic-moon { display: none; }
.menu-btn { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line2);
  background: var(--panel); color: var(--tx); font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: .16s var(--ease); white-space: nowrap;
}
.btn:hover { border-color: var(--tx3); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--c1), var(--c2)); border-color: transparent; color: #04121f;
  font-weight: 650; box-shadow: 0 8px 20px -12px rgba(56,189,248,.9);
}
.btn-primary:hover { box-shadow: 0 12px 24px -12px rgba(129,140,248,.9); }
.btn-ghost { background: transparent; }
.btn-danger { color: #f87171; border-color: rgba(248,113,113,.4); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 15px; height: 15px; }

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 5px; }
.label { font-size: 12px; font-weight: 600; color: var(--tx2); letter-spacing: .01em; }
.hint { font-size: 11.5px; color: var(--tx3); line-height: 1.5; }

.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--in);
  color: var(--tx); font: inherit; font-size: 13px; padding: 8px 10px; outline: 0;
  transition: border-color .16s, box-shadow .16s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,189,248,.12); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tx3) 50%), linear-gradient(135deg, var(--tx3) 50%, transparent 50%); background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; cursor: pointer; }
.textarea {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65; resize: vertical; min-height: 170px;
  tab-size: 2;
}
.textarea.sm { min-height: 90px; }
.textarea.lg { min-height: 320px; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px; background: var(--in); gap: 2px; flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; color: var(--tx2); font: inherit; font-size: 12.5px;
  padding: 5px 11px; border-radius: 6px; cursor: pointer; transition: .15s;
}
.seg button:hover { color: var(--tx); }
.seg button.on { background: var(--panel2); color: var(--tx); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
[data-theme="light"] .seg button.on { background: #fff; }

.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--tx2); cursor: pointer; user-select: none; }
.chk input { accent-color: var(--accent); width: 14px; height: 14px; }
.switch { position: relative; width: 38px; height: 21px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line2); transition: .2s; }
.switch i::after { content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s var(--ease); }
.switch input:checked + i { background: linear-gradient(135deg, var(--c1), var(--c2)); }
.switch input:checked + i::after { transform: translateX(17px); }

.out {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--in);
  padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-all; max-height: 420px; overflow: auto; color: var(--tx);
}
.out.plain { font-family: var(--font); font-size: 13px; }
.msg { font-size: 12.5px; padding: 7px 10px; border-radius: var(--r-sm); display: none; }
.msg.err { display: block; color: #fca5a5; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.28); }
.msg.ok { display: block; color: #6ee7b7; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.28); }
[data-theme="light"] .msg.err { color: #b91c1c; }
[data-theme="light"] .msg.ok { color: #047857; }
.mono { font-family: var(--mono); }
.muted { color: var(--tx3); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tbl th, table.tbl td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl th { color: var(--tx3); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; background: var(--panel); }
table.tbl tbody tr:hover { background: var(--panel2); }
.table-wrap, .tbl-wrap { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: auto; max-height: 420px; }
.tbl-wrap { max-height: 560px; }

.badge { font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px; letter-spacing: .02em; }
.badge.new { background: rgba(52,211,153,.14); color: #34d399; border: 1px solid rgba(52,211,153,.3); }
.badge.tag { background: var(--panel2); color: var(--tx3); border: 1px solid var(--line); font-weight: 500; }

.swatch { width: 100%; height: 74px; border-radius: var(--r-md); border: 1px solid var(--line); }

/* ---------- 首页 ---------- */
.home-hero {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; margin-bottom: 20px;
  background:
    radial-gradient(700px circle at 8% -20%, rgba(56,189,248,.16), transparent 62%),
    radial-gradient(560px circle at 92% 0%, rgba(129,140,248,.14), transparent 60%),
    var(--panel);
  position: relative; overflow: hidden;
}
.home-hero h1 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; letter-spacing: -.025em; font-weight: 750; }
.home-hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--c1), var(--c2), var(--c3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero p { margin: 0; color: var(--tx2); max-width: 62ch; font-size: 13.6px; }
.home-stats { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.home-stats div { display: flex; flex-direction: column; }
.home-stats b { font-size: 20px; letter-spacing: -.02em; }
.home-stats span { font-size: 11.5px; color: var(--tx3); }

.home-search { display: flex; gap: 10px; margin-bottom: 22px; }
.home-search .input { height: 40px; }

.group-head { display: flex; align-items: baseline; gap: 9px; margin: 26px 0 12px; }
.group-head h2 { font-size: 15px; margin: 0; letter-spacing: -.01em; }
.group-head span { font-size: 11.5px; color: var(--tx3); font-family: var(--mono); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 11px; }
.tcard {
  display: flex; gap: 11px; align-items: flex-start; padding: 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--panel); cursor: pointer;
  transition: .2s var(--ease); position: relative; overflow: hidden;
}
.tcard:hover { transform: translateY(-2px); border-color: var(--line2); box-shadow: var(--shadow); background: var(--panel2); }
.tcard-ic {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--panel2); border: 1px solid var(--line); color: var(--accent);
}
.tcard-ic svg { width: 17px; height: 17px; }
.tcard-b { min-width: 0; }
.tcard-b b { display: block; font-size: 13.4px; margin-bottom: 2px; letter-spacing: -.01em; }
.tcard-b p { margin: 0; font-size: 11.8px; color: var(--tx3); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cards .tcard:nth-child(4n+1) .tcard-ic { color: var(--c1); }
.cards .tcard:nth-child(4n+2) .tcard-ic { color: var(--c2); }
.cards .tcard:nth-child(4n+3) .tcard-ic { color: var(--c4); }
.cards .tcard:nth-child(4n+4) .tcard-ic { color: var(--c5); }

/* ---------- 工具面板 ---------- */
.tp-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; }
.tp-ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, rgba(56,189,248,.16), rgba(129,140,248,.1));
  border: 1px solid var(--line); color: var(--accent);
}
.tp-ic svg { width: 21px; height: 21px; }
.tp-head h1 { font-size: 19px; margin: 0 0 3px; letter-spacing: -.02em; }
.tp-head p { margin: 0; font-size: 12.6px; color: var(--tx3); max-width: 78ch; }

.card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); padding: 16px; }
.card + .card { margin-top: 12px; }
.card > h3 { font-size: 13px; margin: 0 0 12px; color: var(--tx2); font-weight: 650; letter-spacing: .01em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--tx3); }
.kv b { font-weight: 600; font-family: var(--mono); }

.tagline { display: flex; flex-wrap: wrap; gap: 6px; }
.tagline button {
  font-size: 11.5px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel2); color: var(--tx2); cursor: pointer; font-family: inherit;
}
.tagline button:hover { color: var(--tx); border-color: var(--line2); }

.empty { text-align: center; color: var(--tx3); padding: 46px 0; font-size: 13px; }

/* 结果列表 */
.res-item { padding: 9px 11px; border-radius: var(--r-sm); background: var(--in); border: 1px solid var(--line); margin-bottom: 7px; font-family: var(--mono); font-size: 12.2px; word-break: break-all; }
.res-item .add { color: #34d399; }
.res-item .del { color: #f87171; }
.res-item .mod { color: var(--c5); }

mark { background: rgba(251,191,36,.28); color: inherit; border-radius: 2px; padding: 0 1px; }
mark.cur { background: rgba(56,189,248,.35); }

/* 思维导图 */
.mm-wrap { position: relative; height: 460px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--in); overflow: hidden; }
.mm-wrap svg { width: 100%; height: 100%; display: block; cursor: grab; }
.mm-wrap svg:active { cursor: grabbing; }
.mm-node rect { fill: var(--panel2); stroke: var(--line2); transition: .15s; }
.mm-node:hover rect { stroke: var(--c1); }
.mm-node.sel rect { stroke: var(--c1); stroke-width: 2; }
.mm-node text { fill: var(--tx); font-size: 12px; font-family: var(--font); user-select: none; }
.mm-link { stroke: var(--line2); fill: none; }

/* 栅格标尺 */
.ruler-stage { position: relative; height: 320px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--in); }
.ruler-stage .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(56,189,248,.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56,189,248,.22) 1px, transparent 1px),
    linear-gradient(to right, rgba(56,189,248,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56,189,248,.07) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 10px 10px, 10px 10px;
}
.ruler-stage .cross-h, .ruler-stage .cross-v { position: absolute; background: rgba(244,114,182,.8); pointer-events: none; }
.ruler-stage .cross-h { height: 1px; left: 0; right: 0; }
.ruler-stage .cross-v { width: 1px; top: 0; bottom: 0; }
.ruler-stage .pos {
  position: absolute; font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 4px;
  background: var(--panel); border: 1px solid var(--line2); color: var(--tx2); pointer-events: none;
}

/* 便签 */
.notes { display: grid; grid-template-columns: 150px 190px 1fr; gap: 10px; min-height: 420px; }
.notes-list { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel2); overflow: auto; padding: 6px; max-height: 460px; }
.notes-list .ni { padding: 7px 9px; border-radius: 6px; font-size: 12.5px; cursor: pointer; color: var(--tx2); display: flex; gap: 6px; align-items: center; }
.notes-list .ni:hover { background: var(--panel); color: var(--tx); }
.notes-list .ni.on { background: linear-gradient(90deg, rgba(56,189,248,.18), transparent); color: var(--tx); font-weight: 600; }
.notes-list .ni span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.notes-list .ni em { font-style: normal; font-size: 10px; color: var(--tx3); }

/* 预览 */
.preview { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--in); padding: 14px 16px; min-height: 200px; max-height: 520px; overflow: auto; font-size: 13.5px; line-height: 1.75; }
.preview h1, .preview h2, .preview h3, .preview h4 { margin: 1.1em 0 .5em; line-height: 1.35; letter-spacing: -.01em; }
.preview h1 { font-size: 22px; } .preview h2 { font-size: 18px; } .preview h3 { font-size: 15.5px; }
.preview p { margin: .7em 0; }
.preview code { font-family: var(--mono); font-size: 12px; background: var(--panel2); padding: 1px 5px; border-radius: 4px; }
.preview pre { background: var(--panel2); padding: 12px; border-radius: var(--r-sm); overflow: auto; border: 1px solid var(--line); }
.preview pre code { background: none; padding: 0; }
.preview blockquote { margin: .8em 0; padding: 6px 12px; border-left: 3px solid var(--c1); color: var(--tx2); background: var(--panel2); border-radius: 0 6px 6px 0; }
.preview table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.preview th, .preview td { border: 1px solid var(--line); padding: 6px 9px; }
.preview img { max-width: 100%; border-radius: 6px; }
.preview a { color: var(--c1); text-decoration: underline; text-underline-offset: 2px; }
.preview hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; }
.preview ul, .preview ol { padding-left: 1.4em; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--panel); border: 1px solid var(--line2); color: var(--tx);
  padding: 9px 18px; border-radius: 999px; font-size: 13px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: .25s var(--ease); z-index: 300; max-width: 80vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.scrim { display: none; }

/* 文本对比 */
.df-same { color: var(--tx2); }
.df-del { color: #f87171; background: rgba(248,113,113,.08); }
.df-add { color: #34d399; background: rgba(52,211,153,.08); }
.df-same, .df-del, .df-add { white-space: pre-wrap; word-break: break-all; font-family: var(--mono); font-size: 12.5px; }

/* 统计卡片 */
.stat { background: var(--in); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; text-align: center; }
.stat b { display: block; font-size: 18px; font-weight: 700; color: var(--tx); font-family: var(--mono); }
.stat span { font-size: 11.5px; color: var(--tx3); }

/* 操作引导 */
.guide { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); padding: 10px 14px; margin-bottom: 12px; }
.guide summary { cursor: pointer; font-size: 12.5px; font-weight: 650; color: var(--tx2); user-select: none; list-style: none; display: flex; align-items: center; gap: 6px; }
.guide summary::before { content: "✚"; color: var(--c1); font-size: 12px; }
.guide[open] summary::before { content: "−"; }
.guide ol { margin: 10px 0 0; padding-left: 20px; font-size: 12.5px; color: var(--tx2); line-height: 1.9; }
.guide li { margin: 2px 0; }

/* 开发中占位 */
.wip-card { border: 1px dashed var(--line2); border-radius: var(--r-md); background: var(--panel); padding: 26px 20px; text-align: center; }
.wip-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #fbbf24; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.wip-card h3 { font-size: 15px; margin: 0 0 8px; color: var(--tx); }
.wip-card p { margin: 0 0 6px; color: var(--tx3); font-size: 12.5px; line-height: 1.7; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; height: 100%; transform: translateX(-100%); transition: transform .28s var(--ease); box-shadow: 0 0 40px rgba(0,0,0,.4); }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 35; }
  .menu-btn { display: grid; }
  .split, .grid2, .grid3 { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .notes-list { max-height: 150px; }
  .view { padding: 18px 14px 48px; }
  .topbar { padding: 0 14px; }
  .local-tag { display: none; }
  .home-hero { padding: 20px 16px; }
}
