/* =====================================================================
   OIOIC · 道智编程 — 官网样式表
   Author: 站点视觉系统  |  独立 CSS，无任何外部依赖
   ===================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --bg:            #070a11;
  --bg-alt:        #0a0e17;
  --surface:       #0e1420;
  --surface-2:     #121a28;
  --line:          rgba(255, 255, 255, .08);
  --line-strong:   rgba(255, 255, 255, .16);

  --txt:           #e8eef8;
  --txt-soft:      #9fb0c7;
  --txt-dim:       #6b7c94;

  --jade:          #38e8b0;
  --jade-deep:     #12b98a;
  --blue:          #4d9dff;
  --violet:        #8b7bff;
  --amber:         #ffc861;

  --grad-main:     linear-gradient(120deg, var(--jade) 0%, var(--blue) 55%, var(--violet) 100%);
  --grad-soft:     linear-gradient(160deg, rgba(56, 232, 176, .14), rgba(77, 157, 255, .06));
  --grad-line:     linear-gradient(90deg, transparent, var(--jade), var(--blue), transparent);

  --radius-s:      10px;
  --radius:        16px;
  --radius-l:      24px;

  --shadow-s:      0 2px 10px rgba(0, 0, 0, .35);
  --shadow:        0 18px 50px -18px rgba(0, 0, 0, .8);
  --shadow-glow:   0 0 0 1px rgba(56, 232, 176, .22), 0 20px 60px -22px rgba(56, 232, 176, .35);

  --font-sans:     "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:     "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap:          1140px;
  --header-h:      68px;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 全局氛围光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(56, 232, 176, .10), transparent 62%),
    radial-gradient(760px 480px at 92% 4%, rgba(77, 157, 255, .10), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(139, 123, 255, .08), transparent 65%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.24; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

code {
  font-family: var(--font-mono);
  font-size: .88em;
  padding: .12em .42em;
  border-radius: 6px;
  background: rgba(56, 232, 176, .10);
  color: #a8f4d8;
  border: 1px solid rgba(56, 232, 176, .18);
}

::selection { background: rgba(56, 232, 176, .28); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}

/* ---------- 3. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 10, 17, .72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: grid; place-items: center; filter: drop-shadow(0 0 12px rgba(56, 232, 176, .35)); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong {
  font-size: 1.06rem;
  letter-spacing: .16em;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-text em {
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .34em;
  color: var(--txt-dim);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: .9rem;
  color: var(--txt-soft);
  transition: color .22s ease, background .22s ease;
}
.nav a:hover { color: var(--txt); background: rgba(255, 255, 255, .05); }
.nav a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 1.5px;
  background: var(--grad-main);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.nav a:hover::after { transform: scaleX(1); }

.nav-cta {
  margin-left: 8px;
  color: #04160f !important;
  background: var(--grad-main) !important;
  font-weight: 650;
  box-shadow: 0 6px 20px -8px rgba(56, 232, 176, .7);
}
.nav-cta::after { display: none; }
.nav-cta:hover { filter: brightness(1.08); }

/* 移动端汉堡 */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 18px; height: 1.8px;
  background: var(--txt-soft);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 76px) 0 96px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -240px; left: 50%;
  width: min(1100px, 120vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(56, 232, 176, .16), rgba(77, 157, 255, .08) 55%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-inner { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 232, 176, .26);
  background: rgba(56, 232, 176, .07);
  font-size: .78rem;
  letter-spacing: .09em;
  color: #9ff2d3;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 0 rgba(56, 232, 176, .7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56, 232, 176, .65); }
  70%  { box-shadow: 0 0 0 9px rgba(56, 232, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 232, 176, 0); }
}

.hero-title {
  font-size: clamp(2.25rem, 6.4vw, 4.05rem);
  line-height: 1.16;
  letter-spacing: -.025em;
  font-weight: 800;
}
.hero-title .grad {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: shimmer 9s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-lead {
  max-width: 660px;
  margin: 22px auto 0;
  font-size: clamp(.98rem, 1.6vw, 1.09rem);
  color: var(--txt-soft);
}
.hero-lead strong { color: var(--txt); font-weight: 650; }

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

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 650;
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .28s ease, background .22s ease, border-color .22s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #04180f;
  background: var(--grad-main);
  box-shadow: 0 14px 34px -14px rgba(56, 232, 176, .8);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -14px rgba(56, 232, 176, .95);
}
.btn-ghost {
  color: var(--txt);
  background: rgba(255, 255, 255, .045);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(56, 232, 176, .45);
}

