/* ============================================================
   Data/AI on ACK — Design System
   Light, professional Alibaba Cloud aesthetic.
   Brand orange #FF6A00 · ink navy text · generous whitespace.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --ink: #12151c;
  --border: rgba(23, 29, 38, 0.1);
  --border-soft: rgba(23, 29, 38, 0.06);
  --text: #1b212b;
  --text-2: #4d5766;
  --muted: #6b7280;
  --brand-1: #ff6a00;
  --brand-2: #ff8a3d;
  --brand-3: #ffb347;
  --brand-deep: #d94f00;
  --brand-ink: #c24e00;
  --grad: linear-gradient(100deg, var(--brand-1), var(--brand-2) 58%, var(--brand-3));
  --grad-text: linear-gradient(100deg, var(--brand-deep), var(--brand-1) 55%, var(--brand-2));
  --shadow-sm: 0 1px 2px rgba(23, 29, 38, 0.05), 0 4px 14px -6px rgba(23, 29, 38, 0.08);
  --shadow-md: 0 2px 6px rgba(23, 29, 38, 0.05), 0 14px 34px -14px rgba(23, 29, 38, 0.16);
  --shadow-lg: 0 4px 12px rgba(23, 29, 38, 0.05), 0 28px 64px -20px rgba(23, 29, 38, 0.22);
  --shadow-glow: 0 14px 44px -14px rgba(255, 106, 0, 0.35);
  --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-xl: 28px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --header-h: 68px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
svg { width: 1.15em; height: 1.15em; fill: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(255, 106, 0, 0.18); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(23, 29, 38, 0.16); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(23, 29, 38, 0.28); }

/* ---------- Utilities ---------- */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  background: transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom-color: var(--border-soft);
  box-shadow: 0 8px 30px -18px rgba(23, 29, 38, 0.18);
}
.header-inner {
  max-width: 1360px; margin: 0 auto; height: 100%;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
}
.brand-mark img { width: auto; height: 32px; display: block; }
.brand-lockup { display: flex; flex-direction: column; justify-content: center; line-height: 1.18; }
.brand-name { font-weight: 750; font-size: 16px; letter-spacing: 0.01em; white-space: nowrap; color: var(--text); }
.brand-name em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-sub { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.brand-divider { width: 1px; height: 24px; background: var(--border); margin: 0 3px 0 7px; flex: none; }
.brand-aliyun { height: 20px; width: auto; display: block; flex: none; }

.header-nav { display: flex; gap: 4px; margin-left: 12px; }
.header-nav a {
  padding: 7px 14px; border-radius: 9px; font-size: 14.5px; color: var(--text-2);
  transition: color 0.25s, background 0.25s;
}
.header-nav a:hover { color: var(--text); background: var(--surface-2); }
.header-nav a[aria-current="page"] { color: var(--brand-ink); background: rgba(255, 106, 0, 0.09); font-weight: 600; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 9px;
  height: 36px; padding: 0 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  color: var(--muted); font-size: 13.5px;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.search-trigger:hover { border-color: rgba(255, 106, 0, 0.4); color: var(--text); background: #fff; }
.search-trigger svg { width: 15px; height: 15px; }
.search-trigger kbd {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  background: #fff; border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 6px;
}
.github-link {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px; border-radius: 10px;
  color: var(--text-2); border: 1px solid transparent;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.github-link:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-soft); }
.github-link svg { width: 19px; height: 19px; }
.github-stars { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

.menu-toggle { display: none; width: 38px; height: 38px; border-radius: 10px; place-items: center; border: 1px solid var(--border-soft); background: var(--surface-2); }
.menu-toggle svg { width: 19px; height: 19px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; overflow: hidden; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

.mobile-nav {
  display: none;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  padding: 10px clamp(16px, 4vw, 40px) 18px;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}
.mobile-nav a { padding: 13px 6px; font-size: 16px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--border-soft); transition: color 0.2s, padding-left 0.25s; }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover { color: var(--brand-ink); padding-left: 12px; }
body.mobile-nav-open .mobile-nav { display: flex; }

/* ============================================================
   Home — Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 56px) clamp(16px, 4vw, 40px) 88px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 55% 38% at 78% 8%, rgba(255, 106, 0, 0.06), transparent 70%),
    radial-gradient(ellipse 45% 34% at 12% 16%, rgba(50, 108, 229, 0.05), transparent 70%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 42%);
}
.hero-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 29, 38, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 29, 38, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 38%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 62% at 50% 38%, #000 25%, transparent 78%);
}
.hero-inner { width: 100%; max-width: 1060px; margin: 0 auto; text-align: center; min-width: 0; }
.hero-inner .reveal:nth-child(1) { --d: 40ms; }
.hero-inner .reveal:nth-child(2) { --d: 130ms; }
.hero-inner .reveal:nth-child(3) { --d: 220ms; }
.hero-inner .reveal:nth-child(4) { --d: 310ms; }
.hero-inner .reveal:nth-child(5) { --d: 430ms; }
.hero-inner .reveal:nth-child(6) { --d: 540ms; }

.hero-eyebrow { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-2);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pill svg { width: 14px; height: 14px; }
.pill-brand { border-color: rgba(255, 106, 0, 0.32); color: var(--brand-ink); background: rgba(255, 106, 0, 0.07); box-shadow: inset 0 0 18px -10px rgba(255, 106, 0, 0.5); }
.pill-brand svg { color: var(--brand-1); }
.pill-brand .pill-logo-aliyun { width: auto; height: 13px; display: block; }
.pill-glow { border-color: rgba(23, 29, 38, 0.14); color: var(--text-2); }
.pill-star { transition: border-color 0.25s, color 0.25s; }
.pill-star:hover { border-color: rgba(255, 179, 71, 0.8); color: var(--brand-ink); }
.pill-star svg { width: 13px; height: 13px; color: #f5a623; }

.hero-title { margin-top: 30px; }
.hero-line {
  display: block;
  font-size: clamp(40px, 7.8vw, 100px);
  font-weight: 750; letter-spacing: -0.012em; line-height: 1.1;
  color: var(--ink);
}
.hero-line em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub-line {
  display: block; margin-top: 22px;
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 600; letter-spacing: 0.01em; color: var(--text);
}
.hero-sub-line .grad-text { white-space: nowrap; }
.hero-lede {
  max-width: 680px; margin: 30px auto 0;
  font-size: clamp(15.5px, 1.6vw, 18px); color: var(--text-2);
}
.hero-lede strong { color: var(--text); font-weight: 650; }

.hero-cta { display: flex; justify-content: center; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  padding: 12px 26px; border-radius: 999px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.25s, border-color 0.25s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 28px -10px rgba(255, 106, 0, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(255, 106, 0, 0.6); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: rgba(255, 106, 0, 0.45); color: var(--brand-ink); transform: translateY(-2px); }
.btn-ghost:hover svg { transform: none; }

/* Terminal card — deliberate dark anchor on the light canvas */
.hero-terminal, .ray-terminal {
  max-width: 720px; margin: 52px auto 0;
  border-radius: var(--r-lg); overflow: hidden; text-align: left;
  background: #101823;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-lg), 0 24px 60px -28px rgba(255, 106, 0, 0.3);
  transform-style: preserve-3d;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.terminal-dot:nth-child(1) { background: #ff5f57; } .terminal-dot:nth-child(2) { background: #febc2e; } .terminal-dot:nth-child(3) { background: #28c840; }
.terminal-title { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.terminal-copy { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: rgba(255, 255, 255, 0.45); transition: color 0.2s, background 0.2s; }
.terminal-copy:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }
.terminal-copy svg { width: 15px; height: 15px; }
.terminal-copy .icon-ok { display: none; color: #3ddc97; }
.terminal-copy.copied .icon-copy { display: none; }
.terminal-copy.copied .icon-ok { display: block; }
.terminal-body { padding: 20px 22px; overflow-x: auto; }
.terminal-body code { font-family: var(--font-mono); font-size: 13.8px; line-height: 1.85; color: #dde6f3; white-space: pre; }
.terminal-body .t-p { color: var(--brand-3); font-weight: 700; }
.terminal-body .t-c { color: #67748c; }
.terminal-body .t-o { color: #93a0bd; }
.terminal-body .t-line { display: block; }
.js-term-play .terminal-body .t-line {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
}
.js-term-play.playing .terminal-body .t-line { opacity: 1; transform: none; }

.hero-stats {
  display: flex; justify-content: center; gap: clamp(24px, 6vw, 72px);
  margin-top: 58px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat dt { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat dd { margin-top: 4px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

/* Ray on ACK — feature grid & guide index */
.ray-feature {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 3.4vw, 44px); align-items: start;
  margin-top: clamp(44px, 5vw, 64px);
}
.ray-feature .ray-terminal { max-width: none; margin: 0; width: 100%; }
.ray-points { display: flex; flex-direction: column; padding-top: 6px; }
.ray-point { display: flex; gap: 16px; padding: 16px 6px; }
.ray-point + .ray-point { border-top: 1px solid var(--border-soft); }
.ray-point-icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(255, 179, 71, 0.08));
  border: 1px solid rgba(255, 106, 0, 0.26);
}
.ray-point-icon svg { width: 20px; height: 20px; color: var(--brand-1); }
.ray-point h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 5px; letter-spacing: -0.01em; color: var(--text); }
.ray-point p { font-size: 14px; color: var(--text-2); line-height: 1.75; }
.ray-cta { margin: 16px 6px 0; align-self: flex-start; }

.ray-index {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
}
.ray-group-title {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding-bottom: 14px; color: var(--text);
}
.ray-group-title span {
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.08em; color: var(--muted); text-transform: none;
}
.ray-item {
  display: flex; align-items: center; gap: 18px;
  padding: 15px 8px; border-top: 1px solid var(--border-soft);
  transition: background 0.2s, padding-left 0.25s var(--ease-out);
}
.ray-item:last-child { border-bottom: 1px solid var(--border-soft); }
.ray-item em {
  font-style: normal; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--brand-ink); flex: none; width: 26px;
}
.ray-item span { font-size: 15px; font-weight: 550; flex: 1; color: var(--text); }
.ray-item svg { width: 16px; height: 16px; color: var(--muted); flex: none; transition: transform 0.25s var(--ease-out), color 0.2s; }
.ray-item:hover { background: rgba(255, 106, 0, 0.05); padding-left: 16px; }
.ray-item:hover svg { transform: translateX(4px); color: var(--brand-1); }

/* Ray cluster visualizer */
.ray-cluster {
  margin-top: clamp(44px, 5.5vw, 68px);
  border-radius: var(--r-xl); border: 1px solid var(--border-soft);
  background:
    radial-gradient(90% 70% at 82% 0%, rgba(50, 108, 229, 0.045), transparent 62%),
    radial-gradient(90% 70% at 12% 0%, rgba(255, 106, 0, 0.05), transparent 62%),
    var(--surface);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 34px) clamp(16px, 2vw, 24px);
}
.rc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.rc-title { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.rc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--border-soft);
}
.rc-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #0e9f6e;
  box-shadow: 0 0 0 0 rgba(14, 159, 110, 0.4);
  animation: rc-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes rc-ping {
  70% { box-shadow: 0 0 0 8px rgba(14, 159, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 159, 110, 0); }
}

.hero-scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(23, 29, 38, 0.2); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero-scroll-hint span { width: 3px; height: 8px; border-radius: 3px; background: var(--brand-1); animation: scrollHint 1.8s ease-in-out infinite; }
@keyframes scrollHint { 0%, 100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(12px); opacity: 0.25; } }

/* ============================================================
   Tech strip
   ============================================================ */
.tech-strip { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--bg-soft); }
.tech-inner {
  max-width: 1360px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px);
  display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); flex-wrap: wrap;
}
.tech-label { flex: none; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.tech-list { display: flex; flex-wrap: wrap; gap: 10px clamp(18px, 3vw, 34px); }
.tech-list li {
  font-size: 14.5px; font-weight: 650; color: var(--text-2); letter-spacing: 0.02em;
  transition: color 0.25s;
}
.tech-list li:hover { color: var(--brand-ink); }

/* ============================================================
   Sections (home)
   ============================================================ */
.section { padding: clamp(84px, 10vw, 148px) clamp(16px, 4vw, 40px); max-width: 1360px; margin: 0 auto; }
.section-alt { position: relative; max-width: none; }
.section-alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 62% 55% at 50% 0%, rgba(255, 106, 0, 0.05), transparent 70%),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 85%);
}
.section-alt > * { max-width: 1360px; margin-left: auto; margin-right: auto; }
.section-head { max-width: 720px; margin: 0 auto clamp(48px, 6vw, 76px); text-align: center; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand-ink); margin-bottom: 16px;
}
.section-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-title { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); }
.section-lede { margin-top: 18px; color: var(--text-2); font-size: clamp(15px, 1.5vw, 17px); }

