:root {
  color-scheme: light;
  --chapter-space: clamp(120px, 11.2vw, 160px);
  --gutter: 40px;
  --wide: 1260px;
  --mid: 1050px;
  --copy: 830px;
  --reveal-duration: .9s;
  --reveal-distance: 28px;
  --paper: #f4f5f0;
  --ink: #2c3531;
  --body: #5e6a67;
  --muted: #5e6a67;
  --line: #e1e5e1;
  --surface: #eef1ed;
  --agent-brain-fill: #eef4f0;
  --panel: #ffffff;
  --accent: #7d9d9c;
  --accent-ink: #486562;
  --secondary: #829aab;
  --secondary-ink: #526a7a;
  --on-accent: #14201b;
  --action: #7d9d9c;
  --action-hover: #6b8b8a;
  --header-background: rgba(244, 245, 240, .9);
  --highlight-start: #5e7c7b;
  --highlight-end: #607b8e;
  --card-radius: 16px;
  --control-radius: 10px;
  --card-border: #e1e5e1;
  --card-hover-border: rgba(125, 157, 156, .5);
  --card-shadow: 0 2px 8px rgba(0, 0, 0, .03);
  --hover-shadow: 0 12px 28px rgba(94, 106, 103, .12);
  --observation-shadow: 0 3px 5px rgba(94, 106, 103, .12);
  --font: "Inter", "MiSans VF", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height, 80px) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