/* Hero 数据条 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin: 56px auto 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stats li {
  background: rgba(10, 14, 23, .82);
  padding: 20px 10px;
  text-align: center;
  transition: background .25s ease;
}
.hero-stats li:hover { background: rgba(56, 232, 176, .07); }
.hero-stats b {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats span { font-size: .78rem; color: var(--txt-dim); letter-spacing: .06em; }

/* ---------- 5. 代码窗口 ---------- */
.hero-code-card { margin-top: 62px; }

.code-window {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0c121d, #080d15);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, .025);
  border-bottom: 1px solid var(--line);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3446; }
.dots i:nth-child(1) { background: #ff5f57; opacity: .75; }
.dots i:nth-child(2) { background: #febc2e; opacity: .75; }
.dots i:nth-child(3) { background: #28c840; opacity: .75; }
.code-file {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--txt-dim);
  letter-spacing: .04em;
}

pre.code {
  margin: 0;
  padding: 22px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .845rem;
  line-height: 1.86;
  color: #cfe0f5;
  tab-size: 4;
  -webkit-overflow-scrolling: touch;
}
pre.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

/* 语法高亮 */
.cm  { color: #5d7189; font-style: italic; }
.kw  { color: #ff7ab6; }
.str { color: #ffd479; }
.fn  { color: #6fd6ff; }
.ty  { color: #a78bfa; }
.nm  { color: #7cf0b9; }

.code-caption {
  margin-top: 14px;
  text-align: center;
  font-size: .82rem;
  color: var(--txt-dim);
  letter-spacing: .04em;
}

/* ---------- 6. 通用 section ---------- */
.section { padding: 104px 0; position: relative; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, 0)),
    var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 700px; margin-bottom: 52px; }
.kicker {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 14px;
  padding-left: 2px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -.02em;
}
.section-lead {
  margin-top: 16px;
  color: var(--txt-soft);
  font-size: .98rem;
}

/* ---------- 7. 卡片网格 ---------- */
.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four  { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), border-color .3s ease, box-shadow .3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--grad-line);
  opacity: 0;
  transition: opacity .35s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 232, 176, .3);
  box-shadow: var(--shadow-glow);
}
.card:hover::before { opacity: 1; }

.card h3 { font-size: 1.06rem; margin-bottom: 10px; }
.card p { color: var(--txt-soft); font-size: .9rem; }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  font-size: 1.2rem;
  color: var(--jade);
  background: var(--grad-soft);
  border: 1px solid rgba(56, 232, 176, .22);
}
.card-meta {
  font-family: var(--font-mono);
  font-size: .74rem !important;
  letter-spacing: .05em;
  color: var(--txt-dim) !important;
  margin-bottom: 12px !important;
}

/* ---------- 8. 引用带 ---------- */
.quote-band {
  margin-top: 46px;
  padding: 34px 32px;
  border-radius: var(--radius-l);
  border: 1px solid rgba(56, 232, 176, .18);
  background:
    radial-gradient(720px 200px at 0% 0%, rgba(56, 232, 176, .1), transparent 70%),
    var(--surface);
  text-align: center;
}
.quote-band blockquote {
  margin: 0;
  font-size: clamp(1.02rem, 2.2vw, 1.32rem);
  font-weight: 600;
  letter-spacing: .01em;
  color: #d9f7ec;
  line-height: 1.66;
}
.quote-band cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--txt-dim);
}