/* Console cards */
.console-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (min-width: 961px) {
  .console-card:nth-child(2) { margin-top: 56px; }
}
.console-card {
  position: relative;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-out);
  transform-style: preserve-3d;
}
.console-card:hover { border-color: rgba(255, 106, 0, 0.35); box-shadow: var(--shadow-lg), var(--shadow-glow); }
.console-card::before, .doc-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 106, 0, 0.08), transparent 65%);
  pointer-events: none; z-index: 1;
}
.console-card:hover::before, .doc-card:hover::before { opacity: 1; }
.browser-frame { border-bottom: 1px solid var(--border-soft); background: var(--bg-soft); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); background: #fff; }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(23, 29, 38, 0.14); }
.browser-bar em { margin-left: 8px; font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.browser-frame img { width: 100%; height: auto; }
.console-body { padding: clamp(22px, 3vw, 34px); }
.console-body h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 750; letter-spacing: -0.01em; color: var(--ink); }
.console-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 7px; }
.tag-admin { color: var(--brand-ink); background: rgba(255, 106, 0, 0.1); border: 1px solid rgba(255, 106, 0, 0.3); }
.tag-dev { color: #1d4fd7; background: rgba(50, 108, 229, 0.09); border: 1px solid rgba(50, 108, 229, 0.3); }
.console-body p { margin-top: 12px; color: var(--text-2); font-size: 15px; }
.console-features { margin-top: 16px; display: grid; gap: 9px; }
.console-features li { position: relative; padding-left: 22px; font-size: 14px; color: var(--text-2); }
.console-features li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 12px; height: 7px; border-left: 2px solid var(--brand-1); border-bottom: 2px solid var(--brand-1);
  transform: rotate(-45deg); border-radius: 1px;
}
.text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; font-size: 14.5px; font-weight: 650; color: var(--brand-ink); }
.text-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }

