/* =========================================================
   portfolio.flow —— 整个网站是一张可运行的工作流画布
   主色只改 --accent
   ========================================================= */
:root {
  --canvas: #f4f7fc;
  --dot: #cfd9e8;
  --node: #ffffff;
  --node-2: #f7f9fd;
  --ink: #0e1a2f;
  --ink-2: #3c4a61;
  --muted: #7a879c;
  --line: #dde5f0;
  --line-strong: #b9c6d8;
  --accent: #1f5fe0;
  --accent-2: #4f8bff;
  --accent-soft: #e6eefd;
  --ok: #16a34a;
  --ok-soft: #e3f6ea;
  --warn: #d97706;
  --warn-soft: #fdf1dc;
  --teal: #0e9384;
  --teal-soft: #def5f1;
  --rose: #d9406a;
  --rose-soft: #fde8ee;
  --violet: #6d5bd0;
  --violet-soft: #eeebfb;
  --shadow: 0 1px 2px rgba(14, 26, 47, .05), 0 8px 24px rgba(14, 26, 47, .06);
  --shadow-lg: 0 2px 4px rgba(14, 26, 47, .05), 0 24px 60px rgba(31, 95, 224, .14);
  --sans: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0a1120; --dot: #1c2840; --node: #111a2c; --node-2: #0e1626;
    --ink: #e7eefa; --ink-2: #b6c3d8; --muted: #7d8aa1; --line: #22304a; --line-strong: #3a4d72;
    --accent: #5b95ff; --accent-2: #8db6ff; --accent-soft: #16264a;
    --ok: #34d399; --ok-soft: #10261d; --warn: #fbbf24; --warn-soft: #2a210c;
    --teal: #2dd4bf; --teal-soft: #0d2a27; --rose: #fb7199; --rose-soft: #33141f; --violet: #a495ff; --violet-soft: #1f1b3d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0a1120; --dot: #1c2840; --node: #111a2c; --node-2: #0e1626;
  --ink: #e7eefa; --ink-2: #b6c3d8; --muted: #7d8aa1; --line: #22304a; --line-strong: #3a4d72;
  --accent: #5b95ff; --accent-2: #8db6ff; --accent-soft: #16264a;
  --ok: #34d399; --ok-soft: #10261d; --warn: #fbbf24; --warn-soft: #2a210c;
  --teal: #2dd4bf; --teal-soft: #0d2a27; --rose: #fb7199; --rose-soft: #33141f; --violet: #a495ff; --violet-soft: #1f1b3d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

/* ============ 工具栏 ============ */
.toolbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--node) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.tb-inner { max-width: 1180px; margin: 0 auto; height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
@media (min-width: 760px) { .tb-inner { padding: 0 32px; } }
.tb-brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 700; }
.tb-logo { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.tb-file { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted); }
.tb-nav { display: flex; gap: 2px; margin: 0 auto; }
.tb-nav a { font-size: 14px; color: var(--ink-2); padding: 6px 12px; border-radius: 8px; display: flex; align-items: center; gap: 6px; }
.tb-nav a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: .2s; }
.tb-nav a:hover { background: var(--node-2); color: var(--ink); }
.tb-nav a.active { color: var(--accent); background: var(--accent-soft); }
.tb-nav a.active::before, .tb-nav a.done::before { background: var(--accent); border-color: var(--accent); }
.tb-actions { display: flex; align-items: center; gap: 6px; }
.run-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border: 0; border-radius: 9px; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform .15s, filter .15s;
}
.run-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.run-btn.busy { pointer-events: none; opacity: .75; }
.run-btn.busy svg { animation: pulse 1s ease-in-out infinite; }
.ghost-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; border-radius: 9px; cursor: pointer; color: var(--ink-2); }
.ghost-btn:hover { background: var(--node-2); color: var(--ink); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .tb-file { display: none; }
  .tb-nav {
    position: absolute; top: 56px; left: 0; right: 0; margin: 0;
    flex-direction: column; padding: 8px 16px 14px;
    background: var(--node); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .tb-nav.open { display: flex; }
  .tb-nav a { padding: 11px 10px; font-size: 15px; }
  .tb-actions { margin-left: auto; }
}

.setup-banner {
  margin-top: 16px; padding: 12px 16px; border-radius: 10px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  color: var(--warn); background: var(--warn-soft); border: 1px dashed var(--warn);
}

/* ============ 通用节点 ============ */
.node, .frame {
  position: relative; background: var(--node);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  transition: border-color .3s, box-shadow .3s, opacity .4s;
}
.node-head, .frame-head {
  display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 14px;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.n-ico, .f-ico {
  width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.n-ico.warn { background: var(--warn-soft); color: var(--warn); }
.n-type { font-weight: 600; }
.n-id { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.node-body { padding: 16px; }

.port {
  position: absolute; z-index: 3; width: 12px; height: 12px; border-radius: 50%;
  background: var(--node); border: 2px solid var(--line-strong); transition: .3s;
}
.port.in { left: -7px; top: 50%; transform: translateY(-50%); }
.port.out { right: -7px; top: 50%; transform: translateY(-50%); }
.done > .port, .ready > .port, .fired > .port { background: var(--accent); border-color: var(--accent); }

.spin {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--accent-soft); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }

/* ============ 首屏节点图 ============ */
.hero { padding: 28px 0 8px; }
@media (min-width: 980px) {
  .hero { min-height: min(calc(100svh - 56px), 720px); display: flex; flex-direction: column; justify-content: center; padding: 32px 0 40px; }
}
.canvas-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 28px;
}
.canvas-meta b { color: var(--ok); font-weight: 500; }
.canvas-meta .hint { color: var(--accent); }

.graph { position: relative; display: grid; gap: 40px; }
.wires { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.w-base { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.w-flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; opacity: 0; transition: opacity .4s; animation: dash 1s linear infinite; }
.wires.live .w-flow { opacity: 1; }
.packet { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent-2)); }
@keyframes dash { to { stroke-dashoffset: -12; } }

.graph .node { z-index: 1; }
@media (max-width: 979px) {
  .graph .port.in { left: 50%; top: -7px; transform: translateX(-50%); }
  .graph .port.out { left: 50%; right: auto; top: auto; bottom: -7px; transform: translateX(-50%); }
}
@media (min-width: 980px) {
  .graph { grid-template-columns: 210px minmax(0, 1fr) 230px; gap: 64px; align-items: center; }
}

.trigger { max-width: 320px; width: 100%; justify-self: center; }
.trigger.fired { border-color: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft), var(--shadow); }
.trig-text { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.5; }
.trig-meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.trig-meta code { color: var(--warn); }