/* ---------- 9. 对象模型 ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: start;
}

.stack-list { display: grid; gap: 14px; }
.stack-list li {
  padding: 20px 22px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
  border-left: 2px solid rgba(56, 232, 176, .45);
  transition: background .25s ease, border-color .25s ease;
}
.stack-list li:hover { background: rgba(56, 232, 176, .05); border-color: rgba(56, 232, 176, .28); }
.stack-list h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .99rem;
  margin-bottom: 6px;
}
.stack-list p { color: var(--txt-soft); font-size: .88rem; }
.tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 6px;
  color: #7cf0b9;
  background: rgba(56, 232, 176, .12);
  border: 1px solid rgba(56, 232, 176, .26);
}

.oid-table {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
  font-size: .86rem;
}
.oid-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.oid-row:last-child { border-bottom: 0; }
.oid-row span { color: var(--txt-soft); }
.oid-row span:first-child { font-family: var(--font-mono); color: #a8f4d8; }
.oid-head {
  background: rgba(255, 255, 255, .04);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-dim);
}
.oid-head span { color: var(--txt-dim); font-family: var(--font-sans); }

/* 继承链可视化 */
.split-visual { position: sticky; top: calc(var(--header-h) + 24px); }
.chain { display: grid; justify-items: center; gap: 0; }
.chain-node {
  position: relative;
  width: 100%;
  max-width: 330px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  text-align: center;
  box-shadow: var(--shadow-s);
  transition: transform .3s ease, border-color .3s ease;
}
.chain-node:hover { transform: translateY(-2px); border-color: rgba(56, 232, 176, .4); }
.chain-node b { display: block; font-size: .98rem; margin: 6px 0 3px; }
.chain-node em {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--txt-dim);
}
.chain-id {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--txt-dim);
  letter-spacing: .04em;
}
.chain-node.root { border-color: rgba(56, 232, 176, .45); box-shadow: 0 0 0 1px rgba(56, 232, 176, .16), 0 18px 44px -24px rgba(56, 232, 176, .6); }
.chain-node.root b { color: #a8f4d8; }
.chain-node.leaf { border-color: rgba(77, 157, 255, .38); }
.chain-node.leaf b { color: #a9ccff; }
.chain-link {
  display: block;
  width: 2px;
  height: 34px;
  background: linear-gradient(180deg, rgba(56, 232, 176, .7), rgba(77, 157, 255, .5));
  position: relative;
}
.chain-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 7px; height: 7px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 2px solid rgba(77, 157, 255, .85);
  border-bottom: 2px solid rgba(77, 157, 255, .85);
}
.visual-note {
  margin-top: 18px;
  text-align: center;
  font-size: .8rem;
  color: var(--txt-dim);
  letter-spacing: .04em;
}

/* ---------- 10. 五大接口 ---------- */
.iface-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.iface {
  position: relative;
  padding: 26px 18px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.iface::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--grad-main);
  transform: scaleX(0);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.iface:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 232, 176, .32);
  background: var(--surface-2);
}
.iface:hover::after { transform: scaleX(1); }
.iface-letter {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--jade);
  background: var(--grad-soft);
  border: 1px solid rgba(56, 232, 176, .24);
}
.iface h3 { font-size: .95rem; letter-spacing: .02em; margin-bottom: 8px; }
.iface p { font-size: .82rem; color: var(--txt-soft); line-height: 1.66; }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-strip > div {
  padding: 18px 20px;
  background: rgba(10, 14, 23, .9);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feature-strip b { font-size: .9rem; }
.feature-strip span { font-size: .76rem; color: var(--txt-dim); }

/* ---------- 11. 代码示例区 ---------- */
.code-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.code-panel-title {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-dim);
  margin-bottom: 12px;
  padding-left: 2px;
}

