/* ============ Design Tokens：亮色专业风 ============ */
:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #1c2333;
  --muted: #67738a;
  --navy: #16335f;
  --navy-deep: #122a4e;
  --blue: #2468f2;
  --blue-soft: #e8f1ff;
  --cyan: #22b8d4;
  --violet: #7a63ff;
  --amber: #e08c1f;
  --amber-soft: #fdf3e3;
  --green: #279a62;
  --green-soft: #e6f6ee;
  --line: #dfe6f2;
  --hairline: rgba(36, 104, 242, .12);
  --shadow: 0 8px 24px rgba(22, 51, 95, .07), 0 1px 0 rgba(255, 255, 255, .7) inset;
  --shadow-lift: 0 18px 50px rgba(22, 51, 95, .14), 0 2px 0 rgba(255, 255, 255, .8) inset;
  --radius: 18px;
  --radius-lg: 28px;
  --mono: "DIN Alternate", "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --sans: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --display: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", system-ui, sans-serif;
  --narration-h: 18vh;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(circle at 18% 0%, rgba(36, 104, 242, .13), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(34, 184, 212, .12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #f7f8fb 100%);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  font-feature-settings: "kern" 1;
}

/* ============ 访问门槛 ============ */
.access-gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f2f5fa 0%, #e7edf6 100%);
}
.access-gate[hidden] { display: none; }
.app[hidden] { display: none; }
.access-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lift);
  padding: 40px 44px; width: 360px; text-align: center;
}
.access-brand { font-family: var(--display); font-size: 26px; font-weight: 720; color: var(--navy); margin-bottom: 10px; }
.access-card p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.access-row { display: flex; gap: 8px; }
.access-row input {
  flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
  font-size: 14px; outline: none;
}
.access-row input:focus { border-color: var(--blue); }
.access-err { color: #c4452f; margin-top: 10px !important; }

/* ============ 布局骨架 ============ */
.app { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 260px; flex: none; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 184, 212, .22), transparent 34%),
    linear-gradient(180deg, #173e74 0%, var(--navy-deep) 68%, #0e2341 100%);
  color: #fff;
  box-shadow: 12px 0 34px rgba(22, 51, 95, .12);
}
.brand { padding: 28px 24px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-mark {
  font-family: var(--display);
  font-size: 24px; font-weight: 760; letter-spacing: 1.2px;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand-mark::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(135deg, #80f3ff, #6aa5ff);
  box-shadow: 0 0 18px rgba(128, 243, 255, .9);
}
.brand-sub { font-size: 12px; opacity: .65; margin-top: 4px; }

.nav { flex: 1; overflow-y: auto; padding: 18px 14px; }
.nav-item {
  display: block; padding: 12px 14px; margin-bottom: 6px; border-radius: 12px;
  color: rgba(255,255,255,.82); text-decoration: none; font-size: 14px;
  transition: background .18s, color .18s, transform .18s; cursor: pointer;
  position: relative;
}
.nav-item .nav-no { font-family: var(--mono); font-size: 11px; opacity: .55; margin-right: 8px; }
.nav-item:hover { background: rgba(255,255,255,.09); color: #fff; transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.12));
  color: #fff; font-weight: 650; box-shadow: 0 8px 22px rgba(0,0,0,.10);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -14px; top: 12px; bottom: 12px; width: 3px;
  border-radius: 4px; background: #8cecff;
}
.nav-sub { margin: 2px 0 6px 22px; }
.nav-sub .nav-item { padding: 7px 12px; font-size: 13px; color: rgba(255,255,255,.66); }
.nav-sub .nav-item.active { color: #fff; background: rgba(255,255,255,.14); }

.sidebar-foot { padding: 16px 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.foot-line { opacity: .75; }
.foot-line.dim { opacity: .45; }

.stage { flex: 1; overflow-y: auto; padding: 42px 48px calc(var(--narration-h) + 60px); position: relative; }
.stage::before {
  content: ""; position: fixed; inset: 0 0 0 260px; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.45), rgba(255,255,255,0) 34%),
    radial-gradient(circle at 72% 10%, rgba(122, 99, 255, .10), transparent 26%),
    radial-gradient(circle at 40% 92%, rgba(36, 104, 242, .08), transparent 28%);
  z-index: 0;
}
.stage-inner { max-width: 1060px; margin: 0 auto; position: relative; z-index: 1; }
.stage-inner-wide { max-width: min(1500px, calc(100vw - 340px)); }

/* ============ 通用组件 ============ */
.btn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 8px; padding: 8px 18px; font-size: 14px; cursor: pointer;
  transition: all .15s;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #2566cf; color: #fff; }

.chapter-head {
  margin-bottom: 30px;
  padding: 28px 34px 30px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,.94) 0%, rgba(246,250,255,.86) 60%, rgba(231,242,255,.82) 100%);
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: 0 18px 52px rgba(22, 51, 95, .09), 0 1px 0 rgba(255,255,255,.9) inset;
  position: relative;
  overflow: hidden;
}
.chapter-head::after {
  content: ""; position: absolute; right: -92px; top: -96px; width: 260px; height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(36,104,242,.18), rgba(34,184,212,.08) 48%, transparent 70%);
}
.chapter-kicker {
  font-family: var(--mono); font-size: 11px; color: var(--blue);
  letter-spacing: 3.5px; text-transform: uppercase; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.chapter-title {
  font-family: var(--display);
  font-size: clamp(34px, 3.7vw, 48px);
  font-weight: 700; color: var(--navy); line-height: 1.2;
  letter-spacing: -.038em; position: relative; z-index: 1;
}
.chapter-slogan {
  font-size: 16.5px; color: var(--muted); margin-top: 14px; max-width: 800px;
  position: relative; z-index: 1;
}

/* ============ Mermaid 图表卡片 ============ */
.mermaid-card {
  margin: 22px 0 26px;
  padding: 22px 24px 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 0%, rgba(36, 104, 242, .10), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,251,255,.92));
  border: 1px solid rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mermaid-title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.mermaid-card .mermaid {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 260px;
  padding: 8px 4px;
  background: transparent;
}
.mermaid-card .mermaid svg {
  max-width: 100%;
  height: auto !important;
}
.mermaid-card .node rect,
.mermaid-card .node polygon,
.mermaid-card .node circle,
.mermaid-card .node ellipse {
  filter: drop-shadow(0 8px 16px rgba(22, 51, 95, .08));
}