button, a { -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, pre:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent); color: var(--on-accent); }
.site-header, .site-footer { width: min(var(--wide), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.content { width: 100%; }
.glass-card, .realworld-notes, .benchmark-card { border: 1px solid var(--card-border); border-radius: var(--card-radius); background: var(--panel); box-shadow: var(--card-shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.site-navigation { position: sticky; top: 0; z-index: 40; background: var(--header-background); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-navigation::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); opacity: 0; }
.site-navigation[data-scrolled="true"]::after { opacity: 1; }
.site-header { min-height: 72px; display: flex; align-items: center; gap: 20px; }
.brand { font-size: 22px; font-weight: 650; letter-spacing: -.5px; white-space: nowrap; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 16px; min-width: 0; margin-left: auto; font-size: 13px; color: var(--body); }
.site-header nav a { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; padding: 6px 12px; border: 1px solid transparent; border-radius: var(--control-radius); background: var(--surface); line-height: 20px; white-space: nowrap; }
.site-header nav a:hover { color: var(--ink); background: var(--line); border-color: var(--secondary); }
.site-header nav a[aria-current="location"] { color: var(--accent-ink); background: var(--panel); border-color: var(--accent); }
.site-header nav a:active { transform: scale(.98); }
.language { padding: 8px 12px; border: 1px solid var(--line); background: var(--panel); color: var(--body); font-size: 13px; border-radius: var(--control-radius); }
.language:hover { border-color: var(--accent); color: var(--ink); }
.language:active, .button:active { transform: scale(.97); }

/* 章节背景铺满视口，文字、场景与数据分别使用适合阅读的宽度。 */
.content > section { padding: var(--chapter-space) var(--gutter); }
.content > .intro { padding-top: 72px; padding-bottom: 64px; }
.intro { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.hero-copy { min-width: 0; width: 100%; max-width: var(--wide); }
.eyebrow { color: var(--accent-ink); font-size: 11px; line-height: 1.6; font-weight: 550; letter-spacing: .13em; }
h1 { margin: 22px 0 0; font-size: clamp(56px, 5.6vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
h1 > span { display: block; }
.gradient-text { background: linear-gradient(105deg, var(--highlight-start) 5%, var(--highlight-end) 90%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.intro-bottom { margin-top: 32px; }
.intro-copy { max-width: 760px; margin-inline: auto; color: var(--body); font-size: 21px; line-height: 1.4; text-wrap: pretty; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--control-radius); font-size: 14px; font-weight: 550; }
.button svg { width: 18px; height: 18px; }
.button-primary { color: var(--on-accent); background: var(--action); border-color: var(--action); box-shadow: 0 4px 20px rgba(125, 157, 156, .1); }
.button-primary:hover { color: var(--on-accent); background: var(--action-hover); box-shadow: 0 8px 28px rgba(107, 139, 138, .18); }
.button-secondary { color: var(--body); background: var(--panel); }
.button-secondary:hover { color: var(--ink); border-color: var(--card-hover-border); }

.navigation-illustration { width: min(100%, var(--mid)); height: clamp(450px, calc(100svh - 420px), 640px); color: var(--accent); }
.navigation-illustration > button, .navigation-illustration > button > svg { height: 100%; }
.nav-motion-control > svg { display: block; width: 100%; height: auto; stroke-width: 1.2; }
.nav-floor { fill: var(--surface); stroke: var(--line); }
.nav-floor-lines { stroke: var(--line); stroke-width: .8; opacity: .6; }
.nav-wall { fill: var(--panel); stroke: var(--line); fill-opacity: .65; }
.nav-wall-right { fill: var(--surface); }
.nav-wall-edge, .nav-partition-top { stroke: var(--secondary); opacity: .55; }
.nav-route-base { stroke: var(--accent); opacity: .12; stroke-width: 5; }
.nav-route { stroke: var(--accent-ink); stroke-width: 1.6; stroke-dasharray: 5 7; }
.nav-cone-near { stop-color: var(--accent); stop-opacity: .28; }
.nav-cone-far { stop-color: var(--accent); stop-opacity: .02; }
.nav-view-fill { fill: url(#navigation-view-fill); stroke: none; }
.nav-view-edge { stroke: var(--accent); stroke-width: 1; opacity: .55; }
.nav-partition { fill: var(--panel); stroke: var(--line); }
.nav-doorway { stroke: var(--secondary); stroke-dasharray: 2 5; opacity: .55; }
.nav-robot-footprint { fill: url(#navigation-ground-shadow); stroke: none; }
.nav-robot-image { pointer-events: none; }
.nav-target-footprint { fill: var(--secondary); fill-opacity: .08; stroke: var(--secondary); stroke-dasharray: 2 4; }
.nav-target-top { fill: var(--panel); stroke: var(--secondary-ink); }
.nav-target-side { fill: var(--secondary); fill-opacity: .2; stroke: var(--secondary-ink); }
.nav-target-check { stroke: var(--accent-ink); stroke-width: 1.5; }
.nav-floor-front { stroke: var(--secondary); opacity: .4; }
.nav-motion-control { display: block; width: 100%; border: 0; padding: 0; background: transparent; color: inherit; }
.nav-motion-control:disabled { cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  .nav-route { animation: navigation-route 3s linear infinite; }
  .navigation-illustration[data-motion="paused"] :is(.nav-cone, .nav-route) { animation-play-state: paused; }
  @keyframes navigation-route { to { stroke-dashoffset: -24; } }
}

#capabilities { background: var(--panel); }
.capabilities-heading { max-width: 940px; margin: 0 auto 64px; }
.capabilities-heading, .text-section h2 { text-align: center; font-size: 56px; line-height: 1.1; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.scene-definitions { position: absolute; overflow: hidden; pointer-events: none; }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; max-width: var(--wide); margin-inline: auto; }
.capability-panel { display: grid; grid-template-rows: 270px auto; gap: 24px; min-width: 0; padding: 0; background: transparent; }
.capability-caption { grid-row: 2; }
.capability-caption h3 { font-size: 20px; line-height: 1.35; font-weight: 550; letter-spacing: -.02em; }
.capability-caption p { margin-top: 12px; color: var(--body); font-size: 15px; line-height: 1.6; }
.capability-scene-control { grid-row: 1; min-height: 0; height: 100%; overflow: hidden; border-radius: var(--control-radius); color: var(--accent-ink); }
.capability-scene-control > svg { width: 100%; height: 100%; stroke-width: 1.3; opacity: .85; }

.capability-grid:has(:focus-visible) .capability-scene { opacity: .7; }
.capability-grid .capability-panel:has(:focus-visible) .capability-scene { opacity: 1; }
.scene-art { transform: translate(-54px, -36px) scale(1.15); }
.scene-ground { fill: var(--surface); stroke: var(--line); }
.scene-grid { stroke: var(--line); stroke-width: .9; opacity: .75; }
.scene-wall { fill: var(--panel); stroke: var(--line); fill-opacity: .85; }
.scene-wall-side { fill: var(--surface); }
.scene-wall-edge { stroke: var(--secondary); opacity: .35; }
.scene-partition { stroke: var(--secondary); stroke-width: 1; }
.scene-partition-face { fill: var(--panel); }
.scene-partition-edge { fill: var(--surface); }
.scene-shadow { fill: var(--accent); opacity: .1; stroke: none; }
.scene-top { fill: var(--scene-solid-fill, var(--panel)); stroke: var(--scene-outline, var(--accent-ink)); }
.scene-side { fill: var(--scene-side-fill, var(--accent)); fill-opacity: .3; stroke: var(--scene-outline, var(--accent-ink)); }
.scene-leg { fill: none; stroke: var(--scene-outline, var(--accent-ink)); stroke-width: 2.8; }
.scene-circuit { fill: none; stroke: var(--secondary); stroke-width: 1.2; }
.scene-brain-stroke { fill: none; stroke: var(--ink); stroke-width: var(--brain-outline-width, 1.2); stroke-linecap: round; stroke-linejoin: round; }
.scene-brain-fill { fill: var(--agent-brain-fill); fill-opacity: .9; }
.scene-brain-ridge, .scene-brain-folds { fill: none; stroke: var(--ink); stroke-width: var(--brain-fold-width, 1); stroke-linecap: round; stroke-linejoin: round; }
.scene-brain-ridge { opacity: .8; }
.scene-trail { fill: none; stroke: var(--secondary); stroke-width: 1.5; stroke-dasharray: 4 7; opacity: .35; }
.scene-object-side { fill: var(--secondary); fill-opacity: .4; stroke: var(--secondary-ink); }
.scene-chair-leg { stroke: var(--secondary-ink); stroke-width: 1.8; }
.scene-observation-paper { fill: var(--panel); stroke: var(--secondary); stroke-width: 1; stroke-dasharray: 3 3; }
.scene-observation-floor { fill: var(--surface); stroke: var(--line); stroke-width: .7; }
.scene-observation-object { fill: var(--secondary); fill-opacity: .16; stroke: var(--secondary); stroke-width: .9; }
.scene-observation-detail { fill: none; stroke: var(--secondary); stroke-width: .9; }
/* 无动画时保留有意义的中间画面；真实目标与历史缩略图共用椅子造型。 */
.scene-memory-evidence { --scene-outline: var(--secondary); --scene-solid-fill: var(--surface); --scene-side-fill: var(--secondary); filter: drop-shadow(var(--observation-shadow)); }
.scene-old-view { opacity: .35; }
.scene-recall-view { transform: translate(0, -10px) scale(1.15); }
.scene-memory-robot { transform: translate(80px, 46px); }
/* 手动暂停即使落在循环淡出阶段，也保留机器人。 */
.capability-panel:has(.nav-motion-control[aria-pressed="true"]) :is(.scene-memory-robot, .scene-watch-robot, .scene-schedule-robot) { opacity: 1 !important; }
.scene-watch-robot, .scene-schedule-robot { transform: translate(85px, -12px); }
.scene-view { fill: var(--accent); fill-opacity: .1; stroke: none; }
.scene-view-edge { stroke: var(--accent); opacity: .35; stroke-width: 1; }
.scene-scan { stroke: var(--accent); stroke-width: 1.5; opacity: .5; }
.scene-detection { stroke: var(--accent-ink); stroke-width: 2; opacity: .9; }
.scene-watch-view { opacity: .6; }
.scene-old-route { opacity: .15; }
.scene-progress, .scene-direction { fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .85; }
.scene-approach-route { opacity: .4; }
.scene-direction { opacity: 0; }
/* 复用架构的 Agent 图形；独立于场景缩放，静态回退保留完整大脑。 */
#capability-scheduling .capability-scene-control { position: relative; container-type: size; }
.capability-scene-control > .scene-agent-thinking {
  position: absolute;
  left: calc(50% - min(8.785cqw, 15.06cqh));
  top: calc(50% - 8px);
  width: 40px;
  height: 32px;
  opacity: 1;
  transform: translate(-50%, -100%);
  pointer-events: none;
  stroke-width: 2.2;
  stroke-linejoin: round;
}
@media (max-width: 800px) {
  .capability-scene-control > .scene-agent-thinking { width: 34px; height: 27px; top: calc(50% - 6px); --brain-outline-width: 1.15; }
}
@media (prefers-reduced-motion: no-preference) {
  /* JS 启用交互后才播放；无 JS 和减少动态效果时使用上面的静态构图。 */
  .capability-panel:has(button:enabled) .scene-animated { animation-duration: 6s; animation-iteration-count: infinite; animation-timing-function: linear; }
  .scene-memory-robot { animation-name: scene-memory-walk; }
  .scene-memory-evidence { animation-name: scene-memory-evidence; }
  .scene-recall-view { animation-name: scene-recall; }
  .scene-memory-route { animation-name: scene-memory-route; }
  .scene-watch-robot { animation-name: scene-watch-walk; }
  .scene-watch-view { animation-name: scene-watch-view; }
  .scene-scan { animation-name: scene-scan; }
  .scene-detection { animation-name: scene-detection; }
  .scene-approach-route { animation-name: scene-approach-route; }
  .scene-schedule-robot { animation-name: scene-schedule-walk; }
  .scene-agent-thinking { animation-name: scene-agent-thinking; }
  .scene-thinking-fold-a { animation-name: scene-thinking-fold-a; }
  .scene-thinking-fold-b { animation-name: scene-thinking-fold-b; }
  .scene-thinking-fold-c { animation-name: scene-thinking-fold-c; }
  .scene-thinking-fold-d { animation-name: scene-thinking-fold-d; }
  /* 1.8 秒介入；两次明暗变化在 2.8 秒转向前结束，4.2 秒行走后淡出。 */
  @keyframes scene-agent-thinking {
    0%, 30% { opacity: 0; transform: translate(-50%, calc(-100% + 4px)); }
    33.333%, 70% { opacity: 1; transform: translate(-50%, -100%); }
    75%, 100% { opacity: 0; transform: translate(-50%, calc(-100% - 4px)); }
  }
  /* 四组脑沟依次传亮，两轮均在转向开始前结束。 */
  @keyframes scene-thinking-fold-a {
    0%, 32%, 46.667%, 100% { opacity: 1; }
    33.333%, 36%, 39%, 42%, 45% { opacity: .3; }
    34.5%, 40.5% { opacity: 1; }
  }
  @keyframes scene-thinking-fold-b {
    0%, 32%, 46.667%, 100% { opacity: 1; }
    33.333%, 37.5%, 39%, 43.5%, 45% { opacity: .3; }
    36%, 42% { opacity: 1; }
  }
  @keyframes scene-thinking-fold-c {
    0%, 32%, 46.667%, 100% { opacity: 1; }
    33.333%, 36%, 39%, 42%, 45% { opacity: .3; }
    37.5%, 43.5% { opacity: 1; }
  }
  @keyframes scene-thinking-fold-d {
    0%, 32%, 46.667%, 100% { opacity: 1; }
    33.333%, 37.5%, 40.5%, 43.5% { opacity: .3; }
    39%, 45% { opacity: 1; }
  }
  .scene-old-route { animation-name: scene-old-route; }
  .scene-direction { animation-name: scene-direction; }
  .scene-new-route { animation-name: scene-new-route; }
  [data-illustration][data-motion="paused"] .scene-animated { animation-play-state: paused; }
  @keyframes scene-memory-walk {
    0% { transform: translate(0, 0); opacity: 0; }
    5% { opacity: 1; }
    26.667%, 60% { transform: translate(80px, 46px); opacity: 1; }
    90%, 95% { transform: translate(200px, -3px); opacity: 1; }
    99%, 100% { transform: translate(200px, -3px); opacity: 0; }
  }
  @keyframes scene-memory-evidence { 0%, 72%, 100% { opacity: 0; } 12% { opacity: .6; } 26.667%, 60% { opacity: 1; } }
  @keyframes scene-recall { 0%, 26.667% { transform: translate(0, 0) scale(1); opacity: .45; } 38%, 100% { transform: translate(0, -10px) scale(1.15); opacity: 1; } }
  @keyframes scene-memory-route { 0%, 60% { stroke-dashoffset: 1; opacity: .85; } 90%, 95% { stroke-dashoffset: 0; opacity: .85; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
  /* 行进中连续检测，然后停车复核，最后接近；候选不表示成功。 */
  @keyframes scene-watch-walk {
    0% { transform: translate(0, 0); opacity: 0; }
    5% { opacity: 1; }
    30% { transform: translate(65px, -9px); opacity: 1; }
    53.333%, 66.667% { transform: translate(85px, -12px); opacity: 1; }
    90%, 95% { transform: translate(200px, -3px); opacity: 1; }
    99%, 100% { transform: translate(200px, -3px); opacity: 0; }
  }
  @keyframes scene-watch-view { 0%, 53.333% { opacity: 1; } 66.667% { opacity: .8; } 72%, 100% { opacity: 0; } }
  @keyframes scene-scan { 0%, 29%, 53.333%, 100% { opacity: 0; } 8%, 35% { opacity: .6; } 28%, 52% { opacity: 0; } }
  @keyframes scene-detection { 0%, 30%, 43%, 52%, 72%, 100% { opacity: 0; } 32%, 39%, 46%, 50%, 53.333%, 66.667% { opacity: .9; } }
  @keyframes scene-approach-route { 0%, 66.667% { stroke-dashoffset: 1; opacity: .85; } 90%, 95% { stroke-dashoffset: 0; opacity: .85; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
  /* 停滞后转向观察，新轨迹随脚下位置延伸，不预先给出完整规划路线。 */
  @keyframes scene-schedule-walk {
    0% { transform: translate(0, 0); opacity: 0; }
    5% { opacity: 1; }
    30%, 70% { transform: translate(85px, -12px); opacity: 1; }
    80% { transform: translate(135px, 40px); }
    90%, 95% { transform: translate(200px, -3px); opacity: 1; }
    99%, 100% { transform: translate(200px, -3px); opacity: 0; }
  }
  @keyframes scene-old-route { 0%, 30%, 100% { opacity: .6; } 46.667%, 95% { opacity: .15; } }
  @keyframes scene-direction { 0%, 46.667% { stroke-dashoffset: 1; opacity: 0; } 60%, 70% { stroke-dashoffset: 0; opacity: .65; } 80%, 100% { stroke-dashoffset: 0; opacity: 0; } }
  @keyframes scene-new-route { 0%, 70% { stroke-dashoffset: 1; opacity: .85; } 80% { stroke-dashoffset: .5193; } 90%, 95% { stroke-dashoffset: 0; opacity: .85; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
}
#architecture { padding: 0; }
.architecture-stage { position: relative; padding: 120px var(--gutter); }
.architecture-backdrop { position: absolute; inset: 0; background: var(--surface); pointer-events: none; }
.architecture-content { position: relative; width: 100%; max-width: var(--wide); margin-inline: auto; }
.architecture-intro { max-width: 960px; margin: 0 auto 48px; text-align: center; }
.architecture-intro p { max-width: var(--copy); margin-inline: auto; margin-top: 24px; color: var(--body); font-size: 21px; line-height: 1.4; }
.architecture-figure { position: relative; height: 380px; max-width: var(--mid); margin-inline: auto; padding: 0; }
.architecture-map { display: grid; grid-template-columns: minmax(0, 1fr) 64px 144px 64px minmax(0, 1fr); align-items: center; height: 100%; color: var(--accent-ink); container-type: inline-size; }
.architecture-group { min-width: 0; text-align: center; }
.architecture-group-label { margin-bottom: 20px; color: var(--body); font-size: 12px; line-height: 20px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.architecture-bank { display: grid; grid-template-columns: repeat(2, minmax(0, 126px)); justify-content: center; gap: 12px; }
.architecture-embodiment .architecture-bank { grid-template-columns: repeat(3, minmax(0, 126px)); }
.architecture-module { min-width: 0; }
.architecture-module-art { display: block; width: 100%; height: 108px; stroke-width: 1.3; }
.architecture-slot { fill: var(--panel); stroke: var(--line); }
.architecture-module-label { margin-top: 8px; color: var(--body); font-size: 13px; line-height: 20px; white-space: nowrap; }
.architecture-custom { --adapter-shift-x: -6px; --adapter-shift-y: 0px; }
.architecture-navigation .architecture-custom { order: -1; }
.architecture-embodiment .architecture-custom { --adapter-shift-x: 6px; }
.architecture-custom .architecture-module-art { opacity: .6; }
.architecture-custom .architecture-slot { fill: none; stroke: var(--secondary-ink); stroke-dasharray: 4 5; }
.architecture-extension { stroke: var(--secondary-ink); stroke-width: 1.4; }
.architecture-network-links { fill: none; stroke: var(--secondary); stroke-width: 1; opacity: .45; }
.architecture-network-nodes { fill: var(--panel); stroke: var(--accent-ink); stroke-width: 1.5; }
.architecture-network-hidden { fill: var(--accent); stroke-width: 1; }
.architecture-cart { stroke: var(--accent-ink); stroke-width: 1.5; stroke-linejoin: round; }
.architecture-cart-dark { fill: var(--ink); }
.architecture-cart-rim { fill: var(--accent-ink); }
.architecture-cart-disc { fill: var(--accent); }
.architecture-joint { position: relative; display: block; height: 1px; margin-left: calc(-1 * max(8px, 25cqw - 190px)); margin-right: -27px; background: var(--secondary); transform: translateY(-12px); }
.architecture-core + .architecture-joint { margin-left: -27px; margin-right: calc(-1 * max(8px, 25cqw - 260px)); }
.architecture-joint::before, .architecture-joint::after { content: ""; position: absolute; top: -8px; width: 7px; height: 17px; border: 1px solid var(--accent); border-radius: 3px; background: var(--panel); }
.architecture-joint::before { left: 0; }
.architecture-joint::after { right: 0; }
.architecture-core { justify-self: center; width: 132px; text-align: center; }
.architecture-core svg { display: block; width: 60px; height: 48px; margin-inline: auto; }
.architecture-core p { margin-top: 8px; color: var(--ink); font-size: 18px; line-height: 24px; font-weight: 550; }
.architecture-motion-control { position: absolute; inset: 0; height: 100%; border-radius: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .architecture-custom .architecture-module-art { animation: architecture-adapter 6s ease-in-out infinite; }
  .architecture-figure[data-motion="paused"] .architecture-module-art { animation-play-state: paused; }
  @keyframes architecture-adapter {
    0%, 50%, 100% { opacity: .6; transform: translate(0, 0); }
    68%, 82% { opacity: .7; transform: translate(var(--adapter-shift-x), var(--adapter-shift-y)); }
  }
}
#about { display: grid; grid-template-columns: 360px minmax(0, 720px); justify-content: center; gap: 120px; }
.about-heading { align-self: start; }
.about-heading h2 { text-align: left; }
.about-copy { min-width: 0; }
.about-copy p { color: var(--body); font-size: 21px; line-height: 1.65; }
.about-copy p + p { margin-top: 32px; }

.content > #videos { display: block; width: 100%; max-width: none; padding-bottom: 0; background: var(--panel); }
.demo-intro { margin: 0 auto 80px; text-align: center; }
#videos > .demo-intro h2, #benchmarks > .demo-intro h2 { font-size: 64px; }
.demo-intro p { margin-top: 24px; color: var(--body); font-size: 21px; line-height: 1.4; }
/* 包含关系替代内部读写回路，共享通道和按需介入构成调度输出，六条主连接使用独立的桌面和手机坐标。 */
.workflow-intro { max-width: var(--mid); margin: 0 auto 56px; text-align: center; }
.workflow-intro p { max-width: var(--copy); margin: 24px auto 0; color: var(--body); font-size: 21px; line-height: 1.6; text-wrap: pretty; }
.workflow-figure { position: relative; max-width: var(--mid); height: 420px; margin-inline: auto; color: var(--accent-ink); }
.workflow-lines { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; stroke-width: 1.4; }
.workflow-lines path { vector-effect: non-scaling-stroke; }
.workflow-lines marker path { stroke: context-stroke; fill: none; }
.workflow-forward { stroke: var(--accent-ink); marker-end: url(#workflow-arrow); }
.workflow-feedback { stroke: var(--secondary); marker-end: url(#workflow-arrow); }
.workflow-shared-channel { marker-start: url(#workflow-arrow); }
.workflow-lines-mobile { display: none; }
.workflow-controller { position: absolute; top: 16px; left: 11.904762%; width: 76.190476%; height: 224px; }
.workflow-controller::before { content: ""; position: absolute; inset: 0; z-index: 0; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); }
.workflow-node { position: absolute; z-index: 2; height: 128px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--card-border); border-radius: var(--card-radius); background: var(--panel); box-shadow: var(--card-shadow); }
.workflow-node-main { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; }
.workflow-observation { top: 300px; left: 17.142857%; width: 22.857143%; height: 80px; }
.workflow-decision { top: 80px; left: 6.875%; width: 30%; }
.workflow-execution { top: 80px; left: 61.875%; width: 32.5%; }
.workflow-verification { top: 288px; left: 59.047619%; width: 24.761905%; height: 104px; }
.workflow-node h3 { min-width: 0; color: var(--ink); font-size: 17px; line-height: 22px; font-weight: 550; }
.workflow-icon { display: block; flex: 0 0 44px; width: 44px; height: 40px; }
.workflow-check-icon { stroke-width: 2; }
.workflow-check-clip { fill: var(--panel); }
.workflow-component { display: flex; flex: 0 0 44px; align-items: center; justify-content: center; gap: 10px; padding: 6px 10px; background: var(--paper); }
.workflow-component p { color: var(--ink); font-size: 16px; line-height: 22px; font-weight: 500; }
.workflow-component-icon { flex: 0 0 36px; width: 36px; height: 30px; }
.workflow-candidate-frame { stroke: var(--accent-ink); stroke-width: 2; }
.workflow-scheduling { position: absolute; top: 16px; left: 50%; z-index: 2; width: 22.5%; height: 48px; transform: translateX(-50%); border: 1px solid var(--card-border); border-radius: var(--card-radius); }
.workflow-label { position: absolute; z-index: 2; color: var(--secondary-ink); font-size: 15px; line-height: 20px; text-align: center; }
.workflow-event-label { top: 28px; left: 62.285714%; width: 9.52381%; }
.workflow-intervene-label { top: 28px; left: 29.52381%; width: 11.904762%; }
.workflow-continue-label { top: 68px; left: 72.857143%; width: 10.47619%; }
.workflow-stop-label { top: 250px; left: 74.285714%; width: 16.190476%; }
.workflow-retry-label { top: 350px; left: 41.904762%; width: 16.190476%; }
.workflow-success { display: flex; flex: 0 0 30px; align-items: center; justify-content: center; gap: 8px; padding: 4px 10px; background: var(--surface); font-size: 15px; line-height: 20px; }
.workflow-success svg { flex: 0 0 20px; width: 20px; height: 20px; }
@media (max-width: 1000px) {
  .workflow-figure { max-width: 460px; height: 760px; }
  .workflow-lines-desktop { display: none; }
  .workflow-lines-mobile { display: block; }
  .workflow-controller { top: 120px; left: 6.857143%; width: 93.142857%; height: 432px; }
  .workflow-observation, .workflow-verification { left: 16%; width: 74.857143%; }
  .workflow-observation { top: 0; }
  .workflow-verification { top: 616px; }
  .workflow-decision, .workflow-execution { left: 9.815951%; width: 80.368098%; }
  .workflow-decision { top: 88px; }
  .workflow-execution { top: 264px; }
  .workflow-node-main { justify-content: flex-start; padding: 12px 16px; }
  .workflow-node h3 { font-size: 17px; line-height: 24px; }
  .workflow-scheduling { width: 55.214724%; }
  .workflow-event-label { top: 184px; left: 14.857143%; width: 22.857143%; }
  .workflow-intervene-label { top: 184px; left: 57.142857%; width: 37.142857%; text-align: left; }
  .workflow-continue-label { top: 350px; left: 14.857143%; width: 34.285714%; text-align: left; }
  .workflow-stop-label { top: 562px; left: 45.714286%; width: 22.857143%; }
  .workflow-retry-label { top: 562px; left: 10.285714%; width: 34.285714%; }
}
@media (max-width: 800px) {
  .workflow-intro { margin-bottom: 48px; }
  .workflow-intro p { font-size: 17px; line-height: 1.6; }
}

.demo-replay, #videos > .demo-section-heading { max-width: var(--wide); margin-inline: auto; min-width: 0; }
.demo-replay { padding-bottom: 120px; }
.demo-section-heading { margin-bottom: 32px; }
.demo-section-heading h3 { font-size: 36px; line-height: 1.15; font-weight: 550; letter-spacing: -.025em; }
.demo-section-heading p { margin-top: 12px; color: var(--body); font-size: 17px; line-height: 1.5; }
#go2 { margin: 0 calc(-1 * var(--gutter)); padding: 120px var(--gutter); background: var(--paper); }
#go2 > .demo-section-heading, #go2 > .task-stack { max-width: var(--wide); margin-inline: auto; }
#go2 > .task-tabs { max-width: calc(var(--wide) + 8px); margin-inline: auto; }
#benchmarks { background: var(--surface); }
#benchmarks > .benchmark-panels, #benchmarks > .benchmark-tabs { max-width: var(--mid); margin-inline: auto; }
.realworld-grid { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 16px 24px; }
.realworld-column { display: grid; grid-template-rows: subgrid; grid-row: 1 / 3; min-width: 0; }
.realworld-notes { padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.realworld-notes p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.realworld-notes .empty-title { color: var(--body); font-size: 14px; }


.benchmark-card { overflow: hidden; }
.benchmark-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; overflow-x: auto; }
.benchmark-tabs button { flex-shrink: 0; border: 1px solid transparent; border-radius: var(--control-radius); background: transparent; color: var(--body); font: inherit; cursor: pointer; }
.benchmark-tabs button { padding: 12px 20px; font-size: 15px; font-weight: 550; }
.benchmark-tabs [aria-selected="true"] { background: var(--panel); border-color: var(--accent); color: var(--accent-ink); }
.benchmark-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.benchmark-panel > h3 { grid-column: 1 / -1; font-size: 18px; }
.benchmark-metric-card { min-width: 0; padding: 24px; }
.benchmark-panel + .benchmark-panel { margin-top: 24px; }
.benchmark-tabs button:hover { color: var(--accent-ink); background: var(--surface); }
.benchmark-chart-title { margin: 0 0 12px; font-size: 16px; font-weight: 550; }
.benchmark-chart-row, .benchmark-axis { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 24px; align-items: center; }
.benchmark-chart-row { padding: 12px 0; row-gap: 8px; }
.benchmark-chart-method { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; }
.benchmark-method-line { display: block; white-space: nowrap; }
.benchmark-chart-value { text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.benchmark-track { height: 10px; border-radius: 5px; background: var(--surface); }
.benchmark-bar { display: block; height: 100%; border-radius: inherit; background: var(--secondary); }
.benchmark-chart-row[data-method="1"] .benchmark-bar { background: var(--ink); }
.benchmark-chart-row[data-method="2"] .benchmark-bar { background: var(--accent); }
.benchmark-axis { margin-top: 12px; font-size: 12px; color: var(--body); }
.benchmark-axis-scale { grid-column: 1; display: flex; justify-content: space-between; }
#go2 .baseline-player { grid-template-rows: 48px auto; }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.8; }
.site-footer > div:not(.footer-copy) { display: flex; gap: 24px; }
.footer-copy p { margin-top: 4px; }
.skip-link { position: absolute; z-index: 50; top: -80px; left: 20px; padding: 12px; background: var(--surface); color: var(--ink); }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@container tasks (max-width: 1000px) {
  .realworld-grid { grid-template-columns: minmax(0, 1fr); }
  .realworld-column:last-child { grid-column: 1 / -1; grid-row: 3 / 5; }
  .realworld-notes { min-height: 150px; }
}
@media (max-width: 1100px) {
  #about { grid-template-columns: minmax(0, var(--copy)); gap: 40px; }
  .about-heading h2 { max-width: 760px; }
  .capability-grid { grid-template-columns: minmax(0, 600px); justify-content: center; gap: 72px; }
  .capability-panel { grid-template-rows: 320px auto; }
}
@media (max-width: 1000px) {
  .architecture-figure { height: 420px; padding: 16px; }
  .architecture-map { grid-template-columns: minmax(0, 1fr); grid-template-rows: 100px 28px minmax(0, 1fr) 28px 124px; }
  .architecture-group-label { margin-bottom: 4px; }
  .architecture-module-art { height: 60px; }
  .architecture-module-label { margin-top: 4px; }
  .architecture-bank { gap: 12px; }
  .architecture-core { width: 74px; }
  .architecture-core svg { width: 55px; height: 44px; }
  .architecture-core p { margin-top: 0; font-size: 16px; }
  .architecture-joint, .architecture-core + .architecture-joint { justify-self: center; width: 1px; height: 100%; margin: 0; transform: none; }
  .architecture-joint::before, .architecture-joint::after { left: -8px; width: 17px; height: 7px; }
  .architecture-joint::before { top: 0; }
  .architecture-joint::after { top: auto; right: auto; bottom: 0; }
  .architecture-custom { --adapter-shift-x: 0px; --adapter-shift-y: -4px; }
  .architecture-navigation .architecture-custom { order: 0; }
  .architecture-embodiment .architecture-custom { --adapter-shift-x: 0px; --adapter-shift-y: 4px; }
}
@media (max-width: 800px) {
  :root { --chapter-space: 72px; --gutter: 20px; --reveal-duration: .5s; --reveal-distance: 0px; }
  .architecture-intro, .capabilities-heading, .demo-intro, .benchmark-tabs { margin-bottom: 32px; }
  .benchmark-panel { grid-template-columns: minmax(0, 1fr); }
  .capabilities-heading, .text-section h2, #videos > .demo-intro h2, #benchmarks > .demo-intro h2 { font-size: 40px; line-height: 1.15; }
  .site-footer { width: calc(100% - 40px); }
  .site-navigation::after { opacity: 1; }
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 56px 40px; gap: 0 12px; width: 100%; height: 96px; min-height: 96px; padding: 0 16px; }
  .brand { grid-column: 1; grid-row: 1; font-size: 18px; }
  .language { grid-column: 2; grid-row: 1; justify-self: end; margin-left: 0; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; min-width: 0; width: 100%; height: 40px; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { padding: 4px 10px; }
  .site-header nav a:focus-visible { outline-offset: -2px; }
  .content > .intro { padding-top: 48px; padding-bottom: 48px; }
  .intro { gap: 32px; }
  .hero-copy { max-width: 720px; }
  h1 { font-size: 56px; max-width: 640px; margin-inline: auto; }
  .intro-copy { max-width: 600px; font-size: 17px; line-height: 1.6; }
  .navigation-illustration { height: auto; max-width: 560px; }
  .navigation-illustration > button > svg { height: auto; }
  .capability-grid { grid-template-columns: minmax(0, 560px); }
  .capability-panel { grid-template-rows: 280px auto; }
  .architecture-stage { padding-block: 72px; }
  .architecture-intro p { font-size: 17px; line-height: 1.6; }
  .about-copy p { font-size: 17px; line-height: 1.75; }
  .demo-section-heading h3 { font-size: 30px; }
  .demo-section-heading p { font-size: 15px; }
  .demo-replay { padding-bottom: 72px; }
  #go2 { padding-block: 72px; }
  .capability-scene-control > svg { opacity: 1; }
  #about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-heading { position: static; }
}
@media (max-width: 600px) {
  .capabilities-heading { margin-bottom: 40px; }
  .realworld-grid { display: flex; flex-direction: column; gap: 24px; }
  .realworld-column { display: block; }
  .benchmark-tabs { gap: 4px; justify-content: flex-start; }
  .benchmark-tabs button { padding: 10px 12px; font-size: 14px; }
  .benchmark-chart-row { grid-template-columns: minmax(0, 1fr) 90px; gap: 10px 16px; padding: 12px 0; }
  .benchmark-chart-method { grid-column: 1 / -1; }
  .benchmark-axis { grid-template-columns: minmax(0, 1fr) 90px; gap: 16px; }
  .benchmark-axis-scale { grid-column: 1; }

}
@media (max-width: 480px) {
  .site-header nav { font-size: 12px; }
  h1 { font-size: 40px; letter-spacing: -.045em; }
  .capability-panel { grid-template-rows: 240px auto; }
  .hero-actions { gap: 10px; }
  .button { padding: 12px 16px; font-size: 13px; }
}
@media (hover: hover) {
  .glass-card:hover, .realworld-notes:hover, .benchmark-card:hover { transform: translateY(-4px); border-color: var(--card-hover-border); box-shadow: var(--hover-shadow); }

  .capability-grid:has(.capability-panel:hover) .capability-scene { opacity: .7; }
  .capability-grid .capability-panel:hover .capability-scene { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button, select, input, summary, .glass-card, .realworld-notes, .benchmark-card, .capability-panel { transition: color .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
  .capability-scene { transition: opacity .3s ease; }
  .site-navigation::after { transition: opacity .3s ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glass-card:hover, .realworld-notes:hover, .benchmark-card:hover, .capability-panel:hover, .capability-panel:focus-within, .button:active, .language:active, .site-header nav a:active { transform: none; }
}
@media print {
  .architecture-custom .architecture-module-art { animation: none; opacity: .6; transform: none; }
  .architecture-motion-control { display: none; }
}

/* 只在脚本成功安装观察器后隐藏待入场元素，无脚本时保持完整可读。 */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal-state="pending"] { opacity: 0; }
  [data-reveal-state="visible"] {
    animation: chapter-reveal var(--reveal-duration) cubic-bezier(.28, .11, .32, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
  }
  [data-reveal-mode="fade"][data-reveal-state="visible"] { animation-name: chapter-fade; }
  @keyframes chapter-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes chapter-reveal {
    from { opacity: 0; transform: translateY(var(--reveal-distance)); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 800px) {
  [data-reveal-state] { --reveal-delay: 0ms !important; }
}
@media print {
  .content > section { min-height: 0; padding-block: 32px; }
  #go2 { padding-block: 32px; }
  [data-reveal-state] { opacity: 1; animation: none; }
}

@media (min-width: 1001px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  #architecture[data-scroll-stage="active"] { height: calc(100svh - var(--header-height, 72px) + clamp(320px, 35svh, 480px)); }
  [data-scroll-stage="active"] .architecture-stage { position: sticky; top: var(--header-height, 72px); height: calc(100svh - var(--header-height, 72px)); padding-block: 32px; display: flex; align-items: center; }
  [data-scroll-stage="active"] .architecture-backdrop { clip-path: inset(var(--stage-inset-y, 12%) var(--stage-inset-x, 14%) round var(--stage-radius, 28px)); }
  [data-scroll-stage="active"] .architecture-intro { opacity: var(--stage-heading, 0); transform: translateY(calc((1 - var(--stage-heading, 0)) * 28px)); }
  [data-scroll-stage="active"] .architecture-core { opacity: var(--stage-core, .18); }
  [data-scroll-stage="active"] .architecture-group { opacity: var(--stage-adapters, .18); }
  [data-scroll-stage="active"] .architecture-joint { opacity: var(--stage-links, 0); }
}
@media print {
  #architecture[data-scroll-stage] { height: auto; }
  .architecture-stage { position: static; height: auto; padding-block: 32px; }
  .architecture-backdrop { clip-path: none; }
  .architecture-content :is(.architecture-intro, .architecture-core, .architecture-group, .architecture-joint) { opacity: 1; transform: none; }
}