/* Capability grid */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.cap-card {
  position: relative; padding: 30px 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.cap-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 106, 0, 0.08), transparent 65%);
  pointer-events: none;
}
.cap-card:hover { transform: translateY(-5px); border-color: rgba(255, 106, 0, 0.35); box-shadow: var(--shadow-md); }
.cap-card:hover::before { opacity: 1; }
.cap-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 106, 0, 0.55);
  margin-bottom: 20px;
}
.cap-icon svg { width: 22px; height: 22px; }
.cap-card h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.cap-card p { margin-top: 10px; font-size: 14px; color: var(--text-2); }

/* Architecture panel */
.arch-panel {
  max-width: 940px; margin: 0 auto; padding: clamp(28px, 4vw, 52px);
  border-radius: var(--r-xl); border: 1px solid var(--border-soft);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 106, 0, 0.05), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-md);
}
/* Interactive diagrams (architecture + Ray cluster) */
.dia { display: block; width: 100%; height: auto; }
.dia text { font-family: var(--font-sans); pointer-events: none; user-select: none; }
.dia-title { fill: var(--text); font-size: 14.5px; font-weight: 650; }
.dia-sub { fill: var(--muted); font-size: 11.5px; font-weight: 400; }
.dia-mono { font-family: var(--font-mono); }
.dia-edge { fill: none; stroke: rgba(23, 29, 38, 0.14); stroke-width: 1.2; transition: stroke 0.25s; pointer-events: none; }
.dia-edge.active { stroke: var(--brand-1); }
.dia-pulse { pointer-events: none; }
.dia-node { cursor: pointer; outline: none; }
.dia-node rect {
  fill: #fff; stroke: var(--border); stroke-width: 1;
  transition: stroke 0.25s, stroke-width 0.25s, filter 0.3s, transform 0.3s var(--ease-out);
}
.dia-node:hover rect, .dia-node.active rect {
  stroke: var(--brand-1); stroke-width: 1.6;
  filter: drop-shadow(0 10px 22px rgba(255, 106, 0, 0.2));
}
.dia-node:focus-visible rect { stroke: var(--brand-1); stroke-width: 2; }
.dia-node:hover, .dia-node.active { transform: translateY(-2px); }
.dia-node { transition: transform 0.3s var(--ease-out); }
.dia-node-a rect { fill: rgba(255, 106, 0, 0.05); stroke: rgba(255, 106, 0, 0.35); }
.dia-node-b rect { fill: rgba(50, 108, 229, 0.05); stroke: rgba(50, 108, 229, 0.32); }
.dia-node-foundation rect { fill: rgba(255, 106, 0, 0.07); stroke: rgba(255, 106, 0, 0.3); }
.dia-zone { fill: rgba(255, 106, 0, 0.03); stroke: rgba(255, 106, 0, 0.3); stroke-width: 1; stroke-dasharray: 5 6; }
.dia-zone-label { fill: var(--muted); font-size: 11.5px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.dia-group-rect { fill: rgba(23, 29, 38, 0.025); stroke: rgba(23, 29, 38, 0.12); stroke-width: 1; stroke-dasharray: 5 6; }
.dia-detail {
  min-height: 1.7em; margin-top: 16px; text-align: center;
  font-size: 13.5px; color: var(--text-2);
}

/* Docs grid */
.docs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.doc-card {
  position: relative; padding: 28px 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.doc-card:hover { transform: translateY(-5px); border-color: rgba(255, 106, 0, 0.38); box-shadow: var(--shadow-md); }
.doc-card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 106, 0, 0.09); border: 1px solid rgba(255, 106, 0, 0.2); color: var(--brand-1); margin-bottom: 18px; }
.doc-card-icon svg { width: 20px; height: 20px; }
.doc-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.doc-card p { margin-top: 9px; font-size: 13.8px; color: var(--text-2); }
.doc-card-arrow { position: absolute; top: 26px; right: 24px; color: var(--muted); transition: transform 0.3s var(--ease-out), color 0.3s; }
.doc-card-arrow svg { width: 17px; height: 17px; }
.doc-card:hover .doc-card-arrow { transform: translate(3px, -3px) rotate(0deg); color: var(--brand-1); }