.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.95));
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 30px; border: 1px solid rgba(255,255,255,.84);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), rgba(34,184,212,.45), transparent);
  opacity: .42;
}
.card + .card { margin-top: 18px; }
.card h3 { font-family: var(--display); font-size: 17px; font-weight: 650; color: var(--navy); margin-bottom: 10px; letter-spacing: -.015em; }
.card p { color: var(--ink); font-size: 14.5px; }
.card .dim { color: var(--muted); font-size: 13px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.tag {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue); margin: 0 6px 6px 0;
}
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.gray { background: #eef1f6; color: var(--muted); }

.section-label {
  font-size: 12px; font-weight: 760; color: var(--blue); letter-spacing: 2px;
  margin: 40px 0 18px; text-transform: uppercase;
}

/* ============ 05A 客户展示 ============ */
.customer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.customer-card {
  position: relative;
  min-height: 260px;
  padding: 25px 26px;
  border-radius: 23px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(36,104,242,.10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.95));
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: var(--shadow);
}
.customer-card.featured {
  grid-column: span 2;
  background:
    radial-gradient(circle at 94% 0%, rgba(34,184,212,.16), transparent 34%),
    linear-gradient(135deg, rgba(238,246,255,.99), rgba(255,255,255,.96));
  border-color: rgba(36,104,242,.18);
}
.customer-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -58px;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: rgba(36,104,242,.055);
}
.customer-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .10em;
  color: var(--blue);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.customer-card h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: -.03em;
  margin-bottom: 11px;
  position: relative;
  z-index: 1;
}
.customer-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}
.customer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
  position: relative;
  z-index: 1;
}
.customer-tags span {
  font-size: 11.5px;
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid rgba(36,104,242,.12);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ============ 01 市场打法：闭环图 ============ */
.loop-wrap {
  margin-top: 12px; padding: 6px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.42), rgba(232,241,255,.62));
}
.loop-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.loop-step {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
  border-radius: 18px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.86); padding: 24px 21px; position: relative;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease, box-shadow .25s;
}
.loop-step::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid var(--hairline); pointer-events: none;
}
.loop-step.lit { opacity: 1; transform: translateY(0); }
.loop-step:hover { box-shadow: var(--shadow-lift); }
.loop-step .step-no {
  font-family: var(--mono); font-size: 11px; color: var(--blue); margin-bottom: 12px;
  letter-spacing: 1.2px;
}
.loop-step h4 { font-family: var(--display); font-size: 16.5px; font-weight: 650; color: var(--navy); margin-bottom: 8px; letter-spacing: -.014em; }
.loop-step p { font-size: 13px; color: var(--muted); }
.loop-step::after {
  content: "→"; position: absolute; right: -14px; top: 50%;
  transform: translateY(-50%); color: var(--blue); font-size: 16px; z-index: 2;
}
.loop-step:last-child::after { content: "⟲"; right: 10px; top: 12px; transform: none; opacity: .5; }
.loop-back {
  margin-top: 14px; text-align: center; font-size: 13px; color: var(--blue);
  font-family: var(--mono); letter-spacing: 1px;
}