/* ---------- 12. 快速开始 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, .035), transparent 60%), var(--surface);
  transition: transform .3s ease, border-color .3s ease;
}
.steps li:hover { transform: translateY(-4px); border-color: rgba(77, 157, 255, .3); }
.step-no {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.steps h3 { font-size: .98rem; margin-bottom: 8px; }
.steps p { font-size: .85rem; color: var(--txt-soft); }

.start-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 40px;
  padding: 34px 32px;
  border-radius: var(--radius-l);
  border: 1px solid rgba(56, 232, 176, .2);
  background:
    radial-gradient(560px 220px at 8% 0%, rgba(56, 232, 176, .13), transparent 68%),
    radial-gradient(560px 220px at 92% 100%, rgba(77, 157, 255, .12), transparent 68%),
    var(--surface);
}
.start-cta h3 { font-size: clamp(1.12rem, 2.4vw, 1.4rem); margin-bottom: 8px; }
.start-cta p { color: var(--txt-soft); font-size: .9rem; max-width: 520px; }
.start-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 13. 版权声明 ---------- */
.statement { padding-top: 0; }
.statement-box {
  padding: 40px 36px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
}
.statement-box h2 { font-size: 1.2rem; margin-bottom: 18px; }
.statement-box ol { display: grid; gap: 12px; counter-reset: stmt; }
.statement-box li {
  counter-increment: stmt;
  position: relative;
  padding-left: 38px;
  color: var(--txt-soft);
  font-size: .92rem;
}
.statement-box li::before {
  content: counter(stmt, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2px;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--jade);
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(56, 232, 176, .1);
  border: 1px solid rgba(56, 232, 176, .2);
}
.statement-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  font-size: .8rem;
  color: var(--txt-dim);
  letter-spacing: .03em;
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 56px 0 30px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.footer-brand strong {
  font-size: 1rem;
  letter-spacing: .1em;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-brand p { margin-top: 8px; font-size: .85rem; color: var(--txt-dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { font-size: .86rem; color: var(--txt-soft); transition: color .2s ease; }
.footer-links a:hover { color: var(--jade); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: .78rem;
  color: var(--txt-dim);
  letter-spacing: .02em;
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1080px) {
  .iface-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-burger { display: flex; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }

  .nav-toggle:checked ~ .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(280px, 88vw);
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: rgba(10, 14, 23, .98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .nav a { padding: 11px 14px; }
  .nav-toggle:checked ~ .nav-cta,
  .nav-toggle:checked ~ .nav .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle:checked ~ .nav a::after { display: none; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

  .section { padding: 76px 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-visual { position: static; }
  .cards.three { grid-template-columns: 1fr; }
  .code-tabs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .wrap { padding-inline: 18px; }
  .hero { padding-top: calc(var(--header-h) + 52px); padding-bottom: 68px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 42px; }
  .hero-code-card { margin-top: 44px; }
  .iface-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.four { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 38px; }
  .quote-band { padding: 26px 22px; }
  .start-cta { padding: 26px 22px; }
  .statement-box { padding: 28px 22px; }
  .footer-inner, .footer-bottom { flex-direction: column; align-items: flex-start; }
  pre.code { font-size: .78rem; padding: 18px 16px; }
  .oid-row { grid-template-columns: 1fr 1fr; }
  .oid-row span:last-child { grid-column: 1 / -1; color: var(--txt-dim); font-size: .8rem; }
}

@media (max-width: 420px) {
  .iface-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .start-actions { width: 100%; }
  .start-actions .btn { flex: 1 1 100%; }
}

/* ---------- 16. 动效与无障碍偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
  border-radius: 6px;
}

@media print {
  body::before, .hero-glow, .site-header, .nav-burger { display: none !important; }
  body { background: #fff; color: #111; }
  .card, .section-alt, .code-window, .statement-box { border-color: #ddd; background: #fff; }
}
/* ============================================================
   OIOIC 移动端布局修复（2026-10-20）
   问题：代码块横向撑破卡片，整页出现横向滚动，卡片被挤变形。
   原因：grid/flex 子项默认 min-width:auto，长代码会把它撑开，
         outer overflow:hidden 又把 pre 的滚动条切掉。
   修法：所有可能含长内容的 grid/flex 子项统一 min-width:0，
         让滚动发生在 pre.code 内部而不是整个页面。
   ============================================================ */

/* 1) 关键：grid / flex 子项允许收缩 */
.code-tabs > *,
.code-tabs > * > *,
.steps > li,
.cards > article,
.cards > .card,
.iface-grid > *,
.feature-strip > div,
.section-head,
.wrap > * {
  min-width: 0;
}

/* 2) 代码窗口：自己负责裁剪直角，滚动交给 pre */
.code-window {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* 3) pre 独占可滚动区，且不撑父元素 */
pre.code {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  /* 移动端惯性滚动 */
  -webkit-overflow-scrolling: touch;
}

/* 4) 代码行内的超长标识符强制不换行，靠 pre 滚动查看 */
pre.code code {
  display: block;
  white-space: pre;
  min-width: max-content;
}

/* 5) 行内 code 也不要撑破正文 */
p code,
li code,
td code,
.step p code,
.card p code {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 6) 页面根级兜底，杜绝整页横向滚动 */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* 7) 长英文单词 / 长路径不撑破容器 */
.wrap,
.section,
.section-head,
.card,
.steps li,
.iface,
.statement-box,
.footer-inner {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* 8) 移动端：代码字号与内边距进一步收窄，减少横向溢出概率 */
@media (max-width: 720px) {
  .code-tabs {
    grid-template-columns: minmax(0, 1fr);
  }
  pre.code {
    padding: 16px 14px;
    font-size: .74rem;
    line-height: 1.78;
  }
  .code-bar {
    padding: 9px 12px;
    gap: 10px;
  }
  .code-file {
    font-size: .7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .cards.four {
    grid-template-columns: minmax(0, 1fr);
  }
  .iface-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 9) 极窄屏：接口网格单列 */
@media (max-width: 420px) {
  .iface-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  pre.code {
    font-size: .7rem;
    padding: 14px 12px;
  }
}