/* ============================================================
   SciEasy — 产品官网
   纸感底色 / 墨色文字 / 朱砂点缀 / 编辑式排版
   ============================================================ */

:root {
  --paper: #F8F6F1;
  --paper-2: #F2EEE5;
  --paper-3: #EDE8DE;
  --card: #FFFDF9;
  --ink: #15171A;
  --ink-2: #3F444B;
  --muted: #6B6F76;
  --faint: #7B8088;
  --line: #E3DED4;
  --line-2: #D2CAB9;
  --accent: #B23A2B;
  --accent-dark: #8E2A1D;
  --accent-soft: #F3E6E1;
  --green: #3E6B4F;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia,
    "Songti SC", "SimSun", serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;

  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

::selection { background: rgba(178, 58, 43, 0.16); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; }
table { border-collapse: collapse; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 300;
  padding: 10px 18px; border-radius: 0 0 6px 6px;
  background: var(--ink); color: var(--paper);
  font-size: 13px; transition: top .18s ease;
}
.skip-link:focus { top: 0; }

.grain {
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none; opacity: .03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- 排版基元 ---------- */

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.28; letter-spacing: -.032em; }
h2 { letter-spacing: -.025em; }

.h2 { font-size: clamp(29px, 3.8vw, 44px); line-height: 1.16; letter-spacing: -.028em; }

.micro {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex: none; }

.section-desc { font-size: 15.5px; line-height: 1.9; color: var(--muted); margin-top: 18px; }

.section { padding: clamp(80px, 9vw, 128px) 0; }
/* 质量区以引言收尾、部署区同为纸白底，两段间距收窄，避免中间出现大片空白 */
#quality { padding-bottom: clamp(52px, 5.4vw, 76px); }
#deploy { padding-top: clamp(52px, 5.4vw, 76px); }
section[id] { scroll-margin-top: 88px; }
.section--tint { background: var(--paper-2); }

.section-head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 64px); }
.section-head--split {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 5vw, 80px); align-items: end;
  max-width: none;
}
.section-head--split .section-desc { margin-top: 0; padding-bottom: 6px; max-width: 420px; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 4px;
  font-size: 14.5px; font-weight: 500; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn--lg { height: 50px; padding: 0 28px; font-size: 15px; }
.btn--sm { height: 38px; padding: 0 17px; font-size: 13px; }
.btn--primary { background: var(--ink); color: #FBF8F1; }
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--card); }
.btn .ic { width: 15px; height: 15px; }

/* ---------- 导航 ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  height: 72px;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(248, 246, 241, .88);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}
.nav.is-open { background: var(--paper); border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center; gap: 40px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 27px; height: 27px; border-radius: 6px; }
.brand-name {
  font-family: var(--font-serif); font-size: 20px; font-weight: 600;
  letter-spacing: -.015em; color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a {
  position: relative; font-size: 13.5px; color: var(--muted);
  padding: 6px 0; transition: color .18s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent); transition: right .25s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-toggle {
  display: none; width: 38px; height: 38px;
  border: 1px solid var(--line-2); border-radius: 4px;
  place-items: center; color: var(--ink);
}

/* ---------- Hero ---------- */

.hero { position: relative; padding: 172px 0 92px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 42% at 50% 0%, rgba(178, 58, 43, .07), transparent 70%),
    radial-gradient(40% 30% at 82% 12%, rgba(62, 107, 79, .05), transparent 70%);
}
.hero .container { position: relative; }
.hero-copy { max-width: 900px; margin: 0 auto; text-align: center; }
.hero h1 { margin-top: 18px; }
.hero h1 .mark { position: relative; color: var(--accent); white-space: nowrap; }
.hero h1 .mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em;
  height: 3px; background: var(--accent); opacity: .55;
  transform: rotate(-.7deg); border-radius: 2px;
}
.hero-sub {
  max-width: 660px; margin: 34px auto 0;
  font-size: 16.5px; line-height: 2; color: var(--muted);
}
.hero-meta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  margin-top: 46px; font-size: 12.5px; color: var(--faint);
}
.hero-meta li { padding: 0 20px; border-left: 1px solid var(--line-2); }
.hero-meta li:first-child { border-left: 0; padding-left: 0; }
.hero-meta li:last-child { padding-right: 0; }

/* ---------- 运行面板 ---------- */

