/* =========================================================
   Tracking API landing — layout aligned to 17track.net/en/api
   (not a clone of tracking-react section stack)
   ========================================================= */

.api-page {
  --api-blue: #2563eb;
  --api-blue-dark: #1d4ed8;
  --api-ink: #0f172a;
  --api-muted: #64748b;
  --api-line: #e2e8f0;
  --api-soft: #f8fafc;
  --api-radius: 16px;
  /* Match tracking-react content shell (--max / --page-pad-x in landing.css) */
  --api-max: var(--max, 1440px);
  color: var(--api-ink);
  background: #fff;
}

.api-page .page {
  background: #fff;
}

/* ---------- shared ---------- */
/* Same geometry as .section-inner / .topbar-inner in landing.css */
.api-wrap {
  max-width: var(--api-max);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--page-pad-x, clamp(16px, 3.2vw, 24px));
  padding-right: var(--page-pad-x, clamp(16px, 3.2vw, 24px));
  box-sizing: border-box;
}

.api-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--api-blue);
}

.api-h1 {
  margin: 0 0 14px;
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: var(--track-title, -0.03em);
  color: var(--api-ink);
}

.api-h2 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--track-title, -0.03em);
  color: var(--api-ink);
}

.api-lead {
  margin: var(--sec-title-desc) 0 0;
  font-size: clamp(14px, calc(12.92px + 0.3vw), 17px);
  line-height: 1.65;
  letter-spacing: var(--track-body, -0.015em);
  color: var(--api-muted);
  max-width: 52ch;
}

.api-check-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.api-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(12.5px, calc(11.6px + 0.25vw), 15px);
  line-height: 1.45;
  color: #334155;
  font-weight: 500;
}

.api-check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1px solid #bfdbfe;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2l2.8 2.8 6.2-6.5' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center/10px 10px no-repeat,
    #eff6ff;
}

.api-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-size: clamp(12.5px, calc(11.6px + 0.25vw), 15px);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.api-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
}

.api-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-size: clamp(12.5px, calc(11.6px + 0.25vw), 15px);
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.api-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   Section 1 — Hero + signup form
   ========================================================= */
/* Hero 背景：WebGL shader 已撤（2026-09-21 Park），改淡蓝渐变底。
   品牌浅蓝洗 + 两侧冷蓝晕，静态、无动画。 */
.api-s1,
.api-page .api-s1.hero,
.api-page .api-s1.hero.hero-shader-fallback {
  background:
    radial-gradient(58% 78% at 12% 0%, rgba(147, 197, 253, 0.34), rgba(147, 197, 253, 0) 70%),
    radial-gradient(62% 88% at 94% 16%, rgba(191, 219, 254, 0.42), rgba(191, 219, 254, 0) 72%),
    linear-gradient(180deg, #f3f8ff 0%, #fafcff 55%, #ffffff 100%);
}

.api-s1 {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 48px 0 44px;
  isolation: isolate;
}

/* Hero 点阵地球（2026-09-21 Park）：文案和表单之间的空档，淡蓝自转 */
.api-s1-hero-globe {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 46%;
  transform: translateY(-50%);
  width: min(38vw, 520px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 74%);
}
.api-s1-hero-globe canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Override tracking .hero flex if present — API hero uses own grid */
.api-page .api-s1.hero {
  display: block;
  min-height: 0;
  align-items: unset;
  overflow: hidden;
}

.api-s1-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.api-s1-grid {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 500px);
  gap: 36px 40px;
  align-items: center;
  justify-items: stretch;
  width: 100%;
}

.api-s1-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-self: center;
  min-width: 0;
  max-width: none;
  padding-top: 0;
  text-align: left;
}

/* readability veil: keeps copy legible over bright shader streaks */
.api-s1-copy::before {
  content: "";
  position: absolute;
  inset: -48px -72px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 72% 64% at 38% 46%,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.28) 46%,
    transparent 74%
  );
}

.api-s1-copy .api-nowrap {
  white-space: nowrap;
  hyphens: none;
  -webkit-hyphens: none;
}

/* 注册成 <number> 才能对 hover 光强做平滑过渡 */
@property --h1-glow {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.api-s1-copy h1.api-h1 {
  --h1-x: 50%;
  --h1-y: 42%;
  /* 1.1 行盒比字形矮，background-clip:text 会切掉 API / g 的底 */
  line-height: 1.22;
  margin-bottom: 14px;
  padding-block: 0.04em;
  overflow: visible;
  text-wrap: pretty;
  /* 字内光：光斑裁进字形，底层保持墨色。单色相品牌蓝，保持比背景深，不发浅、不发紫 */
  background:
    radial-gradient(
      130px circle at var(--h1-x) var(--h1-y),
      rgba(59, 130, 246, calc(var(--h1-glow) * 0.95)) 0%,
      rgba(37, 99, 235, calc(var(--h1-glow) * 0.55)) 46%,
      rgba(37, 99, 235, 0) 74%
    ),
    linear-gradient(var(--api-ink), var(--api-ink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: --h1-glow 0.45s ease;
}

.api-s1-copy h1.api-h1:hover {
  --h1-glow: 1;
}

.api-s1-copy .api-h2 {
  margin: 0 0 18px;
  font-size: clamp(19px, calc(16.91px + 0.58vw), 24.8px);
  font-weight: 600;
  line-height: 1.28;
  color: #3352b3;
  text-wrap: pretty;
}

.api-s1-copy .api-lead {
  max-width: 36em;
  margin-top: 0;
  font-size: var(--fs-lead);
  text-wrap: pretty;
}

.api-s1-copy .api-lead-tag {
  display: inline-flex;
  align-items: center;
  margin: 0 1px;
  padding: 1px 8px 2px;
  border-radius: 999px;
  background: var(--api-blue);
  border: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  vertical-align: 1px;
}

.api-s1-copy .api-check-list {
  margin-top: 28px;
  width: auto;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* hero shader 已撤（2026-09-21 Park），规则已删 */

/* signup card */
.api-form-card {
  align-self: center;
  width: 100%;
  max-width: none;
  margin-left: 0;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 1px 3px rgba(15, 23, 42, 0.06);
}

.api-form-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.api-form-head h3 {
  margin: 0;
  font-size: clamp(16.5px, calc(15.24px + 0.35vw), 20px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.api-form-nocc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--api-muted);
}

.api-form-nocc img {
  width: 16px;
  height: 16px;
}

.api-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 14px;
}

.api-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.api-field.is-full {
  grid-column: 1 / -1;
}

.api-field label {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.api-field label .opt {
  font-size: 11px;
  font-weight: 500;
  color: #a2adbd;
}

.api-field label .req {
  color: #ef4444;
  margin-left: 2px;
}

.api-field.is-invalid input,
.api-field.is-invalid select,
.api-field.is-invalid textarea,
.api-field.is-invalid .api-phone-wrap {
  border-color: #ef4444;
}

.api-field-error {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #ef4444;
}

.api-phone-wrap {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.api-phone-code {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.api-field input,
.api-field select,
.api-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 11px 12px;
  font: inherit;
  font-size: clamp(12px, calc(11.28px + 0.2vw), 14px);
  color: var(--api-ink);
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.api-field input:hover,
.api-field select:hover,
.api-field textarea:hover {
  border-color: #c8d3e2;
}

.api-field input:focus,
.api-field select:focus,
.api-field textarea:focus {
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.api-phone-wrap input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.api-phone-wrap input:hover,
.api-phone-wrap input:focus {
  border: 0;
  box-shadow: none;
}

.api-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%2364748b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.api-field textarea {
  height: 44px;
  min-height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.3;
  resize: none;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition:
    height 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.api-field textarea::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.api-field textarea:focus {
  height: 96px;
  overflow-y: auto;
}

.api-pass-wrap {
  position: relative;
}

.api-pass-wrap input {
  padding-right: 40px;
}

.api-pass-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transform: translateY(-50%);
}

.api-pass-eye:hover {
  color: #475569;
  background: #f1f5f9;
}

.api-form-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 16px;
  font-size: 11px;
  line-height: 1.5;
  color: #8b96a5;
}

.api-form-agree input {
  margin-top: 2px;
}

.api-form-agree a {
  color: var(--api-blue);
  text-decoration: none;
  font-weight: 600;
}

.api-form-agree a:hover {
  text-decoration: underline;
}

.api-form-card .api-btn-primary {
  width: 100%;
}

/* =========================================================
   Section 2 — Use Cases 3D hub (match webgl-demo/exploded.html)
   ========================================================= */
.api-s2 {
  /* demo tokens */
  --uc-fg: rgba(255, 255, 255, 0.92);
  --uc-dim: rgba(255, 255, 255, 0.82);
  --uc-faint: rgba(255, 255, 255, 0.14);
  --uc-accent: #ff8300;
  --uc-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --uc-p: 0;
  --uc-grid: 0;
  --uc-globe-y-t: 0;
  position: relative;
  padding: 0;
  overflow: visible;
  /* ground under fluid shader; dots optional via fallback */
  background-color: #0c0c0e;
  color: var(--uc-fg);
  -webkit-font-smoothing: antialiased;
}

/* fluid bg canvas — pinned to sticky stage so globe stays top-right */
.api-s2-bg-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* when fluid is live, hide CSS dots — shader owns the ground */
.api-s2.has-uc-bg-shader {
  background-image: none;
}

.api-s2:not(.has-uc-bg-shader) {
  background-image: none;
}

.api-s2::before {
  display: none;
}

/* content above fluid (do not reset sticky position here) */
.api-s2-scroll,
.api-s2 .api-wrap {
  position: relative;
  z-index: 1;
}

.api-s2-sticky {
  z-index: 1;
}

.api-s2-scroll {
  position: relative;
  min-height: 0;
}

/* sticky stage under topbar */
.api-s2-sticky {
  position: sticky;
  top: var(--topbar-h, 64px);
  height: calc(100vh - var(--topbar-h, 64px));
  display: flex;
  align-items: center;
  overflow: hidden; /* camera framing keeps 3D inside; don't spill past stage */
  box-sizing: border-box;
  padding: 0;
  --uc-grid-l: max(24px, calc((100% - var(--api-max, 1440px)) / 2 + 24px));
  --uc-grid-v2: calc(
    var(--uc-grid-l) + 0.62 * (min(100%, var(--api-max, 1440px)) - 48px)
  );
}

@media (prefers-reduced-motion: reduce) {
  .api-s2-bg-shader {
    opacity: 0.7;
  }
}

/* thin progress edge flush top of sticky stage */
.api-s2-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: 2px;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.api-s2-progress i,
.api-s2-progress [data-uc-progress] {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9),
    #c4b5fd,
    #38bdf8,
    #34d399,
    #fbbf24,
    #f97316,
    #f43f5e
  );
  display: block;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/*
 * Content shell: max 1440, pad 24 each side → usable width = 1440 − 48
 * left WebGL | right title + bullets
 */
.api-s2-sticky .api-wrap.api-s2-wrap,
.api-s2-sticky .api-s2-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--api-max, 1440px);
  height: 100%;
  margin: 0 auto;
  /* 24 + 24 = 48 → content track 1440 − 48 */
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.api-s2-line {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(28px, 3vw, 48px);
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  box-sizing: border-box;
}

/* left: 3D hub — 74%→80%（2026-09-21 Park「稍微大一点点」）+ 整体左移 2.5%，垂直居中 */
.api-s2-visual {
  position: relative;
  flex: 1 1 62%;
  min-width: 0;
  height: 80%;
  max-height: 100%;
  align-self: center;
  margin-left: -2.5%;
  display: flex;
  align-items: stretch;
  /* visible so callout labels can extend past the 3D host into the gap */
  overflow: visible;
}

.api-s2-visual .api-hub,
.api-s2-visual .api-hub--webgl {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.api-iso-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* WebGL canvas clips; callout layer extends past right edge */
  overflow: visible;
  background: transparent;
}

.api-iso-callouts {
  pointer-events: none;
}

.api-iso-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* right: split title + app list — 都从顶部往下排（2026-09-21 Park：列表别钉底） */
.api-s2-copy {
  position: relative;
  flex: 0 0 min(420px, 38%);
  width: min(420px, 38%);
  min-width: 300px;
  max-width: 440px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  color: var(--uc-fg);
  z-index: 3;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue",
    sans-serif;
  height: 100%;
  padding: 34px 0 40px;
}

/* title block with split lines */
.api-s2-title-block {
  margin: 0;
}

.api-s2-eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--uc-mono);
}

.api-s2-title {
  margin-top: 60px;
  /* 48 桌面不变，360 收到 21.5 与全站模块标题一致（2026-08-31 Park） */
  font-size: clamp(21.5px, calc(11.96px + 2.65vw), 36px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--uc-fg);
  max-width: none !important;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.api-s2-title-line {
  display: block;
}

.api-s2-title-line--top {
  /* top line — tight to bottom */
}

.api-s2-title-line--bottom {
  /* bottom line — tight to top */
}

.api-s2-title em {
  font-style: normal;
  color: var(--uc-accent);
  font-weight: inherit;
}

/* 原 .api-s2-points / .api-s2-check 已随三条 bullet 移除（2026-09-21，内容并入 app-list） */

.api-s2 [data-uc="copy"] {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Use Cases app list（原 Applications 五卡，2026-09-21 Park：
   挪进标题下，滚动逐条出现、无卡片框）
   ========================================================= */
.api-s2-app-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 380px;
}

/* 五条应用条目：滚动一屏一个，当前条亮起、其余淡出（height 占位不变，位置不跳） */
.api-s2-app-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.api-s2-app-item.is-in {
  opacity: 1;
  transform: none;
}

.api-s2-app-item .api-app-ico {
  flex-shrink: 0;
}

.api-s2-app-text h3 {
  margin: 0 0 4px;
  font-size: clamp(14px, calc(12.6px + 0.38vw), 16px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.api-s2-app-text p {
  margin: 0;
  font-size: clamp(12.5px, calc(11.6px + 0.25vw), 14px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

@media (prefers-reduced-motion: reduce) {
  .api-s2-app-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   Eyebrow label above title
   ========================================================= */
.api-s2-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--uc-mono);
}

/* =========================================================
   Crosshair decorations (tech feel)
   ========================================================= */
.api-s2-cross {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0.22;
  z-index: 1;
}
.api-s2-cross::before,
.api-s2-cross::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
}
.api-s2-cross::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}
.api-s2-cross::after {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}
.api-s2-cross--tl {
  top: 40px;
  left: 24px;
}
.api-s2-cross--tr {
  top: 40px;
  right: 24px;
}
.api-s2-cross--bl {
  bottom: 40px;
  left: 24px;
}
.api-s2-cross--br {
  bottom: 40px;
  right: 24px;
}

/* =========================================================
   Grid lines + intersection squares (tech/blueprint feel)
   x.ai-style: fine grid + gradient glow at intersections
   ========================================================= */
.api-s2-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* grid lines + flowing light pass BEHIND the particle globe:
   soft circular hole tracking the globe (vars set by use-cases-scroll) */
.api-s2.has-uc-bg-shader .api-s2-grid {
  -webkit-mask-image: radial-gradient(
    circle var(--uc-globe-r, 0px) at var(--uc-globe-x, 100%)
      calc(var(--uc-globe-y-t, 0) * 100%),
    transparent 0 80%,
    black 100%
  );
  mask-image: radial-gradient(
    circle var(--uc-globe-r, 0px) at var(--uc-globe-x, 100%)
      calc(var(--uc-globe-y-t, 0) * 100%),
    transparent 0 80%,
    black 100%
  );
}

.api-s2-grid-v,
.api-s2-grid-h {
  position: absolute;
  background-color: rgba(186, 206, 232, 0.07);
  background-repeat: no-repeat;
  filter: none;
}

/* 1px vertical lines — draw down on scroll, then pulse */
.api-s2-grid-v {
  top: 0;
  bottom: 0;
  height: 100%;
  width: 1px;
  transform: scaleY(max(0, min(1, calc((var(--uc-grid, 0) - 0.12) * 1.35))));
  transform-origin: top center;
  background-image: linear-gradient(
    180deg,
    rgba(96, 140, 210, 0) 0%,
    rgba(96, 140, 210, 0) 46.8%,
    rgba(96, 140, 210, 0.22) 48%,
    rgba(125, 170, 230, 0.28) 48.9%,
    rgba(160, 200, 255, 0.32) 49.7%,
    rgba(56, 189, 248, 0.24) 50.5%,
    rgba(45, 180, 210, 0.18) 51.3%,
    rgba(45, 180, 210, 0) 52.2%,
    rgba(45, 180, 210, 0) 100%
  );
  background-size: 100% 260%;
  animation: uc-grid-flow-y 8s linear infinite;
}

.api-s2-grid-h {
  left: 0;
  right: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(max(0, min(1, calc(var(--uc-grid, 0) * 1.25))));
  transform-origin: left center;
  background-image: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0) 0%,
    rgba(124, 58, 237, 0) 46.8%,
    rgba(124, 58, 237, 0.22) 48%,
    rgba(192, 38, 211, 0.26) 48.9%,
    rgba(236, 72, 153, 0.28) 49.7%,
    rgba(56, 189, 248, 0.26) 50.5%,
    rgba(45, 212, 191, 0.2) 51.3%,
    rgba(52, 211, 153, 0) 52.2%,
    rgba(52, 211, 153, 0) 100%
  );
  background-size: 260% 100%;
  animation: uc-grid-flow-x 9s linear infinite;
}

@keyframes uc-grid-flow-y {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 100%;
  }
}

@keyframes uc-grid-flow-x {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  }
}

.api-s2-grid-v--1 {
  left: var(--uc-grid-l);
  background-color: rgba(186, 206, 232, 0.07);
  animation-duration: 8s;
}
.api-s2-grid-v--2 {
  left: var(--uc-grid-v2);
  animation-duration: 11s;
  animation-delay: -5s;
  animation-direction: reverse;
}
.api-s2-grid-h--1 {
  top: 30%;
  animation-duration: 9s;
  animation-delay: -2s;
}
.api-s2-grid-h--2 {
  top: 70%;
  animation-duration: 13s;
  animation-delay: -7s;
  animation-direction: reverse;
}

