/* pixrepaint.com · 首页专用样式（index.html 和 en/index.html；其他页面只用 site.css）
   首页是一棵 Nuke 节点树（用户 2026-10-26 定：只首页换新版，其他页面不动）：
   首屏一小段节点图接进大 Viewer，左侧一根管线串起各版块，每个版块挂一个节点。
   彩色 = pixRepaint 节点，灰色 = Nuke 自带节点（沿用流程图的规矩）；底色、文字、品牌蓝都用 site.css 的变量。 */

:root {
  --pipe: #4a505b;   /* 节点之间的连线 */
  --n-nuke: #8e96a3;
  --n-out: #c3c8d1;
  --n-paint: #7fa3ff;
  --n-refs: #d6b77f;
  --n-up: #9ec4a8;
  --n-tool: #b9a3d6;
  --rail: 132px;     /* 管线占的左边宽度 */
}

/* ───────── Nuke 风格的节点小方块 ───────── */
.nk {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 92px; height: 26px; padding: 0 10px;
  font: 600 12px/1 var(--mono); color: #0d0f13; white-space: nowrap;
  background: var(--n-nuke); border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 1px 0 rgba(255, 255, 255, .06);
}
.nk.paint { background: var(--n-paint); }
.nk.refs { background: var(--n-refs); }
.nk.up { background: var(--n-up); }
.nk.tool { background: var(--n-tool); }
.nk.out { background: var(--n-out); }
.nk.blue { background: var(--blue); color: #fff; }
.nk.ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* 用了哪些节点：A → B → C（原来的标签串） */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
.chain .nk { min-width: 0; height: 24px; font-size: 11px; }
.chain i { width: 22px; height: 1px; background: var(--pipe); position: relative; flex: none; }
.chain i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--pipe); border-right: 0; }

/* ───────── 左侧管线：.section 一段接一段，标题旁挂节点 ───────── */
.has-rail { --sec-pad: clamp(56px, 8vw, 104px); }
.has-rail .section > .wrap { position: relative; padding-left: calc(var(--gutter) + var(--rail)); }
/* .section 上下内边距一样，管线往上下各伸出一个内边距，首尾相接；最后一段只画到 Write1 */
.has-rail .section > .wrap::before { content: ""; position: absolute; left: calc(var(--gutter) + 46px); top: calc(-1 * var(--sec-pad)); bottom: calc(-1 * var(--sec-pad)); border-left: 1.5px solid var(--pipe); }
.has-rail .section.rail-end > .wrap::before { bottom: auto; height: calc(var(--sec-pad) + 8px); }
.has-rail .section-head { position: relative; }
.has-rail .section-head .eyebrow { display: none; }   /* 节点名代替了小标题 */
.has-rail .rail-only { margin: 0; height: 0; }
.has-rail .section-head > .rail-nk { position: absolute; left: calc(-1 * var(--rail)); top: 8px; width: 94px; min-width: 0; }
.has-rail .section-head > .rail-nk::before { content: ""; position: absolute; left: 50%; top: -9px; margin-left: -5px; border: 5px solid transparent; border-top: 7px solid var(--pipe); border-bottom: 0; }
.has-rail .section-head > .rail-nk::after { content: ""; position: absolute; left: 100%; top: 50%; width: 30px; border-top: 1px dashed var(--pipe); }
@media (max-width: 1100px) {
  .has-rail .section > .wrap { padding-left: var(--gutter); }
  .has-rail .section > .wrap::before, .has-rail .rail-only { display: none; }
  .has-rail .section-head > .rail-nk { position: static; justify-self: start; width: auto; }
  .has-rail .section-head > .rail-nk::before, .has-rail .section-head > .rail-nk::after { display: none; }
}

/* ───────── 属性面板（Nuke 的 Properties） ───────── */
.v3-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.v3-panel > header { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--raised); border-bottom: 1px solid var(--line); font: 600 var(--t-12)/1.4 var(--mono); color: var(--ink-2); }
.v3-panel > header i { width: 8px; height: 8px; border-radius: 2px; background: var(--n-nuke); }
.v3-panel .knobs { margin: 0; border: 0; border-radius: 0; background: transparent; }
.v3-panel .body { padding: 18px 20px; display: grid; gap: 10px; color: var(--ink-2); }
.v3-panel .body ul { padding-left: 1.1em; display: grid; gap: 6px; }
.v3-panel .body p, .v3-panel .body li { color: var(--ink-2); }
.v3-panel .body strong { color: var(--ink); }
.v3-side { display: grid; gap: 20px; align-content: start; }

