/* 康方 APS 原型 · 页面样式（叠加在主站 styles.css 与 akeso.css 之上） */
#ganttNet { position: absolute; inset: 0; width: 100%; height: 100%; }
.wrap.wide { max-width: 1240px; }

/* 01 工序链 */
.proc { max-width: 920px; margin: 56px auto 0; background: #fff; border-radius: 28px; padding: 22px 20px 10px; }
.proc svg { width: 100%; height: auto; display: block; overflow: visible; }
.proc text { font-family: var(--font); font-size: 14px; font-weight: 600; text-anchor: middle; fill: var(--ink); }
.proc .pr-d { font-size: 12px; font-weight: 500; fill: var(--ink-2); }
.pr-track { stroke: #e5e5ea; stroke-width: 4; }
.pr-prog { stroke: url(#pg); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease) .2s; }
.proc.in .pr-prog { stroke-dashoffset: 0; }
.pr-st rect { fill: #f5f6ff; stroke: #c5cdfa; stroke-width: 1.5; }
.pr-st { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); transition-delay: calc(.2s + var(--i) * .4s); }
.proc.in .pr-st { opacity: 1; transform: none; }
.pr-hold path { fill: #ff9f0a; }
.proc .pr-hold text { font-size: 12px; fill: #c46a00; }
.pr-hold { opacity: 0; transition: opacity .5s; transition-delay: calc(1s + var(--i) * .4s); }
.proc.in .pr-hold { opacity: 1; animation: holdBlink 2.4s 3s infinite; }
@keyframes holdBlink { 50% { opacity: .45; } }
.pr-tok { fill: var(--ak); filter: drop-shadow(0 0 6px rgba(79,107,237,.8)); }
.proc .pr-cap { font-size: 13px; font-weight: 500; fill: var(--ink-2); }
.pains4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.pains4 > div { background: #fff; border-radius: 18px; padding: 18px 20px; }
.pains4 b { display: block; font-size: 26px; letter-spacing: -.02em; color: var(--ak); }
.pains4 span { font-size: 13px; color: var(--ink-2); }
.pains4 .reveal:nth-child(2) { transition-delay: .06s; } .pains4 .reveal:nth-child(3) { transition-delay: .12s; } .pains4 .reveal:nth-child(4) { transition-delay: .18s; }

/* 02 原型应用外框 */
.app { margin-top: 48px; background: #fff; border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.06); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #ececf0; background: #fbfbfd; }
.dots3 { display: flex; gap: 6px; } .dots3 i { width: 11px; height: 11px; border-radius: 50%; background: #e3e3e8; }
.app-bar em { font-style: normal; font-size: 13px; font-weight: 600; }
.app-tag { margin-left: auto; font-size: 11px; color: var(--ink-2); background: var(--bg-light); padding: 3px 9px; border-radius: 980px; }
.app-ctl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 6px; }
.mode { display: flex; gap: 8px; }
.mode button { padding: 8px 16px; border-radius: 980px; font-size: 14px; border: 1px solid var(--line); color: var(--ink-2); transition: all .3s; }
.mode button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.mode button.go { background: var(--ak); border-color: var(--ak); color: #fff; font-weight: 600; }
.mode button.go[aria-pressed="true"] { box-shadow: 0 0 0 4px rgba(79,107,237,.22); }
.evts { display: flex; flex-wrap: wrap; gap: 6px; }
.evt { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 980px; font-size: 12.5px; background: var(--bg-light); color: #3a3a3c; border: 1px solid transparent; transition: all .25s; }
.evt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c7c7cc; transition: background .25s, box-shadow .25s; }
.evt[aria-pressed="true"] { background: #fff4e5; border-color: #ffb340; color: #8a4b00; font-weight: 600; }
.evt[aria-pressed="true"]::before { background: #ff9f0a; box-shadow: 0 0 0 3px rgba(255,159,10,.25); animation: evPulse 1.4s infinite; }
@keyframes evPulse { 50% { box-shadow: 0 0 0 6px rgba(255,159,10,0); } }

/* 甘特图 */
.gwrap { padding: 8px 20px 4px; overflow-x: auto; }
.gantt { min-width: 860px; font-variant-numeric: tabular-nums; }
.gr { display: grid; grid-template-columns: 70px 1fr; align-items: center; height: 24px; }
.gr.sep { margin-top: 8px; }
.gr-l { font-size: 11px; font-weight: 600; color: #3a3a3c; }
.gr-l small { display: block; font-size: 9.5px; font-weight: 500; color: #aeaeb2; line-height: 1; margin-top: -2px; }
.gr-t { position: relative; height: 100%; background: #f7f7f9; border-radius: 4px; }
.gr-h { height: 18px; }
.gr-h .gr-t { background: none; }
.gw { position: absolute; top: 0; font-size: 9.5px; color: #aeaeb2; transform: translateX(2px); }
.gl { position: absolute; top: 0; bottom: 0; width: 1px; background: #ececf0; }
.gfz { position: absolute; top: 0; bottom: 0; left: 0; background: repeating-linear-gradient(135deg, rgba(0,0,0,.025) 0 4px, transparent 4px 8px); }
.gd { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: repeating-linear-gradient(45deg, rgba(255,69,58,.22) 0 4px, transparent 4px 8px); border: 1px solid rgba(255,69,58,.4); }
.gd.bd { background: repeating-linear-gradient(45deg, rgba(255,69,58,.55) 0 4px, transparent 4px 8px); border-color: #ff453a; animation: bdBlink 1.2s infinite; }
@keyframes bdBlink { 50% { border-color: rgba(255,69,58,.3); } }
.gop { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; transform-origin: left; animation: gGrow .5s var(--ease) both; animation-delay: var(--d); cursor: pointer; display: flex; align-items: center; overflow: hidden; transition: opacity .25s, box-shadow .25s; }
@keyframes gGrow { from { transform: scaleX(0); } }
.gop span { font-size: 9.5px; font-weight: 700; color: rgba(255,255,255,.95); padding-left: 3px; white-space: nowrap; }
.gop.seed { opacity: .5; }
.gop.fill { top: 6px; bottom: 6px; }
.gop.co { background: repeating-linear-gradient(45deg, #ff9f0a 0 3px, transparent 3px 6px); cursor: default; }
.gop.clean { background: #d1d1d6; top: 9px; bottom: 9px; cursor: default; }
.gop.late::after { content: ""; position: absolute; right: 2px; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 5px #ff453a; animation: evPulse 1.2s infinite; }
.gantt.sel .gop:not(.on) { opacity: .15; }
.gop.on { box-shadow: 0 0 0 2px #1d1d1f; z-index: 2; }
.g-lg { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--ink-2); padding: 10px 0 6px; }
.g-lg span::before { content: ""; display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 4px; background: var(--c); vertical-align: 0; }
.g-lg .co::before { background: repeating-linear-gradient(45deg, #ff9f0a 0 2px, transparent 2px 4px); }
.g-lg .pm::before { background: repeating-linear-gradient(45deg, rgba(255,69,58,.6) 0 2px, transparent 2px 4px); }
.g-lg .late::before { width: 7px; height: 7px; border-radius: 50%; background: #ff453a; }

/* 批次详情 */
.bdet { margin: 4px 20px 14px; padding: 14px 16px; border-radius: 16px; background: #f5f6ff; border: 1px solid #c5cdfa; animation: tkIn .35s var(--ease); }
@keyframes tkIn { from { opacity: 0; transform: translateY(-6px); } }
.bd-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.bd-h b { font-size: 16px; }
.bd-h .dot { width: 10px; height: 10px; border-radius: 50%; }
.bd-x { margin-left: auto; font-size: 12px; color: var(--blue-link); }
.pill { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 980px; }
.pill.ok { background: #e8f7ee; color: #1a7f37; } .pill.bad { background: #fdecea; color: #c1271c; }
.bd-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 12px; }
.bd-flow > div { position: relative; background: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12px; animation: tkIn .4s var(--ease) both; animation-delay: calc(var(--i) * .07s); }
.bd-flow > div b { display: block; font-size: 12.5px; }
.bd-flow > div span { color: var(--ink-2); font-size: 11px; }
.bd-flow > div.end { background: var(--ak); color: #fff; } .bd-flow > div.end span { color: #dbe2ff; }
.bd-y { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.yb { position: relative; height: 8px; border-radius: 4px; background: #e5e5ea; margin-top: 6px; }
.yb i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #8da2ff, #4f6bed); transform-origin: left; animation: gGrow .7s var(--ease) both; }
.yb em { position: absolute; top: -3px; width: 3px; height: 14px; border-radius: 2px; background: var(--ink); }
.bd-ck { font-size: 12px; color: #1a7f37; display: grid; gap: 2px; }

/* 指标 */
.rkpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #ececf0; }
.rkpis div { padding: 14px 20px; border-right: 1px solid #ececf0; }
.rkpis div:last-child { border-right: 0; }
.rkpis span { display: block; font-size: 12px; color: var(--ink-2); }
.rkpis b { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rkpis em { display: block; font-style: normal; font-size: 12px; font-weight: 600; min-height: 16px; }
.rkpis em.good { color: #1a7f37; } .rkpis em.bad { color: #c1271c; }

/* AI 助理 */
.agent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px 16px; background: #fbfbfd; border-top: 1px solid #ececf0; }
.agent-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #4f6bed, #22b8cf); }
.agent-body { flex: 1; min-width: 0; }
.agent p { font-size: 14px; line-height: 1.6; padding-top: 4px; min-height: 2.6em; }
.agent p b { color: var(--ak); }
.agent p small { display: block; margin-top: 4px; font-size: 11.5px; color: #8e8e93; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.agent p .caret { display: inline-block; width: 7px; height: 15px; background: var(--ak); vertical-align: -2px; margin-left: 2px; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.asks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.asks button { font-size: 12.5px; padding: 5px 12px; border-radius: 980px; background: #fff; border: 1px solid var(--line); color: #3a3a3c; transition: all .2s; }
.asks button:hover { border-color: var(--ak); color: var(--ak); }
.asks button.apply { background: var(--ak); border-color: var(--ak); color: #fff; font-weight: 600; }

/* 需求池 */
.dem { border-top: 1px solid #ececf0; padding: 12px 20px 14px; }
.dem-h { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.dem-h span { color: var(--ink-2); font-size: 12px; }
.dem-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.dm { border-radius: 12px; padding: 8px 10px; background: var(--bg-light); font-size: 11.5px; line-height: 1.4; border-left: 3px solid var(--c); }
.dm b { font-size: 12.5px; }
.dm .st { float: right; font-weight: 700; color: #1a7f37; }
.dm.late .st { color: #c1271c; }
.dm span { display: block; color: var(--ink-2); }

/* 审批 */
.appr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 16px; border-top: 1px solid #ececf0; background: #fbfbfd; }
.ap-steps { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #aeaeb2; flex-wrap: wrap; }
.ap-steps span { padding: 4px 10px; border-radius: 980px; background: #f2f2f7; transition: all .35s; }
.ap-steps span.on { background: var(--ak); color: #fff; font-weight: 600; }
.ap-steps i { width: 16px; height: 2px; background: #e5e5ea; }
.ap-btn { padding: 8px 18px; border-radius: 980px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.ap-btn:disabled { opacity: .5; cursor: default; }

/* 03 算法小动图 */
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stage { background: #1d1d1f; border-radius: var(--radius); padding: 22px; }
.sg { width: 100%; height: auto; display: block; background: #111113; border-radius: 12px; padding: 6px; margin-bottom: 14px; overflow: visible; }
.sg text { font-family: var(--font); font-size: 8.5px; fill: #ff9f0a; text-anchor: middle; font-weight: 600; }
.sg-n { font-size: 12px; font-weight: 700; color: var(--ak-2); }
.stage h3 { font-size: 20px; margin: 2px 0 6px; }
.stage p:last-child { font-size: 14px; color: var(--ink-inv-2); }
.pipe .reveal:nth-child(2) { transition-delay: .08s; } .pipe .reveal:nth-child(3) { transition-delay: .16s; } .pipe .reveal:nth-child(4) { transition-delay: .24s; }
.cn-a, .cn-b, .cn-c, .cn-d { transform-box: fill-box; transform-origin: left; animation: cnGrow 4s infinite var(--ease); }
.cn-a { fill: #8da2ff; } .cn-b { fill: #4f6bed; animation-delay: .4s; } .cn-c { fill: #22b8cf; animation-delay: .9s; } .cn-d { fill: #2fb380; animation-delay: 1.2s; }
@keyframes cnGrow { 0% { transform: scaleX(0); } 20%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: .3; } }
.cn-hold { fill: none; stroke: #ff9f0a; stroke-width: 1.5; }
.cn-base { stroke: #3a3a3c; stroke-width: 1.5; stroke-dasharray: 3 3; }
.cp-row.r1 { animation: cpOut 4s infinite; } .cp-row.r2 { animation: cpIn 4s infinite; }
@keyframes cpOut { 0%, 30% { opacity: 1; } 50%, 100% { opacity: .25; } }
@keyframes cpIn { 0%, 30% { opacity: .15; } 55%, 100% { opacity: 1; } }
.cp-arr { stroke: #8da2ff; stroke-width: 2; stroke-dasharray: 3 3; animation: dashMove 1s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -6; } }
.ls-cv { fill: none; stroke: #3a3a3c; stroke-width: 2; }
.ls-dot { fill: #8da2ff; filter: drop-shadow(0 0 4px #8da2ff); }
.sg-ls text { fill: #2fb380; }
.ev-lane { fill: #1c1c1e; }
.ev-x { fill: rgba(255,69,58,.35); stroke: #ff453a; stroke-dasharray: 3 2; }
.ev-mv { animation: evMove 3.6s infinite var(--ease); }
@keyframes evMove { 0%, 25% { transform: none; } 55%, 100% { transform: translate(14px, 24px); } }
.ev-warn { fill: #ff9f0a; animation: piBlink 1s infinite; }
@keyframes piBlink { 50% { opacity: .2; } }
.cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.cons > div { background: #1d1d1f; border-radius: var(--radius); padding: 22px 24px; }
.cons-k { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.cons-k.hard { color: #ff6961; } .cons-k.soft { color: var(--ak-2); }
.cons li { font-size: 15px; color: #e5e5ea; padding: 6px 0; border-top: 1px solid #2c2c2e; }
.cons li:first-child { border-top: 0; }

/* 04 人审闭环 */
.loop4 { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.loop4 > div { position: relative; background: #fff; border-radius: var(--radius); padding: 24px 20px; text-align: center; opacity: .35; transition: opacity .5s, transform .5s var(--ease); transition-delay: calc(.2s + var(--i) * .45s); }
.loop4.in > div { opacity: 1; animation: lpGlow 7.2s infinite; animation-delay: calc(2s + var(--i) * 1.8s); }
@keyframes lpGlow { 0% { box-shadow: 0 0 0 2px var(--ak), 0 16px 30px -14px rgba(79,107,237,.6); transform: translateY(-4px); } 22%, 100% { box-shadow: none; transform: none; } }
.loop4 > div:not(:last-child)::after { content: "›"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--ak); }
.lp-ic { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 14px; background: #eef1ff; color: var(--ak); font-size: 20px; font-weight: 700; }
.loop4 b { display: block; font-size: 18px; }
.loop4 p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* 05 落地 */
.cohort { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; margin: 48px auto 0; }
.cohort div { background: var(--bg-light); border-radius: 18px; padding: 18px; text-align: center; }
.cohort b { display: block; font-size: 36px; letter-spacing: -.02em; color: var(--ak); }
.cohort span { font-size: 13px; color: var(--ink-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 1068px) {
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .dem-list { grid-template-columns: repeat(3, 1fr); }
  .bd-flow { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 833px) {
  .pains4 { grid-template-columns: repeat(2, 1fr); }
  .rkpis { grid-template-columns: repeat(2, 1fr); }
  .rkpis div:nth-child(2) { border-right: 0; }
  .rkpis div:nth-child(-n+2) { border-bottom: 1px solid #ececf0; }
  .cons { grid-template-columns: 1fr; }
  .loop4 { grid-template-columns: repeat(2, 1fr); }
  .loop4 > div::after { display: none; }
  .dem-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pipe { grid-template-columns: 1fr; }
  .app { margin-left: -6px; margin-right: -6px; border-radius: 18px; }
  .app-ctl { padding: 14px 12px 4px; }
  .mode { width: 100%; } .mode button { flex: 1; padding: 8px; font-size: 13px; }
  .gwrap { padding: 8px 12px 4px; }
  .bdet { margin: 4px 12px 12px; }
  .bd-flow { grid-template-columns: repeat(2, 1fr); }
  .bd-y { grid-template-columns: 1fr; }
  .rkpis div { padding: 12px 14px; } .rkpis b { font-size: 22px; }
  .agent { padding: 12px 14px 14px; }
  .dem { padding: 12px 14px; }
  .appr { padding: 12px 14px 14px; }
  .proc { padding: 12px 8px 4px; border-radius: 20px; }
  .proc text { font-size: 18px; } .proc .pr-d, .proc .pr-hold text { font-size: 15px; } .proc .pr-cap { font-size: 16px; }
  .cohort b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-prog { stroke-dashoffset: 0; } .pr-st, .pr-hold { opacity: 1; transform: none; }
  .loop4 > div { opacity: 1; }
}
.dm em { font-style: normal; }
