:root {
  --canvas: #0b0d0c;
  --surface: #111412;
  --surface-raised: #151917;
  --surface-soft: #181c19;
  --text: #e9f1ec;
  --muted: #b8c4bc;
  --faint: #89968e;
  --accent: #46e07b;
  --accent-strong: #67ee96;
  --accent-ink: #06251a;
  --accent-blue: #78a8ff;
  --accent-cyan: #7ddedc;
  --accent-amber: #e9bd72;
  --warning: #e9bd72;
  --line: rgba(214, 226, 218, 0.16);
  --line-strong: rgba(214, 226, 218, 0.26);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 10px;
  --content: 1200px;
  --font-mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 7%, rgba(70, 224, 123, 0.035), transparent 28rem),
    var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--accent-ink);
  background: var(--accent);
  transform: translateY(-160%);
  box-shadow: var(--shadow);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 4px; }

.container { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.narrow { width: min(calc(100% - 48px), 780px); margin-inline: auto; }
.section { position: relative; padding: 74px 0; border-top: 1px solid var(--line); }
.section-tight { padding: 48px 0; }
.section-white { background: rgba(255, 255, 255, 0.022); }
.section-dark { background: #0b0d0c; }
.section-blue {
  background:
    linear-gradient(135deg, rgba(70, 224, 123, 0.07), transparent 48%),
    var(--surface);
}
.section-header { max-width: 680px; margin-bottom: 32px; }
.section-header.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  color: var(--accent);
  font: 700 0.72rem/1.4 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}
.eyebrow::before { content: "//"; color: var(--faint); letter-spacing: 0; }
.section-header.center .eyebrow { justify-content: center; }
h1, h2, h3 {
  margin-top: 0;
  color: var(--text);
  line-height: 1.18;
  letter-spacing: 0;
}
h1 { font-size: 2.85rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.15rem; letter-spacing: 0; }
p { margin-top: 0; }
.lede { max-width: 680px; color: var(--muted); font-size: 1.05rem; line-height: 1.72; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 5, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(125%);
}
.nav-shell {
  width: min(calc(100% - 48px), var(--content));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}
.header-logo { width: 230px; height: auto; }
.standalone-logo { width: min(360px, 72vw); height: auto; }
.site-navigation {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-main, .nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-main { flex: 1; justify-content: center; min-width: 0; }
.nav-actions { flex: 0 0 auto; justify-content: flex-end; }
.nav-wechat { position: relative; display: inline-flex; }
.nav-link {
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 720;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent-strong); background: rgba(70, 224, 123, 0.08); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); }
.nav-link.utility {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}
.nav-link.utility:hover { border-color: rgba(70, 224, 123, 0.28); color: var(--text); background: rgba(70, 224, 123, 0.07); }
.nav-link.nav-primary {
  min-height: 42px;
  padding: 9px 17px;
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(70, 224, 123, 0.2);
}
.nav-link.nav-primary:hover { color: var(--accent-ink); background: var(--accent-strong); box-shadow: 0 14px 28px rgba(70, 224, 123, 0.26); }
.nav-link.nav-primary[aria-current="page"] { color: var(--accent-ink); box-shadow: 0 12px 24px rgba(70, 224, 123, 0.2); }
.nav-qr-popover {
  position: absolute;
  z-index: 120;
  top: calc(100% + 12px);
  left: 50%;
  width: 176px;
  padding: 12px;
  border: 1px solid rgba(14, 41, 48, 0.12);
  border-radius: 10px;
  color: #10212a;
  background: rgba(244, 253, 254, 0.98);
  box-shadow: 0 20px 42px rgba(4, 22, 28, 0.18);
  display: grid;
  justify-items: center;
  gap: 7px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav-qr-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(14, 41, 48, 0.12);
  border-top: 1px solid rgba(14, 41, 48, 0.12);
  background: rgba(244, 253, 254, 0.98);
  transform: translateX(-50%) rotate(45deg);
}
.nav-qr-popover img {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 132px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}
.nav-qr-popover strong, .nav-qr-popover span { position: relative; z-index: 1; text-align: center; }
.nav-qr-popover strong { font-size: 0.78rem; line-height: 1.35; }
.nav-qr-popover span { color: #51616b; font-size: 0.68rem; line-height: 1.45; }
.nav-wechat:hover .nav-qr-popover, .nav-wechat:focus-within .nav-qr-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}
.menu-button span { display: block; height: 1px; margin: 5px 0; border-radius: 2px; background: var(--text); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 76% 28%, rgba(70, 224, 123, 0.045), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 70%);
}
.hero::before, .inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(180, 255, 210, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 255, 210, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(460px, 0.98fr); align-items: center; gap: clamp(46px, 5vw, 78px); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(70, 224, 123, 0.055);
  font: 700 0.72rem/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(70, 224, 123, 0.8); }