@media (prefers-reduced-motion: reduce) {
  .api-s2-grid-v,
  .api-s2-grid-h {
    animation: none;
    filter: none;
    transform: none;
  }
  .api-s2-grid-sq {
    opacity: 1;
  }
}

/* intersection glow points */
.api-s2-grid-sq {
  display: none;
}

.api-s2-grid-sq--1 {
  left: var(--uc-grid-l);
  top: 30%;
  transform: translate(-50%, -50%);
}
.api-s2-grid-sq--2 {
  left: var(--uc-grid-v2);
  top: 30%;
  transform: translate(-50%, -50%);
}
.api-s2-grid-sq--3 {
  left: var(--uc-grid-l);
  top: 70%;
  transform: translate(-50%, -50%);
}
.api-s2-grid-sq--4 {
  left: var(--uc-grid-v2);
  top: 70%;
  transform: translate(-50%, -50%);
}

/* subtle gradient wash behind grid */
.api-s2-grid::before {
  display: none;
}

/* =========================================================
   Bottom tick progress bar
   ========================================================= */
.api-s2-tickbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 4;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.api-s2-tickbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(720px, calc(100% - 48px));
}

.api-s2-tickbar-pct {
  font-family: var(--uc-mono);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Right-edge vertical tick progress bar
   ========================================================= */
.api-s2-tickbar {
  position: absolute;
  top: 50%;
  right: 18px;
  bottom: auto;
  left: auto;
  z-index: 4;
  transform: translateY(-50%);
  pointer-events: none;
}

.api-s2-tickbar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: auto;
  height: min(420px, 50vh);
}

.api-s2-tickbar-pct {
  font-family: var(--uc-mono);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  min-width: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  order: 2;
}

.api-s2-tickbar-track {
  position: relative;
  flex: 1;
  width: 32px;
  height: 100%;
  order: 1;
}

.api-s2-tickbar-ticks {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.api-s2-tickbar-ticks i {
  display: block;
  width: 10px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  transition:
    width 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.api-s2-tickbar-ticks i.is-major {
  width: 16px;
  background: rgba(255, 255, 255, 0.12);
}

/* active tick: extended + glow */
.api-s2-tickbar-ticks i.is-active {
  background: rgba(167, 139, 250, 0.75);
  box-shadow: 0 0 6px rgba(167, 139, 250, 0.25);
}

/* current leading tick: widest, brightest */
.api-s2-tickbar-ticks i.is-current {
  width: 26px;
  background: rgba(196, 181, 253, 0.95);
  box-shadow:
    0 0 8px rgba(167, 139, 250, 0.5),
    0 0 16px rgba(167, 139, 250, 0.2);
}

/* adjacent ticks: smooth width ramp */
.api-s2-tickbar-ticks i.is-near-1 {
  width: 20px;
  background: rgba(167, 139, 250, 0.5);
}

.api-s2-tickbar-ticks i.is-near-2 {
  width: 15px;
  background: rgba(167, 139, 250, 0.3);
}

.api-s2-tickbar-ticks i.is-major.is-active {
  background: rgba(196, 181, 253, 0.8);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.35);
}

.api-s2-tickbar-ticks i.is-major.is-current {
  width: 28px;
  background: #e9d5ff;
  box-shadow:
    0 0 10px rgba(167, 139, 250, 0.6),
    0 0 20px rgba(167, 139, 250, 0.25);
}

/* subtle baseline */
.api-s2-tickbar-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

@media (max-width: 768px) {
  /* 768 平板竖屏保持 s2 图/文左右布局（2026-08-31 Park）；
     visual/copy 的单列堆叠规则降到 ≤640。这里只藏平板上仍是噪音的部分：
     十字准星、tickbar、彩虹进度线（≤768 滚动编排定格 p=1，进度线永远满宽挂着） */
  .api-s2-cross {
    display: none;
  }

  .api-s2-tickbar {
    display: none;
  }

  .api-s2-progress {
    display: none;
  }
}

/* —— Hub: logos | server | terminal fill the left column —— */
.api-hub {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
}

.api-hub-canvas {
  position: relative;
  width: 100%;
  min-height: min(400px, calc(100vh - var(--topbar-h, 64px) - 100px));
  height: min(400px, calc(100vh - var(--topbar-h, 64px) - 100px));
  display: flex;
  align-items: center;
}

/* 3 blocks clearly separated across the diagram column */
.api-hub-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between; /* logos | server | terminal 拉开 */
  gap: var(--hub-gap, clamp(36px, 4vw, 56px));
  width: 100%;
  min-height: 300px;
  padding: 0;
  box-sizing: border-box;
}

/* Logo column — tight pad, soft dim border */
.api-iso-logos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto; /* fixed; spacing comes from hub-row space-between */
}

/*
 * Carrier tile — concentric radii:
 *   r_inner = r_outer − pad − border
 * so the icon corner tracks the glass frame (no flat gap / no over-round).
 */
.api-iso-logo {
  position: relative;
  width: 56px;
  height: 56px;
}

.api-iso-logo-face {
  --r-outer: 14px;
  --pad: 3px;
  --border-w: 1px;
  /* 内圆角 = 外圆角 − 内边距 − 描边 */
  --r-inner: calc(var(--r-outer) - var(--pad) - var(--border-w));

  width: 56px;
  height: 56px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  border-radius: var(--r-outer);
  border: var(--border-w) solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden; /* clip img to outer frame */
}

.api-iso-logo-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r-inner); /* = 10px when outer 14 / pad 3 / border 1 */
}

/* —— 2D front-view rack chassis —— */
.api-iso-server {
  position: relative;
  flex: 0 0 auto; /* fixed block between logos and terminal */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chassis — border-beam host + fluid gradient wash
 * 同心圆角: r_face = r_outer − pad (≥ 1px)
 */
.api-rack {
  --r-outer: 16px;
  --pad: 10px;
  --r-face: max(2px, calc(var(--r-outer) - var(--pad))); /* 6px */

  position: relative;
  display: block;
  width: 200px;
  padding: var(--pad);
  border-radius: var(--r-outer);
  /* base metal under fluid layer */
  background: linear-gradient(165deg, #1a2233 0%, #0c121c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  isolation: isolate;
  overflow: visible; /* beam bloom */
}

/* very soft blue wash — barely there */
.api-rack-fluid {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.18;
  background:
    radial-gradient(
      ellipse 80% 60% at 20% 25%,
      rgba(56, 140, 210, 0.35),
      transparent 60%
    ),
    radial-gradient(
      ellipse 70% 50% at 80% 75%,
      rgba(40, 110, 190, 0.25),
      transparent 55%
    );
  background-size:
    130% 130%,
    140% 140%;
  background-position:
    0% 0%,
    100% 100%;
  animation: api-rack-fluid 16s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

.api-rack-fluid::after {
  display: none; /* no sheen sparkle */
}

@keyframes api-rack-fluid {
  0% {
    background-position:
      0% 10%,
      100% 0%,
      40% 100%;
    filter: saturate(1);
  }
  50% {
    background-position:
      30% 40%,
      70% 30%,
      60% 70%;
    filter: saturate(1.1);
  }
  100% {
    background-position:
      10% 80%,
      40% 60%,
      80% 20%;
    filter: saturate(1.05);
  }
}

@keyframes api-rack-sheen {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-8%);
  }
  50% {
    opacity: 0.7;
    transform: translateX(8%);
  }
}

/* rails removed */
.api-rack-rail {
  display: none !important;
}

.api-rack-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
}

.api-rack-unit {
  width: 100%;
}

.api-rack-face {
  /* bay/chip: r_inner = r_face − face_pad (pad must be < r_face) */
  --face-pad: 4px;
  --r-face-outer: var(--r-face, 6px);
  --r-face-inner: max(
    1px,
    calc(var(--r-face-outer) - var(--face-pad))
  ); /* 2px */

  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--face-pad) 9px;
  border-radius: var(--r-face-outer);
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
    linear-gradient(180deg, #1e2838 0%, #121a26 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: visible;
}

.api-rack-unit.is-head .api-rack-face {
  min-height: 32px;
  overflow: visible;
}

.api-rack-unit.is-drive .api-rack-face {
  min-height: 40px;
}

.api-rack-unit.is-base .api-rack-face {
  min-height: 26px;
}

/* brand row: 17TRACK + API on one line */
.api-rack-brand {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.api-rack-logo {
  display: block;
  height: 7px !important;
  width: auto !important;
  max-width: 52px !important;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.api-rack-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  border-radius: 3px;
  padding: 1px 5px;
  line-height: 1.2;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.3);
}

/* single quiet bar on base unit */
.api-rack-bar {
  flex: 1;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2a3548, #141c28);
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Drive bays — minimal */
.api-rack-bays {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.api-rack-bay {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 13px;
  padding: 0 5px;
  border-radius: var(--r-face-inner, 2px);
  background: linear-gradient(180deg, #323e52, #1a2230);
  border: 1px solid rgba(0, 0, 0, 0.28);
}
.api-rack-bay-handle {
  width: 10px;
  height: 6px;
  border-radius: 1px;
  background: #0a0e14;
  flex-shrink: 0;
}
.api-rack-bay-label {
  flex: 1;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(148, 163, 184, 0.65);
  white-space: nowrap;
  overflow: hidden;
}

/* LEDs — soft breathing glow */
.api-rack-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.api-rack-status.is-row {
  flex-direction: row;
  gap: 4px;
  margin-left: 0;
}
.api-rack-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2a3444;
  flex-shrink: 0;
}
.api-rack-led.is-dim {
  background: #3d4a5c;
  opacity: 0.4;
}
.api-rack-led.is-green {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.75);
}
.api-rack-led.is-cyan {
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.75);
}
.api-rack-led.is-magenta {
  background: #e879f9;
  box-shadow: 0 0 6px rgba(232, 121, 249, 0.7);
}

/* breathe: smooth opacity + glow pulse (not hard blink) */
@keyframes api-led-breathe {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
    filter: brightness(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
    filter: brightness(1.25);
  }
}

.api-rack-led.is-breathe {
  animation: api-led-breathe 2.4s ease-in-out infinite;
}
.api-rack-led.is-breathe-delay {
  animation: api-led-breathe 2.8s ease-in-out infinite;
  animation-delay: 0.55s;
}
.api-rack-led.is-breathe-slow {
  animation: api-led-breathe 3.4s ease-in-out infinite;
  animation-delay: 0.25s;
}

/* legacy class aliases if any remain */
.api-rack-led.is-blink {
  animation: api-led-breathe 2.4s ease-in-out infinite;
}
.api-rack-led.is-blink-delay {
  animation: api-led-breathe 2.8s ease-in-out infinite;
  animation-delay: 0.55s;
}
.api-rack-led.is-blink-slow {
  animation: api-led-breathe 3.4s ease-in-out infinite;
  animation-delay: 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  .api-rack-fluid,
  .api-rack-fluid::after {
    animation: none;
  }
  .api-rack-led.is-breathe,
  .api-rack-led.is-breathe-delay,
  .api-rack-led.is-breathe-slow,
  .api-rack-led.is-blink,
  .api-rack-led.is-blink-delay,
  .api-rack-led.is-blink-slow {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* connection ports on server wrapper (measure anchors) */
.api-iso-port {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
.api-iso-port.is-in {
  left: 8%;
  top: 48%;
}
.api-iso-port.is-out {
  right: 4%;
  top: 48%;
}

.api-hub-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

/* soft fan paths */
.api-hub-guide {
  fill: none;
  stroke: rgba(125, 211, 252, 0.32);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.api-hub-guide.is-solid {
  stroke: rgba(167, 139, 250, 0.36);
  stroke-width: 1.3;
}

/* pulse only when section in view-ish — cheap stroke dash */
.api-hub-pulse {
  fill: none;
  stroke: rgba(56, 189, 248, 0.5);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 5 90;
  animation: api-hub-flow 2.8s linear infinite;
  vector-effect: non-scaling-stroke;
}
.api-hub-pulse.p2 {
  animation-duration: 3s;
  animation-delay: 0.25s;
}
.api-hub-pulse.p3 {
  animation-duration: 2.5s;
  animation-delay: 0.5s;
}
.api-hub-pulse.p4 {
  animation-duration: 2.9s;
  animation-delay: 0.75s;
}
.api-hub-pulse.p5 {
  animation-duration: 3.1s;
  animation-delay: 1s;
}
.api-hub-pulse.is-right {
  stroke: rgba(167, 139, 250, 0.5);
  animation-duration: 2.2s;
}

@keyframes api-hub-flow {
  to {
    stroke-dashoffset: -95;
  }
}

@media (prefers-reduced-motion: reduce) {
  .api-hub-pulse {
    animation: none;
    stroke-dasharray: none;
    opacity: 0.45;
  }
}

.api-hub-node {
  position: absolute;
  z-index: 4;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.api-hub-node.is-src {
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.35);
}
.api-hub-node.is-mid {
  background: #7dd3fc;
  box-shadow: 0 0 6px rgba(125, 211, 252, 0.35);
}
.api-hub-node.is-dst {
  background: #a78bfa;
  box-shadow: 0 0 6px rgba(167, 139, 250, 0.35);
}

/* Terminal — frosted glass + tracking typewriter host */
.api-hub-trail {
  position: relative;
  z-index: 3;
  flex: 0 1 360px;
  width: min(380px, 100%);
  min-width: 280px;
  max-width: 400px;
  opacity: 1;
  transform: none;
}

.api-hub-trail.is-in {
  opacity: 1;
  transform: none;
}

.api-hub-trail .code-window.api-hub-code-window,
.api-hub-code-window {
  width: 100%;
  max-width: none;
  min-height: 340px;
  height: min(380px, calc(100vh - var(--topbar-h, 64px) - 120px));
  border-radius: 16px;
  /* frosted glass — translucent over dark s2 */
  --cw-bg: transparent;
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.04) 40%,
      rgba(15, 23, 42, 0.35) 100%
    ),
    rgba(22, 28, 40, 0.42) !important;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.28);
  outline: none;
  --layer-x: 0px;
  --layer-y: 0px;
  transform: none;
}

.api-hub-code-window .code-window-chrome {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 100%
  ) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px 16px 0 0;
}

.api-hub-code-window .code-window-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.api-hub-code-window .cw-edit {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.api-hub-code-window .cw-edit-head {
  flex-shrink: 0;
}

.api-hub-code-window .cw-code {
  max-height: none !important;
  flex: 1 1 auto;
  min-height: 7.5em;
  /* JS still drives scrollTop for caret follow — hide native scrollbar */
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
}
.api-hub-code-window .cw-code::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none; /* Chrome / Safari */
}

.api-hub-code-window .code-window-foot {
  background: rgba(0, 0, 0, 0.18) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* copy + lines — visible by default (no long scroll-gated fade) */
.api-s2 [data-uc="copy"] {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.api-s2 [data-uc="copy"].is-in {
  opacity: 1;
  transform: none;
}

/* data-uc-line 显隐由 use-cases-scroll 按滚动进度逐条驱动（2026-09-21 Park） */

@media (prefers-reduced-motion: reduce) {
  .api-hub-trail,
  .api-s2 [data-uc="copy"],
  .api-s2 [data-uc-line] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Dark glass trail card (ref: metric glass panels) */
.api-trail-card {
  background: linear-gradient(
    160deg,
    rgba(32, 38, 52, 0.92) 0%,
    rgba(14, 18, 28, 0.96) 100%
  );
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.3);
  padding: 12px 12px 10px;
  width: 100%;
  color: #e2e8f0;
  backdrop-filter: blur(12px);
}

.api-trail-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.api-trail-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(
    145deg,
    rgba(56, 189, 248, 0.25),
    rgba(37, 99, 235, 0.35)
  );
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: #e0f2fe;
}

.api-trail-head strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1.2;
}

.api-trail-head span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: rgba(203, 213, 225, 0.65);
  line-height: 1.35;
}

.api-trail-head em {
  font-style: normal;
  font-weight: 700;
  color: #7dd3fc;
}

.api-trail-progress {
  margin-top: 8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.api-trail-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
}

.api-trail-meta {
  margin: 6px 0 0;
  font-size: 10px;
  color: rgba(148, 163, 184, 0.85);
}

.api-trail-title {
  margin: 10px 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f1f5f9;
}

.api-trail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.api-trail-list li {
  position: relative;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 6px;
  padding: 0 0 10px;
}

.api-trail-list li:last-child {
  padding-bottom: 0;
}

.api-trail-list li:not(:last-child) .api-trail-dot::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 11px;
  bottom: -2px;
  width: 1.5px;
  background: rgba(148, 163, 184, 0.25);
}

.api-trail-dot {
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  border: 2px solid rgba(15, 20, 30, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.api-trail-list li.is-active .api-trail-dot {
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.api-trail-list strong {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(241, 245, 249, 0.88);
  line-height: 1.3;
}

.api-trail-list span {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  color: rgba(148, 163, 184, 0.85);
  line-height: 1.3;
}

.api-trail-list time {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  color: rgba(100, 116, 139, 0.95);
  font-variant-numeric: tabular-nums;
}

.api-trail-list li.is-active strong {
  color: #7dd3fc;
}

@media (prefers-reduced-motion: reduce) {
  .api-hub-pulse {
    animation: none;
    stroke-dasharray: none;
    opacity: 0.55;
  }
}

@media (max-width: 1024px) {
  .api-server-card {
    width: 168px;
    padding: 16px 14px 12px;
  }
}

@media (max-width: 768px) {
  /* keep sticky stage on small screens; hud already has max-width:800 rules */
  .api-s2-sticky {
    min-height: 70vh;
  }
}

/* =========================================================
   Section 3 — How API works (3 equal cards, fill 1440 content)
   ========================================================= */
.api-s3 {
  position: relative;
  padding: var(--sec-y) 0;
  background: #fff;
}

.api-s3-head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--sec-head-gap);
}

.api-s3-head .api-lead {
  margin: var(--sec-title-desc) auto 0;
  max-width: 68ch;
}

/* >1024 1×4；641-1024 2×2；≤640 单列 */
.api-s3-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 16px);
  width: 100%;
  min-height: 0;
  align-items: stretch;
}

