/* =========================================================================
   3D 打印副业前期方案 — 设计系统
   深色优先 · 护眼 · 全图形化 · 离线可用
   ========================================================================= */

:root {
  /* 底色与表面 */
  --bg:        #0a0c11;
  --bg-2:      #0e1117;
  --surface:   #141a24;
  --surface-2: #1a2230;
  --border:    #243044;
  --border-2:  #2f3e57;

  /* 文本 */
  --text:      #e7eef7;
  --text-dim:  #97a4b8;
  --text-faint:#5f6c82;

  /* 强调色：橙=热/打印主线，青=技术，紫=海外副线 */
  --accent:    #ff8a3d;   /* filament orange */
  --accent-2:  #ffb066;
  --cyan:      #38bdf8;
  --violet:    #a78bfa;
  --green:     #34d399;
  --amber:     #fbbf24;
  --red:       #f87171;

  --grad-warm: linear-gradient(135deg, #ff8a3d 0%, #ff5e62 100%);
  --grad-cool: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --grad-violet: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, Menlo, monospace;

  /* 尺度 */
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px -12px rgba(0,0,0,.6);
  --shadow-glow: 0 0 0 1px var(--border), 0 18px 50px -20px rgba(255,138,61,.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(255,138,61,.10), transparent 60%),
    radial-gradient(1000px 600px at -10% 20%, rgba(56,189,248,.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(255,138,61,.3); }

/* 滚动条 */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3c4f6e; }

/* ============================ 布局原子 ============================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

section { padding: 96px 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 700; margin-bottom: 14px;
}
.eyebrow::before { content:""; width: 28px; height: 2px; background: var(--grad-warm); border-radius:2px;}

h1,h2,h3,h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.section-title { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.section-sub { color: var(--text-dim); font-size: 16px; max-width: 720px; margin-bottom: 44px; }

.layer-tag {
  font-family: var(--mono); font-size: 13px; color: var(--text-faint);
  font-weight: 700;
}

/* ============================ 导航 ============================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,12,17,.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--grad-warm); box-shadow: 0 0 14px var(--accent); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--text-dim); font-size: 14px; font-weight: 600; padding: 7px 13px;
  border-radius: 999px; transition: .2s; text-decoration: none; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

/* 汉堡按钮（仅移动端显示） */
.nav-toggle {
  display: none; width: 42px; height: 36px; border: 1px solid var(--border-2);
  border-radius: 10px; background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.nav-toggle .nt-bars, .nav-toggle .nt-bars::before, .nav-toggle .nt-bars::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text);
  border-radius: 2px; transition: .25s; position: relative;
}
.nav-toggle .nt-bars::before { position: absolute; top: -6px; }
.nav-toggle .nt-bars::after  { position: absolute; top: 6px; }
.nav-toggle.active .nt-bars { background: transparent; }
.nav-toggle.active .nt-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .nt-bars::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14,17,23,.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; padding: 0;
    transition: max-height .32s ease, padding .32s ease;
  }
  .nav-links.open { max-height: 60vh; padding: 8px 0; }
  .nav-links a { border-radius: 0; padding: 14px 22px; font-size: 15px; }
  .nav-links a:hover { background: var(--surface); }
}

/* ============================ Hero ============================ */
.hero { padding: 120px 0 90px; text-align: left; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .4; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 500px at 70% 30%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(30px, 5.5vw, 60px); line-height: 1.08;
  max-width: 16ch; margin-bottom: 22px;
}
.hero h1 .hl { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead {
  font-size: clamp(16px,2vw,20px); color: var(--text-dim); max-width: 60ch; margin-bottom: 34px;
}
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border-2);
  padding: 9px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--text);
}
.badge .b-ico { font-size: 15px; }
.badge.warm { border-color: rgba(255,138,61,.45); background: rgba(255,138,61,.08); }
.badge.cool { border-color: rgba(56,189,248,.4);  background: rgba(56,189,248,.07); }
.badge.no   { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.07); color:#fca5a5;}

.scroll-hint {
  display: inline-flex; align-items: center; gap: 9px; color: var(--text-faint);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-top: 8px;
}
.scroll-hint .arrow {
  width: 22px; height: 22px; border: 2px solid var(--text-faint); border-radius: 50%;
  display: grid; place-items: center;
}
.scroll-hint .arrow::after { content:"↓"; }