.hero h1 { max-width: 650px; margin-bottom: 22px; }
body[data-locale="zh"] .hero h1 { font-size: 2.8rem; line-height: 1.22; }
.no-wrap { white-space: nowrap; }
.hero .lede { max-width: 620px; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 760;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--accent-ink); background: var(--accent); box-shadow: 0 12px 28px -14px rgba(70, 224, 123, 0.9); }
.button-primary:hover { background: var(--accent-strong); box-shadow: 0 15px 32px -14px rgba(70, 224, 123, 0.95); }
.button-secondary { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.045); }
.button-secondary:hover { border-color: rgba(180, 255, 210, 0.32); background: rgba(255, 255, 255, 0.065); }
.button-dark { color: var(--text); background: #050705; }
.proof-inline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; color: var(--faint); font-size: 0.76rem; font-weight: 650; }
.proof-inline span { display: inline-flex; align-items: center; gap: 7px; }
.proof-inline span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.control-visual {
  position: relative;
  min-width: 0;
  min-height: 430px;
  padding: 76px 22px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #080d0a;
  box-shadow: var(--shadow), 0 0 0 1px rgba(70, 224, 123, 0.025);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 104px minmax(0, 0.92fr);
  grid-template-rows: minmax(205px, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.control-visual::before {
  content: "";
  position: absolute;
  inset: 40px 0 0;
  opacity: 0.75;
  background-image:
    linear-gradient(rgba(180, 255, 210, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 255, 210, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(black, transparent 90%);
}
.control-visual::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 19px;
  left: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f06f6f;
  box-shadow: 14px 0 #e9bd72, 28px 0 var(--accent);
}
.visual-toolbar {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  min-height: 42px;
  padding: 0 18px 0 64px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font: 600 0.64rem/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
}
.visual-toolbar .live { color: var(--accent); }
.visual-toolbar .live::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--accent); }
.visual-label {
  position: absolute;
  z-index: 2;
  top: 52px;
  left: 22px;
  color: var(--faint);
  font: 700 0.62rem/1.3 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}
.compose-card {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(17, 24, 20, 0.9);
  font: 0.67rem/1.72 "SFMono-Regular", Consolas, monospace;
}
.compose-card strong { color: var(--accent); }
.daemon-node {
  position: relative;
  z-index: 3;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(70, 224, 123, 0.54);
  border-radius: 12px;
  color: var(--accent-ink);
  background: linear-gradient(145deg, var(--accent-strong), #36c96a);
  display: grid;
  place-items: center;
  text-align: center;
  font: 800 0.66rem/1.5 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
  box-shadow: 0 0 0 9px rgba(70, 224, 123, 0.06), 0 20px 38px rgba(0, 0, 0, 0.32);
}
.runtime-stack { position: relative; z-index: 2; display: grid; gap: 10px; }
.runtime-node {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: rgba(17, 24, 20, 0.9);
  font-size: 0.69rem;
  font-weight: 700;
}
.runtime-node::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(70, 224, 123, 0.55); }
.signal-lines { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.signal-line { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); transform-origin: left; animation: signal 3.2s ease-in-out infinite alternate; }
.signal-a { top: 47%; left: 31%; width: 18%; transform: rotate(7deg); }
.signal-b { top: 43%; left: 50%; width: 18%; transform: rotate(-24deg); }
.signal-c { top: 49%; left: 50%; width: 18%; }
.signal-d { top: 55%; left: 50%; width: 18%; transform: rotate(24deg); }
.credential-note {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  padding: 11px 13px;
  border: 1px solid rgba(214, 226, 218, 0.14);
  border-radius: 7px;
  color: #a7c9b2;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.68rem;
}

.fact-strip { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: #0b0d0c; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { min-height: 108px; padding: 24px 22px; border-right: 1px solid var(--line); }
.fact:last-child { border: 0; }
.fact strong { display: block; color: var(--text); font-size: 0.96rem; }
.fact strong::before { content: "> "; color: var(--accent); font-family: monospace; }
.fact span { display: block; margin-top: 6px; color: var(--faint); font-size: 0.75rem; line-height: 1.55; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.03));
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card::after { content: ""; position: absolute; inset: auto -28px -46px auto; width: 120px; height: 120px; border: 1px solid rgba(70, 224, 123, 0.07); border-radius: 50%; }
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); }
.card-number, .icon-box {
  width: 34px;
  height: 34px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent);
  background: rgba(70, 224, 123, 0.055);
  display: grid;
  place-items: center;
  font: 700 0.66rem/1 "SFMono-Regular", Consolas, monospace;
}
.card p { color: var(--muted); font-size: 0.94rem; }
.card-link { position: relative; z-index: 2; color: #bce7c9; font-size: 0.84rem; font-weight: 750; }
.card-link::after { content: " ↗"; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag { padding: 5px 8px; border: 1px solid rgba(214, 226, 218, 0.14); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, 0.018); font: 600 0.72rem/1.4 "SFMono-Regular", Consolas, monospace; }

.architecture { display: grid; grid-template-columns: 0.9fr 1.18fr 0.9fr; gap: 14px; align-items: stretch; }
.architecture-column { display: grid; gap: 10px; }
.architecture-label { color: var(--faint); font: 700 0.64rem/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: 0; text-transform: uppercase; }
.architecture-box { min-height: 76px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface); }
.architecture-box strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 0.87rem; }
.architecture-box span { color: var(--faint); font-size: 0.74rem; }
.architecture-core { position: relative; padding: 24px; border: 1px solid rgba(70, 224, 123, 0.28); border-radius: 9px; background: linear-gradient(145deg, rgba(70, 224, 123, 0.11), rgba(17, 24, 20, 0.92)); box-shadow: inset 0 0 48px rgba(70, 224, 123, 0.035); }
.architecture-core::before { content: "online"; position: absolute; top: 18px; right: 18px; color: var(--accent); font: 600 0.6rem/1.4 monospace; text-transform: uppercase; }

