@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --ground-000: #03040b;
  --ground-050: #000002;
  --ground-100: #0c0a11;
  --ground-200: #13003a;
  --surface-100: #0e0e14;
  --surface-200: #1d1838;
  --surface-300: #251150;
  --surface-row: rgba(255, 255, 255, 0.05);
  --line-100: #363542;
  --line-200: #252525;
  --line-glow: rgba(168, 144, 252, 0.32);
  --line-dash: rgba(255, 255, 255, 0.14);
  --violet-200: #e8e0f8;
  --violet-300: #a890fc;
  --violet-350: #8d84ff;
  --violet-400: #894efc;
  --violet-500: #6442fb;
  --violet-600: #6018e4;
  --violet-800: #3c0c9c;
  --blue-500: #2f78ff;
  --indigo-500: #483cd8;
  --ice-100: #d8e8f0;
  --ink: #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.8);
  --ink-soft: rgba(255, 255, 255, 0.62);
  --ink-subtle: #736f82;
  --ink-dark: #12131b;
  --ok: #a890fc;
  --gradient-keyword: linear-gradient(90deg, #6442fb 0%, #ffffff 45%);
  --gradient-tag: linear-gradient(90deg, #5e3ae3 0%, #743bf9 100%);
  --gradient-price: linear-gradient(90deg, #8d84ff 0%, #ffffff 100%);
  --gradient-bar: linear-gradient(180deg, #894efc 0%, #2f78ff 100%);
  --gradient-card: linear-gradient(180deg, #17151e 0%, #0d0c12 100%);
  --glow-active: 0 0 48px rgba(100, 66, 251, 0.55);
  --glow-soft: 0 0 24px rgba(168, 144, 252, 0.28);
  --radius-sm: 10px;
  --radius-md: 13px;
  --radius-lg: 15px;
  --radius-xl: 24px;
  --font-sans: MiSans, "Noto Sans SC", "PingFang SC", sans-serif;
  --font-num: "D-DIN-PRO", "DIN Alternate", MiSans, "Noto Sans SC", sans-serif;
  --gutter: clamp(16px, 4vw, 72px);
  --drawer: 400px;
  --bar-h: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0;
  background: var(--ground-000);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.grad-num { background: var(--gradient-price); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 顶栏 */
.bar {
  position: sticky; top: 0; z-index: 40; height: var(--bar-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--gutter);
  background: rgba(3, 4, 11, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-weight: 700; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(145deg, var(--violet-400), var(--indigo-500)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.brand small { font-weight: 400; color: var(--ink-soft); font-size: 14px; padding-left: 12px; border-left: 1px solid var(--line-100); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--surface-row); }
.speaker-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-100); background: transparent;
  font-size: 14px; cursor: pointer; white-space: nowrap;
}
.speaker-btn kbd { font-family: var(--font-num); font-size: 12px; color: var(--ink-subtle); border: 1px solid var(--line-100); border-radius: 4px; padding: 0 5px; }
.speaker-btn[aria-pressed="true"] { background: var(--gradient-tag); border-color: transparent; }
.speaker-btn[aria-pressed="true"] kbd { color: var(--ink-muted); border-color: rgba(255,255,255,.3); }

/* 版面 */
main { transition: margin-right .25s ease; }
body.speaker-on main { margin-right: var(--drawer); }
section.screen { position: relative; padding: 96px var(--gutter); }
.wrap { max-width: 1240px; margin: 0 auto; }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-subtle); font-weight: 500; }
.sec-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
.sec-head::before { content: ""; flex: none; width: 5px; height: 34px; margin-top: 6px; background: var(--gradient-bar); border-radius: 2px; }
.sec-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.25; font-weight: 700; }
.sec-head p { margin: 8px 0 0; color: var(--ink-muted); font-size: 18px; max-width: 46em; }
.card {
  position: relative; background: var(--gradient-card); border: 1px solid var(--line-200);
  border-radius: var(--radius-lg); padding: 28px;
}
.card.hot { background: linear-gradient(180deg, var(--surface-300), #170b33); border: 1px solid var(--violet-300); box-shadow: var(--glow-active); }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--gradient-tag); font-size: 13px; font-weight: 500; }
.tag.line { background: rgba(255,255,255,.04); border: 1px solid var(--line-dash); color: var(--ink-muted); }
.src { font-size: 12px; color: var(--ink-subtle); }

/* 首屏 */
.hero { min-height: calc(100vh - var(--bar-h)); display: flex; align-items: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(circle at 60% 40%, rgba(100, 66, 251, .38), rgba(60, 12, 156, .18) 38%, transparent 66%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 144, 252, .55), transparent);
  box-shadow: 0 0 40px 6px rgba(100, 66, 251, .35);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; width: 100%; }
.hero h1 .nw { white-space: nowrap; }
.hero h1 { margin: 18px 0 0; font-size: clamp(34px, 4.4vw, 72px); line-height: 1.12; font-weight: 900; letter-spacing: 0; }
.hero h1 .k { display: inline-block; background: var(--gradient-keyword); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { margin: 22px 0 0; font-size: clamp(17px, 1.6vw, 22px); color: var(--ink-muted); max-width: 30em; }
.trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.trust div { display: flex; flex-direction: column; }
.trust b { font-size: 30px; line-height: 1.1; font-weight: 600; }
.trust span { font-size: 13px; color: var(--ink-soft); }

/* 算一笔账 */
.calc h3 { margin: 0; font-size: 20px; }
.calc .formula { margin: 6px 0 22px; color: var(--ink-soft); font-size: 15px; }
.calc .formula b { color: var(--violet-300); font-weight: 500; }
.ctrl { display: grid; grid-template-columns: 96px 1fr 64px; align-items: center; gap: 14px; margin: 10px 0; font-size: 15px; color: var(--ink-muted); }
.ctrl output { text-align: right; font-size: 20px; color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--violet-500) var(--p, 10%), var(--line-100) var(--p, 10%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(100,66,251,.35); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(100,66,251,.35); cursor: pointer; }
.bars { margin-top: 26px; display: grid; gap: 16px; }
.bars .row { display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: center; }
.bars .lab { font-size: 14px; color: var(--ink-muted); line-height: 1.35; }
.bars .track { position: relative; height: 44px; border-radius: 8px; background: var(--surface-row); overflow: hidden; }
.bars .fill { position: absolute; inset: 0 auto 0 0; border-radius: 8px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.bars .row.boss .fill { background: repeating-linear-gradient(135deg, #3a3746 0 6px, #2b2934 6px 12px); min-width: 4px; }
.bars .row.team .fill { background: linear-gradient(90deg, var(--violet-600), var(--violet-350)); box-shadow: 0 0 24px rgba(100,66,251,.5); }
.bars .val { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 600; }
.bars .row.boss .val { right: auto; left: 14px; color: var(--ink-muted); }
.times { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-dash); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.times b { font-size: 46px; line-height: 1; font-weight: 600; }
.times span { color: var(--ink-muted); }

/* 客户类型 */
.personas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.persona { text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.persona:hover { border-color: var(--line-100); transform: translateY(-2px); }
.persona[aria-pressed="true"] { background: linear-gradient(180deg, var(--surface-300), #170b33); border-color: var(--violet-300); box-shadow: var(--glow-active); }
.persona h3 { margin: 14px 0 6px; font-size: 20px; }
.persona .who { font-size: 14px; color: var(--ink-soft); }
.persona .pain { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-dash); font-size: 15px; color: var(--ink-muted); }
.persona .ico { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(145deg, var(--violet-400), var(--violet-800)); box-shadow: inset 0 2px 0 rgba(255,255,255,.3); display: grid; place-items: center; }
.persona .ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.persona-route { margin-top: 22px; display: none; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--ink-muted); }
.persona-route.show { display: flex; }
.persona-route .step { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-glow); color: var(--ink); }
.persona-route svg { width: 16px; height: 16px; stroke: var(--violet-300); fill: none; stroke-width: 2; }

/* 痛点 */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain-card { cursor: pointer; }
.pain-card h3 { margin: 0 0 8px; font-size: 22px; }
.pain-card p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.pain-card .res { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--violet-300); }
.pain-card .chk { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-100); display: grid; place-items: center; }
.pain-card[aria-pressed="true"] { border-color: var(--violet-300); }
.pain-card[aria-pressed="true"] .chk { background: var(--violet-300); border-color: var(--violet-300); }
.pain-card[aria-pressed="true"] .chk::after { content: ""; width: 8px; height: 4px; border: 2px solid var(--ink-dark); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.pain-sum { margin-top: 22px; font-size: 18px; color: var(--ink-muted); min-height: 1.6em; }
.pain-sum b { color: var(--ink); }

/* 方案全景 */
.flow-grid { display: grid; grid-template-columns: 1fr 96px 1fr 96px 1fr 96px 1fr; align-items: stretch; }
.node { text-align: left; cursor: pointer; padding: 20px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, box-shadow .2s; }
.node:hover { border-color: var(--line-100); }
.node[aria-pressed="true"] { border-color: var(--violet-300); box-shadow: var(--glow-soft); background: linear-gradient(180deg, #1b1533, #0d0c12); }
.node .idx { font-family: var(--font-num); font-size: 13px; color: var(--violet-300); letter-spacing: .08em; }
.node b { font-size: 20px; }
.node span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.edge { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.edge .verb { font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.edge .line { position: relative; width: 100%; height: 2px; background: var(--line-100); overflow: visible; }
.edge .line::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--line-100); border-right: 0; }
.edge .line i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--violet-300); box-shadow: 0 0 10px var(--violet-300); animation: run 2.4s linear infinite; }
.edge .line i:nth-child(2) { animation-delay: 1.2s; }
@keyframes run { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
.flow-detail { margin-top: 20px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.flow-detail h3 { margin: 0; font-size: 22px; }
.flow-detail ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.flow-detail li { padding: 8px 14px; border-radius: var(--radius-md); background: var(--surface-row); border: 1px solid var(--line-100); font-size: 15px; }

/* 功能 */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab { height: 42px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-100); background: transparent; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.tab[aria-selected="true"] { background: var(--gradient-tag); border-color: transparent; }
.tab .rec { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.16); }
.feature { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
.player { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-glow); box-shadow: 0 0 60px rgba(100,66,251,.22); background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: contain; }
.progress { position: relative; height: 6px; margin-top: 12px; border-radius: 3px; background: var(--surface-row); cursor: pointer; }
.progress .pf { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--violet-600), var(--violet-350)); }
.progress .tick { position: absolute; top: -3px; width: 2px; height: 12px; background: rgba(255,255,255,.4); }
.feature-side h3 { margin: 0; font-size: 26px; line-height: 1.3; }
.feature-side .one { margin: 8px 0 18px; color: var(--ink-muted); }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chapters button {
  width: 100%; display: grid; grid-template-columns: 34px 1fr 44px; align-items: center; gap: 12px; text-align: left;
  padding: 11px 14px; border-radius: var(--radius-md); background: var(--surface-row); border: 1px solid var(--line-100); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.chapters button:hover { border-color: var(--ink-subtle); }
.chapters button.on { background: linear-gradient(90deg, rgba(100,66,251,.28), rgba(100,66,251,.06)); border-color: var(--violet-300); }
.chapters .i { font-family: var(--font-num); font-size: 14px; color: var(--ink-subtle); }
.chapters .on .i { color: var(--violet-300); }
.chapters .l { font-size: 15px; line-height: 1.4; }
.chapters .d { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.chapters .t { font-family: var(--font-num); font-size: 13px; color: var(--ink-subtle); text-align: right; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.proof div { padding: 14px; border-radius: var(--radius-md); border: 1px solid var(--line-200); background: var(--gradient-card); }
.proof b { display: block; font-size: 28px; line-height: 1.1; font-weight: 600; }
.proof span { font-size: 13px; color: var(--ink-soft); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.status i { width: 8px; height: 8px; border-radius: 2px; background: var(--violet-300); }

/* 讲者抽屉 */
.drawer {
  position: fixed; z-index: 50; top: var(--bar-h); right: 0; bottom: 0; width: var(--drawer);
  background: #0b0a12; border-left: 1px solid var(--line-100);
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
body.speaker-on .drawer { transform: none; }
.drawer header { padding: 16px 20px; border-bottom: 1px solid var(--line-200); display: flex; align-items: center; gap: 10px; }
.drawer header h2 { margin: 0; font-size: 16px; }
.drawer header .clock { margin-left: auto; font-family: var(--font-num); font-size: 18px; color: var(--violet-300); }
.drawer header button { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-100); background: transparent; font-size: 12px; cursor: pointer; }
.phase { padding: 12px 20px; border-bottom: 1px solid var(--line-200); font-size: 13px; color: var(--ink-soft); }
.phase .ph-bar { display: grid; grid-template-columns: 5fr 5fr 10fr 5fr 3fr 2fr; gap: 3px; margin-top: 8px; }
.phase .ph-bar i { height: 5px; border-radius: 2px; background: var(--line-100); }
.phase .ph-bar i.done { background: var(--violet-800); }
.phase .ph-bar i.now { background: var(--violet-300); }
.drawer .body { flex: 1; overflow-y: auto; padding: 18px 20px 40px; }
.drawer .lock { padding: 24px 20px; color: var(--ink-muted); font-size: 15px; }
.drawer .lock button { margin-top: 14px; height: 38px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--gradient-tag); cursor: pointer; }
.sp-sec { margin-bottom: 22px; }
.sp-sec h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: .1em; color: var(--ink-subtle); font-weight: 500; }
.sp-sec .goal { font-size: 17px; font-weight: 700; line-height: 1.45; }
.sp-sec ol, .sp-sec ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-muted); }
.sp-sec .say { font-size: 14.5px; color: var(--ink); background: var(--surface-row); border-left: 2px solid var(--violet-300); padding: 10px 12px; border-radius: 0 8px 8px 0; }
.lv { display: grid; gap: 6px; }
.lv div { display: grid; grid-template-columns: 54px 1fr; gap: 8px; font-size: 13.5px; color: var(--ink-muted); align-items: start; }
.lv b { font-size: 12px; font-weight: 500; padding: 1px 0; border-radius: 4px; text-align: center; }
.lv .g b { background: rgba(168,144,252,.18); color: var(--violet-300); }
.lv .y b { border: 1px dashed var(--ink-subtle); color: var(--ink-muted); }
.lv .r b { background: transparent; border: 1px solid var(--ink-subtle); color: var(--ink-subtle); text-decoration: line-through; }
details.obj { border: 1px solid var(--line-200); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--gradient-card); }
details.obj summary { cursor: pointer; font-size: 14.5px; list-style: none; }
details.obj summary::-webkit-details-marker { display: none; }
details.obj summary::before { content: "问"; font-size: 11px; color: var(--violet-300); border: 1px solid var(--line-glow); border-radius: 4px; padding: 0 4px; margin-right: 8px; }
details.obj p { margin: 8px 0 0; font-size: 14px; color: var(--ink-muted); }

/* 页脚 */
footer { padding: 40px var(--gutter) 60px; color: var(--ink-subtle); font-size: 13px; border-top: 1px solid var(--line-200); }

/* 讲者独立窗口 */
body.presenter .bar .nav, body.presenter main { display: none; }
body.presenter .drawer { position: static; transform: none; width: auto; height: calc(100vh - var(--bar-h)); border-left: 0; }

@media (max-width: 1100px) {
  body.speaker-on main { margin-right: 0; }
  .drawer { width: min(92vw, var(--drawer)); box-shadow: -20px 0 60px rgba(0,0,0,.6); }
  .hero .wrap, .feature { grid-template-columns: 1fr; }
  .personas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section.screen { padding: 64px var(--gutter); }
  .brand small, .nav { display: none; }
  .speaker-btn { margin-left: auto; }
  .speaker-btn kbd { display: none; }
  .hero { min-height: auto; }
  .personas, .pains { grid-template-columns: 1fr; }
  .flow-detail { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .edge { flex-direction: row; height: 56px; }
  .edge .line { width: 2px; height: 100%; order: -1; }
  .edge .line::after { right: auto; left: -4px; top: auto; bottom: -2px; border: 5px solid transparent; border-top: 7px solid var(--line-100); border-bottom: 0; }
  .edge .line i { left: -3px !important; animation-name: runv; }
  .proof { grid-template-columns: 1fr 1fr 1fr; }
  .proof b { font-size: 22px; }
  .bars .row { grid-template-columns: 80px 1fr; }
  .ctrl { grid-template-columns: 76px 1fr 52px; }
}
@keyframes runv { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }
@media (max-width: 1100px) and (min-width: 721px) {
  .flow-grid { grid-template-columns: 1fr 56px 1fr 56px 1fr 56px 1fr; }
  .edge .verb { white-space: normal; text-align: center; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