/* White card shell; soft circular blurs live only in the illustration well */
.api-s3-card {
  --s3-r: 20px;
  --s3-pad: 8px;
  --s3-inner-r: calc(var(--s3-r) - var(--s3-pad));
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--s3-r);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  padding: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* wash/grain only decorate the illustration zone via stacking on card;
   kept transparent over white body so the card face stays white */
.api-s3-card-wash,
.api-s3-card-grain {
  display: none;
}

.api-s3-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
}

/* Illustration well — inset 8px, inner radius = outer − pad */
.api-s3-illus {
  position: relative;
  flex: 0 0 auto;
  width: calc(100% - var(--s3-pad) * 2);
  min-width: 0;
  height: clamp(260px, 28vw, 360px);
  min-height: 0;
  margin: var(--s3-pad);
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  border-radius: var(--s3-inner-r);
  border: none;
  background: #f7f8fa;
}

.api-s3-illus::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(148, 163, 184, 0.18) 1px,
    transparent 1.15px
  );
  background-size: 11px 11px;
  background-position: center;
  -webkit-mask-image: radial-gradient(
    circle at 50% 48%,
    #000 12%,
    rgba(0, 0, 0, 0.55) 42%,
    transparent 72%
  );
  mask-image: radial-gradient(
    circle at 50% 48%,
    #000 12%,
    rgba(0, 0, 0, 0.55) 42%,
    transparent 72%
  );
}

.api-s3-illus > * {
  position: relative;
  z-index: 1;
  /* nudge content slightly narrower inside the well */
  width: 86%;
  max-width: 86%;
}

.api-s3-illus > .api-vig--signup,
.api-s3-illus > .api-vig--webhook,
.api-s3-illus > .api-vig--register,
.api-s3-illus > .api-vig--listen {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  height: 100%;
}

.api-s3-card-text {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 18px 16px;
  text-align: left;
  background: #fff;
}

.api-s3-step {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.api-s3-card-text h3 {
  margin: 0;
  font-size: clamp(14px, calc(12.92px + 0.3vw), 17px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #0f172a;
}

/* Compact UI vignettes inside colored illus well — bottom-aligned, clipped */
.api-vig {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* mid widths: keep 3 equal cols until stack */
/* s4 窄桌面 769-1180 保持三栏但字号整体缩一档（2026-08-31 Park「<1200 保持布局缩小字号」）：
   侧列 ~250-320px 宽、卡高被井对半钉死，桌面字号装不下；加 .api-s4 前缀压过基础 clamp。
   放文件末尾赢源顺序 */
@media (max-width: 1180px) and (min-width: 769px) {
  .api-s4-copy-card {
    padding: 14px 16px;
  }



  .api-s4 .api-s4-ico {
    width: 18px;
    height: 18px;
    margin-bottom: 6px;
  }

  .api-s4 .api-s4-ico svg {
    width: 18px;
    height: 18px;
  }

  .api-s4-copy-card h3 {
    font-size: 13px !important;
    margin-bottom: 5px;
    letter-spacing: -0.01em;
  }

  .api-s4-copy-card p {
    font-size: 12px !important;
    line-height: 1.45;
  }

  .api-s4-col {
    gap: 14px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .api-s3-illus {
    height: 340px;
    min-height: 340px;
    padding: 0;
  }

  .api-s3-card-text {
    padding: 14px 14px 14px;
  }

  .api-s3-step {
    font-size: 10px;
  }

}

.api-vig-sheet,
.api-vig-code,
.api-vig-float,
.api-vig-status,
.api-vig-rows {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: none;
}

/* —— Step 1 signup + Step 2 webhook: inset in well, hangs past bottom & clipped —— */
.api-vig--signup,
.api-vig--webhook {
  position: relative;
  height: 100%;
  width: 100%;
  display: block;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

.api-vig-sheet--signup,
.api-vig-sheet--webhook {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 16px;
  /* hang past the well → bottom clipped; min-height so translate 不露灰底 */
  bottom: -48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: auto;
  height: auto;
  min-height: calc(100% - 16px + 48px);
  max-height: none;
  margin: 0;
  padding: 12px 14px 16px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-bottom: none;
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
  transform: none;
}

.api-vig-sheet-shift {
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.api-vig-input.is-filled,
.api-vig-input--select.is-filled {
  color: #1e293b;
}

.api-vig-sheet--signup .api-vig-title {
  font-size: 15px;
  font-weight: 700;
}

.api-vig-signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin: 0 0 8px;
}

.api-vig-signup-field {
  min-width: 0;
}

.api-vig-signup-field.is-full {
  grid-column: 1 / -1;
}

.api-vig-signup-field .api-vig-k {
  margin-bottom: 4px;
  font-size: 10px;
}

.api-vig-input--select {
  justify-content: space-between;
  color: #94a3b8;
  font-family: inherit;
}

.api-vig-input--select::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.4px solid #64748b;
  border-bottom: 1.4px solid #64748b;
  transform: rotate(45deg) translate(-2px, -2px);
}

.api-vig-input--pass {
  justify-content: space-between;
  color: #94a3b8;
}

.api-vig-input--pass i {
  flex: 1;
}

.api-vig-signup-agree {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 9px;
  line-height: 1.4;
  color: #64748b;
}

.api-vig-signup-agree i {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  margin-top: 1px;
  border-radius: 3px;
  border: 1px solid #2563eb;
  background: #2563eb
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2L5 8.7 9.5 3.5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 9px 9px no-repeat;
}

.api-vig-btn--wide {
  width: 100%;
  border-radius: 999px;
  padding: 9px 16px;
}

.api-vig-signup-nocc {
  margin: 8px 0 0;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.api-vig-sheet--signup .api-vig-head,
.api-vig-sheet--signup .api-vig-signup-grid,
.api-vig-sheet--signup .api-vig-signup-agree,
.api-vig-sheet--signup .api-vig-actions,
.api-vig-sheet--signup .api-vig-signup-nocc,
.api-vig-sheet--webhook .api-vig-head,
.api-vig-sheet--webhook .api-vig-desc,
.api-vig-sheet--webhook .api-vig-k,
.api-vig-sheet--webhook .api-vig-input,
.api-vig-sheet--webhook .api-vig-actions {
  flex-shrink: 0;
}

.api-vig-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.api-vig-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
}

.api-vig-close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: -2px -4px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: #94a3b8;
}

.api-vig-desc {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
  font-weight: 400;
}

.api-vig-sheet--webhook .api-vig-desc {
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.api-vig-k {
  display: block;
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  letter-spacing: -0.01em;
}

.api-vig-k--status {
  margin-top: 12px;
}

.api-vig-input {
  display: flex;
  align-items: center;
  min-height: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #fff;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.api-vig-checks {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  align-content: start;
}

.api-vig-checks li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 16px;
  padding: 0 0 0 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  color: #475569;
  cursor: default;
}

.api-vig-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
  border-radius: 3px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  box-sizing: border-box;
}

.api-vig-checks li.is-on {
  color: #334155;
  border: none;
  background: transparent;
}

.api-vig-checks li.is-on::before {
  border-color: #2563eb;
  background: #2563eb
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2L5 8.7 9.5 3.5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 10px 10px no-repeat;
  box-shadow: none;
}

.api-vig-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  flex-shrink: 0;
}

.api-vig-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.api-vig-btn--primary {
  border: 1px solid transparent;
  background: #2563eb;
  color: #fff;
}

.api-vig-btn--ghost {
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #fff;
  color: #475569;
}

.api-vig-pointer {
  position: absolute;
  z-index: 5;
  display: block;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
  transform: translate(-2px, -2px) scale(0.92);
  transition:
    left 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    transform 0.16s ease;
}

.api-vig-pointer.is-on {
  opacity: 1;
  transform: translate(-2px, -2px) scale(1);
}

.api-vig-pointer.is-press {
  transform: translate(-2px, -2px) scale(0.86);
}

.api-vig-pointer-arrow {
  display: block;
}

.api-vig-toast {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -8px) scale(0.96);
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.api-vig-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.api-vig-toast::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.api-vig-checks li {
  transition: color 0.18s ease;
}

.api-vig-checks li::before {
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.api-vig-btn--primary {
  transition:
    transform 0.14s ease,
    filter 0.14s ease;
}

@media (prefers-reduced-motion: reduce) {
  .api-vig-pointer,
  .api-vig-toast {
    display: none;
  }
}

/* —— Step 3: curl above Add Number, overlap then split —— */
.api-vig--register {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px 0;
  box-sizing: border-box;
}

.api-vig-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  margin: 0 auto;
  padding: 76px 0 68px;
  box-sizing: border-box;
}

.api-vig-pile {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.api-vig-codewin {
  grid-area: 1 / 1;
  position: relative;
  z-index: 3;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: none;
  transform: translateY(calc(-50% - 13px));
}

.api-s3-card:hover .api-vig--register .api-vig-codewin {
  will-change: transform;
  animation: api-vig-split-top 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.api-vig-codewin .api-vig-jsonwin-bar {
  background: #f8fafc;
}

.api-vig-code {
  position: relative;
  z-index: 3;
  margin: 0;
  flex: 0 0 auto;
  width: 100%;
  padding: 8px 12px 10px;
  font-size: 8.5px;
  line-height: 1.45;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.api-vig-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #475569;
  white-space: pre;
}

.api-vig-code .c-cmd {
  color: #ea580c;
  font-weight: 600;
}
.api-vig-code .c-flag {
  color: #0891b2;
}
.api-vig-code .c-str {
  color: #db2777;
}
.api-vig-code .c-p {
  color: #2563eb;
}
.api-vig-code .c-url {
  color: #b91c1c;
}

.api-vig-link {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 26px;
  margin: 0;
  overflow: hidden;
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.api-s3-card:hover .api-vig--register .api-vig-link {
  animation: api-vig-link 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.api-vig-link-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f97316;
}

.api-vig-link-line {
  width: 1.5px;
  height: auto;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 6px;
  background: #f97316;
}

.api-vig-link-arrow {
  width: 0;
  height: 0;
  flex-shrink: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #f97316;
  border-bottom: 0;
}

.api-vig-float {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  align-self: center;
  width: 100%;
  min-width: 0;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: none;
  transform: translateY(calc(50% + 13px));
}

.api-s3-card:hover .api-vig--register .api-vig-float {
  will-change: transform;
  animation: api-vig-split-bot 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.api-vig-float-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #0f172a;
}

.api-vig-float-h span {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1;
}

.api-vig-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 8px;
}

.api-vig-field span {
  font-size: 9px;
  color: #94a3b8;
}

.api-vig-field b {
  display: block;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #f8fafc;
  font-size: 10px;
  font-weight: 500;
  color: #334155;
}

@keyframes api-vig-split-top {
  0% {
    transform: translateY(calc(-50% - 13px));
  }
  22%,
  40% {
    transform: translateY(0);
  }
  62%,
  100% {
    transform: translateY(calc(-50% - 13px));
  }
}

@keyframes api-vig-split-bot {
  0% {
    transform: translateY(calc(50% + 13px));
  }
  22%,
  40% {
    transform: translateY(0);
  }
  62%,
  100% {
    transform: translateY(calc(50% + 13px));
  }
}

@keyframes api-vig-link {
  0% {
    opacity: 1;
  }
  18%,
  44% {
    opacity: 0;
  }
  62%,
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .api-s3-card:hover .api-vig--register .api-vig-codewin,
  .api-s3-card:hover .api-vig--register .api-vig-float,
  .api-s3-card:hover .api-vig--register .api-vig-link {
    animation: none;
  }
}

/* —— Step 3: overlapping JSON window + tracking panel, bottom cropped —— */
.api-vig--listen {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 6px 8px 0;
  box-sizing: border-box;
}

.api-vig-duo {
  position: relative;
  width: 100%;
  height: 124%;
  margin-bottom: -40px;
  transform: translateY(40px);
}

.api-vig-jsonwin {
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 0;
  width: 62%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-bottom: none;
  background: #fff;
  overflow: hidden;
  transform: none;
}

.api-vig-jsonwin-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}

.api-vig-dots {
  display: flex;
  gap: 4px;
}

.api-vig-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5f57;
}

.api-vig-dots i:nth-child(2) {
  background: #febc2e;
}
.api-vig-dots i:nth-child(3) {
  background: #28c840;
}

.api-vig-jsonwin-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  color: #db2777;
  letter-spacing: -0.02em;
}

.api-vig-json {
  margin: 0;
  flex: 1;
  padding: 8px 10px 40px;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 8px;
  line-height: 1.42;
}

.api-vig-json code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #94a3b8;
  white-space: pre;
}

.api-vig-json .jk {
  color: #db2777;
}
.api-vig-json .js {
  color: #2563eb;
}

.api-vig-caret {
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: -0.12em;
  background: #2563eb;
  animation: api-vig-caret 0.9s steps(1) infinite;
}

@keyframes api-vig-caret {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

.api-vig--listen .api-vig-jsonwin {
  width: 50%;
}

.api-vig--listen .api-vig-track {
  width: 78%;
}

.api-vig-track {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 56%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-bottom: none;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
  transform: none;
}

.api-s3-card:hover .api-vig--listen .api-vig-track {
  will-change: transform;
  animation: api-vig-listen-track 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.api-vig-track-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 7px 10px 6px;
}

.api-vig-track-id {
  flex: 1;
  min-width: 0;
  font-size: 9px;
  font-weight: 600;
  color: #334155;
  filter: blur(3.5px);
  user-select: none;
}

.api-vig-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: #64748b;
  white-space: nowrap;
}

.api-vig-toggle i {
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  position: relative;
}

.api-vig-toggle i::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.api-vig-track .api-vig-close {
  margin: 0;
  width: 16px;
  height: 16px;
  font-size: 14px;
}

.api-vig-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 2px 10px 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.api-vig-check {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 4px;
  background: #22c55e;
  border: none;
  position: relative;
  flex-shrink: 0;
}

.api-vig-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 8px;
  border-right: 1.8px solid #fff;
  border-bottom: 1.8px solid #fff;
  transform: rotate(40deg);
}

.api-vig-status strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.api-vig-status em {
  display: block;
  font-style: normal;
  font-size: 8.5px;
  color: #64748b;
  margin-top: 1px;
}

.api-vig-status span {
  display: block;
  font-size: 8px;
  color: #94a3b8;
  margin-top: 2px;
}

.api-vig-timeinfo {
  padding: 4px 12px 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.api-vig-timeinfo > b,
.api-vig-events > b {
  display: block;
  padding: 8px 0 8px;
  font-size: 9px;
  font-weight: 700;
  color: #0f172a;
}

.api-vig-timeinfo ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.api-vig-timeinfo li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 8px;
  color: #64748b;
  line-height: 1.45;
}

.api-vig-timeinfo li span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background-image: linear-gradient(
    to right,
    rgba(148, 163, 184, 0.45) 1px,
    transparent 1px
  );
  background-size: 3px 1px;
  background-repeat: repeat-x;
  background-position: 0 0.85em;
}

.api-vig-timeinfo li em {
  flex-shrink: 0;
  font-style: normal;
  color: #334155;
  background: #fff;
  padding-left: 4px;
}

.api-vig-events {
  flex: 1;
  min-height: 0;
  padding: 0 8px 48px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.api-vig-carrier {
  margin: 0 0 4px;
  font-size: 8px;
  color: #94a3b8;
}

.api-vig-track .api-vig-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  perspective: 420px;
}

.api-vig-rows li {
  display: grid;
  grid-template-columns: 10px 1fr;
  align-items: start;
  gap: 7px;
  font-size: 8.5px;
  color: #64748b;
  border-radius: 6px;
  padding: 5px 6px;
  cursor: default;
  position: relative;
  transform-origin: 50% 0%;
  backface-visibility: hidden;
}

.api-vig--listen:hover .api-vig-rows li:not(.is-in) {
  opacity: 0;
  transform: perspective(280px) rotateX(72deg) rotateY(-8deg) translateY(-14px)
    scale(0.96);
  transition:
    transform 0.28s ease,
    opacity 0.2s ease;
}

.api-vig--listen:hover .api-vig-rows li.is-in {
  animation: api-vig-event-slap 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.api-vig-rows li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 16px;
  bottom: -4px;
  width: 1px;
  background: #e2e8f0;
}

.api-vig-rows li.is-live {
  color: #0f172a;
  background: #eff6ff;
}

.api-vig-rows li b {
  width: 8px;
  height: 8px;
  margin-top: 2px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: transparent;
  border: 1.2px solid #cbd5e1;
}

.api-vig-rows li.is-live b {
  transform: none;
  border-radius: 50%;
  border: none;
  background: #22c55e;
}

.api-vig-rows li strong {
  display: block;
  font-size: 8px;
  font-weight: 650;
  color: #334155;
}

.api-vig-rows li span {
  display: block;
  margin-top: 1px;
  line-height: 1.3;
}

.api-vig-chat {
  position: absolute;
  right: 10px;
  bottom: 56px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 4.5A1.5 1.5 0 0 1 4.5 3h7A1.5 1.5 0 0 1 13 4.5v5A1.5 1.5 0 0 1 11.5 11H7l-3 2.2V4.5Z' fill='%23fff'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
}

@keyframes api-vig-listen-track {
  0% {
    transform: translateX(0);
  }
  22%,
  42% {
    transform: translateX(-12%);
  }
  64%,
  100% {
    transform: translateX(0);
  }
}