/* ============================ 通用卡片 ============================ */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card.hover:hover { border-color: var(--border-2); transform: translateY(-3px); transition:.25s; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px){ .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.pill { display:inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight:700; }
.pill.warm { background: rgba(255,138,61,.14); color: var(--accent-2); }
.pill.cool { background: rgba(56,189,248,.14); color: var(--cyan); }
.pill.violet{ background: rgba(167,139,250,.16); color: var(--violet); }
.pill.green { background: rgba(52,211,153,.15); color: var(--green); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  cursor: pointer; transition: .2s; text-decoration: none;
}
.btn:hover { background: var(--surface-2); text-decoration:none; transform: translateY(-2px); }
.btn.primary { background: var(--grad-warm); border: none; color: #1a0d04; }
.btn.primary:hover { filter: brightness(1.08); }
.btn .ar { transition:.2s; }
.btn:hover .ar { transform: translateX(3px); }

/* ============================ 演进时间线（横向） ============================ */
.evo {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 12px;
}
.evo::before {
  content:""; position:absolute; top: 26px; left: 6%; right: 6%; height: 3px;
  background: var(--border); border-radius: 3px;
}
.evo-line {
  position:absolute; top:26px; left:6%; height:3px; width: 0; border-radius:3px;
  background: var(--grad-warm); box-shadow: 0 0 12px var(--accent);
}
.evo-step { text-align: center; padding: 0 12px; position: relative; opacity: .35; }
.evo-step .node {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  background: var(--surface); border: 3px solid var(--border-2); color: var(--text-dim);
  position: relative; z-index: 2; transition: .35s;
}
.evo-step .e-title { font-weight: 800; font-size: 15px; margin-bottom: 7px; }
.evo-step .e-desc { font-size: 13px; color: var(--text-dim); }
.evo-step.on { opacity: 1; }
.evo-step.on .node { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 22px -2px var(--accent); }
@media (max-width: 860px){
  .evo { grid-template-columns: 1fr; gap: 6px; }
  .evo::before, .evo-line { display:none; }
  .evo-step { display:flex; gap:16px; text-align:left; align-items:flex-start; padding: 10px 0; }
  .evo-step .node { margin: 0; flex: 0 0 auto; width:44px; height:44px; font-size:16px;}
}

/* ============================ 产能漏斗 ============================ */
.funnel { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 10px; }
.funnel-row {
  display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%;
}
.funnel-bar {
  height: 64px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; color: #1a0d04; font-weight: 800; background: var(--grad-warm);
  box-shadow: var(--shadow); transition: width .1s linear; min-width: 180px;
}
.funnel-bar .fnum { font-family: var(--mono); font-size: 22px; }
.funnel-bar .flabel { font-size: 13.5px; opacity:.85; }
.funnel-cut { font-size: 13px; color: var(--text-faint); font-weight: 700; }
.funnel-bar.b1 { width: 100%; }
.funnel-bar.b2 { width: 80%; background: linear-gradient(135deg,#ff9a52,#ff7a45);}
.funnel-bar.b3 { width: 62%; background: linear-gradient(135deg,#ffae6b,#ff8a3d);}
.funnel-bar.b4 { width: 46%; background: linear-gradient(135deg,#34d399,#10b981); color:#04130d;}

/* ============================ 验证命题卡 ============================ */
.prop-icon {
  width: 50px; height: 50px; border-radius: 13px; display:grid; place-items:center;
  font-size: 24px; margin-bottom: 16px;
}
.prop-icon.p1 { background: rgba(255,138,61,.15); }
.prop-icon.p2 { background: rgba(56,189,248,.15); }
.prop-icon.p3 { background: rgba(52,211,153,.15); }
.prop h3 { font-size: 19px; margin-bottom: 8px; }
.prop .q { color: var(--text-dim); font-size: 14.5px; margin-bottom: 14px; }
.prop .metric { font-family: var(--mono); font-size: 13px; color: var(--text-faint); border-top: 1px dashed var(--border); padding-top: 12px;}
.prop .metric b { color: var(--accent-2); }

/* ============================ 调研结论卡 ============================ */
.research-card { display:flex; flex-direction: column; }
.rc-head { display:flex; align-items:center; gap: 12px; margin-bottom: 16px; }
.rc-num {
  font-family: var(--mono); font-size: 13px; font-weight: 800; color: #1a0d04;
  background: var(--accent); width: 30px; height: 30px; border-radius: 8px; display:grid; place-items:center;
}
.rc-title { font-size: 18px; font-weight: 800; }
.tldr {
  background: rgba(255,138,61,.07); border-left: 3px solid var(--accent);
  padding: 12px 15px; border-radius: 0 10px 10px 0; font-size: 14px; color: var(--text); margin-bottom: 18px;
}
.tldr b { color: var(--accent-2); }

/* 数据条形可视化 */
.databars { display:flex; flex-direction: column; gap: 12px; margin: 4px 0 18px; }
.dbar-label { display:flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.dbar-label .v { font-family: var(--mono); font-weight: 800; color: var(--cyan); }
.dbar-track { height: 10px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.dbar-fill { height: 100%; width: 0; border-radius: 6px; background: var(--grad-cool); }
.dbar-fill.warm { background: var(--grad-warm); }
.dbar-fill.violet { background: var(--grad-violet); }

/* 竞品矩阵 */
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix th, .matrix td { padding: 9px 11px; border: 1px solid var(--border); text-align: center; }
.matrix th { background: var(--surface-2); color: var(--text-dim); font-weight: 700; }
.matrix td.you { background: rgba(52,211,153,.12); color: var(--green); font-weight: 800; }
.matrix .yes { color: var(--green); } .matrix .no { color: var(--red); }

/* 风险梯度条 */
.riskbar { display:flex; border-radius: 10px; overflow: hidden; margin: 6px 0 14px; font-size: 11.5px; font-weight: 700;}
.riskbar > div { padding: 9px 6px; text-align:center; color:#0a0c11; }
.r1{background:#f87171;} .r2{background:#fb923c;} .r3{background:#fbbf24;} .r4{background:#a3e635;} .r5{background:#34d399;}

/* ============================ 11 问网格 ============================ */
.q-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 8px; }
@media(max-width:860px){ .q-grid{ grid-template-columns:1fr; } }
.q-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; cursor: pointer; transition: .2s; position: relative;
}
.q-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.q-item .q-n { font-family: var(--mono); font-size: 12px; color: var(--accent-2); font-weight:800; }
.q-item .q-t { font-weight: 700; font-size: 15px; margin: 6px 0; }
.q-item .q-a { font-size: 13.5px; color: var(--text-dim); max-height: 0; overflow: hidden; transition: max-height .3s ease, margin .3s; opacity:0; }
.q-item.open .q-a { max-height: 220px; opacity:1; margin-top: 8px; }
.q-item .q-toggle { position:absolute; top: 14px; right: 14px; color: var(--text-faint); transition:.25s; }
.q-item.open .q-toggle { transform: rotate(45deg); color: var(--accent); }

/* ============================ 阶段漏斗 M1-M3 ============================ */
.phases { display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 10px; }
@media(max-width:860px){ .phases{ grid-template-columns:1fr; } }
.phase-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; overflow:hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.phase-card::before { content:""; position:absolute; top:0; left:0; right:0; height:4px; }
.phase-card.m1::before { background: var(--grad-warm); }
.phase-card.m2::before { background: var(--grad-cool); }
.phase-card.m3::before { background: var(--grad-violet); }
.phase-tag { font-family: var(--mono); font-weight:800; font-size: 14px; letter-spacing:.1em; }
.phase-card.m1 .phase-tag{color:var(--accent);} .phase-card.m2 .phase-tag{color:var(--cyan);} .phase-card.m3 .phase-tag{color:var(--violet);}
.phase-h { font-size: 18px; font-weight: 800; margin: 4px 0 16px; }
.phase-block { margin-bottom: 14px; }
.phase-block .pb-k { font-size: 12px; text-transform: uppercase; letter-spacing:.1em; color: var(--text-faint); font-weight:700; margin-bottom: 4px; }
.phase-block .pb-v { font-size: 14px; color: var(--text); }
.gate { display:inline-flex; align-items:center; gap:7px; font-size: 12.5px; font-weight:800; padding: 6px 12px; border-radius: 8px;
  background: rgba(251,191,36,.12); color: var(--amber); border:1px solid rgba(251,191,36,.3); }

/* ============================ 决策树 ============================ */
.tree-signals { display:flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.signal-btn {
  display:flex; flex-direction: column; gap:4px; align-items:flex-start;
  padding: 16px 20px; border-radius: 14px; cursor: pointer; min-width: 200px;
  background: var(--surface); border: 2px solid var(--border); transition:.2s;
}
.signal-btn:hover { transform: translateY(-2px); }
.signal-btn .s-k { font-size: 12px; color: var(--text-faint); font-weight:700; text-transform:uppercase; letter-spacing:.08em;}
.signal-btn .s-t { font-weight: 800; font-size: 16px; }
.signal-btn .s-hint{ font-size:12.5px; color: var(--text-dim);}
.signal-btn.active { border-color: var(--accent); background: rgba(255,138,61,.08); box-shadow: 0 0 24px -6px var(--accent); }
.tree-out {
  border: 1px dashed var(--border-2); border-radius: var(--radius); padding: 22px; min-height: 120px;
  background: var(--bg-2);
}
.branch { display:flex; gap: 14px; align-items:flex-start; padding: 12px 0; border-bottom:1px solid var(--border); }
.branch:last-child{ border-bottom:none; }
.branch .b-cond { flex: 0 0 130px; font-weight: 800; font-size: 13.5px; }
.branch .b-act  { font-size: 14px; color: var(--text-dim); }
.branch.go    .b-cond{ color: var(--green); }
.branch.scale .b-cond{ color: var(--cyan); }
.branch.hold  .b-cond{ color: var(--amber); }
.branch.kill  .b-cond{ color: var(--red); }
.tree-empty { color: var(--text-faint); text-align:center; padding: 24px; font-size: 14px; }

/* ============================ W0-W4 时间轴 ============================ */
.weeks { position: relative; margin-top: 16px; }
.weeks::before { content:""; position:absolute; left: 26px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.week {
  display:flex; gap: 22px; padding: 14px 0; position: relative; opacity:.4; transition:.4s;
}
.week.on { opacity: 1; }
.week .w-dot {
  flex: 0 0 54px; height: 54px; border-radius: 50%; display:grid; place-items:center;
  background: var(--surface); border: 3px solid var(--border-2); font-family:var(--mono); font-weight:800;
  color: var(--text-dim); z-index:2; transition:.4s; font-size:14px;
}
.week.on .w-dot { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 18px -3px var(--cyan); }
.week .w-body { flex:1; padding-top: 4px; }
.week .w-h { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.week .w-tasks { font-size: 14px; color: var(--text-dim); }
.week .w-tasks li { margin-left: 18px; margin-bottom: 3px; }

/* ============================ 泳道分工 ============================ */
.lanes { display:grid; grid-template-columns: 110px 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow:hidden; margin-top: 12px; }
.lane-h { padding: 14px 16px; font-weight: 800; background: var(--surface-2); border-bottom:1px solid var(--border); }
.lane-h.who { background: var(--bg-2); }
.lane-row-label { display:flex; align-items:center; padding: 14px 16px; font-size:13px; font-weight:700; color: var(--text-dim); border-bottom:1px solid var(--border); background: var(--bg-2);}
.lane-cell { padding: 14px 16px; border-bottom:1px solid var(--border); border-left:1px solid var(--border); font-size: 13.5px; }
.lane-cell .pill { margin: 3px 4px 3px 0; }
.lane-cell.lw { background: rgba(255,138,61,.04); }
.lane-cell.lp { background: rgba(56,189,248,.04); }
@media(max-width:760px){ .lanes{ grid-template-columns: 1fr; } .lane-h.who{display:none;} }

/* ============================ 计算器 ============================ */
.calc { display:grid; grid-template-columns: 1.1fr .9fr; gap: 22px; margin-top: 10px; }
@media(max-width:860px){ .calc{ grid-template-columns:1fr; } }
.calc-inputs { display:flex; flex-direction: column; gap: 16px; }
.field { }
.field label { display:flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 7px; color: var(--text-dim); font-weight:600;}
.field label .fv { font-family: var(--mono); color: var(--accent-2); font-weight:800; }
.field input[type=range]{ width: 100%; accent-color: var(--accent); height: 5px; }
.field .num-in {
  background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text);
  border-radius: 8px; padding: 9px 12px; width: 100px; font-family: var(--mono); font-weight:700; font-size:14px;
}
.field .row { display:flex; align-items:center; gap: 10px; }
.calc-out {
  background: linear-gradient(160deg, rgba(255,138,61,.1), var(--bg-2));
  border: 1px solid rgba(255,138,61,.3); border-radius: var(--radius); padding: 26px; text-align:center;
  display:flex; flex-direction:column; justify-content:center;
}
.calc-out .co-k { font-size: 13px; color: var(--text-dim); text-transform:uppercase; letter-spacing:.12em; font-weight:700;}
.calc-out .co-price { font-family: var(--mono); font-size: 52px; font-weight: 800; color: var(--accent); line-height:1.1; margin: 8px 0; }
.calc-out .co-price small { font-size: 24px; color: var(--accent-2); }
.calc-breakdown { margin-top: 18px; border-top:1px dashed var(--border); padding-top: 16px; font-size: 13px; }
.calc-breakdown .cb-row { display:flex; justify-content: space-between; padding: 4px 0; color: var(--text-dim); }
.calc-breakdown .cb-row b { font-family: var(--mono); color: var(--text); }
.calc-breakdown .cb-row.total { color: var(--text); font-weight:800; border-top:1px solid var(--border); margin-top:6px; padding-top:9px;}
.calc-breakdown .cb-row.total b { color: var(--green); }

/* ============================ 预算图 ============================ */
.budget { display:flex; flex-direction:column; gap: 14px; margin-top: 10px; }
.budget-row { display:grid; grid-template-columns: 160px 1fr 90px; align-items:center; gap: 14px; }
.budget-row .br-label { font-size: 14px; font-weight:600; }
.budget-row .br-track { height: 26px; background: var(--surface-2); border-radius: 8px; overflow:hidden;}
.budget-row .br-fill { height:100%; width:0; border-radius:8px; background: var(--grad-warm); display:flex; align-items:center; }
.budget-row .br-val { font-family: var(--mono); font-weight:800; text-align:right; color: var(--accent-2); }
.budget-total { display:flex; justify-content: space-between; align-items:center; margin-top: 8px; padding: 16px 20px; border:1px dashed var(--border-2); border-radius: 12px;}
.budget-total .bt-k{ font-weight:700; color: var(--text-dim);} .budget-total .bt-v{ font-family:var(--mono); font-size: 22px; font-weight:800; color: var(--green);}
@media(max-width:760px){ .budget-row{ grid-template-columns: 1fr; gap:6px;} .budget-row .br-val{text-align:left;} }

/* ============================ 页脚 / 工具条 ============================ */
.footer { border-top: 1px solid var(--border); padding: 50px 0 90px; color: var(--text-faint); font-size: 13px; }
.footer .f-grid { display:flex; justify-content: space-between; align-items:flex-start; gap:30px; flex-wrap:wrap; }

.toolbar {
  position: fixed; right: 22px; bottom: 22px; z-index: 100;
  display:flex; gap: 10px; align-items:center;
  background: rgba(20,26,36,.92); backdrop-filter: blur(12px);
  border: 1px solid var(--border-2); border-radius: 999px; padding: 9px 12px;
  box-shadow: var(--shadow);
}
.toolbar .tb-btn {
  display:inline-flex; align-items:center; gap:7px; cursor:pointer; border:none;
  background: transparent; color: var(--text-dim); font-weight:700; font-size: 13.5px;
  padding: 7px 13px; border-radius: 999px; transition:.2s; font-family: var(--font);
}
.toolbar .tb-btn:hover { color: var(--text); background: var(--surface); }
.toolbar .tb-btn.active { background: var(--grad-warm); color:#1a0d04; }
.toolbar .tb-sep { width:1px; height: 22px; background: var(--border-2); }
.toolbar .tb-ico { font-size: 15px; }
@media(max-width:520px){ .toolbar{ right:12px; bottom:12px; left:12px; justify-content:center;} }

/* 编辑模式态 */
body.edit-mode [data-edit] {
  outline: 1px dashed rgba(56,189,248,.5); outline-offset: 4px; border-radius: 4px;
  transition: outline-color .2s; cursor: text;
}
body.edit-mode [data-edit]:hover { outline-color: var(--cyan); background: rgba(56,189,248,.05); }
body.edit-mode [data-edit]:focus { outline: 2px solid var(--cyan); background: rgba(56,189,248,.08); }
.edit-banner {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 90;
  background: var(--grad-cool); color: #04121e; text-align:center; font-weight:700; font-size:13.5px;
  padding: 7px; transform: translateY(-100%); transition: transform .3s;
}
body.edit-mode .edit-banner { transform: translateY(0); }

/* 进场动画初态（JS 会接管；无 JS 时也可见） */
.reveal { opacity: 0; transform: translateY(24px); }
.no-js .reveal, .is-revealed { opacity: 1; transform: none; }

/* ============================ 关键岔路对比卡 ============================ */
.fork { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 0; align-items: stretch; }
.fork-path {
  border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px;
  background: var(--surface); position: relative;
}
.fork-path.muted { opacity: .82; }
.fork-path.chosen { border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.06); box-shadow: 0 0 28px -10px var(--green); }
.fork-path .fp-tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.fork-path.muted .fp-tag { color: var(--text-faint); }
.fork-path.chosen .fp-tag { color: var(--green); }
.fork-path .fp-title { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.fork-path ul { list-style: none; padding: 0; margin: 0; }
.fork-path li { font-size: 13.5px; color: var(--text-dim); padding: 5px 0 5px 18px; position: relative; }
.fork-path li::before { content: "›"; position: absolute; left: 2px; color: var(--accent-2); font-weight: 800; }
.fork-path.muted li.con { color: var(--text-faint); }
.fork-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.fork-mid .fork-node {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); border: 2px solid var(--border-2); color: var(--accent); font-size: 16px; font-weight: 800;
}
.fork-mid .fork-arrow { color: var(--text-faint); font-size: 18px; }
.fork-foot {
  margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.fork-foot .ff-box { border-radius: 12px; padding: 13px 16px; font-size: 13.5px; }
.fork-foot .ff-box.cost { background: rgba(248,113,113,.07); border: 1px solid rgba(248,113,113,.25); }
.fork-foot .ff-box.hedge { background: rgba(56,189,248,.07); border: 1px solid rgba(56,189,248,.25); }
.fork-foot .ff-k { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 5px; }
.fork-foot .ff-box.cost .ff-k { color: #fca5a5; }
.fork-foot .ff-box.hedge .ff-k { color: var(--cyan); }
.fork-foot .ff-box .ff-v { color: var(--text-dim); }
@media (max-width: 760px) {
  .fork { grid-template-columns: 1fr; gap: 12px; }
  .fork-mid { flex-direction: row; padding: 4px 0; }
  .fork-mid .fork-arrow { transform: rotate(90deg); }
  .fork-foot { grid-template-columns: 1fr; }
}

/* 工具提示小标 */
.note { font-size: 12.5px; color: var(--text-faint); }
.divider { height:1px; background: var(--border); margin: 18px 0; }

/* ============================ 移动端整体收敛 ============================ */
@media (max-width: 600px) {
  section { padding: 60px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding: 92px 0 64px; }
  .card { padding: 20px 16px; }
  .section-sub { margin-bottom: 32px; }
  .badges { gap: 8px; }
  .badge { padding: 8px 12px; font-size: 12.5px; }
  .matrix th, .matrix td { padding: 7px 6px; font-size: 12px; }
  .calc-out .co-price { font-size: 42px; }
  .funnel-bar { height: 54px; padding: 0 16px; min-width: 140px; }
  .funnel-bar .fnum { font-size: 18px; }
  /* 表格在窄屏可横向滚动而不撑破布局 */
  .matrix { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