.run {
  margin-top: clamp(44px, 6vw, 68px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 44px 90px -56px rgba(21, 23, 26, .5), 0 1px 0 rgba(255, 255, 255, .8) inset;
  overflow: hidden;
}
.run-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 46px; padding: 0 18px;
  background: #FBF9F4; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--faint);
}
.run-bar-l, .run-bar-r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.run-bar-l > span { white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
.run-sep { color: var(--line-2); }
.run-id { color: var(--muted); }
.badge-ok {
  padding: 3px 8px; border-radius: 3px;
  background: #E9EFE6; color: var(--green); font-size: 10px; letter-spacing: .02em;
}
.replay {
  display: grid; place-items: center; width: 24px; height: 24px;
  border: 1px solid var(--line); border-radius: 3px; color: var(--faint);
  transition: color .2s, border-color .2s;
}
.replay:hover { color: var(--ink); border-color: var(--line-2); }
.replay .ic { width: 12px; height: 12px; }

.run-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 424px; }
.run-log { padding: 24px 28px; display: flex; flex-direction: column; background: var(--card); }
.run-query .micro { margin-bottom: 7px; }
.run-query p:last-child {
  font-size: 14px; line-height: 1.7; color: var(--ink-2);
  border-left: 2px solid var(--accent); padding-left: 12px;
}
.log { margin-top: 18px; flex: 1; }
.log-line {
  display: grid; grid-template-columns: 44px 58px minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed rgba(21, 23, 26, .08);
  font-size: 12.5px; color: var(--ink-2);
}
.log-line:last-child { border-bottom: 0; }
.log-line time { font-family: var(--font-mono); font-size: 10px; color: var(--faint); }
.log-line p { min-width: 0; }
.log-line em { font-style: normal; color: var(--accent); font-weight: 600; }
.log-agent {
  justify-self: start;
  padding: 2px 5px; border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .02em;
  color: var(--muted); background: #FDFBF7; white-space: nowrap;
}
.chip {
  padding: 2px 6px; border: 1px solid var(--line); border-radius: 3px;
  font-family: var(--font-mono); font-size: 9.5px; color: var(--faint);
  white-space: nowrap; background: #FDFBF7;
}
.run-foot { margin-top: 16px; }
.run-progress { height: 2px; background: var(--line); overflow: hidden; }
.run-progress span {
  display: block; height: 100%; width: 100%; background: var(--accent);
  transform-origin: left; animation: fillBar 2s cubic-bezier(.2,.7,.2,1) both;
}
.run-foot p { margin-top: 8px; font-family: var(--font-mono); font-size: 9.5px; color: var(--faint); }