@keyframes api-vig-event-slap {
  0% {
    opacity: 0;
    transform: perspective(280px) rotateX(78deg) rotateY(-10deg)
      translateY(-16px) scale(0.94);
  }
  58% {
    opacity: 1;
    transform: perspective(280px) rotateX(-10deg) rotateY(3deg) translateY(2px)
      scale(1.02);
  }
  100% {
    opacity: 1;
    transform: perspective(280px) rotateX(0deg) rotateY(0deg) translateY(0)
      scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .api-s3-card:hover .api-vig--listen .api-vig-track,
  .api-vig--listen:hover .api-vig-rows li:not(.is-in),
  .api-vig--listen:hover .api-vig-rows li.is-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .api-vig-caret {
    animation: none;
  }
}

/* =========================================================
   Section 4 — Data operation
   ========================================================= */
.api-s4 {
  padding: var(--sec-y) 0;
  background: #f7f8fa;
}

.api-s4-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 0 0 var(--sec-head-gap);
  text-align: left;
}

.api-s4-head .api-h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.api-s4-h2-sub {
  display: block;
  font-size: 0.82em;
  font-weight: 700;
  margin-top: 8px;
}

.api-s4-word {
  color: color-mix(in srgb, #0f172a calc(var(--on, 0) * 100%), #d8dee8);
}

.api-s4-h2-sub .api-s4-word {
  color: color-mix(in srgb, #1e40af calc(var(--on, 0) * 100%), #c5d4f5);
}

.api-s4-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.api-s4-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.api-s4-copy-card {
  --s4-r: 18px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 0;
  padding: 28px 24px 24px;
  text-align: left;
  border-radius: var(--s4-r);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
  color: inherit;
}

/* 文案卡序号位 icon（2026-08-31 Park：[01]-[04] 换 SVG + hover 动画） */
.api-s4-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  color: #94a3b8;
  transition: color 0.35s ease;
}

.api-s4-ico svg {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
}

.api-s4-copy-card:hover .api-s4-ico {
  color: var(--api-blue);
}

/* hover 触发的描边绘制：pathLength=100 归一，--d 做错峰 delay */
.api-s4-ico .d {
  stroke-dasharray: 100 100;
  stroke-dashoffset: 0;
}

.api-s4-copy-card:hover .api-s4-ico .d {
  animation: api-s4-ico-draw 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0s);
}

.api-s4-ico .sweep {
  transform-origin: 12px 12px;
}