/* CTA band */
.cta-band { position: relative; padding: clamp(90px, 12vw, 170px) clamp(16px, 4vw, 40px); text-align: center; overflow: hidden; }
.cta-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 46% 60% at 50% 108%, rgba(255, 106, 0, 0.16), transparent 68%),
    radial-gradient(ellipse 30% 45% at 18% 100%, rgba(255, 138, 61, 0.12), transparent 70%),
    radial-gradient(ellipse 30% 45% at 82% 100%, rgba(50, 108, 229, 0.08), transparent 70%);
}
.cta-inner h2 { font-size: clamp(30px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.18; color: var(--ink); }
.cta-inner p { margin-top: 18px; color: var(--text-2); font-size: 16.5px; }

/* ============================================================
   Footer — dark ink anchor
   ============================================================ */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); background: #10141c; color: rgba(255, 255, 255, 0.72); }
.footer-inner {
  max-width: 1360px; margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(16px, 4vw, 40px) 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px);
}
.footer-brand .brand-name { color: #fff; }
.footer-tag { margin-top: 16px; max-width: 300px; color: rgba(255, 255, 255, 0.5); font-size: 14px; }
.footer-cobrand { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.cobrand-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s, background 0.25s;
}
.cobrand-item:hover { border-color: rgba(255, 138, 61, 0.55); background: rgba(255, 106, 0, 0.12); }
.cobrand-item svg { width: 16px; height: 16px; color: var(--brand-2); }
.cobrand-item img { width: auto; height: 15px; display: block; }
.cobrand-item img.cobrand-aliyun { height: 14px; }
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); margin-bottom: 18px; }
.footer-col a { display: block; padding: 5px 0; color: rgba(255, 255, 255, 0.52); font-size: 14px; transition: color 0.25s, transform 0.25s; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 22px clamp(16px, 4vw, 40px);
  max-width: 1360px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.42); font-size: 12.8px;
}