/* ───────── 首屏：左边标题，右边一小段节点图，Viewer1 的输出接进下面的大 Viewer ───────── */
.v3-hero-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px 56px; }
.v3-hero .hero-copy { max-width: none; }
.v3-hero h1 .h1-em { font-size: clamp(3.25rem, 6.4vw, 5.75rem); font-weight: 800; letter-spacing: -0.035em; }
.v3-hero h1 .h1-main { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.v3-graph { display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.v3-graph svg { width: 100%; height: auto; overflow: visible; }
.v3-graph .flow path { stroke-dasharray: 3 5; animation: v3-flow 1.6s linear infinite; }
@keyframes v3-flow { to { stroke-dashoffset: -16; } }
@media (prefers-reduced-motion: reduce) { .v3-graph .flow path { animation: none; } }
.v3-graph .down { position: absolute; top: 100%; height: clamp(40px, 5vw, 52px); width: 0; border-left: 1.5px solid var(--blue); }
.v3-graph .down::after { content: ""; position: absolute; left: -5.5px; bottom: 0; border: 5px solid transparent; border-top: 7px solid var(--blue); border-bottom: 0; }
@media (max-width: 960px) { .v3-hero-top { grid-template-columns: 1fr; } .v3-graph { max-width: 560px; } }
@media (max-width: 640px) { .v3-graph { display: none; } }
.v3-hero .hero-viewer { margin-top: clamp(40px, 5vw, 52px); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); }
.v3-viewer .wipe-line { border-left-color: var(--blue-text); }
.v3-viewer .wipe-handle { border-color: var(--blue-text); }
.v3-hero .demo-cap { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px 40px; max-width: none; }
.v3-hero .demo-cap p { grid-column: 1; max-width: 54em; }
.v3-hero .demo-cap .chain { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
@media (max-width: 960px) { .v3-hero .demo-cap { grid-template-columns: 1fr; } .v3-hero .demo-cap .chain { grid-column: 1; grid-row: auto; justify-content: flex-start; } }

/* Viewer 下面的帧时间线（播放头由 site.js 跟着视频走） */
.timeline { background: var(--panel); border-top: 1px solid var(--line); padding: 8px 12px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; font: 500 var(--t-12)/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.timeline .track { position: relative; height: 22px; }
.timeline .track::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 30)); }
.timeline .track::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.timeline .head { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-left: 1.5px solid var(--warn); }
.timeline .head::before { content: ""; position: absolute; left: -5px; top: 0; border: 4px solid transparent; border-top: 6px solid var(--warn); border-bottom: 0; }

/* ───────── 效果对比 ───────── */
.compare-card .chain { margin-top: 2px; }

/* ───────── 核心节点：紧凑卡片（节点色块连着一小截输入管线 + 名称 + 一句话），参数见快速入门 ───────── */
.v3-nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.v3-node { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 20px 22px; display: grid; gap: 10px; align-content: start; }
.v3-node .nk { justify-self: start; position: relative; }
.v3-node .nk::before { content: ""; position: absolute; left: 50%; top: -15px; height: 15px; border-left: 1px solid var(--pipe); }
.v3-node h3 { font-size: var(--t-17); margin-top: 4px; }
.v3-node h3 small { font: 500 var(--t-12)/1 var(--mono); color: var(--warn); margin-left: 6px; }
.v3-node p { color: var(--ink-2); font-size: var(--t-13); line-height: 1.75; }
.v3-node.wide { grid-column: span 2; }
.v3-node.wide p { font-size: var(--t-15); max-width: 38em; }
@media (max-width: 1100px) { .v3-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .v3-nodes { grid-template-columns: 1fr; } .v3-node.wide { grid-column: auto; } }
.nodes-more { margin-top: 24px; }
.nodes-more a { font-weight: 600; }
.nodes-more a::after { content: " →"; }

/* ───────── 价格：卡片顶上一条节点色 ───────── */
#pricing .plan { position: relative; overflow: hidden; }
#pricing .plan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--n-nuke); }
#pricing .plan.is-featured::before { background: var(--n-paint); }
#pricing .plan:last-child:not(:first-child)::before { background: var(--n-up); }
#pricing .bill-note { margin-top: 20px; }

/* ───────── 收尾：Write1 ───────── */
.cta-band { background-color: var(--panel); background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 18px 18px; }
