/* 益丰全链路补货 · 页面样式（叠加在主站 styles.css 之上；原型通用部分与排班页一致） */
.rp { --yf: #00a870; }
.rp .eyebrow { color: var(--yf); }
.rp .hero .eyebrow, .rp .dark .eyebrow { color: #34d399; }
#flowNet { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 痛点：牛鞭效应 */
.bw { max-width: 860px; margin: 56px auto 0; background: #fff; border-radius: 28px; padding: 20px 20px 10px; }
.bw svg { width: 100%; height: auto; display: block; }
.bw text { font-family: var(--font); }
.bw-grid line { stroke: #f0f0f2; }
.bw-title { font-size: 14px; font-weight: 700; fill: var(--ink); }
.bw-l { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.bw-l.l1 { stroke: #00a870; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.bw-l.l2 { stroke: #0071e3; transition: stroke-dashoffset 1.6s var(--ease) .8s; }
.bw-l.l3 { stroke: #ff9f0a; transition: stroke-dashoffset 1.6s var(--ease) 1.4s; }
.bw-lg { display: flex; justify-content: center; gap: 18px; padding: 4px 0 8px; font-size: 13px; font-weight: 600; }
.bw-lg span { opacity: 0; transition: opacity .5s; }
.bw-lg span::before { content: ""; display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: 4px; background: currentColor; }
.bw-lg .t1 { color: #00a870; transition-delay: 1.6s; } .bw-lg .t2 { color: #0071e3; transition-delay: 2.2s; } .bw-lg .t3 { color: #c46a00; transition-delay: 2.8s; }
.bw.in .bw-l { stroke-dashoffset: 0; }
.bw.in .bw-lg span { opacity: 1; }

/* 痛点小图标 */
.pi { display: block; width: 44px; height: 32px; overflow: visible; }
.pi-a { fill: none; stroke: #0071e3; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 60; animation: piDraw 2.6s infinite var(--ease); }
.pi-b { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 3; }
@keyframes piDraw { 0% { stroke-dashoffset: 60; } 60%, 100% { stroke-dashoffset: 0; } }
.pi-c { fill: #ff9f0a; transform-box: fill-box; transform-origin: bottom; animation: piBar 2.4s infinite var(--ease); }
.pi-c.d2 { animation-delay: .2s; fill: #ff453a; } .pi-c.d3 { animation-delay: .4s; fill: #c7c7cc; }
@keyframes piBar { 0%, 100% { transform: scaleY(.4); } 40% { transform: scaleY(1); } }
.pi-d { fill: #e5e5ea; stroke: #8e8e93; }
.pi-x { stroke: #ff453a; stroke-width: 3; stroke-linecap: round; animation: piBlink 1.6s infinite; }
@keyframes piBlink { 50% { opacity: .2; } }
.pi-e { fill: #f2f2f7; stroke: #c7c7cc; }
.pi-f { fill: #ff9f0a; transform-box: fill-box; transform-origin: bottom; animation: piFill 3s infinite var(--ease); opacity: .8; }
@keyframes piFill { 0% { transform: scaleY(.2); } 70%, 100% { transform: scaleY(1); fill: #ff453a; } }
.pi-g { fill: none; stroke: #0071e3; stroke-width: 3; stroke-dasharray: 50; animation: piSpin 1.8s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes piSpin { to { transform: rotate(360deg); } }
.pi-h { stroke: #8e8e93; stroke-width: 2.4; stroke-linecap: round; }

/* 全链路：7 站主链复用主站 .vchain */
.rp-chain { margin-top: 56px; }
.rp-chain .vc-token { background: var(--yf); box-shadow: 0 0 0 5px rgba(0,168,112,.2), 0 0 16px rgba(0,168,112,.7); }
.rp-chain .vc-ai { animation-name: rpAi; font-size: 12.5px; padding: 6px 10px; }
@keyframes rpAi {
  0% { color: #fff; background: var(--yf); border-color: var(--yf); transform: translateY(-3px); box-shadow: 0 8px 20px -6px rgba(0,168,112,.7); }
  22% { color: #047857; background: #ecfdf5; border-color: #a7f3d0; transform: none; box-shadow: none; }
  100% { color: var(--ink-2); background: #fff; border-color: var(--line); }
}
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.cap { background: var(--bg-light); border-radius: 20px; padding: 20px; }
.cap h3 { font-size: 18px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12.5px; padding: 4px 10px; border-radius: 980px; background: #fff; color: #3a3a3c; }
.caps .reveal:nth-child(3n+2) { transition-delay: .06s; } .caps .reveal:nth-child(3n+3) { transition-delay: .12s; }

/* 原型：图表 + 侧栏 */
.sku-note { padding: 10px 20px 0; font-size: 13px; color: var(--ink-2); }
.app-body { display: grid; grid-template-columns: 1fr 240px; gap: 20px; padding: 14px 20px 20px; }
.chart-wrap { min-width: 0; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); font-size: 10px; fill: #8e8e93; }
.chart .c-grid { stroke: #f0f0f2; }
.chart .c-zone { fill: rgba(255,159,10,.10); }
.chart .c-zone-t { font-size: 10.5px; font-weight: 600; fill: #c46a00; }
.chart .c-dm { fill: #e5e5ea; }
.chart .c-lost { fill: #ff453a; }
.chart .c-inv { fill: rgba(0,113,227,.16); stroke: #0071e3; stroke-width: 2; }
.chart .c-dc { fill: none; stroke: #ff9f0a; stroke-width: 2; stroke-dasharray: 5 4; }
.chart .c-fc { fill: none; stroke: #00a870; stroke-width: 2.4; }
.chart .c-shock { fill: #ff453a; font-size: 10px; font-weight: 700; }
.chart .c-now { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-lg { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--ink-2); margin-top: 6px; }
.chart-lg span::before { content: ""; display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }
.lg-dm::before { background: #e5e5ea; } .lg-lost::before { background: #ff453a; } .lg-inv::before { background: rgba(0,113,227,.35); }
.lg-dc::before { background: repeating-linear-gradient(90deg, #ff9f0a 0 4px, transparent 4px 6px); height: 3px !important; vertical-align: 2px !important; }
.lg-fc::before { background: #00a870; height: 3px !important; vertical-align: 2px !important; }
.app[data-mode="base"] .lg-fc { display: none; }

.side { background: var(--bg-light); border-radius: 16px; padding: 14px; align-self: start; }
.day { display: flex; align-items: baseline; gap: 4px; font-size: 13px; color: var(--ink-2); }
.day b { font-size: 30px; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 1.4em; text-align: center; }
.replay { margin-left: auto; font-size: 12px; color: var(--blue-link); padding: 4px 8px; border-radius: 980px; }
.replay:hover { background: #e8e8ed; }
.side-k { font-size: 11px; font-weight: 700; color: var(--ink-2); margin: 12px 0 6px; letter-spacing: .04em; }
.cv-row { display: grid; grid-template-columns: 52px 1fr 34px; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 5px; }
.cv-row div { height: 10px; background: #e5e5ea; border-radius: 5px; overflow: hidden; }
.cv-row i { display: block; height: 100%; border-radius: 5px; transition: width .15s linear, background .3s; }
.cv-row b { text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; }
.cv-row.dc { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e5e5ea; }
.ticker { display: grid; gap: 6px; min-height: 118px; }
.ticker li { font-size: 12px; line-height: 1.4; display: flex; gap: 6px; animation: tkIn .4s var(--ease); }
.ticker li i { flex: none; font-style: normal; font-size: 10px; font-weight: 700; color: #fff; border-radius: 5px; padding: 1px 5px; height: 16px; }
.ticker li i.po { background: #ff9f0a; } .ticker li i.tr { background: #00a870; } .ticker li i.in { background: #0071e3; }
.ticker li span { color: var(--ink-2); }
@keyframes tkIn { from { opacity: 0; transform: translateY(-6px); } }
.agent p b.bad { color: #c1271c; }
.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; }

/* 算法小动图 */
.sg text { font-family: var(--font); font-size: 8.5px; fill: #fff; text-anchor: middle; font-weight: 600; }
.rt-in { fill: #34d399; }
.rt-ln { fill: none; stroke: #3a3a3c; stroke-width: 1.5; }
.rt-b { fill: #1f3a5f; } .rt-b.b2 { fill: #5c3a0a; } .rt-b.b3 { fill: #3d2a5c; }
.rt-dot { fill: #34d399; }
.mq-track { fill: #2c2c2e; }
.mq-raw { fill: #5b9bf0; transform-box: fill-box; transform-origin: left; animation: mqRaw 3.2s infinite var(--ease); }
@keyframes mqRaw { 0% { transform: scaleX(0); } 30%, 100% { transform: scaleX(.42); } }
.mq-packs rect { fill: #34d399; opacity: 0; animation: mqPack 3.2s infinite; }
.mq-packs rect:nth-child(2) { animation-delay: .15s; } .mq-packs rect:nth-child(3) { animation-delay: .3s; } .mq-packs rect:nth-child(4) { animation-delay: .45s; } .mq-packs rect:nth-child(5) { animation-delay: .6s; }
@keyframes mqPack { 0%, 35% { opacity: 0; transform: translateY(-6px); } 45%, 100% { opacity: 1; transform: none; } }
.mq-moq { stroke: #ff9f0a; stroke-width: 1.5; stroke-dasharray: 3 3; }
.sg .mq-t { fill: #ff9f0a; text-anchor: start; }
.ec-s { fill: #ff9f0a; } .ec-w, .ec-w2 { fill: #0071e3; } .ec-st { fill: #34d399; }
.ec-ln { fill: none; stroke: #3a3a3c; stroke-width: 1.4; }
.ec-dot { fill: #fff; } .ec-dot.o { fill: #ff9f0a; }
.sm-band { fill: rgba(52,211,153,.2); }
.sm-mid { fill: none; stroke: #34d399; stroke-width: 2.2; stroke-dasharray: 1; animation: smDraw 3s infinite; }
@keyframes smDraw { 0% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }
.sm-warn { fill: #ff453a; animation: smWarn 1.2s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes smWarn { 50% { transform: scale(1.6); opacity: .4; } }
.rp .footer a { display: inline; margin-right: 16px; color: var(--blue-link); }

.facts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 40px; text-align: center; }
.facts b { display: block; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; }
.facts span { font-size: 13px; color: var(--ink-2); }

.pains { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 48px; }
.pain { background: #fff; border-radius: 18px; padding: 20px 18px; }
.pain b { display: block; font-size: 16px; margin: 12px 0 4px; }
.pain p { font-size: 13px; color: var(--ink-2); }
.pains .reveal:nth-child(2) { transition-delay: .06s; } .pains .reveal:nth-child(3) { transition-delay: .12s; }
.pains .reveal:nth-child(4) { transition-delay: .18s; } .pains .reveal:nth-child(5) { transition-delay: .24s; }


/* 原型应用 */
.app { margin-top: 56px; 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 0; }
.app-ctl .seg { margin: 0; }
.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(--yf); border-color: var(--yf); color: #fff; font-weight: 600; }
.mode button.go[aria-pressed="true"] { box-shadow: 0 0 0 4px rgba(0,168,112,.2); }
.mode button.go.busy { opacity: .7; }

.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 b.up { color: #1a7f37; } .rkpis b.down { color: #c1271c; }
.agent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px 18px; 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, #00a870, #0071e3); }
.agent p { font-size: 14px; line-height: 1.55; padding-top: 4px; }
.agent p b { color: var(--yf); }
.agent p small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-2); }

/* 算法流水线 */
.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; }
.sg-n { font-size: 12px; font-weight: 700; color: #34d399; }
.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; }

.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: #34d399; }
.cons li { font-size: 15px; color: #e5e5ea; padding: 6px 0; border-top: 1px solid #2c2c2e; }
.cons li:first-child { border-top: 0; }

/* 效益测算 */
.bcalc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 56px; background: #fff; border-radius: 28px; padding: 28px; }
.b-rows { display: grid; gap: 22px; align-content: center; }
.br { display: grid; gap: 8px; cursor: pointer; }
.br-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.br-h b { font-size: 17px; }
.br-h em { font-style: normal; font-size: 14px; color: var(--yf); white-space: nowrap; }
.br-h output { font-weight: 700; font-variant-numeric: tabular-nums; }
.br-base { font-size: 12px; color: var(--ink-2); }
.br input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #00a870 var(--p, 50%), #e5e5ea var(--p, 50%)); outline: none; }
.br input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.3); }
.br input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.3); }
.br input[type=range]:focus-visible { box-shadow: 0 0 0 3px rgba(0,168,112,.35); }
.b-out { display: grid; gap: 12px; }
.b-card { background: var(--bg-light); border-radius: 18px; padding: 16px 20px; }
.b-card span { display: block; font-size: 13px; color: var(--ink-2); }
.b-card b { font-size: 40px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.b-card em { font-style: normal; font-size: 14px; color: var(--ink-2); margin-left: 4px; }
.b-card p { font-size: 13px; color: var(--ink-2); }
.b-card.ph b { color: var(--ph); }
.b-bar { height: 6px; border-radius: 3px; background: #e5e5ea; margin-top: 8px; overflow: hidden; }
.b-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #00a870, #34d399); transition: width .5s var(--ease); }

/* 落地路径 */
.pl { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
.pl-line { position: absolute; left: 12.5%; right: 12.5%; top: 9px; height: 2px; background: var(--line); }
.pl-line i { position: absolute; inset: 0; width: 0; background: var(--yf); transition: width 2s var(--ease) .3s; }
.pl.in .pl-line i { width: 100%; }
.pl-st { position: relative; text-align: center; padding: 30px 8px 0; }
.pl-st::before { content: ""; position: absolute; top: 2px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--line); transition: all .4s; transition-delay: calc(.3s + var(--i) * .55s); }
.pl.in .pl-st::before { background: var(--yf); border-color: var(--yf); }
.pl-st b { display: block; font-size: 17px; }
.pl-st span { font-size: 13px; color: var(--ink-2); }
.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(--yf); }
.cohort span { font-size: 13px; color: var(--ink-2); }


/* ---------- 响应式 ---------- */
@media (max-width: 1068px) {
  .pains { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .app-body { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .side .day { grid-column: 1 / -1; }
  .side-k:nth-of-type(1) { grid-column: 1; grid-row: 2; } #cover { grid-column: 1; grid-row: 3; }
  .side-k:nth-of-type(2) { grid-column: 2; grid-row: 2; } .ticker { grid-column: 2; grid-row: 3; }
}
@media (max-width: 833px) {
  .rp-chain .vc-st span { width: 4.6em; font-size: 13px; }
  .bcalc { grid-template-columns: 1fr; }
  .cons { grid-template-columns: 1fr; }
  .pl { grid-template-columns: 1fr; gap: 18px; padding-left: 8px; }
  .pl-line { left: 16px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .pl-line i { width: 100%; height: 0; transition-property: height; }
  .pl.in .pl-line i { height: 100%; }
  .pl-st { text-align: left; padding: 0 0 0 36px; }
  .pl-st::before { left: 8px; margin-left: 0; }
  .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; }
}
@media (max-width: 560px) {
  .pains { grid-template-columns: 1fr 1fr; }
  .pain:last-child { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .pipe, .caps { grid-template-columns: 1fr; }
  .app { margin-left: -6px; margin-right: -6px; border-radius: 18px; }
  .app-ctl { padding: 14px 12px 0; }
  .app-ctl .seg { width: 100%; } .app-ctl .seg button { flex: 1; padding: 8px 6px; }
  .mode { width: 100%; } .mode button { flex: 1; padding: 8px 8px; font-size: 13px; }
  .sku-note { padding: 10px 12px 0; }
  .app-body { padding: 10px 12px 14px; }
  .chart text { font-size: 15px; } .chart .c-zone-t, .chart .c-shock { font-size: 15px; }
  .side { grid-template-columns: 1fr; }
  .side-k:nth-of-type(1), #cover, .side-k:nth-of-type(2), .ticker { grid-column: 1; grid-row: auto; }
  .rkpis div { padding: 12px 14px; } .rkpis b { font-size: 22px; }
  .agent { padding: 12px 14px 16px; }
  .bcalc { padding: 20px 16px; }
  .cohort b { font-size: 26px; }
  .bw { padding: 12px 8px 6px; border-radius: 20px; }
  .bw text { font-size: 18px; } .bw-title { font-size: 20px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .bw-l { stroke-dashoffset: 0; } .bw-lg span { opacity: 1; }
  .pl-line i { width: 100%; }
  .mq-raw { transform: scaleX(.42); } .mq-packs rect { opacity: 1; }
}