/* ============================================================
   Docs layout
   ============================================================ */
.docs-shell {
  max-width: 1360px; margin: 0 auto;
  padding: calc(var(--header-h) + 8px) clamp(16px, 4vw, 40px) 60px;
  display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: clamp(28px, 3.5vw, 56px);
}
.docs-sidebar { position: relative; }
.side-nav {
  position: sticky; top: calc(var(--header-h) + 26px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto; overscroll-behavior: contain;
  padding-right: 6px; padding-bottom: 24px;
}
.side-nav::-webkit-scrollbar { width: 6px; }
.nav-root > li + li { margin-top: 22px; }
.nav-top { font-weight: 700; font-size: 14px; letter-spacing: 0.02em; color: var(--text); }
.nav-top span { display: inline-flex; align-items: center; }
.nav-link {
  display: block; padding: 7px 12px; border-radius: 9px;
  color: var(--text-2); font-size: 14px; line-height: 1.5;
  transition: color 0.22s, background 0.22s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-sub { margin-top: 6px; border-left: 1px solid var(--border-soft); margin-left: 11px; }
.nav-sub .nav-link { margin-left: 0; padding-left: 18px; border-radius: 0 9px 9px 0; position: relative; }
.nav-sub-deep { margin-left: 29px; border-left: 1px solid var(--border-soft); }
.nav-sub-deep .nav-link { font-size: 13.2px; color: var(--muted); padding-left: 16px; }
.nav-link.is-active {
  color: var(--brand-ink); font-weight: 600;
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.12), rgba(255, 138, 61, 0.05));
}
.nav-sub .nav-link.is-active::before {
  content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px;
  width: 2px; border-radius: 2px; background: var(--grad);
}
.nav-top.is-active { color: var(--brand-ink); }