.api-s4-copy-card:hover .api-s4-ico .sweep {
  animation: api-s4-ico-sweep 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.api-s4-ico .core,
.api-s4-ico .bar {
  transform-box: fill-box;
  transform-origin: center;
}

.api-s4-ico .bar {
  transform-origin: bottom;
}

.api-s4-copy-card:hover .api-s4-ico .core {
  animation: api-s4-ico-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.api-s4-copy-card:hover .api-s4-ico .bar {
  animation: api-s4-ico-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.api-s4-copy-card:hover .api-s4-ico .b2 {
  animation-delay: 0.08s;
}

.api-s4-copy-card:hover .api-s4-ico .b3 {
  animation-delay: 0.16s;
}

@keyframes api-s4-ico-draw {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes api-s4-ico-sweep {
  from {
    transform: rotate(-90deg);
  }
  to {
    transform: rotate(270deg);
  }
}

@keyframes api-s4-ico-pop {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes api-s4-ico-rise {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .api-s4-copy-card:hover .api-s4-ico .d,
  .api-s4-copy-card:hover .api-s4-ico .sweep,
  .api-s4-copy-card:hover .api-s4-ico .core,
  .api-s4-copy-card:hover .api-s4-ico .bar {
    animation: none;
  }
}

.api-s4-copy-card h3 {
  margin: 0 0 8px;
  font-size: clamp(16.5px, calc(15.24px + 0.35vw), 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.api-s4-copy-card p {
  margin: 0;
  font-size: clamp(12px, calc(11.28px + 0.2vw), 14px);
  line-height: 1.6;
  color: var(--api-muted);
}

.api-s4-stage-card {
  --s4-r: 20px;
  --s4-inner-r: var(--s4-r);
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.api-s4-well {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--s4-inner-r);
  container-type: size;
  /* 描边与文案卡同款 1px（2026-08-31 Park） */
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
  /* 上白下灰（2026-08-29 Park：灰再淡一档）；点阵暂撤 */
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 55%, #e9ecf1 100%);
}

/* 井底已改纯白+淡点阵（well::before），WebGL liquid grain 不再挂载 */
.api-s4-bloom {
  position: absolute;
  inset: -12%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 48%,
    rgba(219, 234, 254, 0.6) 0%,
    rgba(219, 234, 254, 0.24) 28%,
    transparent 62%
  );
  transform: scale(0.2);
}

.api-s4-well.is-bloom .api-s4-bloom {
  animation: api-s4-bloom 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes api-s4-bloom {
  0% {
    opacity: 0;
    transform: scale(0.24);
  }
  36% {
    opacity: 0.34;
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

/* 四场共用一条「向前穿越」轨道：候场在井深处（小、糊、透明），
   is-on 迎面飞抵，is-exit 继续放大贴脸掠过镜头。
   退场必须比进场先结束、且 z 在新场之上（近景遮远景）。
   候场 transform 必须是纯 scale(0.52)、origin 50% 50%——
   DataOperations.jsx 的桥逆变换按这个算，别加位移/偏 origin。 */
.api-s4-stage {
  --s4-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --s4-in: 1.25s;
  --s4-out: 0.85s;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: none;
  will-change: transform, opacity, filter;
  transform: scale(0.52);
  filter: blur(12px);
}

.api-s4-stage.is-on {
  transition:
    opacity var(--s4-in) var(--s4-ease),
    transform var(--s4-in) var(--s4-ease),
    filter var(--s4-in) var(--s4-ease);
  opacity: 1;
  transform: none;
  filter: blur(0);
  pointer-events: auto;
  z-index: 2;
}

.api-s4-stage.is-exit {
  transition:
    opacity var(--s4-out) var(--s4-ease),
    transform var(--s4-out) var(--s4-ease),
    filter var(--s4-out) var(--s4-ease);
  opacity: 0;
  z-index: 3;
  transform: scale(1.9) translateY(-5%);
  filter: blur(15px);
}

/* match-cut 桥：两场之间连续不断的「同一个元素」。
   白核从 A 场核心的几何 morph 到 B 场核心的几何（几何由 JS 实读后注入 f 与 t 两组变量），
   到站时与 B 核交叉淡接；两端核心在桥存续期由下方规则隐没/浮现。
   注意：注释里不要写「星号+斜杠」序列，会把注释提前终结、废掉整条规则。 */
.api-s4-bridge {
  position: absolute;
  z-index: 4;
  left: var(--fx);
  top: var(--fy);
  width: var(--fw);
  height: var(--fh);
  border-radius: var(--fr);
  background: #fff;
  box-shadow: 0 14px 38px rgba(93, 112, 158, 0.16);
  pointer-events: none;
  opacity: 0;
  animation: api-s4-bridge-run var(--bdur, 1.3s) cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

@keyframes api-s4-bridge-run {
  0% {
    left: var(--fx);
    top: var(--fy);
    width: var(--fw);
    height: var(--fh);
    border-radius: var(--fr);
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  76% {
    opacity: 1;
  }
  100% {
    left: var(--tx);
    top: var(--ty);
    width: var(--tw);
    height: var(--th);
    border-radius: var(--tr);
    opacity: 0;
  }
}

/* —— 二三四场元素级进出场（2026-08-29 Park）：每场内容自己有戏，
   白核桥已删（没有关联元素不强行同元素过渡），只在 DHL 桥时保留飞芯 —— */
@keyframes api-s4-el-in {
  from {
    opacity: 0;
    translate: 0 24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes api-s4-el-out {
  to {
    opacity: 0;
    translate: 0 -26px;
  }
}

/* 第一场退场（2026-08-29 Park）：整屏向中心缩小，状态胶囊逐个缩小收拢 */
.api-s4-stage.api-s4-illus--status.is-exit {
  transform: scale(0.62);
  filter: blur(9px);
}

.api-s4-stage.api-s4-illus--status.is-exit .api-s4-orbit-chip {
  animation: api-s4-chip-out 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--ci, 0) * 0.04s);
}

@keyframes api-s4-chip-out {
  to {
    opacity: 0;
    scale: 0.45;
  }
}

/* 第二场退场（2026-08-29 Park）：整体向中心缩小，承运商逐个消失、线条逐条回剪 */
.api-s4-stage.api-s4-illus--carriers.is-exit {
  transform: scale(0.62);
  filter: blur(9px);
}

.api-s4-stage.api-s4-illus--carriers.is-exit .api-s4-hub-core {
  animation: api-s4-hub-out 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes api-s4-hub-out {
  to {
    opacity: 0;
  }
}

.api-s4-stage.api-s4-illus--carriers.is-exit .api-s4-hub-logo {
  animation: api-s4-hublogo-out 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

@keyframes api-s4-hublogo-out {
  to {
    opacity: 0;
    scale: 0.5;
  }
}

.api-s4-stage.api-s4-illus--carriers.is-exit .api-s4-hub-wires .base path {
  stroke-dasharray: 100;
  animation: api-s4-wire-retract 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

@keyframes api-s4-wire-retract {
  from {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  to {
    stroke-dashoffset: 100;
    opacity: 0;
  }
}

/* 第三场入场：单号卡先起（居中独处），识别完成后卡上移、轨迹面板跟进 */
.api-s4-well.is-started .api-s4-stage.api-s4-illus--auto.is-on .api-s4-codewin {
  animation: api-s4-el-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* 识别前连接线与轨迹面板都藏着，panel 翻真后一起出现 */
.api-s4-vig--auto:not(.is-panel) .api-s4-link {
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 轨迹面板文字一块一块渐显（2026-08-29 Park） */
.api-s4-vig--auto.is-playing.is-panel .api-s4-trackpane .api-vig-status {
  animation: api-s4-el-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.api-s4-vig--auto.is-playing.is-panel .api-s4-trackpane .api-vig-timeinfo {
  animation: api-s4-el-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
}

.api-s4-vig--auto.is-playing.is-panel .api-s4-trackpane .api-vig-events {
  animation: api-s4-el-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.54s both;
}

/* 第三场退场（2026-08-29 Park）：卡片上下位移出画面，不再原地淡出 */
.api-s4-stage.api-s4-illus--auto.is-exit {
  transform: scale(0.9);
  filter: blur(6px);
}

.api-s4-stage.api-s4-illus--auto.is-exit .api-s4-codewin {
  animation: api-s4-card-out-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.api-s4-stage.api-s4-illus--auto.is-exit .api-s4-link,
.api-s4-stage.api-s4-illus--auto.is-exit .api-s4-trackpane {
  animation: api-s4-card-out-down 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

@keyframes api-s4-card-out-up {
  to {
    translate: 0 -95cqh;
  }
}

@keyframes api-s4-card-out-down {
  to {
    translate: 0 100cqh;
  }
}

/* 第四场入场：donut 卡→趋势卡→toast 依次起；退场整组上飘 */
.api-s4-well.is-started
  .api-s4-stage.api-s4-illus--dash.is-on
  .api-s4-dashtile--donut {
  animation: api-s4-el-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.api-s4-well.is-started
  .api-s4-stage.api-s4-illus--dash.is-on
  .api-s4-dashtile--trend {
  animation: api-s4-el-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
}

/* 第四场退场（2026-08-29 Park）：整体回收缩小 + 大曲线反向擦回（回放消失） */
.api-s4-stage.api-s4-illus--dash.is-exit {
  transform: scale(0.62);
  filter: blur(9px);
}

.api-s4-stage.api-s4-illus--dash.is-exit .api-s4-dash-curve {
  animation: api-s4-curve-rollback 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes api-s4-curve-rollback {
  from {
    clip-path: inset(0 0 0 0);
  }
  to {
    clip-path: inset(0 100% 0 0);
  }
}

.api-s4-stage.api-s4-illus--dash.is-exit .api-s4-dashtile--donut,
.api-s4-stage.api-s4-illus--dash.is-exit .api-s4-dashtile--trend {
  animation: api-s4-el-out 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.api-s4-stage.api-s4-illus--dash.is-exit .api-s4-dashtoast {
  animation: api-s4-el-out 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* DHL 桥：第二场的 DHL logo 芯片飞向第三场承运商盒，落在识别完成那一刻 */
.api-s4-bridge--dhl {
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(93, 112, 158, 0.2);
}

.api-s4-bridge--dhl img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

/* —— 17 logo 常驻层：第一场即中心本体；进第二场原地起步，面板浮现后
   平滑落进枢纽卡的 logo 槽位（落点由 JS 按槽位终态实测注入），与数字同卡 —— */
.api-s4-keel {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 64px;
  height: 64px;
  translate: -50% -50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.api-s4-keel.is-settle {
  /* 直线缩放到位（2026-08-29 Park）：位移用 px 偏移 + scale，
     不要 left/top/translate% 耦合（那个会走弯曲路径） */
  translate: calc(-50% + var(--sdx, 0px)) calc(-50% + var(--sdy, 0px));
  scale: var(--ss, 1);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s,
    scale 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

/* 枢纽卡顶部的 logo 槽位：占位让卡内布局稳定，logo 由 keel 层落进来 */
.api-s4-keel-slot {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 7px;
}

.api-s4-keel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1b57e0;
  clip-path: url(#api-s4-logo-squircle);
  filter: drop-shadow(0 16px 32px rgba(27, 87, 224, 0.3))
    drop-shadow(0 4px 10px rgba(15, 23, 42, 0.14));
}

.api-s4-keel.is-in {
  animation: api-s4-keel-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.api-s4-keel.is-hold {
  opacity: 1;
}

@keyframes api-s4-keel-in {
  from {
    opacity: 0;
    scale: 0.45;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

/* —— 第一场入场编排：涟漪依次 → logo 渐显 → 状态依次 → 开始转（滑入视口才开播） —— */
.api-s4-well:not(.is-started) .api-s4-orbit-wash,
.api-s4-well:not(.is-started) .api-s4-orbit-chip {
  opacity: 0;
}

.api-s4-well.is-started
  .api-s4-stage.api-s4-illus--status.is-on
  .api-s4-orbit-wash {
  animation: api-s4-wash-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.15s + var(--r, 0) * 0.11s);
}

@keyframes api-s4-wash-in {
  from {
    opacity: 0;
    scale: 0.62;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.api-s4-well.is-started
  .api-s4-stage.api-s4-illus--status.is-on
  .api-s4-orbit-chip {
  animation: api-s4-chip-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(1s + var(--ci, 0) * 0.09s);
}

@keyframes api-s4-chip-in {
  from {
    opacity: 0;
    scale: 0.6;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

/* —— 第二场编排：面板浮现，线条按序生长，承运商逐个出现（数字滚动在 JSX） —— */
.api-s4-well.is-started
  .api-s4-stage.api-s4-illus--carriers.is-on
  .api-s4-hub-core {
  animation: api-s4-hub-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

@keyframes api-s4-hub-in {
  from {
    opacity: 0;
    scale: 0.72;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.api-s4-well.is-started
  .api-s4-stage.api-s4-illus--carriers.is-on
  .api-s4-hub-wires
  .base
  path {
  stroke-dasharray: 100;
  animation: api-s4-wire-draw 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(1.1s + var(--i, 0) * 0.1s);
}

@keyframes api-s4-wire-draw {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.api-s4-well.is-started
  .api-s4-stage.api-s4-illus--carriers.is-on
  .api-s4-hub-logo {
  animation: api-s4-hublogo-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(1.65s + var(--i, 0) * 0.12s);
}

@keyframes api-s4-hublogo-in {
  from {
    opacity: 0;
    scale: 0.5;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.api-s4-illus {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--s4-inner-r);
  background: transparent;
}

.api-s4-stage.api-s4-illus {
  position: absolute;
  inset: 0;
  margin: 0;
  width: auto;
  height: auto;
}

.api-s4-illus > * {
  position: relative;
  z-index: 1;
  width: 86%;
  max-width: 86%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .api-s4-stage,
  .api-s4-stage.is-on,
  .api-s4-stage.is-exit {
    transition: none;
    transform: none;
    filter: none;
  }

  .api-s4-bridge {
    display: none;
  }

  .api-s4-well.is-started .api-s4-stage.is-on .api-s4-codewin,
  .api-s4-well.is-started .api-s4-stage.is-on .api-s4-trackpane,
  .api-s4-well.is-started .api-s4-stage.is-on .api-s4-link,
  .api-s4-well.is-started .api-s4-stage.is-on .api-s4-dashtile,
  .api-s4-well.is-started .api-s4-stage.is-on .api-s4-hub-core,
  .api-s4-well.is-started .api-s4-stage.is-on .api-s4-hub-logo,
  .api-s4-well.is-started .api-s4-stage.is-on .api-s4-hub-wires .base path {
    animation: none;
    opacity: 1;
    translate: none;
    scale: none;
  }

  .api-s4-stage.is-exit .api-s4-codewin,
  .api-s4-stage.is-exit .api-s4-trackpane,
  .api-s4-stage.is-exit .api-s4-link,
  .api-s4-stage.is-exit .api-s4-dashtile,
  .api-s4-stage.is-exit .api-s4-dashtoast,
  .api-s4-stage.is-exit .api-s4-hub-core,
  .api-s4-stage.is-exit .api-s4-hub-logo,
  .api-s4-stage.is-exit .api-s4-hub-wires .base path {
    animation: none;
    opacity: 1;
    translate: none;
    scale: none;
  }

  .api-s4-well:not(.is-started) .api-s4-orbit-wash,
  .api-s4-well:not(.is-started) .api-s4-orbit-chip {
    opacity: 1;
  }

  .api-s4-keel.is-in,
  .api-s4-keel.is-hold {
    animation: none;
    opacity: 1;
  }

  .api-s4-keel.is-settle,
  .api-s4-keel {
    transition: none;
  }

  .api-s4-well.is-bloom .api-s4-bloom {
    animation: none;
    opacity: 0;
  }
}

/* —— Data ops vignettes — distinct compositions, inset in the well —— */
.api-s4-vig {
  height: 100%;
  width: 100%;
  display: flex;
  box-sizing: border-box;
  overflow: hidden;
}

/* 1. Status — 9 circular icons on dual reverse orbits around 17 logo */
.api-s4-illus:has(.api-s4-vig--status) > *,
.api-s4-illus--status > * {
  width: 100%;
  max-width: 100%;
}

.api-s4-illus--status {
  overflow: hidden;
  background: transparent;
}

.api-s4-illus--status::before {
  opacity: 0;
}

.api-s4-vig--status {
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  border-radius: inherit;
  container-type: size;
}

.api-s4-orbit-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.api-s4-orbit-wash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(28% + var(--r) * 15.5%);
  height: calc(28% + var(--r) * 15.5%);
  border-radius: 50%;
  /* 涟漪描边圆环：严格 1px，颜色再淡一档（2026-08-31 Park「线条太黑」；08-29 已淡过一次） */
  background: none;
  border: 1px solid rgba(158, 164, 174, 0.13);
  translate: -50% -50%;
}

@property --orbit {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

.api-s4-orbit {
  --logo: 64px;
  --r-out: 42cqmin;
  --r-in: 26cqmin;
  --spin-out: 38s;
  --spin-in: 28s;
  --orbit: 0deg;
  position: relative;
  z-index: 1;
  width: 100cqmin;
  height: 100cqmin;
}

.api-s4-orbit-chip {
  --chip: #2196f3;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  border: 0;
  transform: translate(-50%, -50%);
}

.api-s4-orbit-dot {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--chip);
}

.api-s4-orbit-chip.is-named {
  --dot: 16px; /* 2px pad + 14px half of 28px dot */
  height: 34px;
  padding: 2px 10px 2px 2px;
  gap: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transform: translate(calc(var(--dot) * -1), -50%);
}

.api-s4-orbit-chip.is-named.is-flip {
  flex-direction: row-reverse;
  padding: 2px 2px 2px 10px;
  transform: translate(calc(-100% + var(--dot)), -50%);
}

.api-s4-orbit-chip.is-named .api-s4-orbit-dot {
  width: 28px;
  height: 28px;
  box-shadow: none;
}

.api-s4-orbit-chip.is-named em {
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #1e293b;
  white-space: nowrap;
}

.api-s4-orbit-ring {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  padding: 0;
  list-style: none;
  --orbit-base: 0deg;
}

.api-s4-orbit-ring--inner {
  --orbit-base: 45deg;
}

.api-s4-orbit-ring li {
  --a: calc(var(--i) * 360deg / var(--n));
  --turn: calc(var(--a) + var(--orbit-base) + var(--orbit));
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--turn)) translateY(calc(var(--r) * -1))
    rotate(calc(var(--turn) * -1));
}

.api-s4-orbit-ring--outer li {
  --r: var(--r-out);
}

.api-s4-orbit-ring--inner li {
  --r: var(--r-in);
}

.api-s4-orbit-ring--inner .api-s4-orbit-dot {
  width: 34px;
  height: 34px;
}

.api-s4-orbit-ring--inner .api-s4-orbit-chip.is-named .api-s4-orbit-dot {
  width: 28px;
  height: 28px;
}

.api-s4-orbit-dot img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.api-s4-orbit-ring--inner .api-s4-orbit-dot img {
  width: 16px;
  height: 16px;
}

.api-s4-orbit-chip[data-icon="info"] {
  --chip: #00bcd4;
}
.api-s4-orbit-chip[data-icon="transit"] {
  --chip: #2196f3;
}
.api-s4-orbit-chip[data-icon="out"] {
  --chip: #2962ff;
}
.api-s4-orbit-chip[data-icon="pickup"] {
  --chip: #0d47a1;
}
.api-s4-orbit-chip[data-icon="alert"] {
  --chip: #ff6f00;
}
.api-s4-orbit-chip[data-icon="done"] {
  --chip: #43a047;
}
.api-s4-orbit-chip[data-icon="expired"] {
  --chip: #b71c1c;
}
.api-s4-orbit-chip[data-icon="fail"] {
  --chip: #f44336;
}
.api-s4-orbit-chip[data-icon="missing"] {
  --chip: #757575;
}

/* 转动在状态胶囊依次出现完（约 1.75s）后才开始；is-on 每次重挂都重新起拍 */
.api-s4-stage.is-on .api-s4-orbit-ring {
  animation: api-s4-orbit-cw var(--spin-out) linear 1.75s infinite;
}

.api-s4-stage.is-on .api-s4-orbit-ring--inner {
  animation-name: api-s4-orbit-ccw;
  animation-duration: var(--spin-in);
}

.api-s4-orbit-core {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.api-s4-orbit-core::before,
.api-s4-orbit-core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.api-s4-orbit-core::before {
  width: 210px;
  height: 210px;
  background: radial-gradient(
    circle,
    rgba(219, 234, 254, 0.9) 0%,
    rgba(219, 234, 254, 0.4) 36%,
    transparent 70%
  );
  filter: blur(8px);
  opacity: 0.9;
}

.api-s4-orbit-core::after {
  width: 96px;
  height: 96px;
  background: #dbeafe;
  filter: blur(10px);
  opacity: 0.7;
}

.api-s4-stage.is-on .api-s4-orbit-core::before {
  opacity: 1;
}

.api-s4-stage.is-on .api-s4-orbit-core::after {
  opacity: 0.9;
}

.api-s4-logo-defs {
  position: absolute;
  width: 0;
  height: 0;
}

@keyframes api-s4-orbit-cw {
  to {
    --orbit: 360deg;
  }
}

@keyframes api-s4-orbit-ccw {
  to {
    --orbit: -360deg;
  }
}

/* 2. Carriers — hub + constellation of logos, flow light on hover */
.api-s4-illus:has(.api-s4-vig--carriers) > *,
.api-s4-illus--carriers > * {
  width: 100%;
  max-width: 100%;
}

.api-s4-illus--carriers {
  background: transparent;
}

.api-s4-illus--carriers::before {
  display: none;
}

.api-s4-vig--carriers {
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 8px 6px 4px;
}

.api-s4-carriers-earth {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.api-s4-hub {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  aspect-ratio: 400 / 360;
}

.api-s4-hub-wires {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.api-s4-hub-wires .base path {
  fill: none;
  stroke: rgba(140, 165, 205, 0.32);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* Use Cases grid sheen: 1px line, faded packet, 8s */
.api-s4-hub-wires .flow path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
  stroke-dashoffset: 0;
  opacity: 0;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.api-s4-hub-wires .flow-sheen path {
  stroke: rgba(96, 140, 210, 0.22);
  stroke-dasharray: 14 86;
}

.api-s4-hub-wires .flow-mid path {
  stroke: rgba(160, 200, 255, 0.32);
  stroke-dasharray: 7 93;
}

.api-s4-hub-wires .flow-core path {
  stroke: rgba(56, 189, 248, 0.42);
  stroke-dasharray: 2.4 97.6;
}

.api-s4-stage.is-on .api-s4-hub-wires .flow path {
  opacity: 1;
  animation: api-s4-wire-flow 8s linear infinite;
  /* 等基线线条按序生长完（约 2s）再开始游走 */
  animation-delay: calc(2s + var(--i, 0) * 0.55s);
}

@keyframes api-s4-wire-flow {
  to {
    stroke-dashoffset: -100;
  }
}

.api-s4-hub-logo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: var(--s, 46px);
  height: var(--s, 46px);
  padding: 0;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  overflow: hidden;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.api-s4-hub-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@property --hub-beam {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.api-s4-hub-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: auto;
  min-height: 108px;
  padding: 15px 14px 14px;
  box-sizing: border-box;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  transform: translate(-50%, -50%);
  overflow: visible;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(15, 23, 42, 0.07);
}

.api-s4-hub-core::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: 21.5px;
  padding: 1.5px;
  box-sizing: border-box;
  pointer-events: none;
  background: conic-gradient(
    from var(--hub-beam),
    transparent 0 72%,
    rgba(56, 189, 248, 0.05) 78%,
    rgba(125, 211, 252, 0.55) 84%,
    #fff 89%,
    rgba(56, 189, 248, 0.7) 93%,
    rgba(147, 197, 253, 0.2) 97%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: api-s4-hub-beam 7s linear infinite;
}

@keyframes api-s4-hub-beam {
  to {
    --hub-beam: 360deg;
  }
}

.api-s4-stage.is-on .api-s4-hub-core::before {
  animation-duration: 3.8s;
}

.api-s4-hub-core b {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.048em;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  min-width: 5.2ch;
  text-align: center;
  color: #0b1b4a;
}

.api-s4-hub-core b span {
  margin-left: 1px;
  font-size: 0.58em;
  font-weight: 650;
  letter-spacing: -0.02em;
  vertical-align: 0.22em;
  color: #2563eb;
}

.api-s4-hub-core em {
  margin-top: 8px;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7b8798;
}

.api-s4-stage.is-on .api-s4-hub-core {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px rgba(37, 99, 235, 0.08);
}

/* 3. Visibility — centered add-number, then lift + tracking pane */
.api-s4-vig--auto {
  align-items: stretch;
  justify-content: flex-start;
  padding: 22px 18px 0;
  container-type: size;
}

.api-s4-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: min(88%, 300px);
  max-width: 300px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  min-height: 100%;
}

.api-s4-codewin {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  width: 100%;
  padding: 10px 12px 12px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  transform: none;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.api-s4-vig--auto:not(.is-panel) .api-s4-codewin {
  transform: translateY(calc((100cqh - 100%) / 2 - 6px));
}

.api-s4-vig--auto.is-snap .api-s4-codewin {
  transition: none;
}

.api-s4-codewin .api-vig-field {
  margin-top: 6px;
}

.api-s4-codewin .api-vig-float-h strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.api-s4-codewin .api-vig-float-h strong::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
}

.api-s4-numtype {
  min-height: 1.35em;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.api-vig-field b.api-s4-carrier-box {
  position: relative;
  overflow: hidden;
  border-color: rgba(37, 99, 235, 0.32);
  background: #eff6ff;
}

.api-s4-carrier-box::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    100deg,
    transparent 18%,
    rgba(59, 130, 246, 0.2) 50%,
    transparent 82%
  );
  pointer-events: none;
}

.api-s4-vig--auto.is-scanning .api-s4-carrier-box::after {
  animation: api-s4-scan-once 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes api-s4-scan-once {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.api-s4-detect-auto,
.api-s4-detect-hit {
  display: flex;
  align-items: center;
  gap: 5px;
  font-style: normal;
  font-weight: 600;
}

.api-s4-detect-auto {
  color: #2563eb;
}

.api-s4-detect-auto svg {
  flex-shrink: 0;
}

.api-s4-detect-hit {
  display: none;
  color: #1e40af;
}

.api-s4-detect-hit img {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: contain;
  background: #fff;
}

.api-s4-vig--auto.is-detected .api-s4-detect-auto {
  display: none;
}

.api-s4-vig--auto.is-detected .api-s4-detect-hit {
  display: flex;
}

.api-s4-link {
  position: relative;
  z-index: 1;
  left: auto;
  top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  width: 12px;
  height: 22px;
  margin: 2px 0 0;
  overflow: hidden;
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.api-s4-vig--auto:not(.is-panel) .api-s4-link {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 12px;
  margin: 0 0 0 -6px;
  opacity: 0;
}

.api-s4-trackpane.api-vig-track {
  position: relative;
  right: auto;
  top: auto;
  bottom: auto;
  left: auto;
  z-index: 2;
  width: 100%;
  height: auto;
  min-height: 0;
  margin-top: 0;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.api-s4-vig--auto:not(.is-panel) .api-s4-trackpane {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  opacity: 0;
  transform: translateY(20px);
}

.api-s4-vig--auto.is-playing.is-panel .api-s4-trackpane {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  opacity: 1;
  transform: none;
  animation: api-s4-pane-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.08s;
}

.api-s4-vig--auto.is-panel:not(.is-playing) .api-s4-trackpane {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes api-s4-pane-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.api-s4-trackpane .api-vig-events {
  padding-bottom: 28px;
}

.api-s4-trackpane .api-vig-track-id {
  filter: none;
  user-select: none;
}

/* 4. Dashboard — tile collage over growth-curve wash */
.api-s4-illus:has(.api-s4-vig--dash) > *,
.api-s4-illus--dash > * {
  width: 100%;
  max-width: 100%;
}

.api-s4-vig--dash {
  position: relative;
  align-items: flex-start;
  justify-content: center;
  padding: 20% 3.5% 6%;
}

/* 圆形半透明遮罩：白色磨砂圆盘 + 发丝描边，聚焦仪表盘；底部淡出让曲线露出来 */
/* 井底增长曲线：描边 + 紫色半透明→透明面积 */
.api-s4-dash-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 58%;
  pointer-events: none;
  overflow: visible;
}

.api-s4-dash-curve-line {
  fill: none;
  stroke: #6e56f5;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
  vector-effect: non-scaling-stroke;
}

.api-s4-dash-curve-fill {
  opacity: 0.55;
}

/* 紫面积 + 描边：从左往右擦出，不要 dasharray 对插值 */
.api-s4-stage.is-on .api-s4-dash-curve {
  animation: api-s4-curve-ltr 4.5s cubic-bezier(0.4, 0, 0.2, 1) 1 forwards;
}

@keyframes api-s4-curve-ltr {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  50%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.api-s4-dashgrid {
  position: relative;
  z-index: 2;
  width: min(72%, 336px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

/* Mora 式：图表直接浮在纸上，卡片不再描边/铺底 */
.api-s4-dashtile {
  box-sizing: border-box;
  padding: 4px 6px;
  border-radius: 14px;
}

.api-s4-dashtile--trend {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.api-s4-chart-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.api-s4-donut-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 0;
}

.api-s4-donut-seg {
  transform-origin: 50px 50px;
}

.api-s4-stage.is-on .api-s4-donut-seg {
  animation: api-s4-donut-fill 3.2s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes api-s4-donut-fill {
  0% {
    opacity: 0;
  }
  22%,
  100% {
    opacity: 1;
  }
}

.api-s4-trend {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  height: 132px;
  overflow: visible;
}

.api-s4-trend text {
  font-size: 8.5px;
  fill: #b9c2cd;
  font-variant-numeric: tabular-nums;
}

/* 趋势卡的折线已按 Park 要求删掉（井底大曲线就是那条线，只留日期标签） */

/* webhook sits on the lower card, not on the well floor */
.api-s4-dashtoast {
  position: absolute;
  right: -16px;
  bottom: 64px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.api-s4-dashtoast-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #fff7ed;
  color: #ff6f00;
  flex-shrink: 0;
}

.api-s4-dashtoast-txt {
  display: grid;
  gap: 1px;
}

.api-s4-dashtoast-txt b {
  font-size: 9px;
  font-weight: 700;
  color: #0f172a;
}

.api-s4-dashtoast-txt em {
  font-size: 8px;
  font-style: normal;
  color: #64748b;
}

.api-s4-stage.is-on .api-s4-dashtoast {
  animation: api-s4-toast-in 3.2s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}

@keyframes api-s4-toast-in {
  0% {
    opacity: 0;
    transform: translateX(18px);
  }
  18%,
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.api-s4-donut-wrap {
  position: relative;
  width: 152px;
  height: 152px;
  margin: 0;
  flex-shrink: 0;
}

.api-s4-donut-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* 状态分布图例：色块 x 标签，细字撑在 donut 右侧 */
.api-s4-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.api-s4-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.2;
  color: #475569;
  white-space: nowrap;
}

.api-s4-legend li i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .api-s4-stage.is-on .api-s4-dash-curve {
    animation: none;
    clip-path: none;
  }

  .api-s4-stage.is-on .api-s4-donut-seg,
  .api-s4-stage.is-on .api-s4-dashtoast {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .api-s4-vig--dash {
    padding: 12% 3% 6%;
  }

  .api-s4-dash-curve {
    height: 46%;
  }

  .api-s4-dashgrid {
    width: min(78%, 300px);
    gap: 8px;
  }

  .api-s4-dashtile {
    padding: 10px 12px 9px;
  }

  .api-s4-chart-kicker {
    font-size: 9.5px;
    margin-bottom: 8px;
  }

  .api-s4-donut-wrap {
    width: 108px;
    height: 108px;
  }

  .api-s4-donut-row {
    gap: 12px;
  }

  .api-s4-trend {
    height: 112px;
  }

  .api-s4-dashtoast {
    right: -8px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .api-s4-orbit-ring,
  .api-s4-stage.is-on .api-s4-orbit-ring {
    animation: none;
  }

  .api-s4-stage.is-on .api-s4-hub-core,
  .api-s4-stage.is-on .api-s4-codewin,
  .api-s4-stage.is-on .api-s4-link,
  .api-s4-stage.is-on .api-s4-donut-seg {
    animation: none;
    opacity: 1;
  }

  .api-s4-stage.is-on .api-s4-codewin,
  .api-s4-stage.is-on .api-s4-link {
    transform: none;
  }

  .api-s4-trackpane,
  .api-s4-vig--auto.is-panel .api-s4-trackpane,
  .api-s4-vig--auto.is-playing.is-panel .api-s4-trackpane {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .api-s4-vig--auto:not(.is-panel) .api-s4-codewin {
    transform: none;
    transition: none;
  }

  .api-s4-stage.is-on .api-s4-hub-wires .flow path {
    animation: none;
    opacity: 0;
  }

  .api-s4-hub-core::before,
  .api-s4-stage.is-on .api-s4-hub-core::before {
    animation: none;
    opacity: 0.55;
  }

  .api-s4-detect-auto {
    display: none;
  }
  .api-s4-detect-hit {
    display: flex;
  }

  .api-s4-vig--auto.is-scanning .api-s4-carrier-box::after {
    animation: none;
  }
}

/* —— Data ops: scroll-open MacBook —— */
.api-mb {
  --lid: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 14px;
  box-sizing: border-box;
}

.api-mb-statuses,
.api-mb-carriers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  opacity: calc(0.2 + var(--lid) * 0.8);
}

.api-mb-st {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.api-mb-st svg {
  width: 12px;
  height: 12px;
  display: block;
}

.api-mb-st.is-handover {
  background: #7dd3fc;
}
.api-mb-st.is-air {
  background: #3b82f6;
}
.api-mb-st.is-sched {
  background: #1d4ed8;
}
.api-mb-st.is-flag {
  background: #4338ca;
}
.api-mb-st.is-ok {
  background: #22c55e;
}
.api-mb-st.is-warn {
  background: #f59e0b;
}
.api-mb-st.is-fail {
  background: #ef4444;
}
.api-mb-st.is-return {
  background: #b91c1c;
}
.api-mb-st.is-wait {
  background: #94a3b8;
}

.api-mb-carriers img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.api-mb-scene {
  flex: 1;
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.api-mb-laptop {
  width: min(58%, 340px);
  transform: rotateY(-14deg) rotateX(8deg);
  transform-style: preserve-3d;
}

.api-mb-lid {
  transform-origin: 50% 100%;
  transform: rotateX(calc(-88deg * (1 - var(--lid))));
  transform-style: preserve-3d;
  will-change: transform;
}

.api-mb-bezel {
  position: relative;
  aspect-ratio: 16 / 10.4;
  padding: 11px 8px 8px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #3a3d44 0%, #2a2d33 100%);
  box-shadow:
    0 18px 32px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.api-mb-cam {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #111318;
  box-shadow: inset 0 0 0 1.5px #4b5563;
}

.api-mb-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
}

.api-mb-chrome {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 16px;
  padding: 0 7px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.api-mb-chrome i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
}

.api-mb-chrome i:nth-child(1) {
  background: #f87171;
}
.api-mb-chrome i:nth-child(2) {
  background: #fbbf24;
}
.api-mb-chrome i:nth-child(3) {
  background: #34d399;
}

.api-mb-chrome b {
  margin-left: 6px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #64748b;
}

.api-mb-table {
  padding: 4px 0;
  transform: translateY(calc((1 - var(--lid)) * 28px));
}

.api-mb-th,
.api-mb-tr {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 0.9fr 0.8fr;
  gap: 4px;
  padding: 3px 8px;
  font-size: 8px;
  line-height: 1.2;
  color: #64748b;
}

.api-mb-th {
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 7px;
}

.api-mb-tr span:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #334155;
}

.api-mb-tr.is-live {
  background: #ecfdf5;
  color: #166534;
}

.api-mb-hinge {
  height: 4px;
  margin: 0 10%;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(#4b5563, #1f2937);
}

.api-mb-base {
  height: 46px;
  padding: 6px 10px 0;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #d5d8de 0%, #b8bcc4 100%);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.api-mb-keys {
  height: 22px;
  border-radius: 3px;
  background:
    linear-gradient(#9aa1ab 1px, transparent 1px) 0 0 / 100% 7px,
    linear-gradient(90deg, #9aa1ab 1px, transparent 1px) 0 0 / 10px 100%,
    #c5c9d0;
  opacity: 0.85;
}

.api-mb-pad {
  width: 36%;
  height: 10px;
  margin: 5px auto 0;
  border-radius: 3px;
  background: #a8aeb8;
}

.api-mb-float {
  position: absolute;
  right: 3%;
  top: 22%;
  width: 168px;
  padding: 10px 11px 9px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  transform: translateX(calc((1 - var(--lid)) * 36px));
  opacity: max(0, calc((var(--lid) - 0.32) / 0.42));
  pointer-events: none;
}

.api-mb-float header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.api-mb-float header b {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.api-mb-float header i {
  width: 22px;
  height: 12px;
  border-radius: 99px;
  background: #2563eb;
  position: relative;
}

.api-mb-float header i::after {
  content: "";
  position: absolute;
  top: 1.5px;
  right: 1.5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
}

.api-mb-delivered {
  padding: 7px 8px;
  border-radius: 8px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
}

.api-mb-float p {
  margin: 8px 0 0;
  font-size: 8px;
  line-height: 1.45;
  color: #64748b;
}

.api-mb-skels {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.api-mb-skels i {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: #e2e8f0;
}

.api-mb-skels i:nth-child(1) {
  width: 92%;
}
.api-mb-skels i:nth-child(2) {
  width: 74%;
}
.api-mb-skels i:nth-child(3) {
  width: 58%;
}

.api-mb-float footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.api-mb-float footer span {
  font-size: 8px;
  font-weight: 600;
  color: #94a3b8;
}

.api-mb-float footer em {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

/* —— Data ops: auto-tracking + status donut —— */
.api-do {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 22px 20px;
  box-sizing: border-box;
}

.api-do--solo {
  height: 100%;
  padding: 18px 16px;
}

.api-do--solo .api-do-card {
  width: 100%;
}

.api-do-card--carriers {
  text-align: center;
}

.api-do-count {
  display: block;
  margin: 4px 0 14px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.api-do-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.api-do-logos img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.api-do-card {
  padding: 12px 14px 13px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s ease;
}

.api-do-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.api-do-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.api-do-hub {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  align-items: center;
  min-height: 96px;
}

.api-do-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.api-do-wires path {
  fill: none;
  stroke: #93c5fd;
  stroke-width: 1.4;
}

.api-do-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.api-do-col.is-right {
  align-items: flex-start;
}

.api-do-col img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.api-do-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 12px;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.28);
}

.api-do-core b {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.api-do-chart {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
}

.api-do-donut {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
    #ef4444 0 22deg,
    #3b82f6 22deg 58deg,
    #6366f1 58deg 138deg,
    #f59e0b 138deg 168deg,
    #22c55e 168deg 258deg,
    #94a3b8 258deg 278deg,
    #fb7185 278deg 298deg,
    #f97316 298deg 328deg,
    #06b6d4 328deg 360deg
  );
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.api-do-donut::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #fff;
}

.api-do-donut b,
.api-do-donut em {
  position: relative;
  z-index: 1;
}

.api-do-donut b {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}

.api-do-donut em {
  position: absolute;
  top: 54%;
  font-size: 8px;
  font-style: normal;
  color: #94a3b8;
}

.api-do-chart ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
}

.api-do-chart li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  line-height: 1.2;
  color: #64748b;
}

.api-do-chart li i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .api-mb-lid,
  .api-mb-table,
  .api-mb-float,
  .api-do-card {
    transition: none;
  }
}

/* =========================================================
   Section 5 — Applications
   ========================================================= */
.api-s5 {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  /* 超大屏上下居中：弹性垫间距（约 7vh，每屏自适应），小屏最低留 64/80 兜底 */
  padding: clamp(64px, 7vh, 140px) 0 clamp(80px, 8vh, 160px);
  overflow: hidden;
  background: #f7f8fa;
  color: var(--api-ink);
}

/* Returns ROI 同款青绿光晕，垫在点波 canvas 之上、内容之下 */
.api-s5::before,
.api-s5::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.api-s5::before {
  width: min(900px, 74vw);
  aspect-ratio: 1;
  left: -12%;
  top: -28%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 62%);
  animation: api-s5-glow-a 26s ease-in-out infinite;
}

.api-s5::after {
  width: min(760px, 64vw);
  aspect-ratio: 1;
  right: -14%;
  bottom: -34%;
  background: radial-gradient(
    circle,
    rgba(13, 148, 136, 0.05),
    transparent 60%
  );
  animation: api-s5-glow-b 34s ease-in-out infinite;
}

@keyframes api-s5-glow-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(6%, 5%, 0) scale(1.12);
    opacity: 1;
  }
}

@keyframes api-s5-glow-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.08);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(-5%, -6%, 0) scale(1);
    opacity: 0.5;
  }
}

.api-s5-waves {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

html.is-reduce-fx .api-s5::before,
html.is-reduce-fx .api-s5::after {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .api-s5::before,
  .api-s5::after {
    animation: none;
  }
}

.api-s5 .api-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* 内容块（标题→卡片→CTA）在 100vh 里垂直居中，多余空间上下均分 */
  justify-content: center;
  flex: 1;
  width: 100%;
}

.api-s5-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  pointer-events: none;
}

.api-s5-head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  /* 三段间距走同一比例：标题→卡片 = 卡片→CTA，随屏高弹性缩放 */
  margin: 0 auto clamp(56px, 11vh, 120px);
}

.api-s5-head .api-h2 {
  color: var(--api-ink);
}

.api-apps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.api-app-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: none;
  border-radius: 16px;
  min-height: 0;
  padding: 28px 20px 32px;
  list-style: none;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.api-app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 64%
  );
  transform: translateX(-120%);
}

.api-app-card:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.08),
    0 18px 36px rgba(15, 23, 42, 0.08);
}

.api-app-card:hover::after {
  animation: api-app-sheen 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.api-app-card:hover .api-app-ico {
  transform: scale(1.07);
}

@keyframes api-app-sheen {
  to {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .api-app-card,
  .api-app-ico {
    transition: none;
  }

  .api-app-card:hover {
    transform: none;
  }

  .api-app-card:hover::after,
  .api-app-card:hover .api-app-ico,
  .api-app-card:hover .api-app-ico svg * {
    animation: none;
    transform: none;
    stroke-dashoffset: 0;
  }
}

.api-app-card img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: none;
}

.api-app-card h3 {
  margin: 0 0 8px;
  font-size: clamp(13px, calc(11.92px + 0.3vw), 16px);
  font-weight: 800;
  color: var(--api-ink);
  letter-spacing: -0.01em;
}

.api-app-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--api-muted);
}

.api-s5-cta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  /* 卡片→CTA 与 标题→卡片 同档；整组垂直居中由 .api-s5 .api-wrap 的 justify-content:center 负责 */
  margin-top: clamp(56px, 11vh, 120px);
}

.api-s5-cta .btn-switch {
  min-width: 236px;
}

/* =========================================================
   Land the Integration Together — official 17track.net/en/api
   ========================================================= */
.api-land {
  position: relative;
  padding: 100px 0 88px;
  background: #fff;
  color: var(--api-ink);
}

.api-land-head {
  text-align: center;
  margin: 0 auto var(--sec-head-gap, 40px);
}

.api-land-head .api-h2 {
  color: var(--api-ink);
}

.api-land-sub {
  margin: var(--sec-title-desc, 16px) auto 0;
  font-size: clamp(14px, calc(12.92px + 0.3vw), 17px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: var(--track-body, -0.015em);
  color: var(--api-muted);
}

.api-plans {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: stretch;
  margin: 0;
  padding: 16px 0;
  list-style: none;
}

.api-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  gap: 32px;
  min-width: 0;
  height: 272px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  background: #fff;
  box-shadow: none;
  list-style: none;
  margin: 0;
  box-sizing: border-box;
}

.api-plan-name {
  font-size: 24px;
  font-weight: 600;
  line-height: 37px;
  letter-spacing: 0;
  color: #212121;
}

.api-plan-card.is-hot .api-plan-name {
  display: flex;
  align-items: center;
  width: fit-content;
}

.api-plan-card.is-hot .api-plan-name > span {
  color: transparent;
  background: linear-gradient(90deg, #ff51ec, #3736ff, #545eff);
  -webkit-background-clip: text;
  background-clip: text;
}

.api-plan-card.is-hot .api-plan-name::after {
  content: "🔥";
  margin-left: 2px;
  font-size: 20px;
  line-height: 1;
}

.api-plan-pricebox {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.api-plan-unit {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #757575;
}

.api-plan-price {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 44px;
  color: #ff6f00;
  white-space: nowrap;
}

.api-plan-quota {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #424242;
}

.api-plan-custom {
  justify-content: space-between;
  align-items: center;
  gap: 0;
  text-align: center;
}

.api-plan-illustration {
  display: block;
  width: 60%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.api-plan-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  width: 144px;
  height: 32px;
  margin-top: 10px;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  border-radius: 40px;
  background-image: linear-gradient(90deg, #6fa2ff, #ae00ff);
  box-shadow: 0 5px 10px rgba(37, 0, 197, 0.3);
  cursor: pointer;
}

.api-plan-contact:hover,
.api-plan-contact:focus-visible {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
}

.api-plan-contact:focus-visible {
  outline: 2px solid rgba(111, 162, 255, 0.45);
  outline-offset: 3px;
}

.api-plan-qr {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto;
  object-fit: contain;
}

.api-plan-note {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #757575;
}

.api-onboard {
  margin-top: 72px;
}

.api-onboard-title {
  margin: 0 0 36px;
  text-align: center;
  font-size: clamp(24px, calc(21.12px + 0.8vw), 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #111;
}

.api-onboard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.api-onboard-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
}

.api-onboard-art {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 0;
  overflow: visible;
}

.api-onboard-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 16px 0 12px;
  border-radius: 50%;
  background: #3736ff;
  color: #fff;
  font-size: clamp(13px, calc(11.92px + 0.3vw), 16px);
  font-weight: 700;
}

.api-onboard-card > span {
  display: block;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  color: #424242;
}

/* ≤640 横滑 indicator：桌面隐藏 */
.api-onboard-dots {
  display: none;
}

/* Onboard DOM illustrations — floating white chips, no well */
.api-ob {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.api-ob-ava {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
}

.api-ob-mark {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.api-ob-mark b {
  color: #ea580c;
}

.api-ob-sheet,
.api-ob-code,
.api-ob-help,
.api-ob-mini,
.api-ob-board,
.api-ob-xls,
.api-ob-modal {
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.api-ob--chat {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px 18px;
}

.api-ob-sheet {
  position: relative;
  width: 92%;
  max-width: 250px;
  border-radius: 16px;
  overflow: visible;
}

.api-ob-sheet::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, transparent, rgba(226, 232, 240, 0.7));
  pointer-events: none;
}

.api-ob-head {
  padding: 12px 16px 8px;
  text-align: center;
}

.api-ob-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 14px 16px;
}

.api-ob-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.api-ob-row p {
  margin: 0;
  max-width: calc(100% - 40px);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 9.5px;
  line-height: 1.4;
  color: #475569;
  background: #f1f5f9;
}

.api-ob-row.is-me {
  justify-content: flex-end;
}

.api-ob-row.is-me p {
  background: #0f172a;
  color: #f8fafc;
}

.api-ob--trial {
  padding: 8px 8px 16px;
}

.api-ob--trial::before {
  content: "";
  position: absolute;
  inset: 22% 6% 8% 8%;
  z-index: 0;
  border: 1.5px dashed #d0d5dd;
  border-radius: 18px;
  pointer-events: none;
}

.api-ob-code {
  position: relative;
  z-index: 2;
  width: 86%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.api-ob-codebar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 7px 12px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 600;
}

.api-ob-codebar .api-vig-dots {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.api-ob-code .api-vig-code {
  font-size: 8px;
  line-height: 1.5;
  padding: 10px 12px 36px;
  color: #64748b;
}

.api-ob-code .c-cmd,
.api-ob-code .c-flag,
.api-ob-code .c-str,
.api-ob-code .c-p {
  color: #64748b;
  font-weight: 500;
}

.api-ob-code .c-url {
  color: #334155;
}

.api-ob-help {
  position: absolute;
  left: 14%;
  right: 6%;
  bottom: 8px;
  z-index: 3;
  width: auto;
  padding: 10px 10px 8px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.api-ob-help .api-ob-row p {
  max-width: calc(100% - 40px);
  font-size: 9px;
}

.api-ob--plans {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  width: 92%;
  height: 100%;
  margin: 0 auto;
  padding: 8px 0 16px;
}

.api-ob-mini {
  position: relative;
  padding: 10px 12px 9px;
  border-radius: 12px;
}

.api-ob-mini span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

.api-ob-mini strong {
  display: block;
  margin: 2px 0 3px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ea580c;
}

.api-ob-mini em {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 8px;
  font-style: normal;
  color: #94a3b8;
}

.api-ob-mini.is-flag {
  z-index: 2;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.api-ob-mini.is-flag span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  padding: 3px 8px;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  font-size: 10px;
}

.api-ob-mini abbr {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.api-ob-cursor {
  position: absolute;
  right: 22%;
  top: 58%;
  z-index: 4;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.api-ob--live {
  position: relative;
  padding: 10px 6px 14px;
}

.api-ob-board {
  width: 72%;
  min-height: 210px;
  margin: 18px 0 0 4px;
  padding: 12px 12px 14px;
  border-radius: 14px;
}

.api-ob-board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.api-ob-board-top b {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

.api-ob-toggle {
  width: 24px;
  height: 14px;
  border-radius: 999px;
  background: #2563eb;
  position: relative;
}

.api-ob-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.api-ob-deliv {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0 12px;
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
}

.api-ob-deliv span {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 9px;
}

.api-ob-bars {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.api-ob-bars li {
  height: 7px;
  border-radius: 4px;
  background: #e2e8f0;
}

.api-ob-bars li:nth-child(2) {
  width: 78%;
}

.api-ob-bars li:nth-child(3) {
  width: 62%;
}

.api-ob-xls {
  position: absolute;
  top: 4px;
  right: 0;
  z-index: 2;
  width: 72px;
  padding: 0;
  text-align: center;
  background: transparent;
  box-shadow: none;
}

.api-ob-xls img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.api-ob-xls em {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  font-style: normal;
  color: #64748b;
}

.api-ob-modal {
  position: absolute;
  right: 0;
  bottom: 4px;
  z-index: 3;
  width: 52%;
  padding: 10px 10px 11px;
  border-radius: 12px;
}

.api-ob-modal .api-vig-field b {
  min-height: 18px;
}

@media (max-width: 1024px) {
  /* pricing 桌面五行；单列/两列降到 ≤768 */
  .api-plan-name {
    font-size: 20px;
    line-height: 30px;
  }

  .api-plan-price {
    font-size: 30px;
    line-height: 36px;
  }

  .api-onboard-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .api-land {
    padding: 64px 0 56px;
  }

  .api-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-plan-card {
    height: auto;
    min-height: 272px;
  }

  .api-plan-custom {
    grid-column: 1 / -1;
  }

  .api-onboard-steps {
    /* 768 平板竖屏 2×2（2026-08-31 Park）；≤640 走横滑（后面 640 块覆盖） */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

/* =========================================================
   Bottom CTA — Returns 同款暗底粒子海，文案用 API 原句
   ========================================================= */
.api-page .api-s6.bottom-cta {
  min-height: clamp(420px, 56vh, 640px);
  padding: 0;
  text-align: center;
  background: #000;
  align-items: center;
  justify-content: center;
}

.api-page .bottom-cta .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  text-align: center;
  grid-template-columns: none;
}

.api-page .bottom-cta-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.api-page .bottom-cta h2 {
  max-width: 14em;
  margin: 0 auto;
  color: #fff;
  /* 52 桌面不变，360 收到 21.5 与全站模块标题一致（2026-08-31 Park） */
  font-size: clamp(21.5px, calc(10.52px + 3.05vw), 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-align: center;
}

.api-page .bottom-cta p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.api-page .bottom-cta p a,
.api-page .bottom-cta p a:hover,
.api-page .bottom-cta p a:focus,
.api-page .bottom-cta p a:focus-visible {
  color: #fff;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.api-page .bottom-cta .cta-row {
  justify-content: center;
}

.api-page .bottom-cta .cta-row .btn-switch {
  width: auto;
  min-width: 200px;
}

/* ≤640 按钮不再被 stretch 拉满整行（2026-08-31 Park） */
@media (max-width: 640px) {
  .api-page .bottom-cta .cta-row .btn-switch {
    max-width: 320px;
    margin-inline: auto;
  }
}

/* =========================================================
   Explore more (product cross-sell) — keep after main API content
   ========================================================= */
.api-page .section.alt.api-explore {
  background: #fff;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  /* 6 列栅格只给 769-1024（下方 768 块的两列会被 span 规则污染成整行一个），
     见文件末尾的范围块 */
  .api-s4-board {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 42vw) minmax(0, 1fr);
    gap: 16px;
  }

  .api-s4-copy-card {
    padding: 14px 16px;
  }
}

@media (max-width: 768px) {
  /* 768 平板竖屏保持 hero 左右双栏（2026-08-31 Park），列宽紧凑一档；
     单列堆叠降到 ≤640 */
  .api-s1-copy {
    max-width: none;
    padding-top: 0;
  }

  .api-s1-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 46%);
    gap: 24px 28px;
  }

  .api-s3-cards {
    gap: 16px;
  }

  .api-s3-illus {
    height: min(90vw, 340px);
    min-height: 340px;
    padding: 0;
  }

  .api-vig-sheet--signup,
  .api-vig-sheet--webhook {
    top: 16px;
    left: 10%;
    right: 10%;
    padding: 10px 12px 12px;
  }

  .api-vig-desc {
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .api-s3-card-text h3 {
  }

  .api-s3-step {
    font-size: 10px;
  }

  .api-vig-checks {
    grid-template-columns: 1fr;
  }

  .api-form-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .api-s4-board {
    /* 768 平板竖屏：井跨全宽在上，四张文案卡 2×2（2026-08-31 Park「上面的插图不动」） */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .api-s4-stage-card {
    order: -1;
    grid-column: 1 / -1;
    /* 井撑满壳宽（2026-08-31 Park「没撑满」；原 520px 居中限制废弃） */
    width: 100%;
    max-width: none;
    margin: 0;
  }

  /* 井放大后 ④场内容同步放大（2026-08-31 Park「动画内容没有同步放大」）：
     zoom 固定档 721/520≈1.39（zoom 的 calc 容器单位不可靠，井宽只随壳宽 769-768 档微变，
     shell = 100% - 2×24 padding，比例近似恒定）；不改 transform——候场 scale(0.52) 是桥逆变换约定 */
  .api-s4-dashgrid {
    zoom: 1.39;
  }

  .api-s4-col {
    gap: 16px;
  }

  .api-s4-copy-card {
    flex: 1 1 auto;
    padding: 22px 20px 18px;
  }

  .api-s4-orbit {
    --logo: 52px;
    --r-out: 42cqmin;
    --r-in: 27cqmin;
  }

  .api-s4-orbit-dot {
    width: 32px;
    height: 32px;
  }

  .api-s4-orbit-ring--inner .api-s4-orbit-dot {
    width: 28px;
    height: 28px;
  }

  .api-s4-orbit-chip.is-named {
    transform: translate(calc(var(--dot) * -1), -50%) scale(0.88);
    transform-origin: var(--dot) 50%;
  }

  .api-s4-orbit-chip.is-named.is-flip {
    transform: translate(calc(-100% + var(--dot)), -50%) scale(0.88);
    transform-origin: calc(100% - var(--dot)) 50%;
  }

  .api-s4-hub {
    width: min(96%, 320px);
  }

  .api-s4-hub-logo {
    width: calc(var(--s, 46px) * 0.84);
    height: calc(var(--s, 46px) * 0.84);
  }

  .api-s4-hub-core {
    width: 112px;
    min-height: 92px;
    padding: 12px 10px 11px;
  }

  .api-s4-hub-core b {
    font-size: 26px;
  }

  .api-s4-head {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 16px;
  }

  .api-mb-laptop {
    transform: none;
    width: min(72%, 300px);
  }

  .api-mb-float {
    width: 148px;
    right: 4%;
    top: 20%;
  }

  .api-do {
    padding: 16px 14px;
    gap: 10px;
  }

  .api-form-grid {
    grid-template-columns: 1fr;
  }

  .api-field.is-full {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .api-s4-word,
  .api-s4-h2-sub .api-s4-word {
    color: #0f172a;
  }

  .api-s4-h2-sub .api-s4-word {
    color: #1e40af;
  }
}

@media (max-width: 768px) {
  .api-apps {
    grid-template-columns: 1fr 1fr;
  }

  .api-s1,
  .api-s2,
  .api-s3,
  .api-s4,
  .api-s5 {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .api-s5 {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .api-s1 {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  /* 模块之间的发丝分割线去掉到 768（.section/.credentials 的 border-bottom，2026-08-31 Park；
     原在 640 档，并档后 768 也要干净） */
  .api-page .section,
  .api-page .credentials {
    border-bottom: 0;
  }

  /* keep .api-wrap padding from --page-pad-x; no extra width shrink */
}

@media (max-width: 640px) {
  .api-apps {
    grid-template-columns: 1fr;
  }

  .api-s3-cards {
    grid-template-columns: 1fr;
  }

  /* 640 以下恢复单列：井 + 卡全部纵排（HowItWorks 2×2 给 641-1024） */
  .api-s4-board {
    grid-template-columns: 1fr;
  }

  .api-s4-stage-card {
    grid-column: auto;
  }

  /* 卡片高度自适应内容（2026-08-29 Park） */
  .api-app-card {
    min-height: 0;
    padding: 22px 18px 24px;
  }

  /* ④场 dashgrid 369px > 井高 343px，底部卡+toast 被裁：
     图例折两列 + donut/trend 各收一档（2026-08-31 Park） */
  .api-s4-dashgrid {
    gap: 6px;
  }

  .api-s4-legend {
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
  }

  /* ④场 dashgrid 的小尺寸收档已废弃（2026-08-31）：井在 768 撑满壳宽（~721），
     内容由 .api-s4-stage 的 --dash-scale 容器化整体放大，不再需要 96px 收档 */

  /* hero 单列堆叠只在 ≤640（从 768 档下移，2026-08-31 Park：平板竖屏保持左右双栏） */
  .api-page .api-s1.hero {
    display: block;
    min-height: 0;
    align-items: unset;
  }

  .api-s1-grid {
    grid-template-columns: 1fr;
  }

  /* s2 图/文单列堆叠（从 768 档下移，2026-08-31 Park：平板竖屏保持左右） */
  .api-s2-line {
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    height: auto;
    padding: 20px 0 16px;
  }

  .api-s2-visual {
    /* host is position:absolute — without a real min-height, flex-shrink
       collapses this well to 0 once copy is height:100% */
    flex: 0 0 auto;
    width: 100%;
    height: min(96vw, 375px);
    min-height: 300px;
    max-height: 390px;
  }

  .api-s2-visual .api-hub,
  .api-s2-visual .api-hub--webgl,
  .api-s2-visual .api-iso-host {
    min-height: 100%;
  }

  .api-s2-copy {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    padding: 0;
  }

  /* 手机档取消 sticky：标题+五条应用内容高于 100vh 舞台，
     overflow:hidden 会把第 5 条裁掉（2026-09-21 Park「怎么只有四个」）。
     整段自然流，p 定格 1（reduce）五条全亮。
     JS layout() 写 inline top/height，这里必须 !important。 */
  .api-s2 .api-s2-sticky {
    position: relative;
    top: auto !important;
    height: auto !important;
    overflow: visible;
  }
  .api-s2 .api-s2-scroll {
    height: auto !important;
  }

  /* Onboard 4 Steps 横向滑动 + indicator（2026-08-31 Park） */
  .api-onboard-steps {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .api-onboard-steps::-webkit-scrollbar {
    display: none;
  }

  .api-onboard-card {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }

  .api-onboard-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 6px;
  }

  .api-onboard-dots button {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
  }

  .api-onboard-dots button::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #cbd5e1;
    transition:
      width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      background-color 0.3s;
  }

  .api-onboard-dots button.is-active::before {
    width: 18px;
    background: var(--api-blue, #2563eb);
  }
}

/* =========================================================
   DOM mockups — tracking feature-stage / fx-glass pattern
   ========================================================= */
.api-s1-bg,
.api-s3-bg,
.api-s5-bg {
  display: none; /* no raster backgrounds */
}

.api-dom-frame {
  position: relative;
  width: 100%;
  min-height: 360px;
  border-radius: 20px;
  overflow: hidden;
}

.api-dom-frame .feature-stage,
.api-dom-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.api-dom-stage .feature-stage-art {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
}

.api-dom-stage-sm {
  min-height: 280px;
}

/* Position main + floats for API stages (static converged) */
.api-dom-stage .fx-main.api-dom-main {
  left: 8%;
  top: 10%;
  width: 58%;
  max-width: 320px;
  padding: 0;
  overflow: hidden;
  --ox: 0px;
  --oy: 0px;
  opacity: 1;
  transform: none;
}

.api-dom-stage .fx-float-a {
  left: auto;
  right: 6%;
  top: 14%;
  width: 38%;
  max-width: 180px;
  padding: 12px 14px;
  opacity: 1;
  transform: none;
  --ox: 0;
  --oy: 0;
}

.api-dom-stage .fx-float-b {
  left: auto;
  right: 8%;
  top: auto;
  bottom: 28%;
  width: 36%;
  max-width: 170px;
  padding: 12px 14px;
  opacity: 1;
  transform: none;
}

.api-dom-stage .fx-float-c {
  left: 10%;
  top: auto;
  bottom: 10%;
  width: 40%;
  max-width: 190px;
  padding: 12px 14px;
  opacity: 1;
  transform: none;
}

.api-dom-stage-sm .fx-main.api-dom-main {
  left: 6%;
  top: 10%;
  width: 72%;
  max-width: none;
}

.api-dom-stage-sm .fx-float-a {
  right: 6%;
  bottom: 10%;
  top: auto;
  width: 42%;
}

.api-dom-stage .fx-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.api-dom-stage .fx-chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}

.api-dom-stage .fx-chrome i:nth-child(1) {
  background: #f87171;
}
.api-dom-stage .fx-chrome i:nth-child(2) {
  background: #fbbf24;
}
.api-dom-stage .fx-chrome i:nth-child(3) {
  background: #34d399;
}

.api-dom-stage .fx-url {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.api-dom-stage .fx-body {
  padding: 12px 14px 14px;
}

.api-dom-stage .fx-hero-block strong {
  font-size: 13px;
}

.api-dom-stage .fx-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.api-dom-stage .fx-status-grid b {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

.api-dom-stage .fx-status-grid b em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.api-dom-stage .fx-status-grid b.is-ok {
  background: rgba(220, 252, 231, 0.75);
  border-color: rgba(34, 197, 94, 0.18);
}

.api-dom-stage .fx-status-grid b.is-on {
  background: rgba(219, 234, 254, 0.85);
  border-color: rgba(59, 130, 246, 0.22);
}

.api-dom-list {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.api-dom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.api-dom-tn {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9.5px;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-dom-codeblock {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 11px;
  line-height: 1.55;
  overflow: hidden;
}

.api-dom-codeblock.is-tall {
  min-height: 110px;
}

.api-dom-codeblock code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.api-dom-codeblock .c-key {
  color: #93c5fd;
  font-weight: 700;
}
.api-dom-codeblock .c-str {
  color: #86efac;
}
.api-dom-codeblock .c-num {
  color: #fcd34d;
}
.api-dom-codeblock .c-muted {
  color: #94a3b8;
}

.api-dom-events {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.api-dom-event {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 10.5px;
  color: #64748b;
}

.api-dom-event.is-live {
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(219, 234, 254, 0.75);
}

.api-dom-event-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1d4ed8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.api-dom-substatus {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.api-dom-substatus span {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #475569;
}

.api-dom-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  margin-top: 12px;
  padding: 8px 6px 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.api-dom-bars span {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  opacity: 0.9;
  min-height: 8px;
}

/* s4 illustration well is defined with the section */

/* Application icons — DOM tiles */
.api-app-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 14px;
  color: #fff;
  background: #2563eb;
  border: none;
  box-shadow: none;
  transition:
    background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.api-app-ico[data-kind="logistics"] {
  color: #fff;
  background: #2563eb;
}

.api-app-ico[data-kind="ecommerce"] {
  color: #fff;
  background: #ea580c;
}

.api-app-ico[data-kind="finance"] {
  color: #fff;
  background: #059669;
}

.api-app-ico[data-kind="integrator"] {
  color: #fff;
  background: #7c3aed;
}

.api-app-ico[data-kind="platforms"] {
  color: #fff;
  background: #0891b2;
}

.api-app-card:hover .api-app-ico[data-kind="logistics"] {
  color: #fff;
  background: #1d4ed8;
}

.api-app-card:hover .api-app-ico[data-kind="ecommerce"] {
  color: #fff;
  background: #c2410c;
}

.api-app-card:hover .api-app-ico[data-kind="finance"] {
  color: #fff;
  background: #047857;
}

.api-app-card:hover .api-app-ico[data-kind="integrator"] {
  color: #fff;
  background: #6d28d9;
}

.api-app-card:hover .api-app-ico[data-kind="platforms"] {
  color: #fff;
  background: #0e7490;
}

.api-app-ico svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.api-app-ico svg * {
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.api-app-card:hover .api-app-ico svg * {
  animation: api-app-stroke 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.api-app-card:hover .api-app-ico svg *:nth-child(2) {
  animation-delay: 0.05s;
}

.api-app-card:hover .api-app-ico svg *:nth-child(3) {
  animation-delay: 0.1s;
}

.api-app-card:hover .api-app-ico svg *:nth-child(4) {
  animation-delay: 0.14s;
}

.api-app-card:hover .api-app-ico svg *:nth-child(n + 5) {
  animation-delay: 0.18s;
}

@keyframes api-app-stroke {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.api-app-card img {
  display: none;
}

/* Hero 渐变见文件头部 .api-s1 规则（此处不再压白底） */

.api-s5 {
  background: #f7f8fa;
}

@media (max-width: 768px) {
  .api-dom-stage .fx-float-b,
  .api-dom-stage .fx-float-c {
    display: none;
  }
  .api-dom-stage .fx-main.api-dom-main {
    left: 6%;
    width: 88%;
    max-width: none;
  }
  .api-dom-stage .fx-float-a {
    display: none;
  }
}

/* Applications 6 列栅格只给 769-1024（2026-08-31 Park：1024 第二排撑满）；
   ≤768 两列（2+2+1）不带 span，否则 span 2 在两列 grid 里等于整行一个 */
@media (max-width: 1024px) and (min-width: 769px) {
  .api-apps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .api-app-card {
    grid-column: span 2;
    /* 高度随内容（同行 grid stretch 拉齐，去 268 固定高的空白），最后一张跨全宽（2026-08-31 Park） */
    min-height: 0;
  }

  .api-app-card:nth-child(n + 4) {
    grid-column: span 3;
  }
}

/* s4 769-940 最窄段再收一档（2026-08-31 Park：12px 后 882 第三卡仍差 20px） */
@media (max-width: 940px) and (min-width: 769px) {
  .api-s4-copy-card p {
    font-size: 11px !important;
    line-height: 1.4;
  }

  .api-s4-copy-card h3 {
    font-size: 12px !important;
  }
}

/* =========================================================
   Enterprise — 稿图 image 2：居中标题 + 白卡
   ========================================================= */
.api-ent {
  padding: var(--sec-y) 0;
  background: #f7f8fa;
}

.api-ent-head {
  max-width: 760px;
  margin: 0 auto var(--sec-head-gap);
  text-align: center;
}

.api-ent-eye {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--api-muted);
}

.api-ent-head .api-h2 {
  max-width: 18em;
  margin: 0 auto;
}

.api-ent-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.api-ent-badges li {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--border-default, #e6e8ec);
  border-radius: 999px;
  background: #fff;
  color: var(--text-secondary, #5c6370);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.01em;
}

.api-ent-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.api-ent-card {
  --s4-r: 18px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  align-items: start;
  min-width: 0;
  padding: 28px 24px 24px;
  text-align: left;
  border-radius: var(--s4-r);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.api-ent-ico {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  overflow: visible;
}

.api-ent-ico-back {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #3b82f6;
}

.api-ent-ico-glass {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  backdrop-filter: blur(10px) saturate(1.5);
}

.api-ent-ico svg {
  display: block;
  width: 42px;
  height: 42px;
  padding: 9px;
  box-sizing: border-box;
  color: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.api-ent-ico svg * {
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.api-ent-card:hover .api-ent-ico-back {
  animation: api-ent-ico-back 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.api-ent-card:hover .api-ent-ico-glass {
  animation: api-ent-ico-glass 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.api-ent-card:hover .api-ent-ico svg * {
  animation: api-ent-ico-draw 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.api-ent-card:hover .api-ent-ico svg *:nth-child(2) {
  animation-delay: 0.07s;
}

.api-ent-card:hover .api-ent-ico svg *:nth-child(n + 3) {
  animation-delay: 0.14s;
}

@keyframes api-ent-ico-back {
  0%,
  100% {
    transform: translate(0, 0);
  }
  42% {
    transform: translate(8px, -8px);
  }
}

@keyframes api-ent-ico-glass {
  0%,
  100% {
    transform: translate(0, 0);
  }
  42% {
    transform: translate(-6px, 6px);
  }
}

@keyframes api-ent-ico-draw {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .api-ent-card:hover .api-ent-ico-back,
  .api-ent-card:hover .api-ent-ico-glass,
  .api-ent-card:hover .api-ent-ico svg * {
    animation: none;
  }
}

.api-ent-card h3 {
  margin: 0 0 8px;
  min-height: calc(1.3em * 2);
  font-size: clamp(16.5px, calc(15.24px + 0.35vw), 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.api-ent-card p {
  margin: 0;
  font-size: clamp(12px, calc(11.28px + 0.2vw), 14px);
  line-height: 1.6;
  color: var(--api-muted);
}

/* =========================================================
   AI — tracking Synthesis 蓝粉底 + 预测 / 识别 / 地图
   ========================================================= */
.api-ai {
  --ai-duo: 0;
  --ai-blur: 1;
  position: relative;
  min-height: 145vh;
  padding: 0;
  overflow: visible;
  text-align: center;
  color: #fff;
  background: #05040f;
}

.api-ai-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05040f;
}

/* 透视只包旋转壳。糊层是 pin 的兄弟，祖先不能有 transform / filter / opacity */
.api-ai-persp {
  position: absolute;
  inset: 0;
  perspective: 920px;
  perspective-origin: 50% 0%;
}

.api-ai.is-leaving .api-ai-persp {
  perspective-origin: 50% 100%;
}

.api-ai.is-leaving .api-ai-shell {
  transform-origin: 50% 100%;
}

.api-ai-shell {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform-origin: 50% 0%;
  backface-visibility: hidden;
}

.api-ai:not(.is-duo-settled) .api-ai-shell {
  will-change: transform;
}

.api-ai-live {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0 88px;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 80% 70% at 18% 82%, rgba(5, 130, 232, 0.55), transparent 58%),
    radial-gradient(ellipse 70% 60% at 82% 38%, rgba(240, 14, 148, 0.48), transparent 52%),
    #08071a;
}

/* 进：顶铰链、贴底糊。离：底边折、贴顶糊 */
.api-ai-pblur {
  --ai-blur-dir: to bottom;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 6;
  width: 100%;
  height: 72%;
  pointer-events: none;
}

.api-ai.is-leaving .api-ai-pblur {
  --ai-blur-dir: to top;
  top: 0;
  bottom: auto;
}

.api-ai-pblur > i,
.api-ai-pblur > b {
  position: absolute;
  inset: 0;
}

.api-ai-pblur > i:nth-child(1) {
  -webkit-backdrop-filter: blur(calc(4px * var(--ai-blur)));
  backdrop-filter: blur(calc(4px * var(--ai-blur)));
  -webkit-mask: linear-gradient(var(--ai-blur-dir), transparent, #000 8%, #000 28%, transparent 40%);
  mask: linear-gradient(var(--ai-blur-dir), transparent, #000 8%, #000 28%, transparent 40%);
}

.api-ai-pblur > i:nth-child(2) {
  -webkit-backdrop-filter: blur(calc(10px * var(--ai-blur)));
  backdrop-filter: blur(calc(10px * var(--ai-blur)));
  -webkit-mask: linear-gradient(var(--ai-blur-dir), transparent 8%, #000 18%, #000 38%, transparent 50%);
  mask: linear-gradient(var(--ai-blur-dir), transparent 8%, #000 18%, #000 38%, transparent 50%);
}

.api-ai-pblur > i:nth-child(3) {
  -webkit-backdrop-filter: blur(calc(20px * var(--ai-blur)));
  backdrop-filter: blur(calc(20px * var(--ai-blur)));
  -webkit-mask: linear-gradient(var(--ai-blur-dir), transparent 12%, #000 28%, #000 50%, transparent 62%);
  mask: linear-gradient(var(--ai-blur-dir), transparent 12%, #000 28%, #000 50%, transparent 62%);
}

.api-ai-pblur > i:nth-child(4) {
  -webkit-backdrop-filter: blur(calc(40px * var(--ai-blur)));
  backdrop-filter: blur(calc(40px * var(--ai-blur)));
  -webkit-mask: linear-gradient(var(--ai-blur-dir), transparent 18%, #000 38%, #000 62%, transparent 74%);
  mask: linear-gradient(var(--ai-blur-dir), transparent 18%, #000 38%, #000 62%, transparent 74%);
}

.api-ai-pblur > i:nth-child(5) {
  -webkit-backdrop-filter: blur(calc(72px * var(--ai-blur)));
  backdrop-filter: blur(calc(72px * var(--ai-blur)));
  -webkit-mask: linear-gradient(var(--ai-blur-dir), transparent 32%, #000 52%, #000 78%, transparent 90%);
  mask: linear-gradient(var(--ai-blur-dir), transparent 32%, #000 52%, #000 78%, transparent 90%);
}

.api-ai-pblur > i:nth-child(6) {
  -webkit-backdrop-filter: blur(calc(110px * var(--ai-blur)));
  backdrop-filter: blur(calc(110px * var(--ai-blur)));
  -webkit-mask: linear-gradient(var(--ai-blur-dir), transparent 42%, #000 68%);
  mask: linear-gradient(var(--ai-blur-dir), transparent 42%, #000 68%);
}

.api-ai-pblur > i:nth-child(7) {
  z-index: 10;
  -webkit-backdrop-filter: blur(calc(160px * var(--ai-blur)));
  backdrop-filter: blur(calc(160px * var(--ai-blur)));
  -webkit-mask: linear-gradient(var(--ai-blur-dir), transparent 52%, #000 88%);
  mask: linear-gradient(var(--ai-blur-dir), transparent 52%, #000 88%);
}

.api-ai-pblur > b {
  background: linear-gradient(var(--ai-blur-dir), transparent 30%, rgba(5, 4, 15, 0.55) 78%, #05040f);
  opacity: calc(0.85 * var(--ai-blur));
}

.api-ai.is-duo-settled .api-ai-pblur {
  pointer-events: none;
}

.api-ai-flow {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.api-ai-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 72% 58% at 50% 42%,
      rgba(8, 7, 26, 0.55) 0%,
      rgba(8, 7, 26, 0.28) 48%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 90% 80% at 50% 50%,
      transparent 36%,
      rgba(8, 7, 26, 0.42) 100%
    );
}

.api-ai .api-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.api-ai .api-h2 {
  max-width: 16em;
  font-size: clamp(28px, calc(16.4px + 3.2vw), 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #fff;
}

.api-ai .api-h2 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(90deg, #f5e9ff 0%, #e9d5ff 40%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.api-ai .api-lead {
  max-width: 46em;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.68);
}

.api-ai-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.api-ai-tags li {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f3e8ff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.api-ai-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1040px, 100%);
  margin-top: clamp(40px, 6vh, 64px);
  text-align: left;
}

.api-ai-panel {
  min-height: 228px;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 18px 40px rgba(8, 7, 26, 0.22);
}

.api-ai-panel-kicker {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.api-ai-panel[data-kind="edd"] strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.api-ai-panel[data-kind="edd"] em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.api-ai-edd-bar {
  height: 4px;
  margin: 18px 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.api-ai-edd-bar i {
  position: relative;
  display: block;
  width: 68%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, #0582e8, #f00e94);
}

.api-ai-edd-bar i::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 46%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
  animation: api-ai-edd-flow 1.8s ease-in-out infinite;
}

@keyframes api-ai-edd-flow {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(280%);
  }
}

.api-ai-panel[data-kind="edd"] {
  display: flex;
  flex-direction: column;
}

.api-ai-panel[data-kind="edd"] ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.api-ai-panel[data-kind="edd"] li span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.api-ai-panel[data-kind="edd"] li b {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
}

.api-ai-panel[data-kind="ai"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.api-ai-orb {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 4px 0 16px;
}

.api-ai-orb canvas {
  display: block;
  width: 96px;
  height: 96px;
}

.api-ai-panel[data-kind="ai"] code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.api-ai-panel[data-kind="ai"] p {
  margin: 10px 0 0;
}

.api-ai-panel[data-kind="ai"] b {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.api-ai-panel[data-kind="ai"] p span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.api-ai-map {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
}

.api-ai-map-dots {
  fill: rgba(255, 255, 255, 0.38);
}

.api-ai-map-route {
  fill: none;
  stroke: #f0b4ff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 6 7;
  animation: api-ai-route 2.8s linear infinite;
}

.api-ai-map-dot {
  fill: #0582e8;
}

.api-ai-map-dot.is-end {
  fill: #f00e94;
}

.api-ai-map text {
  fill: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@keyframes api-ai-route {
  to {
    stroke-dashoffset: -26;
  }
}

html.is-reduce-fx .api-ai {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 70% at 18% 82%, rgba(5, 130, 232, 0.55), transparent 58%),
    radial-gradient(ellipse 70% 60% at 82% 38%, rgba(240, 14, 148, 0.48), transparent 52%),
    #08071a;
}

html.is-reduce-fx .api-ai-pblur {
  display: none;
}

html.is-reduce-fx .api-ai-pin {
  position: relative;
  height: auto;
  min-height: 100vh;
}

html.is-reduce-fx .api-ai-persp {
  position: relative;
  inset: auto;
  perspective: none;
}

html.is-reduce-fx .api-ai-shell {
  clip-path: none;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .api-ai {
    min-height: 100vh;
  }

  .api-ai-pin {
    position: relative;
    height: auto;
    min-height: 100vh;
  }

  .api-ai-persp {
    position: relative;
    inset: auto;
    perspective: none;
  }

  .api-ai-shell {
    clip-path: none;
    transform: none;
    filter: none;
  }

  .api-ai-pblur {
    display: none;
  }

  .api-ai-edd-bar i::after,
  .api-ai-map-route {
    animation: none;
  }

  .api-ai-edd-bar i::after {
    display: none;
  }
}

@media (max-width: 1024px) {
  .api-ent-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .api-ent-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-row: auto;
  }

  .api-ai-stage {
    gap: 12px;
  }

  .api-ai-panel {
    min-height: 0;
    padding: 18px 16px 16px;
  }

  .api-ai-panel[data-kind="edd"] strong {
    font-size: 22px;
  }
}

/* HowItWorks 2×2：641-1024。范围必须圈住，否则 ≤1024 会泄漏进 390 把单列顶掉 */
@media (max-width: 1024px) and (min-width: 641px) {
  .api-s3-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .api-s3-cards {
    grid-template-columns: 1fr;
  }

  .api-ent-cards {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .api-ent-card {
    height: auto;
    min-height: 0;
  }

  .api-ent-card h3 {
    min-height: 0;
  }

  .api-ai {
    overflow: visible;
    min-height: 0;
    padding: 88px 0 120px;
    background:
      radial-gradient(ellipse 80% 70% at 18% 82%, rgba(5, 130, 232, 0.55), transparent 58%),
      radial-gradient(ellipse 70% 60% at 82% 38%, rgba(240, 14, 148, 0.48), transparent 52%),
      #08071a;
  }

  .api-ai-pin {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .api-ai-persp {
    position: relative;
    inset: auto;
    perspective: none;
  }

  .api-ai-shell {
    position: relative;
    inset: auto;
    padding: 0;
    clip-path: none;
    transform: none;
    filter: none;
    overflow: visible;
  }

  .api-ai-live {
    position: relative;
    inset: auto;
    padding: 0;
  }

  .api-ai-pblur {
    display: none;
  }

  .api-ai-flow {
    display: none;
  }

  .api-ai-stage {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Explore Tracking 插图 → Returns 同款 os-status 模块
   （2026-09-21 Park：用 returns 5173 的 tracking 模块替换旧 board；
   JSX 已换，旧 .track-ui-board 系列规则失效留存于 landing.css。
   命名空间 .api-explore，特异性压过 landing.css 的 .track-ui 基础）
   ========================================================= */
.api-explore .explore-card-tracking .track-ui {
  --os-brown: #2563eb;
  --os-ink: #12151c;
  --os-mute: #6b7380;
  --os-paper: #f2f6fd;
  --os-card: #ffffff;
  background: var(--os-paper);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.api-explore .track-ui .os-status {
  position: absolute;
  top: 14px;
  left: 10px;
  right: 10px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
  border-radius: 4px;
  background: var(--os-card);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  color: var(--os-ink);
  -webkit-text-fill-color: var(--os-ink);
}

.api-explore .track-ui .os-status h3 {
  margin: 0 0 14px;
  max-width: none;
  font-family: inherit;
  font-size: clamp(13px, calc(11.92px + 0.3vw), 16px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--os-ink);
  -webkit-text-fill-color: var(--os-ink);
}

.api-explore .track-ui .os-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  position: relative;
  margin: 0 6px;
}

.api-explore .track-ui .os-progress::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 55%, #6d28d9 100%);
  transform: translateY(-50%);
}

/* 纯圆点 + 淡紫光环（returns 同款，不用图标），Delivered 光环更大 */
.api-explore .track-ui .os-progress i {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-radius: 50%;
  background: #6d28d9;
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.16);
}

.api-explore .track-ui .os-progress i.is-now {
  background: #6d28d9;
  box-shadow:
    0 0 0 4px rgba(109, 40, 217, 0.16),
    0 0 0 9px rgba(109, 40, 217, 0.12);
}

.api-explore .track-ui .os-progress-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 6px 0 12px;
  font-size: 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--os-mute);
  -webkit-text-fill-color: var(--os-mute);
  text-align: center;
}

.api-explore .track-ui .os-carrier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 11px;
}

.api-explore .track-ui .os-carrier b {
  font-weight: 650;
  color: var(--os-ink);
  -webkit-text-fill-color: var(--os-ink);
}

.api-explore .track-ui .os-carrier span {
  color: var(--os-mute);
  -webkit-text-fill-color: var(--os-mute);
  font-variant-numeric: tabular-nums;
}

.api-explore .track-ui .os-events {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  /* 事件多时超出卡片底部渐隐（returns 同款）：不滚动、不裁切生硬 */
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  padding-bottom: 18px;
}

.api-explore .track-ui .os-events::-webkit-scrollbar {
  display: none;
}

.api-explore .track-ui .os-events strong {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--os-ink);
  -webkit-text-fill-color: var(--os-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-explore .track-ui .os-events span {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  color: var(--os-mute);
  -webkit-text-fill-color: var(--os-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-explore .track-ui .os-events li.is-latest strong {
  color: #15803d;
  -webkit-text-fill-color: #15803d;
}

/* WISMO 浮卡（returns 同款毛玻璃）：压面板右缘 */
.api-explore .track-ui .float-card {
  position: absolute;
  width: 200px;
  border-radius: 18px;
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.68) 48%,
      rgba(248, 250, 252, 0.72) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(28px) saturate(1.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.55);
  padding: 13px 13px 12px;
  box-shadow:
    0 0 0 0.5px rgba(15, 23, 42, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -0.5px 0 rgba(15, 23, 42, 0.03) inset,
    0 2px 4px rgba(15, 23, 42, 0.03),
    0 12px 28px -8px rgba(15, 23, 42, 0.14),
    0 28px 56px -18px rgba(15, 23, 42, 0.12);
  z-index: 3;
  pointer-events: none;
  color: #0f172a;
}

.api-explore .track-ui .float-card-metric {
  left: auto;
  right: -8px;
  top: auto;
  bottom: 40px;
  width: 156px;
  z-index: 4;
  animation: none;
}

.api-explore .track-ui .float-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.api-explore .track-ui .float-card .label {
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.api-explore .track-ui .float-card-tag {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #15803d;
  background: rgba(240, 253, 244, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.16);
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.1;
}

.api-explore .track-ui .float-card .num {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 24px;
  line-height: 1;
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: #0b1f5c;
  font-variant-numeric: tabular-nums;
}

.api-explore .track-ui .float-card .num-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.82em;
  font-weight: 700;
  line-height: 1;
  color: #16a34a;
  letter-spacing: 0;
}

.api-explore .track-ui .mini-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3.5px;
  align-items: end;
  height: 28px;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.api-explore .track-ui .mini-bars span {
  display: block;
  border-radius: 3px;
  background: linear-gradient(180deg, #7ba4f0 0%, #1e4db7 100%);
  opacity: 0.88;
  min-height: 4px;
  box-shadow: 0 1px 2px rgba(30, 77, 183, 0.12);
}

.api-explore .track-ui .mini-bars span:nth-child(odd) { opacity: 0.68; }
.api-explore .track-ui .mini-bars span:last-child { opacity: 0.48; }

@media (max-width: 1024px) {
  .api-explore .explore-card-tracking .track-ui {
    min-height: 400px;
  }
  .api-explore .track-ui .float-card-metric {
    width: 148px;
    right: -4px;
    bottom: 24px;
  }
}

@media (max-width: 768px) {
  .api-explore .explore-card-tracking .track-ui {
    min-height: 380px;
  }
  .api-explore .track-ui .os-status {
    left: 8px;
    right: 8px;
  }
  .api-explore .track-ui .float-card-metric {
    /* landing.css ≤768 对 .float-card 一刀切 display:none!important（tracking 站旧规），
       WISMO 卡手机上要保留（2026-09-21 Park，returns 同款修法） */
    display: block !important;
    position: absolute !important;
    right: 6px;
    bottom: 20px;
    width: 148px;
  }
}

@media (max-width: 640px) {
  .api-explore .explore-card-tracking .track-ui {
    min-height: 360px;
    height: auto;
    width: 100%;
    overflow: hidden;
    /* 中和 landing.css ≤640 的旧 PC 缩放块（board 已不在 DOM，其 scale 带 !important） */
    transform: none !important;
    margin-left: 0;
    margin-bottom: 0;
  }
  .api-explore .track-ui .os-status {
    left: 6px;
    right: 6px;
    top: 10px;
    bottom: 10px;
  }
  .api-explore .track-ui .float-card-metric {
    width: 144px;
    right: 6px;
    bottom: 16px;
  }
}