/* ============ 02 经营理念：夹层图 ============ */
.sandwich { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.layer {
  border-radius: var(--radius); padding: 20px 26px; border: 1px dashed var(--line);
  background: rgba(255,255,255,.78); color: var(--muted);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  backdrop-filter: blur(10px);
}
.layer .layer-name { font-family: var(--display); font-size: 15px; font-weight: 650; letter-spacing: -.012em; }
.layer .layer-desc { font-size: 13px; }
.layer.mid {
  background:
    linear-gradient(135deg, #eef4ff 0%, #f8fbff 72%, rgba(34,184,212,.10) 100%);
  border: 1.5px solid var(--blue); color: var(--ink);
  box-shadow: var(--shadow-lift); transform: scale(1.025);
}
.layer.mid .layer-name { color: var(--navy); font-size: 17px; }
.flow-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink); margin-top: 8px;
}
.flow-line .fl-step {
  background: linear-gradient(180deg, #fff, #f8fbff); border: 1px solid rgba(255,255,255,.88);
  border-radius: 12px; padding: 8px 14px; box-shadow: 0 8px 22px rgba(22,51,95,.07);
}
.flow-line .fl-arrow { color: var(--blue); }

/* ============ 03 核心框架：双层架构 ============ */
.arch { display: grid; grid-template-columns: 150px 1fr 150px; gap: 16px; margin-top: 12px; align-items: stretch; }
.arch-side {
  border-radius: var(--radius); border: 1px dashed rgba(36,104,242,.20);
  background: rgba(255,255,255,.58);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 13px; color: var(--muted); padding: 14px; line-height: 1.8;
  backdrop-filter: blur(8px);
}
.arch-core { display: flex; flex-direction: column; gap: 14px; }
.arch-layer {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.96));
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.86); padding: 20px 24px;
  opacity: 0; transform: translateY(12px); transition: opacity .55s, transform .55s;
}
.arch-layer.lit { opacity: 1; transform: translateY(0); }
.arch-layer .arch-name { font-family: var(--display); font-size: 16px; font-weight: 660; color: var(--navy); margin-bottom: 4px; letter-spacing: -.014em; }
.arch-layer .arch-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--blue-soft); color: var(--navy); border: 1px solid transparent;
  transition: all .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.chip.active { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; }
.arch-detail {
  margin-top: 18px; background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px 24px;
  display: none;
}
.arch-detail.show { display: block; }
.arch-detail h4 { font-family: var(--display); color: var(--navy); font-size: 15px; font-weight: 690; margin-bottom: 6px; }
.arch-detail p { font-size: 13.5px; color: var(--ink); }