.docs-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 208px; gap: clamp(24px, 3vw, 48px); }
.docs-main > * { min-width: 0; }
.doc-article { min-width: 0; max-width: 860px; padding-top: 26px; }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brand-1); }
.breadcrumb svg { width: 12px; height: 12px; opacity: 0.6; }
.breadcrumb span[aria-current] { color: var(--text-2); }

.doc-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); }
.doc-lede { margin-top: 14px; font-size: 16.5px; color: var(--text-2); }
.doc-hero { padding-bottom: 26px; border-bottom: 1px solid var(--border-soft); margin-bottom: 34px; }

/* TOC */
.docs-toc { position: relative; }
.docs-toc > .toc-heading {
  position: sticky; top: calc(var(--header-h) + 26px);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  padding-top: 30px; margin-bottom: 4px;
}
.toc-nav { position: sticky; top: calc(var(--header-h) + 66px); max-height: calc(100vh - var(--header-h) - 100px); overflow-y: auto; }
.toc-nav a {
  display: block; padding: 5px 0 5px 14px; border-left: 2px solid var(--border-soft);
  font-size: 13px; color: var(--muted); line-height: 1.5;
  transition: color 0.2s, border-color 0.2s;
}
.toc-nav a.toc-h3 { padding-left: 30px; font-size: 12.5px; }
.toc-nav a:hover { color: var(--text); }
.toc-nav a.is-active { color: var(--brand-ink); border-left-color: var(--brand-1); }