.run-paper { padding: 20px; border-left: 1px solid var(--line); background: var(--paper-3); }
.paper-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 9.5px; color: var(--faint); margin-bottom: 10px;
}
.paper-sheet {
  background: #FFFDF9; padding: 20px 18px;
  border: 1px solid rgba(21, 23, 26, .07);
  box-shadow: 0 10px 28px -16px rgba(21, 23, 26, .45);
}
.paper-kicker {
  font-family: var(--font-mono); font-size: 7px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.paper-sheet h3 {
  font-family: var(--font-serif); font-size: 13.5px; line-height: 1.35;
  font-weight: 600; letter-spacing: -.01em;
}
.paper-authors { font-size: 7.5px; color: var(--faint); margin-top: 6px; }
.paper-rule { height: 1px; background: var(--line); margin: 10px 0; }
.paper-abs { font-size: 7.6px; line-height: 1.6; color: #55595F; text-align: justify; }
.paper-abs b { color: var(--ink); }
.paper-fig { margin-top: 10px; border: 1px solid var(--line); padding: 6px 6px 4px; }
.paper-fig span { display: block; text-align: center; font-size: 6.8px; color: var(--faint); margin-top: 3px; }
.paper-lines { margin-top: 9px; }
.paper-lines i { display: block; height: 2.5px; background: #EAE4D7; margin-bottom: 4px; }
.paper-lines i:nth-child(3n) { width: 92%; }
.paper-lines i:last-child { width: 58%; }

/* ---------- 团队 ---------- */

.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px 44px;
}
.agent-card { border-top: 1px solid var(--ink); padding-top: 22px; }
.agent-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.agent-n { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: .06em; }
.agent-en { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; color: var(--faint); }
.agent-card h3 { font-size: 21px; margin: 14px 0 8px; }
.agent-card p { font-size: 13px; line-height: 1.9; color: var(--muted); max-width: 300px; }

/* 协作回路示意图（宽屏） */
.flow { margin-top: clamp(44px, 5vw, 60px); }
.flow-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.flow-head-note { font-size: 11.5px; color: var(--faint); letter-spacing: .01em; }
.flow-svg { display: block; width: 100%; height: auto; }
.fl-line { fill: none; stroke: #C6BCA8; stroke-width: 1.2; }
.fl-line-dash {
  fill: none; stroke: var(--accent); stroke-width: 1.2;
  stroke-dasharray: 4 4; opacity: .75;
}
.fl-en { font-family: var(--font-mono); font-size: 9.2px; letter-spacing: .13em; fill: var(--faint); }
.fl-zh { font-family: var(--font-sans); font-size: 16px; font-weight: 600; fill: var(--ink); }
.fl-zh-sm { font-family: var(--font-sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.fl-note { font-family: var(--font-mono); font-size: 10px; fill: var(--faint); }
.fl-in { font-family: var(--font-sans); font-size: 11.5px; fill: var(--muted); }
.fl-out { font-family: var(--font-sans); font-size: 13px; font-weight: 600; fill: var(--ink); }
.fl-out-sub { font-family: var(--font-mono); font-size: 9.5px; fill: var(--faint); letter-spacing: .06em; }
.fl-back { font-family: var(--font-mono); font-size: 9.5px; fill: var(--accent); letter-spacing: .06em; }
.fl-ok { font-family: var(--font-mono); font-size: 9px; fill: var(--green); letter-spacing: .1em; }
.fl-light { fill: #F8F4EA; }
.fl-light-2 { fill: rgba(242, 238, 229, .66); }

.loop {
  display: none; align-items: stretch;
  margin-top: clamp(44px, 5vw, 60px);
  border: 1px solid var(--line); border-radius: 5px;
  background: var(--card); overflow-x: auto;
}
.loop-step {
  flex: 1; min-width: 150px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 22px; border-left: 1px solid var(--line);
}
.loop-step:first-child { border-left: 0; }
.loop-step span { font-family: var(--font-mono); font-size: 9px; color: var(--faint); letter-spacing: .08em; }
.loop-step b { font-size: 14px; font-weight: 600; color: var(--ink); }
.loop-step em { font-style: normal; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); }
.loop-step.is-ok b { color: var(--green); }
.loop-arrow {
  align-self: center; padding: 0 6px;
  color: var(--line-2); font-size: 14px;
}
.loop-note {
  margin-top: 12px; font-size: 11.5px; color: var(--faint);
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.loop-back {
  font-family: var(--font-mono); font-size: 9.5px; color: var(--accent);
  border: 1px solid #E8D3CC; background: #FBF2EF; border-radius: 3px; padding: 2px 7px;
}

/* ---------- 流程 ---------- */

.steps {
  display: grid; grid-template-columns: repeat(8, 1fr);
  border-top: 1px solid var(--line-2);
}
.step {
  display: flex; flex-direction: column; gap: 3px;
  padding: 15px 10px 17px 0; text-align: left;
  border-top: 2px solid transparent; margin-top: -1px;
  color: var(--muted); transition: color .2s ease, border-color .2s ease;
}
.step:hover { color: var(--ink); }
.step.is-active { border-top-color: var(--accent); color: var(--ink); }
.step-n { font-family: var(--font-mono); font-size: 10px; color: var(--faint); letter-spacing: .06em; }
.step.is-active .step-n { color: var(--accent); }
.step-t { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.step-e {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--line-2);
}
.step.is-active .step-e { color: var(--faint); }

.stage-panels { margin-top: clamp(36px, 4vw, 52px); }
.stage {
  display: grid; grid-template-columns: 1fr .86fr;
  gap: clamp(32px, 5vw, 76px); align-items: start;
  animation: fadeUp .45s ease both;
}
.stage-copy h3 { font-size: clamp(22px, 2.4vw, 27px); margin: 10px 0 14px; letter-spacing: -.02em; }
.stage-lead { font-size: 15px; line-height: 1.9; color: var(--muted); max-width: 460px; }
.ticks { margin-top: 20px; }
.ticks li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-2);
}
.ticks .ic { width: 13px; height: 13px; color: var(--accent); margin-top: 5px; stroke-width: 2.6; }
.ticks--sm li { font-size: 12.5px; padding: 4px 0; }
.ticks--sm .ic { width: 12px; height: 12px; margin-top: 5px; }

.handoff {
  background: var(--card); border: 1px solid var(--line); border-radius: 5px;
  padding: 20px 24px;
  box-shadow: 0 22px 50px -44px rgba(21, 23, 26, .55);
}
.handoff-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 9.5px; color: var(--faint); letter-spacing: .1em;
}
.handoff-head .ok { color: var(--green); letter-spacing: 0; }
.handoff dl div {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.handoff dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.handoff dt { font-size: 11px; color: var(--faint); }
.handoff dd { font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }

/* ---------- 质量 ---------- */

.gates { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.gate { border-top: 1px solid var(--ink); padding-top: 24px; }
.gate-n { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); letter-spacing: .08em; }
.gate h3 { font-size: 20px; margin: 14px 0 9px; }
.gate p { font-size: 13.5px; line-height: 1.9; color: var(--muted); max-width: 430px; }
.gate-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-top: 14px;
}
.gate-who { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em; color: var(--muted); }
.gate-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .03em;
  color: var(--faint); border: 1px solid var(--line); border-radius: 3px;
  padding: 3px 8px; background: var(--card);
}

.pullquote { margin-top: clamp(64px, 8vw, 96px); text-align: center; }
.pullquote .q { width: 26px; height: 26px; margin: 0 auto; color: var(--accent); opacity: .45; stroke-width: 1.4; }
.pullquote p {
  font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.4; color: var(--ink); margin: 12px 0 14px; letter-spacing: -.01em;
}
.pullquote cite {
  font-family: var(--font-mono); font-style: normal; font-size: 9.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}

/* ---------- 部署 ---------- */

.deploy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.deploy-card { background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 32px; }
.deploy-card h3 { font-size: 22px; margin: 13px 0 10px; }
.deploy-card p { font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.deploy-card--ink { background: var(--ink); border-color: var(--ink); }
.deploy-card--ink h3 { color: #F8F4EA; }
.deploy-card--ink p { color: rgba(242, 238, 229, .62); }
.deploy-card--ink .micro { color: rgba(242, 238, 229, .42); }
.deploy-card--ink .ticks li { color: rgba(242, 238, 229, .78); }
.deploy-card--ink .ticks .ic { color: #D08A63; }
.fields {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--faint); letter-spacing: .02em;
}
.assure { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 16px; }
.assure li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.assure .ic { width: 14px; height: 14px; color: var(--green); stroke-width: 1.8; }

/* ---------- 联系我们 ---------- */

.contact-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.contact-item { padding: 28px 32px 4px 0; border-right: 1px solid var(--line); }
.contact-item:last-child { border-right: 0; padding-right: 0; }
.contact-item h3 { font-size: 15px; margin: 12px 0 10px; letter-spacing: -.01em; }
.contact-item p { font-size: 14px; line-height: 1.75; color: var(--muted); }
.contact-item p + p { margin-top: 2px; }
.contact-item a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-2); padding-bottom: 1px;
  transition: color .18s ease, border-color .18s ease;
}
.contact-item a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact-note { display: block; margin-top: 14px; font-size: 11.5px; color: var(--faint); letter-spacing: .01em; }

/* ---------- FAQ ---------- */

.faq-wrap { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-head .h2 { font-size: clamp(25px, 3.1vw, 36px); }
.faq-head .section-desc { max-width: 280px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 13px; height: 13px; flex: none; margin-top: 6px; }
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; background: var(--accent);
  transition: transform .25s ease, opacity .25s ease;
}
.faq summary i::before { left: 0; top: 6px; width: 13px; height: 1px; }
.faq summary i::after { left: 6px; top: 0; width: 1px; height: 13px; }
.faq[open] summary i::after { transform: scaleY(0); opacity: 0; }
.faq-body { padding: 0 40px 22px 0; }
.faq-body p { font-size: 13.5px; line-height: 1.95; color: var(--muted); }

/* ---------- 页脚 ---------- */

.footer { padding: 54px 0 24px; background: var(--paper); border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 60px; }
.footer-brand > p { margin-top: 12px; font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--faint); }
.footer-cols { display: flex; gap: 64px; }
.footer-cols div { display: flex; flex-direction: column; gap: 7px; }
.footer-cols .micro { margin-bottom: 5px; }
.footer-cols a { font-size: 12.5px; color: var(--muted); transition: color .18s; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 9.5px; color: var(--faint);
}

/* ---------- 动效 ---------- */

.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

.run .log-line { opacity: 0; }
.run.is-running .log-line {
  animation: lineIn .45s ease forwards;
  animation-delay: calc(.35s + var(--i) * .13s);
}

@keyframes lineIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(178, 58, 43, .3); }
  50% { opacity: .55; box-shadow: 0 0 0 4px rgba(178, 58, 43, 0); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .run-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .team-grid { gap: 36px 32px; }
  .faq-wrap { grid-template-columns: minmax(0, 296px) minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 28px 32px;
    background: var(--paper);
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease;
    overflow-y: auto;
  }
  .nav.is-open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: grid; }
  .nav-inner { gap: 16px; }
  .nav-actions { margin-left: auto; }

  .section-head--split { grid-template-columns: 1fr; gap: 20px; }
  .section-head--split .section-desc { margin-top: 0; max-width: none; }

  .run-body { grid-template-columns: 1fr; }
  .run-paper { display: none; }
  .run-log { padding: 22px; }

  .team-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .agent-card p { max-width: none; }

  .stage { grid-template-columns: 1fr; gap: 28px; }
  .stage-lead { max-width: none; }
  .handoff { max-width: 480px; }

  .gates { gap: 34px 40px; }

  .deploy-grid { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .faq-head .section-desc { max-width: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
  .contact-note { margin-top: 10px; }
  .footer-top { flex-direction: column; gap: 36px; }

  /* 窄屏换成紧凑的回路条，避免示意图文字过小 */
  .flow { display: none; }
  .loop { display: flex; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .hero { padding: 118px 0 56px; }
  .hero .eyebrow { justify-content: center; font-size: 10px; letter-spacing: .08em; }
  .eb-en { display: none; }
  .hero-sub { font-size: 15px; margin-top: 24px; line-height: 1.95; }
  .hero-sub .br-lg { display: none; }
  .hero-meta { gap: 6px 16px; margin-top: 30px; font-size: 11px; }
  .hero-meta li { padding: 0; border-left: 0; }
  br.br-lg { display: none; }

  .run-bar { font-size: 9.5px; padding: 0 12px; }
  .run-bar-l .run-sep { display: none; }
  .run-time, .badge-ok { white-space: nowrap; }
  .log-line { grid-template-columns: 38px 52px minmax(0, 1fr); gap: 8px; padding: 9px 0; }
  .log-line .chip { display: none; }
  .log-line p { font-size: 11.5px; line-height: 1.55; }
  .log-agent { font-size: 8px; padding: 2px 4px; }
  .run-query p:last-child { font-size: 13px; }

  .section { padding: 68px 0; }
  .h2 { font-size: 28px; }
  .section-desc { font-size: 14.5px; }

  .team-grid { grid-template-columns: 1fr; gap: 28px; }
  .agent-card h3 { font-size: 19px; }
  .loop {
    display: grid; grid-template-columns: 1fr 1fr;
    margin-right: 0; overflow: visible;
  }
  .loop-step { min-width: 0; padding: 14px 16px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .loop-step:nth-of-type(1) { border-left: 0; border-top: 0; }
  .loop-step:nth-of-type(2) { border-top: 0; }
  .loop-step:nth-of-type(3) { border-left: 0; }
  .loop-arrow { display: none; }

  .steps {
    display: flex; overflow-x: auto; scrollbar-width: none;
    margin-right: -20px; padding-right: 20px;
    -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 84%, transparent 100%);
  }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 auto; min-width: 96px; padding-right: 16px; }
  .step-e { display: none; }
  .stage-panels { margin-top: 30px; }
  .stage-copy h3 { font-size: 22px; }

  .gates { grid-template-columns: 1fr; gap: 28px; }
  .gate p { max-width: none; }

  .deploy-card { padding: 24px; }
  .fields { font-size: 11px; }
  .assure { gap: 14px 22px; }

  .faq summary { font-size: 14px; }
  .faq-body { padding-right: 20px; }


  .footer-cols { gap: 32px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 380px) {
  h1 { font-size: 34px; letter-spacing: -.03em; }
  .hero .eyebrow { font-size: 9.5px; letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .run .log-line { opacity: 1; }
}

@media print {
  .nav, .grain, .skip-link, .footer-cols { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .run .log-line { opacity: 1 !important; }
  .section { padding: 32px 0; break-inside: avoid; }
  body { background: #fff; }
}