.code-shell { position: relative; overflow: hidden; border: 1px solid rgba(214, 226, 218, 0.18); border-radius: 9px; color: var(--text); background: #111412; box-shadow: var(--shadow); }
.code-bar { min-height: 46px; padding: 9px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--faint); font: 600 0.76rem/1.4 "SFMono-Regular", Consolas, monospace; }
.code-bar span::before { content: "●  ●  ●   "; color: var(--faint); letter-spacing: 0; }
.code-scroll-hint { margin-left: auto; color: #9fac9f; font-size: 0.72rem; }
.copy-button { min-height: 34px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: var(--surface-raised); cursor: pointer; font-size: 0.78rem; font-weight: 700; }
.copy-button:hover { color: var(--text); border-color: var(--line-strong); }
pre { margin: 0; padding: 20px; overflow-x: auto; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.code-shell code { color: #d3dfd7; font-size: 0.82rem; line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-shell .command { color: #bff0cc; }

.notice { padding: 20px 21px; border: 1px solid rgba(233, 189, 114, 0.2); border-radius: 8px; color: #c5b08c; background: rgba(233, 189, 114, 0.055); }
.notice strong { color: #ead4ad; }
.notice p { color: #ad9b7e; }
.release-note {
  max-width: 620px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.metric-row { display: flex; flex-wrap: wrap; gap: 12px; }
.metric-row.metric-row-inline { gap: 20px; margin-top: 22px; }
.metric { min-width: 150px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.metric strong { display: block; color: var(--accent); font-size: 1.45rem; }
.metric span { color: var(--faint); font-size: 0.72rem; }
.contact-card { display: flex; flex-direction: column; }
.contact-card-focus { background: linear-gradient(150deg, rgba(120, 168, 255, 0.08), rgba(255, 255, 255, 0.04)); }
.contact-qr {
  width: min(198px, 100%);
  height: auto;
  margin-top: auto;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.inner-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 54px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 76% 16%, rgba(70, 224, 123, 0.04), transparent 25rem);
}
.inner-hero .container { position: relative; }
.inner-hero h1 { max-width: 940px; font-size: 2.75rem; }
.inner-hero .lede { margin-bottom: 0; }
.breadcrumb { margin-bottom: 20px; color: var(--faint); font: 600 0.7rem/1.4 "SFMono-Regular", Consolas, monospace; }
.breadcrumb a { color: var(--accent); }

body[data-page="docs"] .inner-hero { padding: 54px 0 42px; }
body[data-page="docs"] .inner-hero h1 { font-size: 3rem; max-width: 860px; }
body[data-page="docs"] h2 { font-size: 2.3rem; }
body[data-page="docs"] .section { padding: 56px 0; }
body[data-page="docs"] #start.section { padding: 46px 0; }
body[data-page="use-cases"] .inner-hero h1 { font-size: 2.75rem; max-width: 840px; }

.doc-index, .scenario-directory {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.doc-index a, .scenario-directory a {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(214, 226, 218, 0.18);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  font-weight: 700;
}
.doc-index a:hover, .scenario-directory a:hover { color: var(--text); border-color: rgba(214, 226, 218, 0.34); background: rgba(255, 255, 255, 0.055); }

.workflow-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.workflow-step {
  position: relative;
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(214, 226, 218, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}
.workflow-step::before {
  content: attr(data-step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  border-radius: 6px;
  color: #071210;
  background: var(--accent-cyan);
  font: 800 0.72rem/1 monospace;
}
.workflow-step:nth-child(2)::before { background: var(--accent-blue); }
.workflow-step:nth-child(3)::before { background: var(--accent); }
.workflow-step:nth-child(4)::before { background: var(--accent-amber); }
.workflow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 29px;
  right: -13px;
  z-index: 2;
  color: var(--faint);
  font-weight: 800;
}
.workflow-step h3 { margin-bottom: 8px; }
.workflow-step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 17px; width: 1px; background: linear-gradient(var(--accent), rgba(70, 224, 123, 0.08)); }
.timeline-item { position: relative; padding: 4px 0 4px 56px; }
.timeline-marker { position: absolute; z-index: 1; top: 2px; left: 0; width: 35px; height: 35px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--accent); background: var(--surface-raised); display: grid; place-items: center; font: 700 0.64rem/1 monospace; }
.timeline-item p { color: var(--muted); }
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { min-height: 60px; padding: 13px 4px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.link-list a:hover { color: var(--accent); }

.cta-band { border: 1px solid var(--line-strong); border-radius: 12px; padding: 54px; background: radial-gradient(circle at 88% 20%, rgba(70, 224, 123, 0.16), transparent 30%), var(--surface); box-shadow: var(--shadow); }
.cta-band h2 { max-width: 700px; }
.cta-band p { max-width: 660px; color: var(--muted); }

.site-footer { padding: 60px 0 26px; color: var(--muted); border-top: 1px solid var(--line); background: #050705; }
.footer-grid, .footer-bottom { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
.footer-grid h2 { margin-bottom: 14px; color: var(--faint); font: 700 0.66rem/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: 0; text-transform: uppercase; }
.footer-grid p { max-width: 380px; color: var(--faint); font-size: 0.82rem; }
.footer-grid > div > a:not(.brand) { margin-bottom: 8px; display: block; font-size: 0.82rem; }
.footer-grid > div > a:hover { color: var(--accent); }
.footer-brand { margin-bottom: 14px; }
.footer-logo-link {
  width: min(260px, 100%);
  margin-bottom: 18px;
  display: inline-flex;
}
.footer-logo {
  width: min(260px, 100%);
  height: auto;
}
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--faint); font-size: 0.7rem; }

/* Official site */
.official-hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 82px 0 76px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 77% 35%, rgba(70, 224, 123, 0.1), transparent 29rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 72%);
}
.official-hero::before, .official-inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: linear-gradient(rgba(180, 255, 210, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(180, 255, 210, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.official-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.96fr) minmax(510px, 1.04fr); align-items: center; gap: clamp(44px, 5.5vw, 84px); }
.official-hero-copy { min-width: 0; }
.official-hero h1 { max-width: 680px; margin-bottom: 24px; font-family: var(--font-mono); font-size: clamp(3rem, 4.6vw, 3.25rem); line-height: 1.15; letter-spacing: -0.045em; }
body[data-locale="zh"] .official-hero h1 { line-height: 1.2; letter-spacing: -0.035em; }
.official-hero .lede { margin-bottom: 29px; font-size: 1rem; }

.product-window { min-width: 0; overflow: hidden; border: 1px solid rgba(214, 226, 218, 0.24); border-radius: 12px; background: #090c0a; box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(70, 224, 123, 0.035); transform: perspective(1100px) rotateY(-2deg) rotateX(1deg); }
.product-window-bar { min-height: 46px; padding: 0 16px 0 60px; border-bottom: 1px solid var(--line); position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--faint); font: 600 0.67rem/1.4 var(--font-mono); }
.product-window-bar::before { content: ""; position: absolute; left: 18px; width: 7px; height: 7px; border-radius: 50%; background: #ed7373; box-shadow: 14px 0 #e9bd72, 28px 0 var(--accent); }
.status-dot { color: var(--accent); }
.status-dot::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.product-window-body { min-height: 390px; display: grid; grid-template-columns: 148px minmax(0, 1fr); }
.product-sidebar { padding: 22px 12px; border-right: 1px solid var(--line); color: var(--faint); background: rgba(255, 255, 255, 0.018); display: flex; flex-direction: column; gap: 7px; font: 600 0.67rem/1.5 var(--font-mono); }
.product-sidebar strong { margin: 0 7px 8px; color: #738078; font-size: 0.58rem; letter-spacing: 0.08em; }
.product-sidebar span { padding: 8px 9px; border-radius: 5px; }
.product-sidebar .active { color: var(--text); background: rgba(70, 224, 123, 0.1); }
.product-sidebar .active::before { content: "●"; margin-right: 7px; color: var(--accent); font-size: 0.55rem; }
.product-console { min-width: 0; padding: 20px; }
.console-heading { padding-bottom: 15px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--text); font: 700 0.74rem/1.4 var(--font-mono); }
.console-heading small { color: var(--accent); font-size: 0.59rem; }
.product-console pre { padding: 22px 2px; }
.product-console code { color: #c8d5cc; font: 0.73rem/1.75 var(--font-mono); }
.syntax-key { color: var(--accent-strong); }
.runtime-log { padding: 14px; border: 1px solid var(--line); border-radius: 7px; color: #9fac9f; background: rgba(255, 255, 255, 0.025); font: 0.66rem/1.8 var(--font-mono); }
.runtime-log span { margin-right: 9px; color: #657269; }

.official-section { background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent); }
.official-section-title { margin-bottom: 15px; font-family: var(--font-mono); font-size: clamp(2rem, 3.2vw, 2.4rem); line-height: 1.2; letter-spacing: -0.035em; }
.official-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.official-feature-card { min-width: 0; min-height: 276px; padding: 27px 24px; background: #101311; transition: background 0.2s ease; }
.official-feature-card:hover { background: #151a16; }
.official-feature-card h3 { margin: 64px 0 12px; font-family: var(--font-mono); font-size: 1.05rem; }
.official-feature-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.feature-kicker, .case-label, .detail-label, .post-meta { color: var(--accent); font: 700 0.69rem/1.5 var(--font-mono); letter-spacing: 0.025em; }
.official-workflow-layout { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(560px, 1.3fr); align-items: center; gap: clamp(44px, 6vw, 88px); }
.text-link { color: #c9e7d2; font-size: 0.88rem; font-weight: 750; }
.text-link:hover { color: var(--accent-strong); }
.official-flow { min-width: 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 11px; }
.official-flow > i, .case-workflow > i { color: #647168; font-style: normal; font-weight: 800; }
.flow-node { min-width: 0; min-height: 154px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; }
.flow-node span { color: var(--faint); font: 700 0.66rem/1 var(--font-mono); }
.flow-node strong { margin-top: 28px; font-family: var(--font-mono); font-size: 0.9rem; }
.flow-node small { color: var(--faint); font-size: 0.68rem; }
.flow-node-accent { border-color: rgba(70, 224, 123, 0.38); background: linear-gradient(145deg, rgba(70, 224, 123, 0.13), rgba(17, 20, 18, 0.95)); }
.section-heading-row { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading-row .official-section-title { margin-bottom: 0; }
.showcase-preview { overflow: hidden; min-height: 330px; border: 1px solid var(--line-strong); border-radius: 12px; background: linear-gradient(135deg, #111512, #0b0e0c); display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr); transition: border-color 0.2s ease, transform 0.2s ease; }
.showcase-preview:hover { border-color: rgba(70, 224, 123, 0.44); transform: translateY(-2px); }
.showcase-preview-copy { padding: 42px; }
.showcase-preview-copy h3 { margin: 22px 0 14px; font-family: var(--font-mono); font-size: 1.55rem; }
.showcase-preview-copy p { color: var(--muted); }
.showcase-preview-visual { min-width: 0; padding: 36px; background: radial-gradient(circle at 50% 50%, rgba(70, 224, 123, 0.13), transparent 60%), #080b09; display: flex; align-items: center; justify-content: center; gap: 13px; }
.showcase-preview-visual span { max-width: 128px; padding: 16px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--text); text-align: center; font: 700 0.7rem/1.45 var(--font-mono); }
.showcase-preview-visual span:nth-of-type(2) { border-color: rgba(70, 224, 123, 0.45); box-shadow: 0 0 28px rgba(70, 224, 123, 0.07); }
.showcase-preview-visual b { color: var(--accent); }
.home-blog-card { min-height: 190px; padding: 34px 38px; border-block: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 30px; transition: background 0.2s ease; }
.home-blog-card:hover { background: rgba(255, 255, 255, 0.026); }
.home-blog-card h3 { margin: 15px 0 8px; font-family: var(--font-mono); font-size: 1.45rem; }
.home-blog-card p { margin: 0; color: var(--muted); }
.home-blog-arrow { color: var(--accent); font-size: 1.8rem; }
.open-source-panel { padding: 42px; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(circle at 88% 14%, rgba(70, 224, 123, 0.09), transparent 24rem), var(--surface); display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.open-source-panel > div:first-child { max-width: 760px; }
.open-source-actions { flex: 0 0 auto; display: flex; gap: 9px; }
.official-cta { text-align: center; }
.official-cta .eyebrow, .official-cta .actions { justify-content: center; }
.official-cta h2, .official-cta p { margin-inline: auto; }

.official-inner-hero { position: relative; overflow: hidden; padding: 82px 0 68px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 12%, rgba(70, 224, 123, 0.08), transparent 26rem); }
.official-inner-hero .container, .official-inner-hero .narrow { position: relative; z-index: 1; }
.official-inner-hero h1 { max-width: 940px; margin: 12px 0 20px; font-family: var(--font-mono); font-size: clamp(2.6rem, 4.2vw, 3rem); line-height: 1.18; letter-spacing: -0.04em; }
body[data-locale="zh"] .official-inner-hero h1 { line-height: 1.22; }

.showcase-case { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.showcase-case-head { padding: 40px; display: flex; align-items: end; justify-content: space-between; gap: 44px; }
.showcase-case-head > div { max-width: 780px; }
.showcase-case-head h2 { margin-top: 20px; }
.showcase-case-head p { margin: 0; color: var(--muted); }
.case-detail-grid { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-detail-grid > div { min-width: 0; min-height: 160px; padding: 26px; border-right: 1px solid var(--line); }
.case-detail-grid > div:last-child { border: 0; }
.case-detail-grid p { margin: 16px 0 0; color: var(--muted); font-size: 0.93rem; }
.detail-label { color: var(--faint); }
.case-workflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
.case-step { min-width: 0; min-height: 148px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); display: flex; flex-direction: column; }
.case-step span { color: var(--accent); font: 700 0.68rem/1 var(--font-mono); }
.case-step strong { margin-top: 34px; font-size: 0.92rem; }
.case-step small { margin-top: 7px; color: var(--faint); font-size: 0.68rem; }
.case-config { max-width: 720px; margin: 22px auto 0; }

.blog-list { max-width: 1040px; }
.blog-card { min-height: 260px; padding: 42px 34px; border-block: 1px solid var(--line); display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: start; gap: 26px; transition: background 0.2s ease; }
.blog-card-original { grid-template-columns: minmax(0, 1fr) auto; }
.blog-card:hover { background: rgba(255, 255, 255, 0.027); }
.post-index { color: var(--faint); font: 700 0.72rem/1 var(--font-mono); }
.blog-card h2 { max-width: 720px; margin: 17px 0 12px; font-family: var(--font-mono); font-size: 1.65rem; }
.blog-card p { max-width: 720px; color: var(--muted); }
.post-arrow { color: var(--accent); font-size: 1.6rem; }
.article-hero .post-meta { display: block; margin-top: 26px; }
.article-body { color: #c5d0c8; font-size: 1rem; line-height: 1.9; }
.article-body > p, .article-body > h2, .article-body > .code-shell, .article-body > .article-callout { max-width: 740px; margin-inline: auto; }
.article-body p { margin-bottom: 24px; }
.article-body h2 { margin-top: 52px; margin-bottom: 18px; font-family: var(--font-mono); font-size: 1.75rem; line-height: 1.3; }
.article-intro { padding-left: 20px; border-left: 2px solid var(--accent); color: var(--text); font-size: 1.08rem; }
.article-body .code-shell { margin-top: 30px; margin-bottom: 34px; }
.article-essay .code-shell {
  border-color: rgba(180, 255, 210, 0.2);
  background: linear-gradient(145deg, #101613, #0c100e);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.035);
}
.article-essay .code-title {
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(180, 255, 210, 0.14);
  color: #aebbb2;
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  align-items: center;
  font: 700 0.7rem/1 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.article-essay .code-title::before {
  content: "●  ●  ●";
  margin-right: 12px;
  color: rgba(103, 238, 150, 0.72);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
}
.article-essay .code-title span { margin-left: auto; color: #b8c4bc; }
.article-essay .code-shell pre { padding: 24px; background: linear-gradient(90deg, rgba(70, 224, 123, 0.045), transparent 34%); }
.article-essay .code-shell code { color: #dce7df; font-size: 0.86rem; line-height: 1.8; }
.article-callout { margin-block: 34px; padding: 22px 24px; border: 1px solid rgba(233, 189, 114, 0.24); border-radius: 8px; background: rgba(233, 189, 114, 0.055); }
.article-callout strong { color: var(--accent-amber); font-family: var(--font-mono); }
.article-callout p { margin: 8px 0 0; color: #c4b18f; }
.article-next { display: flex; align-items: center; justify-content: space-between; gap: 44px; }
.article-next h2 { font-size: 1.75rem; }
.article-next p { margin: 0; color: var(--muted); }

.demo-placeholder { min-height: calc(100vh - 76px); padding: 80px 0; display: grid; align-items: center; }
.demo-placeholder-panel { display: grid; grid-template-columns: minmax(500px, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(44px, 7vw, 100px); }
.demo-screen { overflow: hidden; min-height: 390px; border: 1px solid var(--line-strong); border-radius: 12px; background: radial-gradient(circle at 50% 50%, rgba(70, 224, 123, 0.11), transparent 44%), #090c0a; box-shadow: var(--shadow); }
.demo-screen-bar { min-height: 44px; padding: 0 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; }
.demo-screen-bar span { width: 7px; height: 7px; border-radius: 50%; background: #ed7373; }
.demo-screen-bar span:nth-child(2) { background: var(--accent-amber); }
.demo-screen-bar span:nth-child(3) { background: var(--accent); }
.demo-screen-center { min-height: 346px; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--faint); font: 700 0.7rem/1.4 var(--font-mono); }
.demo-play { width: 72px; height: 72px; border: 1px solid rgba(70, 224, 123, 0.45); border-radius: 50%; color: var(--accent); background: rgba(70, 224, 123, 0.08); display: grid; place-items: center; padding-left: 4px; font-size: 1.1rem; box-shadow: 0 0 36px rgba(70, 224, 123, 0.08); }
.demo-copy h1 { margin-bottom: 20px; font-family: var(--font-mono); font-size: clamp(2.4rem, 4vw, 3rem); line-height: 1.2; }

/* Showcase detail and editorial article enhancements */
.header-logo { filter: drop-shadow(0 0 14px rgba(70, 224, 123, 0.08)); }
.case-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr); align-items: center; gap: clamp(40px, 7vw, 110px); }
.case-stat-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 27px; color: var(--muted); font-size: 0.78rem; }
.case-stat-row span::before { content: "•"; margin-right: 7px; color: var(--accent); }
.case-loop { position: relative; min-height: 350px; border: 1px solid var(--line); border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(70, 224, 123, 0.13), transparent 53%), rgba(255, 255, 255, 0.018); }
.case-loop::before { content: ""; position: absolute; inset: 14%; border: 1px dashed rgba(70, 224, 123, 0.34); border-radius: 50%; animation: loop-rotate 20s linear infinite; }
.case-loop-node { position: absolute; z-index: 1; width: 142px; min-height: 82px; padding: 14px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: #111512; display: grid; place-items: center; text-align: center; }
.case-loop-node strong { font-family: var(--font-mono); font-size: 0.72rem; }
.case-loop-node small { margin-top: 5px; color: var(--faint); font-size: 0.61rem; }
.loop-product { top: 22px; left: 50%; border-color: rgba(70, 224, 123, 0.45); transform: translateX(-50%); }
.loop-issue { bottom: 42px; left: 18px; }
.loop-agent { right: 18px; bottom: 42px; border-color: rgba(70, 224, 123, 0.35); }
.case-loop-label { position: absolute; top: 52%; left: 50%; width: 150px; color: var(--accent); font: 700 0.65rem/1.55 var(--font-mono); text-align: center; transform: translate(-50%, -50%); }
.case-chapters { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.case-chapters li { min-height: 130px; padding: 23px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 76px minmax(0, 1fr) 150px; gap: 24px; align-items: start; }
.chapter-no { color: var(--faint); font: 700 0.72rem/1.4 var(--font-mono); }
.case-chapters strong { display: block; color: var(--text); font-family: var(--font-mono); font-size: 1.05rem; }
.case-chapters p { max-width: 690px; margin: 9px 0 0; color: var(--muted); font-size: 0.94rem; }
.case-chapters > li > small { padding-top: 4px; color: var(--faint); font: 700 0.61rem/1.4 var(--font-mono); text-align: right; letter-spacing: 0.04em; }
.case-chapters .chapter-gate { background: linear-gradient(90deg, rgba(70, 224, 123, 0.07), transparent 56%); }
.case-chapters .chapter-gate .chapter-no, .case-chapters .chapter-gate > small { color: var(--accent); }
.case-boundary-layout { display: grid; grid-template-columns: minmax(0, 0.76fr) minmax(520px, 1.24fr); gap: clamp(40px, 7vw, 90px); }
.boundary-grid { display: grid; gap: 10px; }
.boundary-card { padding: 20px 21px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.boundary-card > span { color: var(--faint); font: 700 0.65rem/1.3 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.boundary-card strong { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 0.9rem; }
.boundary-card p { margin: 7px 0 0; color: var(--muted); font-size: 0.86rem; }
.boundary-card-strong { border-color: rgba(70, 224, 123, 0.38); background: linear-gradient(100deg, rgba(70, 224, 123, 0.12), rgba(17, 20, 18, 0.94)); }
.case-workflow-seven { display: flex; align-items: stretch; gap: 9px; }
.case-workflow-seven .case-step { flex: 1 1 0; min-width: 0; min-height: 162px; }
.case-workflow-seven > i { align-self: center; }
.case-workflow-note { max-width: 820px; margin: 20px auto 0; color: var(--faint); font-size: 0.78rem; text-align: center; }

.article-metrics, .post-stats { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--faint); font: 700 0.67rem/1.5 var(--font-mono); }
.article-metrics { margin: 26px 0 17px; }
.article-metrics span, .post-stats span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, 0.025); }
.article-metrics span:last-child, .post-stats span:last-child { color: #b6a97d; border-color: rgba(233, 189, 114, 0.24); }
.blog-card-featured { border-color: rgba(70, 224, 123, 0.3); background: linear-gradient(105deg, rgba(70, 224, 123, 0.07), transparent 50%); }
.blog-card-featured h2 { font-size: 1.82rem; }
.post-stats { margin: 18px 0 0; }
.article-essay { font-size: 1rem; }
.article-essay h3 { max-width: 740px; margin: 38px auto 15px; color: var(--text); font-family: var(--font-mono); font-size: 1.12rem; line-height: 1.4; }
.article-essay blockquote { max-width: 740px; margin: 34px auto; padding: 20px 24px; border-left: 2px solid var(--accent); color: var(--text); background: rgba(70, 224, 123, 0.055); font: 1.14rem/1.6 var(--font-mono); }
.article-essay ul, .article-essay ol { max-width: 740px; margin: 0 auto 24px; padding-left: 21px; color: var(--muted); }
.article-essay li { margin: 10px 0; }
.article-essay table { width: 100%; max-width: 740px; margin: 30px auto; border-collapse: collapse; color: var(--muted); font-size: 0.9rem; }
.article-essay th, .article-essay td { padding: 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-essay th { color: var(--text); background: rgba(255, 255, 255, 0.045); font-family: var(--font-mono); }
.equation { max-width: 740px; margin: 30px auto; padding: 16px 18px; border: 1px solid rgba(70, 224, 123, 0.26); border-radius: 8px; color: var(--accent-strong); background: rgba(70, 224, 123, 0.06); font: 700 0.86rem/1.6 var(--font-mono); text-align: center; }
.article-source-note { padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.83rem; }
@keyframes loop-rotate { to { transform: rotate(360deg); } }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@keyframes signal { from { opacity: 0.32; } to { opacity: 1; filter: brightness(1.35); } }

@media (max-width: 1120px) {
  .nav-shell { width: min(calc(100% - 32px), var(--content)); min-height: 64px; }
  .menu-button { display: block; }
  body.nav-open { overflow: hidden; }
  body.nav-open::before {
    content: "";
    position: fixed;
    z-index: 90;
    inset: 64px 0 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
  }
  .site-navigation {
    position: fixed;
    z-index: 110;
    top: 76px;
    left: 16px;
    right: 16px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(11, 13, 12, 0.985);
    box-shadow: var(--shadow);
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .site-navigation.is-open { display: flex; }
  .nav-main, .nav-actions { width: 100%; align-items: stretch; flex-direction: column; gap: 6px; }
  .nav-actions { padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-wechat { width: 100%; display: grid; gap: 8px; }
  .nav-link { width: 100%; min-height: 44px; padding: 10px 12px; justify-content: flex-start; border: 1px solid transparent; }
  .nav-link[aria-current="page"] { border-color: rgba(70, 224, 123, 0.34); background: rgba(70, 224, 123, 0.1); box-shadow: none; }
  .nav-link.utility { background: rgba(255, 255, 255, 0.035); }
  .nav-link.nav-primary { justify-content: center; }
  .nav-qr-popover {
    position: static;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav-qr-popover::before { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr); gap: 34px; }
  .official-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .official-workflow-layout { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .hero { padding: 58px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid > div:first-child { max-width: 720px; }
  .control-visual { width: min(100%, 680px); }
  .workflow-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-step:nth-child(2)::after { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .architecture { grid-template-columns: 1fr; }
  .architecture-core { order: -1; }
  .official-hero { min-height: 0; padding: 66px 0 58px; }
  .official-hero-grid, .demo-placeholder-panel { grid-template-columns: 1fr; }
  .official-hero-copy { max-width: 760px; }
  .product-window { max-width: 760px; transform: none; }
  .showcase-preview { grid-template-columns: 1fr; }
  .showcase-preview-visual { min-height: 230px; }
  .open-source-panel { align-items: flex-start; flex-direction: column; }
  .showcase-case-head { align-items: flex-start; flex-direction: column; }
  .case-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-workflow > i { display: none; }
  .demo-placeholder { min-height: 0; padding: 64px 0; }
  .case-hero-layout, .case-boundary-layout { grid-template-columns: 1fr; }
  .case-loop { max-width: 560px; width: min(100%, 560px); margin-inline: auto; }
  .case-workflow-seven { flex-wrap: wrap; }
  .case-workflow-seven .case-step { flex-basis: 28%; }
  .case-workflow-seven > i { display: none; }
}

@media (max-width: 760px) {
  .container, .narrow { width: min(calc(100% - 40px), var(--content)); }
  .section { padding: 52px 0; }
  .section-tight { padding: 36px 0; }
  .nav-shell { width: min(calc(100% - 28px), var(--content)); }
  .header-logo { width: 188px; }
  .hero { padding: 46px 0 40px; }
  .hero h1, body[data-locale="zh"] .hero h1 { font-size: 2rem; line-height: 1.22; }
  h2 { font-size: 1.55rem; line-height: 1.24; }
  .inner-hero { padding: 46px 0 40px; }
  .inner-hero h1 { font-size: 1.95rem; line-height: 1.22; }
  body[data-page="docs"] .inner-hero { padding: 42px 0 34px; }
  body[data-page="docs"] .inner-hero h1 { font-size: 2.25rem; line-height: 1.22; }
  body[data-page="docs"] h2 { font-size: 1.75rem; line-height: 1.24; }
  body[data-page="docs"] .section { padding: 42px 0; }
  body[data-page="docs"] #start.section { padding: 36px 0; }
  body[data-page="use-cases"] .inner-hero h1 { font-size: 1.8rem; line-height: 1.24; }
  .no-wrap { white-space: normal; }
  .lede { font-size: 0.96rem; line-height: 1.68; }
  .doc-index, .scenario-directory { margin-top: 18px; gap: 7px; }
  .doc-index a, .scenario-directory a { flex: 1 1 calc(50% - 7px); min-height: 38px; }
  .workflow-map { grid-template-columns: 1fr; }
  .workflow-step { min-height: 0; padding: 16px; }
  .workflow-step:not(:last-child)::after { display: none; }
  .button { min-height: 45px; }
  .control-visual {
    min-height: 0;
    padding: 76px 18px 18px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 14px;
  }
  .compose-card, .runtime-stack { width: 100%; }
  .daemon-node { width: 100%; height: auto; min-height: 78px; }
  .credential-note { grid-column: 1; }
  .signal-lines { display: none; }
  .facts, .grid-4 { grid-template-columns: 1fr; }
  .fact { min-height: 88px; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:nth-child(2) { border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .card { padding: 22px; }
  .card p { font-size: 0.94rem; }
  .card-number, .icon-box { margin-bottom: 28px; }
  .cta-band { padding: 36px 22px; border-radius: 9px; }
  .contact-qr { width: min(210px, 100%); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .official-hero { padding: 48px 0 44px; }
  .official-hero h1 { font-size: 2.25rem; line-height: 1.2; letter-spacing: -0.035em; }
  .official-inner-hero { padding: 52px 0 44px; }
  .official-inner-hero h1 { font-size: 2.05rem; line-height: 1.22; letter-spacing: -0.03em; }
  body[data-page="showcase-building-ac"][data-locale="zh"] .official-inner-hero h1 { font-size: 1.9rem; }
  .official-section-title { font-size: 1.75rem; line-height: 1.25; }
  .product-window-body { min-height: 330px; grid-template-columns: 1fr; }
  .product-sidebar { display: none; }
  .product-console { padding: 17px; }
  .product-console code { font-size: 0.68rem; }
  .official-feature-grid { grid-template-columns: 1fr; }
  .official-feature-card { min-height: 220px; padding: 24px 21px; }
  .official-feature-card h3 { margin-top: 46px; }
  .official-flow { grid-template-columns: 1fr; }
  .official-flow > i { display: none; }
  .flow-node { min-height: 126px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .showcase-preview-copy { padding: 27px 22px; }
  .showcase-preview-copy h3 { font-size: 1.3rem; }
  .showcase-preview-visual { min-height: 260px; padding: 26px 20px; flex-direction: column; }
  .showcase-preview-visual b { transform: rotate(90deg); }
  .home-blog-card { min-height: 0; padding: 28px 4px; }
  .home-blog-card h3 { font-size: 1.22rem; }
  .open-source-panel { padding: 28px 22px; }
  .open-source-actions { width: 100%; flex-direction: column; }
  .showcase-case-head { padding: 28px 22px; }
  .case-detail-grid { grid-template-columns: 1fr; }
  .case-detail-grid > div { min-height: 0; padding: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-workflow { grid-template-columns: 1fr; }
  .case-step { min-height: 126px; }
  .blog-card { min-height: 0; padding: 30px 4px; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
  .blog-card h2 { font-size: 1.3rem; }
  .post-arrow { display: none; }
  .article-body { font-size: 0.96rem; line-height: 1.82; }
  .article-body h2 { margin-top: 42px; font-size: 1.5rem; }
  .article-next { align-items: flex-start; flex-direction: column; }
  .demo-placeholder { padding: 48px 0; }
  .demo-placeholder-panel { gap: 40px; }
  .demo-screen { min-height: 300px; }
  .demo-screen-center { min-height: 256px; }
  .demo-copy h1 { font-size: 2.05rem; }
  .case-loop { min-height: 300px; }
  .case-loop-node { width: 118px; min-height: 72px; padding: 10px 7px; }
  .loop-product { top: 16px; }
  .loop-issue { bottom: 28px; left: 10px; }
  .loop-agent { right: 10px; bottom: 28px; }
  .case-chapters li { min-height: 0; padding: 22px 0; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .case-chapters > li > small { display: none; }
  .case-chapters strong { font-size: 0.96rem; }
  .case-chapters p { font-size: 0.92rem; }
  .case-boundary-layout { gap: 28px; }
  .case-workflow-seven { display: grid; grid-template-columns: 1fr 1fr; }
  .case-workflow-seven .case-step { min-height: 120px; }
  .article-metrics, .post-stats { gap: 6px; font-size: 0.62rem; }
  .blog-card-featured h2 { font-size: 1.36rem; }
  .article-essay { font-size: 0.97rem; }
  .article-essay blockquote { margin-block: 26px; padding: 17px 18px; font-size: 1rem; }
  .article-essay .code-shell pre { padding: 18px; }
  .article-essay .code-shell code { font-size: 0.8rem; }
  .article-essay table { display: block; overflow-x: auto; white-space: normal; font-size: 0.82rem; }
  .article-essay th, .article-essay td { min-width: 160px; }
}

@media (max-width: 460px) {
  .actions .button { width: 100%; }
  .proof-inline { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  :root { --canvas: #fff; --text: #111; --muted: #444; --faint: #666; --line: #bbb; }
  .site-header, .site-footer, .actions, .copy-button { display: none !important; }
  .section, .section-tight { padding: 24px 0; }
  .card, .control-visual, .code-shell { box-shadow: none; break-inside: avoid; }
}