/* Pager */
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.pager-link {
  display: flex; flex-direction: column; gap: 5px;
  padding: 18px 22px; border-radius: var(--r-md);
  border: 1px solid var(--border-soft); background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.pager-link:hover { border-color: rgba(255, 106, 0, 0.4); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pager-link small { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.pager-link span { font-weight: 650; font-size: 15px; color: var(--brand-ink); }
.pager-next { text-align: right; }
.doc-pager:empty { display: none; }

.doc-footer-meta { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.edit-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); transition: color 0.2s; }
.edit-link:hover { color: var(--brand-1); }
.edit-link svg { width: 15px; height: 15px; }

/* ============================================================
   Prose (markdown content)
   ============================================================ */
.prose { font-size: 15.8px; color: var(--text-2); }
.prose > h1:first-child { display: none; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-weight: 750; letter-spacing: -0.015em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2 { font-size: 26px; margin: 52px 0 18px; padding-top: 10px; }
.prose h3 { font-size: 20px; margin: 40px 0 14px; }
.prose h4 { font-size: 16.5px; margin: 30px 0 10px; }
.prose p { margin: 14px 0; }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--brand-ink); font-weight: 550; background-image: linear-gradient(rgba(255, 106, 0, 0.35), rgba(255, 106, 0, 0.35)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.3s, color 0.2s; }
.prose a:hover { color: var(--brand-deep); background-image: linear-gradient(rgba(255, 106, 0, 0.6), rgba(255, 106, 0, 0.6)); }
.prose ul, .prose ol { padding-left: 24px; margin: 14px 0; display: grid; gap: 7px; }
.prose li { min-width: 0; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -18px; top: 0.62em; width: 6px; height: 6px; border-radius: 2px; background: var(--grad); }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--brand-ink); font-weight: 700; font-family: var(--font-mono); font-size: 13px; }
.prose li > ul, .prose li > ol { margin: 7px 0; }

.prose img { border-radius: var(--r-md); border: 1px solid var(--border-soft); box-shadow: var(--shadow-md); margin: 24px 0; background: var(--bg-soft); }

.prose hr { border: 0; height: 1px; background: var(--border-soft); margin: 44px 0; }

.prose blockquote {
  margin: 22px 0; padding: 16px 20px;
  border-left: 3px solid var(--brand-1); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.07), rgba(255, 138, 61, 0.02));
}
.prose blockquote p { margin: 6px 0; }