.agent { box-shadow: var(--shadow-lg); }
.agent.running { border-color: var(--accent); }
.agent.done { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.agent .node-body { padding: 22px 22px 18px; }
@media (min-width: 760px) { .agent .node-body { padding: 28px 30px 22px; } }
.agent-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.agent-name { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(52px, 9vw, 92px); line-height: 1.02; letter-spacing: .02em; }
.agent-en { margin: 6px 0 0; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.agent-en:empty { display: none; }
.avatar { width: 76px; height: 76px; flex: none; border-radius: 18px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .seal {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 900; font-size: 38px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.agent-tagline { margin: 18px 0 0; font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; line-height: 1.5; }
.agent-proof { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.agent-tagline:empty, .agent-proof:empty { display: none; }

.params { margin: 20px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--node-2); border: 1px solid var(--line); display: grid; gap: 8px; }
.params:empty { display: none; }
.params > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.params dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.params dd { margin: 0; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12.5px; padding: 1px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }

.node-foot { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; }
.n-status { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.done .n-status { color: var(--ok); }

.outputs { display: grid; gap: 14px; }
@media (max-width: 979px) { .outputs { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; } }
@media (max-width: 560px) {
  .outputs .out-node .node-head { padding: 6px 10px; gap: 6px; }
  .outputs .out-node .node-head .n-ico { display: none; }
  .outputs .out-node .node-body { padding: 10px; }
  .outputs .out-title { font-size: 14px; white-space: nowrap; }
  .outputs .out-sub { display: none; }
}
.out-node { display: block; opacity: .45; transform: translateX(-6px); transition: opacity .4s, transform .4s, border-color .2s, box-shadow .2s; }
.out-node.ready { opacity: 1; transform: none; }
.out-node:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.out-node .node-head { min-height: 36px; padding: 6px 12px; font-size: 12px; color: var(--muted); }
.out-node .node-body { padding: 12px 14px 14px; }
.out-title { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 16px; }
.out-title .arr { color: var(--accent); transition: transform .2s; }
.out-node:hover .arr { transform: translateX(3px); }
.out-sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ 下方节点流 ============ */
.flow { padding-bottom: 24px; }
.stage { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .stage { padding: 0 32px; } }
.link {
  width: 2px; height: 64px; margin: 0 auto; position: relative;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 5px, transparent 5px 11px);
}
.live > .link {
  background: repeating-linear-gradient(to bottom, var(--accent) 0 5px, transparent 5px 11px);
  background-size: 2px 11px; animation: flowv .6s linear infinite;
}
@keyframes flowv { to { background-position: 0 11px; } }

.frame { opacity: .55; }
.frame.running, .frame.done { opacity: 1; }
.frame.running { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.frame > .port.in { left: 50%; top: -7px; transform: translateX(-50%); }
.frame > .port.out { left: 50%; right: auto; top: auto; bottom: -7px; transform: translateX(-50%); }
.frame-head { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
.frame-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.f-type { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; }
.f-count { font-size: 12.5px; color: var(--muted); }
.f-status { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.done .f-status { color: var(--ok); }
.frame-body { padding: 22px 18px; }
@media (min-width: 760px) { .frame-body { padding: 30px 32px; } }

/* 能力：子节点链 */
.chain { display: grid; }
@media (min-width: 860px) { .chain { grid-template-columns: 1fr 44px 1fr 44px 1fr; align-items: stretch; } }
.sub { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--node-2); }
.sub-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sub-verb { color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 6px; }
.sub h3 { margin: 12px 0 6px; font-size: 20px; }
.sub p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.chain-link { position: relative; height: 32px; }
.chain-link::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: repeating-linear-gradient(to bottom, var(--accent) 0 4px, transparent 4px 9px); }
@media (min-width: 860px) {
  .chain-link { height: auto; }
  .chain-link::before { left: 4px; right: 8px; top: 50%; bottom: auto; width: auto; height: 2px; transform: translateY(-50%); background: repeating-linear-gradient(to right, var(--accent) 0 4px, transparent 4px 9px); }
  .chain-link::after { content: ""; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left: 7px solid var(--accent); border-right: 0; }
}

/* 关于我 */
.about p { margin: 0 0 14px; font-size: 16.5px; color: var(--ink-2); max-width: 46em; }
.about p:last-child { margin-bottom: 0; }
.about p:first-child { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.6; color: var(--ink); margin-bottom: 18px; }

/* 项目 */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.filter { font-size: 13px; padding: 4px 12px; border-radius: 8px; cursor: pointer; background: var(--node-2); border: 1px solid var(--line); color: var(--ink-2); }
.filter:hover { border-color: var(--line-strong); }
.filter[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pgrid { display: grid; gap: 18px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pnode {
  --c: var(--accent); --cs: var(--accent-soft);
  position: relative; display: flex; flex-direction: column;
  background: var(--node); border: 1px solid var(--line); border-radius: 12px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pnode:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: var(--shadow-lg); }
.pnode[data-cat="AI Work"] { --c: var(--teal); --cs: var(--teal-soft); }
.pnode[data-cat="AI Video"] { --c: var(--rose); --cs: var(--rose-soft); }
.pnode[data-cat="AI Game"] { --c: var(--violet); --cs: var(--violet-soft); }
.pnode[data-cat="出奇"] { --c: var(--warn); --cs: var(--warn-soft); }
.pnode .port { top: 26px; transform: none; }
.pnode:hover .port { border-color: var(--c); background: var(--c); }
.pnode-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; background: linear-gradient(90deg, var(--cs), transparent 80%); }
.pcat { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--c); }
.pstatus { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); white-space: nowrap; }
.pstatus::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pstatus.wip { color: var(--warn); }
.pstatus.wip::before { animation: pulse 1.4s ease-in-out infinite; }
.pcover { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--cs); }
.pcover img { width: 100%; height: 100%; object-fit: cover; }
.pnode-body { padding: 16px 16px 14px; flex: 1; display: flex; flex-direction: column; }
.pnode h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.4; }
.pnode h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.pnode p { margin: 0; flex: 1; font-size: 14.5px; color: var(--ink-2); }
.tags { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; }
.pnode-foot { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px dashed var(--line); font-size: 13px; }
.pnode-foot a { position: relative; z-index: 2; font-weight: 600; color: var(--c); }
.pnode-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pdate { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* 研究 / 文章 / 工具：日志式列表 */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.row:first-child { padding-top: 0; }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row-ts { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 84px; }
.row h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.row p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.row-tag { font-size: 12px; color: var(--accent); margin-right: 8px; }
.row .go { color: var(--muted); transition: .2s; }
a.row:hover h3 { color: var(--accent); }
a.row:hover .go { color: var(--accent); transform: translate(2px, -2px); }
@media (max-width: 560px) { .row { grid-template-columns: minmax(0, 1fr) auto; } .row-ts { grid-column: 1 / -1; } }
.egrid { display: grid; gap: 16px; }
@media (min-width: 640px) { .egrid { grid-template-columns: repeat(2, 1fr); } }
.event { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--node-2); }
.event img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.event-body { padding: 14px 16px; }
.event h3 { margin: 2px 0 4px; font-size: 16px; }
.event p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* 联系：最终输出节点 */
.frame.output .frame-head { background: var(--accent); color: #fff; border-radius: 13px 13px 0 0; border-bottom-color: transparent; }
.frame.output .f-ico { background: rgba(255,255,255,.18); color: #fff; }
.frame.output .f-type { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.35); }
.frame.output .f-count, .frame.output .f-status, .frame.output.done .f-status { color: #fff; }
.frame.output .spin { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
.c-intro { margin: 0 0 22px; font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; }
.c-intro:empty { display: none; }
.c-big { display: grid; gap: 12px; }
@media (min-width: 860px) { .c-big { grid-template-columns: 1.4fr 1fr; } }
.c-item { padding: 16px 18px; border-radius: 12px; background: var(--node-2); border: 1px solid var(--line); min-width: 0; }
.c-key { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.c-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 4px; }
.c-val { font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; color: var(--ink); }
.c-val:hover { color: var(--accent); }
.copy-btn { margin-left: auto; font-size: 12.5px; padding: 5px 12px; border-radius: 8px; cursor: pointer; background: var(--accent); color: #fff; border: 0; font-weight: 600; }
.copy-btn:hover { filter: brightness(1.1); }
.channels { display: grid; gap: 10px; margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.channels:empty { display: none; }
.channel { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--node); text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.channel:hover { border-color: var(--accent); transform: translateY(-2px); }
.ch-text { min-width: 0; flex: 1; }
.ch-name { font-weight: 600; font-size: 15px; }
.ch-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel .go { color: var(--accent); }
.qr-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.qr-row:empty { display: none; }
.qr { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.qr img { width: 132px; height: 132px; object-fit: contain; background: #fff; padding: 6px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 6px; }

/* 结束节点 */
.end { text-align: center; padding-bottom: 56px; }
.end-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  background: var(--node); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-family: var(--mono); font-size: 13px; color: var(--muted); transition: .3s;
}
.end.live .end-pill { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--line); background: var(--node); padding: 20px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a:hover { color: var(--accent); }

/* ============ 执行日志 ============ */
.log {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: min(400px, calc(100vw - 32px)); max-height: min(52vh, 420px);
  display: flex; flex-direction: column;
  background: var(--node); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: rise .25s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.log-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.log-head span { display: flex; align-items: center; gap: 8px; }
.log-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.log.busy .log-dot { background: var(--accent); animation: pulse .8s infinite; }
.log-close { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.log-list { list-style: none; margin: 0; padding: 10px 14px 12px; overflow-y: auto; font-family: var(--mono); font-size: 12px; line-height: 1.9; }
.log-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; animation: rise .2s ease; }
.log-list .t { color: var(--muted); }
.log-list .ok { color: var(--ok); }
.log-list li.final { display: block; color: var(--accent); font-weight: 600; margin-top: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--canvas); font-size: 14px; padding: 9px 16px; border-radius: 10px;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   2026-10 改版新增：能力证据、主项目、讲解展开、方法、经历
   ========================================================= */

/* 能力：4 个子节点时，中等宽度排成 2×2，宽屏一行四个 */
.sub { display: flex; flex-direction: column; }
.sub .sub-proof { margin: auto 0 0; padding-top: 14px; display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--accent); font-weight: 500; }
.sub .sub-proof svg { flex: none; margin-top: 3px; }
@media (min-width: 860px) {
  .chain.n4 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .chain.n4 .chain-link { display: none; }
}
@media (min-width: 1120px) {
  .chain.n4 { grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr; gap: 0; }
  .chain.n4 .chain-link { display: block; }
  .chain.n4 .sub h3 { font-size: 18px; }
}

/* 项目：分组颜色 */
.pnode[data-cat="制造业 AI 落地"] { --c: var(--accent); --cs: var(--accent-soft); }
.pnode[data-cat="Agent 产品"] { --c: var(--violet); --cs: var(--violet-soft); }
.pnode[data-cat="需求研究"] { --c: var(--rose); --cs: var(--rose-soft); }
.plist { display: grid; gap: 18px; }
.pgrid.two { align-items: start; }
@media (min-width: 760px) { .pgrid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pgrid.two { grid-template-columns: repeat(2, 1fr); } }
.pnode .pmeta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.pmeta .pk, .pmeta .pr { font-size: 12px; line-height: 1.6; padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.pmeta .pk { color: var(--c); background: var(--cs); font-weight: 600; }
.pmeta .pr { color: var(--ink-2); border: 1px solid var(--line); }
.palias-i { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }

/* 主项目大卡片 */
.pfeat { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow); }
.pfeat:hover { transform: none; }
.pflag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #fff; background: var(--accent); padding: 2px 10px; border-radius: 999px; }
.pfeat-body { padding: 22px 18px 20px; }
@media (min-width: 760px) { .pfeat-body { padding: 26px 28px 24px; } }
.pfeat-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; }
.pfeat h3 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25; letter-spacing: .01em; }
.pnode .palias { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.pfeat .pmeta { margin: 0; }
.pnode .pone { margin: 16px 0 20px; font-size: 16px; color: var(--ink-2); max-width: 54em; }

/* 讲解四段：问题 · 判断 · 做法 · 亮点 */
.story { display: grid; gap: 12px; }
@media (min-width: 860px) { .pfeat .story { grid-template-columns: 1fr 1fr; } }
.st { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--node-2); min-width: 0; }
.st-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.st-h span { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--c, var(--accent)); background: var(--cs, var(--accent-soft)); padding: 0 6px; border-radius: 5px; }
.pnode .st p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); flex: none; }
.st ul { margin: 6px 0 0; padding-left: 18px; }
.st li { margin: 3px 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.st li::marker { color: var(--c, var(--accent)); }
.pfeat .tags { margin-top: 18px; }

/* 其他项目：点“展开讲解”就地展开 */
.pmore { border-top: 1px dashed var(--line); }
.pmore summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 16px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--c); border-radius: 0 0 12px 12px; }
.pmore summary::-webkit-details-marker { display: none; }
.pmore summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.pmore[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.pmore summary small { font-size: 12px; font-weight: 400; color: var(--muted); }
.pmore summary:hover { background: var(--node-2); }
.pmore .story { padding: 0 16px 16px; }

/* 方法 */
.m-block + .m-block { margin-top: 30px; }
.m-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; }
.m-title code { font-size: 11.5px; font-weight: 500; color: var(--muted); padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; }
.routes { display: grid; gap: 10px; }
.route { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--node-2); transition: border-color .2s; }
.route:hover { border-color: var(--accent); }
@media (min-width: 900px) {
  .route { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.45fr) 150px; align-items: center; gap: 14px; }
}
.r-when { display: flex; align-items: baseline; gap: 8px; font-weight: 600; font-size: 15px; }
.r-if { font-family: var(--mono); font-size: 11.5px; color: var(--accent); background: var(--accent-soft); padding: 0 6px; border-radius: 5px; flex: none; }
.r-arrow { color: var(--accent); font-weight: 700; text-align: center; display: none; }
@media (min-width: 900px) { .r-arrow { display: block; } }
.r-use b { display: block; font-size: 16px; color: var(--accent); }
.r-use span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.r-eg { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.r-eg span { font-size: 11px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--node-2); }
.s-n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.steps b { display: block; margin: 4px 0 4px; font-size: 16px; }
.steps p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .rules { grid-template-columns: repeat(2, 1fr); } .rules li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.rules li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; color: var(--ink); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--node); }
.rules svg { flex: none; margin-top: 5px; color: var(--ok); }

/* 经历：自我介绍 + 时间线 */
#experience .about { margin-bottom: 26px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.tl { display: grid; grid-template-columns: 1fr; gap: 4px 28px; padding: 20px 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .tl { grid-template-columns: 150px minmax(0, 1fr); } }
.tl-period { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 3px; }
.tl-main h3 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 18px; line-height: 1.5; }
.tl-role { font-size: 14px; font-weight: 600; color: var(--accent); }
.tl-main p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }
.tl-main ul { margin: 8px 0 0; padding-left: 18px; }
.tl-main li { margin: 4px 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.tl-main li::marker { color: var(--accent); }
.tl.edu h3 { font-size: 16px; }