/* ============ 04 产品布局：伪 3D 矩阵 ============ */
.matrix-def {
  background:
    radial-gradient(circle at 92% 12%, rgba(34,184,212,.16), transparent 34%),
    linear-gradient(135deg, #edf4ff 0%, #ffffff 70%);
  border: 1px solid rgba(255,255,255,.88); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 28px 32px; margin-bottom: 10px;
  position: relative; overflow: hidden;
}
.matrix-def::after {
  content: "PRODUCT MATRIX"; position: absolute; right: 28px; bottom: 18px;
  font-family: var(--mono); font-size: 11px; color: rgba(22,51,95,.24); letter-spacing: 2px;
}
.matrix-def .def-quote { font-family: var(--display); font-size: 18px; color: var(--navy); font-weight: 650; line-height: 1.7; max-width: 820px; letter-spacing: -.014em; }
.matrix-def .def-tags { margin-top: 14px; }

.matrix-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  perspective: 1400px; margin-top: 4px;
}
.p-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(36,104,242,.10), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
  border-radius: 22px; border: 1px solid rgba(255,255,255,.90);
  box-shadow: var(--shadow); padding: 26px 28px; cursor: pointer;
  transform-style: preserve-3d; transition: transform .18s ease-out, box-shadow .25s;
  position: relative; overflow: hidden;
}
.p-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid rgba(36,104,242,.10); pointer-events: none;
}
.p-card:hover { box-shadow: var(--shadow-lift); }
.p-card .p-algo {
  font-family: var(--mono); font-size: 11.5px; color: var(--blue); letter-spacing: .5px;
  margin-bottom: 8px;
}
.p-card h4 { font-family: var(--display); font-size: 21px; font-weight: 670; color: var(--navy); margin-bottom: 9px; letter-spacing: -.026em; }
.p-card .p-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; min-height: 44px; }
.p-card .p-badge {
  position: absolute; top: 18px; right: 20px; font-size: 11px;
  background: var(--amber-soft); color: var(--amber); border-radius: 999px; padding: 3px 10px;
}
.p-card.explore {
  border-style: dashed;
  background:
    radial-gradient(circle at 100% 0%, rgba(122,99,255,.12), transparent 30%),
    linear-gradient(180deg, #ffffff, #fcfdff);
}

.p-detail {
  margin-top: 24px; background: linear-gradient(180deg, #fff, #f9fbff);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.88); box-shadow: var(--shadow-lift); padding: 30px 34px;
  display: none;
}
.p-detail.show { display: block; }
.p-detail h3 { font-family: var(--display); color: var(--navy); font-size: 19px; font-weight: 710; margin-bottom: 4px; letter-spacing: -.03em; }
.p-detail .pd-algo { font-family: var(--mono); font-size: 12px; color: var(--blue); margin-bottom: 16px; }
.pd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.pd-cell { background: #f9fafc; border-radius: 10px; padding: 13px 15px; border: 1px solid var(--line); }
.pd-cell .pd-k { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.pd-cell .pd-v { font-size: 13px; color: var(--ink); }
.eco-title { font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 12px; }
.eco-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.eco-node {
  background: var(--blue-soft); color: var(--navy); border-radius: 999px;
  padding: 8px 15px; font-size: 13.5px;
  animation: ecoIn .4s ease both;
}
.eco-node.root { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; font-weight: 600; }
.eco-arrow { color: var(--blue); }
@keyframes ecoIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ============ 05 演示中心 ============ */
.demo-tabs { display: flex; gap: 10px; margin-bottom: 22px; }
.demo-tab {
  padding: 10px 21px; border-radius: 999px; border: 1px solid rgba(255,255,255,.86);
  background: var(--card); color: var(--muted); cursor: pointer; font-size: 14px;
  text-decoration: none; box-shadow: 0 8px 20px rgba(22,51,95,.05);
}
.demo-tab.active {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-color: transparent; color: #fff; font-weight: 650;
}

.demo-note {
  font-size: 12.5px; color: var(--muted); background: var(--blue-soft);
  border-radius: 12px; padding: 10px 16px; margin-bottom: 16px;
  border: 1px solid rgba(36,104,242,.10);
}
.case-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  margin-bottom: 10px;
}
.case-tab {
  flex: 0 0 210px;
  text-align: left;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 20px rgba(22,51,95,.05);
  color: var(--ink);
  padding: 12px 14px;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.case-tab:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.case-tab.active {
  border-color: rgba(36,104,242,.38);
  background: linear-gradient(135deg, rgba(238,246,255,.96), rgba(255,255,255,.94));
}
.case-tab span {
  display: block;
  font-size: 13px;
  font-weight: 680;
  color: var(--navy);
  margin-bottom: 3px;
}
.case-tab em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insight-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
  align-items: stretch;
  /* 预留章节头、Tab、案例栏与底部字幕栏，避免 chat 输入框被磨砂层遮挡 */
  height: clamp(420px, calc(100vh - var(--narration-h) - 320px), 760px);
  min-height: 420px;
}
.insight-col {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Chat 栏 */
.chat-panel {
  background: linear-gradient(180deg, #fff, #f9fbff); border-radius: 22px; border: 1px solid rgba(255,255,255,.90);
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  flex: 1;
  height: 100%;
  min-height: 0;
}
.chat-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-head .ch-name { font-family: var(--display); font-size: 14.5px; font-weight: 680; color: var(--navy); }
.chat-mode { font-size: 11px; font-family: var(--mono); border-radius: 999px; padding: 3px 10px; }
.chat-mode.live { background: var(--green-soft); color: var(--green); }
.chat-mode.scripted { background: var(--amber-soft); color: var(--amber); }
.chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-presets { flex: none; }
.chat-input-row { flex: none; }
.msg { max-width: 92%; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; line-height: 1.7; white-space: normal; }
.msg.user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #f3f6fb; color: var(--ink); border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; background: transparent; color: var(--muted); font-size: 12px; }
.msg .cursor-blink { display: inline-block; width: 7px; height: 14px; background: var(--blue); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.msg p { margin: 0 0 8px; }
.msg p:last-child { margin-bottom: 0; }
.msg ul { margin: 6px 0 8px; padding-left: 18px; }
.msg li { margin: 3px 0; }
.msg code {
  padding: 1px 5px; border-radius: 6px; background: rgba(36,104,242,.08);
  color: #24416f; font-family: var(--mono); font-size: .92em;
}
.msg .md-code {
  max-width: 100%; overflow-x: auto; margin: 8px 0 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: #31435f; font-family: var(--mono); font-size: 12px; line-height: 1.55;
  white-space: pre;
}
.msg.user code,
.msg.user .md-code {
  background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.25);
}
@keyframes blink { 50% { opacity: 0; } }
.chat-presets { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 7px; }
.preset-chip {
  font-size: 12px; background: var(--blue-soft); color: var(--navy); border: none;
  border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: all .15s;
}
.preset-chip:hover { background: var(--blue); color: #fff; }
.chat-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-input-row input {
  flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px;
  font-size: 13.5px; outline: none;
}
.chat-input-row input:focus { border-color: var(--blue); }

/* 链路 Canvas 栏 */
.chain-panel {
  background:
    radial-gradient(circle at 96% 8%, rgba(36,104,242,.09), transparent 28%),
    linear-gradient(180deg, #fff, #f9fbff);
  border-radius: 22px; border: 1px solid rgba(255,255,255,.90);
  box-shadow: var(--shadow); padding: 24px 26px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}
.case-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.case-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: 5px;
}
.case-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--navy);
}
.case-key {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: #f3f6fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
}
.metric-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.metric {
  background: rgba(255,255,255,.76); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  transition: all .25s;
}
.metric .m-k { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.metric .m-v { font-family: var(--mono); font-size: 19px; font-weight: 700; color: var(--navy); }
.metric.hl { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(47,122,240,.12); }

.chain-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.c-node {
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--card);
  padding: 11px 14px; min-width: 96px; cursor: pointer; text-align: center;
  transition: all .2s; position: relative;
}
.c-node .cn-name { font-family: var(--display); font-size: 13.5px; font-weight: 670; color: var(--navy); }
.c-node .cn-amount { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.c-node:hover { box-shadow: var(--shadow); }
.c-node.selected { border-color: var(--blue); background: var(--blue-soft); }
.c-node.risk { border-color: var(--amber); }
.c-node.risk .cn-name { color: var(--amber); }
.c-node.risk.pulse { animation: riskPulse 1.6s ease-in-out infinite; }
@keyframes riskPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,140,31,.0); }
  50% { box-shadow: 0 0 0 7px rgba(224,140,31,.16); }
}
.c-node.missing { border-style: dashed; background: #fbfbfd; opacity: .75; }
.c-node.missing .cn-name { color: var(--muted); }
.c-node.hl { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 4px rgba(47,122,240,.14); }
.c-link { color: #b8c2d4; font-size: 14px; flex: none; }
.c-link.candidate { color: var(--amber); }
.chain-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin: 10px 0 18px; flex-wrap: wrap; }
.lg { display: inline-flex; align-items: center; gap: 5px; }
.lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg .sq-ok { background: var(--card); border: 1.5px solid var(--line); }
.lg .sq-risk { background: var(--amber-soft); border: 1.5px solid var(--amber); }
.lg .sq-miss { background: #fbfbfd; border: 1.5px dashed #b8c2d4; }

.evidence {
  border: 1px solid var(--line); border-radius: 12px; background: #f9fafc;
  padding: 18px 20px; margin-top: 8px; display: none;
}
.evidence.show { display: block; animation: ecoIn .3s ease; }
.evidence h4 { font-size: 14.5px; color: var(--navy); margin-bottom: 10px; }
.evidence table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.evidence th { text-align: left; color: var(--muted); font-weight: 500; padding: 5px 10px 5px 0; white-space: nowrap; }
.evidence td { color: var(--ink); padding: 5px 0; font-family: var(--mono); font-size: 12px; }
.evidence .ev-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* iframe 演示页 */
.frame-wrap {
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden; background: var(--card); height: calc(100vh - 250px); min-height: 620px;
}
.frame-wrap iframe { width: 100%; height: 100%; border: none; }
.frame-empty {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; color: var(--muted); text-align: center; padding: 30px;
}
.frame-empty .fe-title { font-size: 17px; color: var(--navy); font-weight: 600; }

/* ============ 06 占位章节 ============ */
.placeholder-visual {
  margin-top: 24px; border: 1.5px dashed var(--line); border-radius: var(--radius);
  background: #fbfcfe; min-height: 380px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; color: var(--muted);
}
.placeholder-visual .ph-mark { font-size: 40px; opacity: .25; }

/* ============ 动效降级 ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .loop-step, .arch-layer { opacity: 1 !important; transform: none !important; }
}

/* ============ 图片槽位 ============ */
.img-slot {
  margin: 22px 0; width: 100%;
  border: 1.5px dashed rgba(36, 104, 242, .34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(36, 104, 242, .045), rgba(34, 184, 212, .05)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(36, 104, 242, .025) 14px 28px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); user-select: none;
  transition: border-color .2s, background .2s;
}
.img-slot:hover { border-color: rgba(36, 104, 242, .6); }
.img-slot .is-icon { font-size: 26px; opacity: .45; }
.img-slot .is-label { font-size: 12.5px; letter-spacing: .04em; }
.img-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ============ 技术团队 ============ */
.team-block {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--hairline);
  padding: 30px 34px; margin-bottom: 26px;
}
.team-block .team-no {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em;
  color: var(--blue); margin-bottom: 6px;
}
.team-block .team-head h3 {
  font-family: var(--display); font-size: 24px; font-weight: 650;
  color: var(--navy); letter-spacing: -.02em; margin-bottom: 8px;
}
.team-block .team-head p { max-width: 760px; }
.team-block .team-body { margin-top: 16px; }
.team-block .img-slot { margin: 0 0 16px; }
.card.slim { padding: 18px 20px; }
.card.slim h3 { font-size: 15.5px; }
.team-photo {
  margin: 0 0 18px;
  aspect-ratio: 16 / 7.5;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-lift);
  background: linear-gradient(135deg, #f2f7ff, #fff);
}
.team-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.core-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.core-member {
  position: relative;
  overflow: hidden;
  min-height: 244px;
  padding: 24px 26px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(36,104,242,.10), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.95));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}
.core-member.lead {
  background:
    radial-gradient(circle at 96% 0%, rgba(34,184,212,.16), transparent 34%),
    linear-gradient(135deg, rgba(238,246,255,.98), rgba(255,255,255,.96));
  border-color: rgba(36,104,242,.18);
}
.core-member::after {
  content: "";
  position: absolute;
  right: -52px;
  top: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(36,104,242,.055);
}
.member-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.core-member h4 {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 720;
  color: var(--navy);
  letter-spacing: -.035em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 13px;
  position: relative;
  z-index: 1;
}
.member-tags span {
  font-size: 11.5px;
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid rgba(36,104,242,.12);
  border-radius: 999px;
  padding: 4px 10px;
}
.core-member p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}
.member-quote {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(36,104,242,.07);
  color: var(--navy);
  font-size: 12.8px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.fde-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.fde-card {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  padding: 22px 24px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 104, 242, .10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.94));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}