.prose code {
  font-family: var(--font-mono); font-size: 0.855em;
  background: rgba(255, 106, 0, 0.08); color: var(--brand-ink);
  padding: 2.5px 7px; border-radius: 7px;
  border: 1px solid rgba(255, 106, 0, 0.16);
  white-space: normal; overflow-wrap: anywhere;
}
.prose pre { position: relative; margin: 22px 0; border-radius: var(--r-md); border: 1px solid var(--border-soft); background: #101823 !important; overflow: hidden; box-shadow: var(--shadow-sm); }
.prose pre code { display: block; padding: 20px 22px; background: none; border: 0; color: #dde6f3; font-size: 13.5px; line-height: 1.8; white-space: pre; overflow-x: auto; }
.prose pre code .code-copy-btn { position: absolute; }
.code-copy-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 9px; color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0; transition: opacity 0.25s, color 0.2s, background 0.2s;
}
.prose pre:hover .code-copy-btn, .code-copy-btn:focus-visible { opacity: 1; }
.code-copy-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.code-copy-btn svg { width: 15px; height: 15px; }
.code-copy-btn .icon-ok { display: none; color: #3ddc97; }
.code-copy-btn.copied .icon-copy { display: none; }
.code-copy-btn.copied .icon-ok { display: block; }

.table-wrap { overflow-x: auto; margin: 22px 0; border-radius: var(--r-md); border: 1px solid var(--border-soft); background: var(--surface); box-shadow: var(--shadow-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose thead th {
  text-align: left; padding: 12px 18px; font-weight: 700; color: var(--ink); font-size: 13px;
  letter-spacing: 0.05em; background: var(--bg-soft); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.prose tbody td { padding: 12px 18px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr { transition: background 0.2s; }
.prose tbody tr:hover { background: rgba(255, 106, 0, 0.03); }

/* Rouge syntax theme (dark code blocks on the light page) */
.highlight .c, .highlight .cm, .highlight .c1, .highlight .cs { color: #67748c; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr, .highlight .kt { color: #ff9a52; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .sh, .highlight .sx { color: #7ee0a3; }
.highlight .n, .highlight .na, .highlight .nb, .highlight .nc, .highlight .nf, .highlight .nl, .highlight .nn, .highlight .nt, .highlight .nv { color: #8ab8ff; }
.highlight .nf, .highlight .fm { color: #6fd3ff; }
.highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .mo, .highlight .il { color: #f7b76d; }
.highlight .o, .highlight .ow, .highlight .p { color: #9aa8c2; }
.highlight .gp { color: #ff9a52; font-weight: 700; }
.highlight .go { color: #dde6f3; }
.highlight .err { color: #ff7a93; }
.highlight .ge { font-style: italic; } .highlight .gs { font-weight: 700; }

/* ============================================================
   Search palette
   ============================================================ */
.search-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(23, 29, 38, 0.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; justify-items: center; align-content: start;
  padding: 12vh 16px 16px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-panel {
  width: min(640px, 100%);
  border-radius: var(--r-lg); overflow: hidden;
  background: rgba(255, 255, 255, 0.96); border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.985); transition: transform 0.3s var(--ease-spring);
}
.search-overlay.open .search-panel { transform: none; }
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border-soft); }
.search-input-row svg { width: 18px; height: 18px; color: var(--brand-1); flex: none; }
.search-input-row input {
  flex: 1; background: none; border: 0; outline: none;
  color: var(--text); font-size: 16.5px; font-family: var(--font-sans);
}
.search-input-row input::placeholder { color: var(--muted); }
.search-input-row kbd { font-family: var(--font-mono); font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; background: var(--surface-2); }
.search-results { max-height: min(46vh, 420px); overflow-y: auto; padding: 8px; }
.search-results:empty { padding: 0; }
.search-result {
  display: block; padding: 12px 14px; border-radius: 12px;
  transition: background 0.15s;
}
.search-result .sr-path { font-size: 11.5px; color: var(--muted); letter-spacing: 0.05em; display: block; margin-bottom: 3px; }
.search-result .sr-title { font-size: 15px; font-weight: 650; color: var(--text); }
.search-result .sr-title mark, .search-result .sr-excerpt mark { background: none; color: var(--brand-ink); }
.search-result .sr-excerpt { font-size: 13px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-result.is-selected, .search-result:hover { background: rgba(255, 106, 0, 0.08); }
.search-empty { padding: 30px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.search-foot { display: flex; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 12px; }
.search-foot kbd { font-family: var(--font-mono); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; background: var(--surface-2); font-size: 10.5px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .docs-main { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { display: none; }
  .brand-divider, .brand-aliyun { display: none; }
}
@media (max-width: 960px) {
  .header-nav { display: none; }
  .menu-toggle { display: grid; }
  .search-trigger-label, .search-trigger kbd { display: none; }
  .search-trigger { width: 38px; justify-content: center; padding: 0; }
  .brand-divider { display: block; }
  .brand-aliyun { display: block; }
  .console-grid, .cap-grid, .docs-grid { grid-template-columns: 1fr; }
  .ray-feature, .ray-index { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .docs-shell { grid-template-columns: minmax(0, 1fr); }
  .docs-sidebar {
    position: fixed; inset: var(--header-h) auto 0 0; z-index: 55;
    width: min(320px, 84vw);
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-soft);
    padding: 22px 18px 40px;
    transform: translateX(-102%); transition: transform 0.38s var(--ease-out);
    overflow-y: auto;
  }
  .docs-sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .side-nav { position: static; max-height: none; overflow: visible; padding: 0; }
  .docs-backdrop {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 54;
    background: rgba(23, 29, 38, 0.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; transition: opacity 0.3s;
  }
  .docs-backdrop.show { opacity: 1; }
}
@media (max-width: 640px) {
  .header-inner { gap: 10px; }
  .brand-sub { display: none; }
  .brand-divider, .brand-aliyun { display: none; }
  .github-stars { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .doc-pager { grid-template-columns: 1fr; }
  .hero { padding-bottom: 64px; }
  .hero-stats { gap: 22px 36px; }
  .btn-lg { padding: 13px 24px; font-size: 15px; }
  .prose code { white-space: normal; word-break: break-word; }
}

/* ============================================================
   Motion preferences & print
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-canvas { display: none; }
  .hero { background: radial-gradient(ellipse 80% 55% at 50% 30%, rgba(255, 106, 0, 0.08), transparent 70%); }
  .dia-pulses { display: none; }
  .rc-dot { animation: none; }
}
@media print {
  .site-header, .docs-sidebar, .docs-toc, .doc-pager, .doc-footer-meta, .site-footer, .search-overlay { display: none !important; }
  .dia-pulses { display: none; }
  .docs-shell, .docs-main { display: block; padding: 0; }
  body { background: #fff; color: #000; }
}
}
}
#000; }
}