.fde-card.main {
  grid-column: span 2;
  min-height: 150px;
  background:
    radial-gradient(circle at 92% 0%, rgba(34,184,212,.15), transparent 32%),
    linear-gradient(135deg, rgba(238,246,255,.98), rgba(255,255,255,.96));
  border-color: rgba(36,104,242,.18);
}
.fde-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(36,104,242,.055);
}
.fde-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--blue);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.fde-card h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 680;
  color: var(--navy);
  letter-spacing: -.025em;
  margin-bottom: 9px;
  position: relative;
  z-index: 1;
}
.fde-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}
.fde-summary { margin-top: 16px; }
.partner-showcase {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.partner-copy,
.partner-visual {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.partner-copy {
  padding: 26px 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(34,184,212,.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.95));
}
.partner-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--blue);
  margin-bottom: 10px;
}
.partner-copy h4 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 690;
  line-height: 1.35;
  letter-spacing: -.03em;
  color: var(--navy);
  margin-bottom: 12px;
}
.partner-copy p {
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.8;
  margin-top: 10px;
}
.partner-visual {
  min-height: 0;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 16%, rgba(36,104,242,.12), transparent 34%),
    linear-gradient(135deg, #f2f7ff, #ffffff);
}
.partner-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 16px;
}

/* ============ 底部磨砂玻璃字幕悬浮层 ============ */
.narration-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: var(--narration-h); min-height: 116px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .52), rgba(244, 248, 255, .72));
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  border-top: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 -14px 44px rgba(22, 51, 95, .12);
  transition: transform .32s ease;
}
.narration-bar[hidden] { display: none; }
.narration-bar.collapsed { transform: translateY(calc(100% - 44px)); }
.narration-inner {
  height: 100%; max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 26px;
  padding: 0 42px;
}
.narration-actions {
  flex: none;
  width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.narration-toggle {
  flex: none; display: grid; place-items: center;
  grid-template-rows: 22px 16px;
  align-content: center;
  row-gap: 5px;
  width: 76px; height: 76px; border-radius: 50%;
  border: 1px solid rgba(36, 104, 242, .28);
  background: linear-gradient(160deg, #ffffff, #eaf2ff);
  box-shadow: 0 10px 26px rgba(36, 104, 242, .18);
  cursor: pointer; color: var(--navy);
  transition: transform .18s, box-shadow .18s;
}
.narration-toggle:hover { transform: scale(1.05); box-shadow: 0 14px 32px rgba(36, 104, 242, .26); }
.narration-toggle.playing {
  background: linear-gradient(160deg, var(--blue), #4f86ff); color: #fff;
  border-color: transparent;
}
.narration-toggle .nt-icon {
  font-size: 17px;
  line-height: 1;
  transform: translateX(1.5px);
}
.narration-toggle.playing .nt-icon { transform: translateX(0); font-size: 15px; }
.narration-toggle .nt-label { font-size: 11px; letter-spacing: .14em; }
.auto-advance-toggle {
  width: 54px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(36, 104, 242, .22);
  background: rgba(255,255,255,.74);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(22, 51, 95, .08);
  transition: background .18s, color .18s, border-color .18s;
}
.auto-advance-toggle.active {
  background: rgba(36, 104, 242, .1);
  border-color: rgba(36, 104, 242, .48);
  color: var(--blue);
  font-weight: 650;
}
.narration-body { flex: 1; min-width: 0; }
.narration-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  color: var(--blue); margin-bottom: 8px; text-transform: uppercase;
}
.narration-text {
  font-family: var(--display); font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 500; color: var(--navy); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.narration-collapse {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.8);
  color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1;
  transition: background .18s, transform .32s;
  align-self: flex-start; margin-top: 14px;
}
.narration-collapse:hover { background: #fff; color: var(--navy); }
.narration-bar.collapsed .narration-collapse { transform: rotate(180deg); }

/* ============ 打印导出 ============ */
@media print {
  .sidebar, .access-gate, .chat-panel, .demo-tabs, .narration-bar { display: none !important; }
  .app { display: block; height: auto; }
  .stage { overflow: visible; padding: 20px; }
  body { background: #fff; }
  .card, .p-card, .arch-layer, .loop-step { box-shadow: none; break-inside: avoid; }
}

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .stage { padding: 30px 26px calc(var(--narration-h) + 50px); }
  .narration-inner { padding: 0 22px; gap: 16px; }
  .narration-toggle { width: 60px; height: 60px; }
  .narration-actions { width: 66px; }
  .matrix-grid { grid-template-columns: 1fr; }
  .insight-layout { grid-template-columns: 1fr; height: auto; }
  .chat-panel { height: 480px; }
  .pd-grid, .loop-row, .metric-bar { grid-template-columns: repeat(2, 1fr); }
  .arch { grid-template-columns: 1fr; }
}
