:root {
  --signal-ink: #0b1117;
  --relay-panel: #111a20;
  --relay-panel-2: #172229;
  --circuit-lime: #b8f36a;
  --aqua-trace: #6ce0c2;
  --mist-paper: #f0f3ea;
  --slate-text: #24302d;
  --error-coral: #f16f64;
  --warning: #f0b85c;
  --ink: #17211e;
  --muted: #63716c;
  --page: #f0f3ea;
  --panel: #f9faf5;
  --panel-alt: #e7ece1;
  --line: #cfd7cc;
  --line-strong: #9baaa1;
  --accent: #347f68;
  --accent-strong: #22634f;
  --data-accent: #176b58;
  --button-text: #092019;
  --shadow: 0 18px 50px rgba(17, 29, 24, .09);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1240px;
  --font-display: Bahnschrift, "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-data: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f1f5ee;
    --muted: #8fa099;
    --page: var(--signal-ink);
    --panel: var(--relay-panel);
    --panel-alt: var(--relay-panel-2);
    --line: rgba(194, 226, 202, .14);
    --line-strong: rgba(194, 226, 202, .32);
    --accent: var(--circuit-lime);
    --accent-strong: #d1ff93;
    --data-accent: var(--aqua-trace);
    --button-text: #13200f;
    --shadow: none;
  }
}

:root[data-theme="dark"] {
  --ink: #f1f5ee;
  --muted: #8fa099;
  --page: var(--signal-ink);
  --panel: var(--relay-panel);
  --panel-alt: var(--relay-panel-2);
  --line: rgba(194, 226, 202, .14);
  --line-strong: rgba(194, 226, 202, .32);
  --accent: var(--circuit-lime);
  --accent-strong: #d1ff93;
  --data-accent: var(--aqua-trace);
  --button-text: #13200f;
  --shadow: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--page);
  background-size: 48px 48px, 48px 48px, auto;
  font: 16px/1.65 var(--font-body);
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--aqua-trace); outline-offset: 3px; }
code, pre { font-family: var(--font-data); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 10px 14px; background: var(--accent); color: var(--button-text);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 50; min-height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: auto; padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font-size: 20px; letter-spacing: .12em; text-transform: uppercase; }
.brand small { margin-top: 4px; color: var(--muted); font: 10px/1.2 var(--font-data); letter-spacing: .16em; text-transform: uppercase; }
.brand-mark { position: relative; display: inline-block; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 7px; }
.brand-mark i { position: absolute; width: 7px; height: 7px; border: 2px solid var(--accent); border-radius: 2px; }
.brand-mark i:nth-child(1) { left: 5px; top: 5px; }
.brand-mark i:nth-child(2) { right: 5px; top: 5px; }
.brand-mark i:nth-child(3) { left: 50%; bottom: 4px; transform: translateX(-50%); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; height: 1px; top: 10px; width: 8px; background: var(--accent); }
.brand-mark::before { left: 10px; transform: rotate(40deg); }
.brand-mark::after { right: 10px; transform: rotate(-40deg); }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav > a, .site-nav .text-button {
  display: inline-flex; min-height: 42px; align-items: center; padding: 0 12px;
  border: 0; background: transparent; color: var(--muted); font-size: 14px;
}
.site-nav > a:hover, .site-nav .text-button:hover { color: var(--ink); }
.site-nav form { display: inline-flex; }
.theme-toggle {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: 70px; height: 36px;
  margin-left: 6px; padding: 3px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel); color: var(--muted);
}
.theme-toggle span { display: grid; place-items: center; height: 28px; border-radius: 6px; }
:root[data-theme="dark"] .theme-moon,
:root:not([data-theme="light"]) .theme-moon { background: var(--panel-alt); color: var(--accent); }
:root[data-theme="light"] .theme-sun { background: var(--panel-alt); color: var(--accent); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-moon { background: transparent; color: var(--muted); }
  :root:not([data-theme="dark"]) .theme-sun { background: var(--panel-alt); color: var(--accent); }
}
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 1px; margin: 4px auto; background: var(--ink); }

main { min-height: 70vh; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  color: var(--accent); font: 11px/1.3 var(--font-data); letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.025em; }
h1 { font-size: clamp(48px, 7.2vw, 96px); line-height: .96; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; }
h3 { font-size: 20px; }
em { color: var(--accent); font-style: normal; }
@media (min-width: 768px) {
  .hero-copy h1 em { white-space: nowrap; }
}
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px;
  padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 9px;
  color: var(--ink); background: var(--panel); font-weight: 600;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--accent); }
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--button-text); }
.button-primary:hover { background: var(--accent-strong); }
.button-ghost { background: transparent; }
.button-small { min-height: 38px; padding: 0 14px; font-size: 13px; }
.button-large { min-height: 62px; padding: 0 28px; }
.button-full { width: 100%; }
.text-link { color: var(--accent); border-bottom: 1px solid currentColor; }
.text-button { padding: 0; border: 0; background: none; color: inherit; }
.text-button.danger { color: var(--error-coral); }

.hero { max-width: var(--max); margin: auto; padding: 74px 24px 86px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: clamp(38px, 6vw, 92px); align-items: center; }
.hero-copy h1 { max-width: 820px; margin-bottom: 26px; }
.hero-lede { max-width: 690px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.hero-proof strong { color: var(--ink); font-family: var(--font-data); }
.relay-stage {
  position: relative; min-height: 520px; padding: 22px;
  overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: var(--shadow);
}
.relay-stage::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 52%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 32%);
  pointer-events: none;
}
.relay-label, .section-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font: 10px/1.2 var(--font-data); letter-spacing: .13em; }
.live-dot { color: var(--accent); }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
.relay-nodes { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 8px; margin-top: 54px; }
.relay-node {
  display: grid; place-items: center; width: 54px; aspect-ratio: 1; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--panel-alt); color: var(--ink); font: 600 13px/1 var(--font-display);
}
.relay-lines { position: absolute; left: 48px; right: 48px; top: 120px; height: 160px; }
.relay-lines i { position: absolute; top: 0; width: 1px; height: 145px; background: linear-gradient(var(--line-strong), var(--accent)); transform-origin: top; }
.relay-lines i:nth-child(1) { left: 0; transform: rotate(-34deg); }
.relay-lines i:nth-child(2) { left: 25%; transform: rotate(-17deg); }
.relay-lines i:nth-child(3) { left: 50%; }
.relay-lines i:nth-child(4) { right: 25%; transform: rotate(17deg); }
.relay-lines i:nth-child(5) { right: 0; transform: rotate(34deg); }
.relay-lines b { position: absolute; left: 50%; top: 38px; width: 9px; height: 9px; border-radius: 2px; background: var(--circuit-lime); box-shadow: 0 0 0 7px color-mix(in srgb, var(--circuit-lime) 16%, transparent); animation: relayPulse 3.8s ease-in-out infinite; }
.relay-core {
  position: relative; z-index: 3; width: 72%; margin: 38px auto 0; padding: 24px;
  border: 1px solid var(--accent); border-radius: 12px; background: var(--signal-ink); color: #eff8e9;
}
.relay-core span, .relay-core small { display: block; color: #8eaa9d; font: 10px/1.4 var(--font-data); letter-spacing: .12em; }
.relay-core strong { display: block; margin: 8px 0; font: 600 24px/1.2 var(--font-data); }
.relay-output { position: relative; z-index: 2; margin-top: 30px; padding: 15px; border-left: 3px solid var(--aqua-trace); background: var(--panel-alt); }
.relay-output span { display: block; color: var(--muted); font: 10px/1.4 var(--font-data); }
.relay-output code { display: block; margin-top: 6px; overflow-wrap: anywhere; color: var(--data-accent); font-size: 12px; }

.provider-band { max-width: var(--max); margin: 0 auto 80px; padding: 0 24px; }
.section-label { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.provider-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin-top: 20px; border: 1px solid var(--line); }
.provider-cell { display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 16px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 72%, transparent); }
.provider-cell:last-child { border-right: 0; }
.provider-cell strong, .provider-cell small { display: block; }
.provider-cell strong { font-size: 14px; }
.provider-cell small { color: var(--muted); font-size: 11px; }
.provider-mark {
  display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel-alt);
  color: var(--ink); font: 700 12px/1 var(--font-display);
}
.provider-qq { color: #2b9ee8; }
.provider-alipay { color: #3d8ee8; }
.provider-qq { color: #2b9ee8; }
.provider-github { color: var(--ink); }
.provider-douyin { color: #e76488; }
.provider-wechat { color: #42b974; }
.provider-huawei { color: #e44747; }
.provider-gitee { color: #dc3444; }
.provider-baidu { color: #3867e8; }

.flow-section, .capability-section, .cta-section { max-width: var(--max); margin: 0 auto; padding: 82px 24px; border-top: 1px solid var(--line); }
.flow-section { display: grid; grid-template-columns: .85fr 1.4fr; gap: 72px; }
.flow-cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.flow-card { position: relative; padding: 26px; background: var(--panel); }
.flow-index { color: var(--accent); font: 11px/1 var(--font-data); }
.flow-card h3 { margin: 22px 0 10px; }
.flow-card p { color: var(--muted); }
.flow-card code, .status-line { display: inline-block; margin-top: 8px; color: var(--aqua-trace); font-size: 12px; }
.status-line i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--accent); }

.capability-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.capability-copy p { max-width: 560px; color: var(--muted); font-size: 17px; }
.capability-list { border-top: 1px solid var(--line-strong); }
.capability-list > div { display: grid; grid-template-columns: 42px minmax(140px, .55fr) 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.capability-list span { color: var(--accent); font: 11px/1.5 var(--font-data); }
.capability-list strong { font-family: var(--font-display); }
.capability-list p { color: var(--muted); margin: 0; }

.cta-section { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.cta-section h2 { margin: 0; }
.site-footer { display: flex; justify-content: space-between; gap: 30px; max-width: var(--max); margin: auto; padding: 40px 24px 54px; border-top: 1px solid var(--line); color: var(--muted); }
.brand-footer { color: var(--ink); }
.site-footer p { margin: 12px 0 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 10px 20px; font-size: 13px; }

.flash {
  position: fixed; z-index: 80; right: 20px; top: 88px; display: flex; align-items: flex-start; gap: 20px;
  max-width: min(440px, calc(100vw - 40px)); padding: 16px 18px; border: 1px solid var(--line-strong);
  border-radius: 9px; background: var(--panel); box-shadow: var(--shadow);
}
.flash-error { border-left: 4px solid var(--error-coral); }
.flash-success { border-left: 4px solid var(--accent); }
.flash-close { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; }

.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); min-height: calc(100vh - 72px); max-width: var(--max); margin: auto; padding: 60px 24px; gap: 80px; align-items: center; }
.auth-aside h1 { font-size: clamp(44px, 5.4vw, 78px); }
.auth-aside p { max-width: 520px; color: var(--muted); font-size: 18px; }
.auth-panel { padding: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.auth-panel h2 { margin-bottom: 6px; font-size: 34px; }
.auth-panel > p { color: var(--muted); }
.auth-panel a { color: var(--accent); }
.panel-kicker { color: var(--accent) !important; font: 10px/1.4 var(--font-data); letter-spacing: .14em; }
.form-stack { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
label small { color: var(--muted); font-size: 12px; font-weight: 400; }
.field { display: grid; gap: 8px; }
.field > label { display: block; }
.field > small { color: var(--muted); font-size: 12px; font-weight: 400; }
input, textarea, select {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--page); color: var(--ink); font-weight: 400;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 62px; }
.password-toggle { position: absolute; right: 5px; top: 5px; min-width: 52px; height: 38px; border: 0; border-left: 1px solid var(--line); background: none; color: var(--muted); }
.auth-signal { position: relative; width: 260px; height: 120px; margin-top: 50px; }
.auth-signal i { position: absolute; top: 18px; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel-alt); }
.auth-signal i:nth-child(1) { left: 0; }
.auth-signal i:nth-child(2) { left: 62px; top: 55px; }
.auth-signal i:nth-child(3) { left: 124px; top: 8px; }
.auth-signal b { position: absolute; left: 190px; top: 44px; width: 52px; height: 30px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.auth-signal::before, .auth-signal::after { content: ""; position: absolute; left: 40px; top: 39px; width: 164px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); transform: rotate(13deg); }

.console-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); max-width: 1480px; min-height: calc(100vh - 72px); margin: auto; }
.console-rail { position: sticky; top: 72px; align-self: start; min-height: calc(100vh - 72px); padding: 30px 20px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 58%, transparent); }
.rail-label { margin: 0 12px 18px; color: var(--muted); font: 10px/1 var(--font-data); letter-spacing: .14em; }
.console-rail > a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 7px; color: var(--muted); }
.console-rail > a span { width: 20px; color: var(--accent); text-align: center; }
.console-rail > a:hover, .console-rail > a.active { background: var(--panel-alt); color: var(--ink); }
.rail-meta { display: grid; gap: 4px; margin: 40px 12px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.rail-meta span { color: var(--accent); font: 9px/1.3 var(--font-data); letter-spacing: .14em; }
.rail-meta strong { font-family: var(--font-display); }
.rail-meta small { color: var(--muted); overflow-wrap: anywhere; }
.console-main { width: 100%; min-width: 0; padding: 46px clamp(24px, 4vw, 62px) 80px; }
.console-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 36px; }
.console-head h1 { margin-bottom: 10px; font-size: clamp(38px, 5vw, 62px); }
.console-head p { color: var(--muted); }
.back-link { display: block; margin-bottom: 22px; color: var(--muted) !important; font-size: 13px; }
.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.metric-strip article { min-height: 150px; padding: 24px; background: var(--panel); }
.metric-strip span, .metric-strip small { display: block; color: var(--muted); }
.metric-strip strong { display: block; margin: 12px 0; font: 600 clamp(34px, 4vw, 54px)/1 var(--font-display); }
.metric-strip small { font: 9px/1.3 var(--font-data); letter-spacing: .12em; }
.console-section { margin-top: 34px; padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.section-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section-row h2 { margin: 0; font-size: 30px; }
.section-row > a { color: var(--accent); font-size: 13px; }
.console-note { margin-top: 34px; padding: 24px 28px; border-left: 3px solid var(--accent); background: var(--panel-alt); }
.console-note p { margin: 0 0 10px; }
.console-note a { color: var(--accent); font-size: 13px; }
.app-list { border-top: 1px solid var(--line); }
.app-row { display: grid; grid-template-columns: 48px minmax(200px, 1fr) auto auto 20px; align-items: center; gap: 18px; min-height: 82px; border-bottom: 1px solid var(--line); }
.app-row:hover { background: var(--panel-alt); }
.app-row strong, .app-row small { display: block; }
.app-row small { color: var(--muted); font-family: var(--font-data); }
.app-avatar { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--page); color: var(--accent); font: 700 16px/1 var(--font-display); }
.app-count { color: var(--muted); font-size: 13px; }
.status-badge { display: inline-flex; width: fit-content; min-height: 26px; align-items: center; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font: 10px/1 var(--font-data); }
.status-active { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); color: var(--accent); }
.status-suspended { border-color: color-mix(in srgb, var(--error-coral) 60%, var(--line)); color: var(--error-coral); }
.empty-state { display: grid; justify-items: start; min-height: 280px; place-content: center; padding: 34px; border: 1px dashed var(--line-strong); background: color-mix(in srgb, var(--panel-alt) 50%, transparent); }
.empty-state.small { min-height: 120px; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; }
.empty-state p { max-width: 520px; color: var(--muted); }
.empty-signal { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border: 1px solid var(--accent); border-radius: 10px; color: var(--accent); font-size: 26px; }
.app-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.app-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.app-card-top, .app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-card h2 { margin: 24px 0 8px; font-size: 28px; }
.app-card p { min-height: 52px; color: var(--muted); }
.app-card code { display: block; padding: 10px; background: var(--page); color: var(--data-accent); overflow-wrap: anywhere; }
.app-card-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.app-card-foot a { color: var(--accent); }
.panel-form { max-width: 820px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.account-summary { max-width: 820px; margin-bottom: 18px; padding: 22px; border-left: 3px solid var(--accent); background: var(--panel); }
.account-summary span, .account-summary small { display: block; color: var(--muted); }
.account-summary strong { display: block; margin: 6px 0; font: 600 22px/1.3 var(--font-data); overflow-wrap: anywhere; }
.account-password-form { display: grid; gap: 10px; }
.metric-text { font-size: clamp(24px, 3vw, 38px) !important; font-family: var(--font-data) !important; overflow-wrap: anywhere; }
.profile-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); }
.profile-list div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-list dt { color: var(--muted); font-size: 12px; }
.profile-list dd { margin: 7px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.auth-divider { position: relative; margin: 26px 0 16px; text-align: center; color: var(--muted); font-size: 12px; }
.auth-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.auth-divider span { position: relative; padding: 0 10px; background: var(--panel); }
.social-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.social-options form { margin: 0; }
.social-options button { display: flex; width: 100%; min-height: 48px; align-items: center; gap: 9px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); color: var(--ink); }
.social-options .provider-mark { flex-basis: 32px; width: 32px; height: 32px; }
.mall-login { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.mall-login summary { color: var(--accent); cursor: pointer; }
.mall-login .form-stack { margin-top: 16px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.code-row button { flex: 0 0 auto; min-height: 48px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel-alt); color: var(--ink); font-weight: 600; }
.panel-form > label, .panel-form fieldset { margin-bottom: 24px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.provider-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.provider-picker legend { padding: 0 8px; font-family: var(--font-display); font-weight: 600; }
.provider-option { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); font-weight: 500; }
.provider-option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--page)); }
.provider-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.provider-option strong, .provider-option small { display: block; }
.provider-option small { color: var(--muted); font-size: 11px; }
.secret-reveal { margin-bottom: 24px; padding: 26px; border: 1px solid var(--warning); background: color-mix(in srgb, var(--warning) 11%, var(--panel)); }
.secret-warning { color: var(--warning); font: 10px/1.3 var(--font-data); letter-spacing: .12em; }
.secret-reveal h2 { margin: 10px 0; font-size: 30px; }
.secret-reveal p { color: var(--muted); }
.copy-field { display: flex; gap: 8px; align-items: stretch; }
.copy-field code { flex: 1; min-width: 0; padding: 14px; border: 1px solid var(--line-strong); background: var(--signal-ink); color: var(--circuit-lime); overflow-wrap: anywhere; }
.copy-field button { min-width: 92px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--panel); color: var(--ink); }
.copy-field form { display: flex; }
.copy-field.compact button { min-width: 64px; }
.credential-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.credential-grid article { padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.credential-grid article > span { display: block; margin-bottom: 10px; color: var(--muted); font: 10px/1.3 var(--font-data); letter-spacing: .12em; }
.section-help { color: var(--muted); font-size: 13px; }
.callback-list { display: grid; gap: 8px; margin-bottom: 14px; }
.callback-list > div { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); background: var(--page); }
.callback-list code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--data-accent); }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; }
.console-provider-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.console-provider-form > label:not(.provider-option) { grid-column: 1 / -1; }
.console-provider-form > button { align-self: end; }
.event-table { border-top: 1px solid var(--line); }
.event-table > div { display: grid; grid-template-columns: 110px 150px minmax(180px, 1fr) 170px; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: 13px; }
.event-head { color: var(--muted); font: 10px/1.3 var(--font-data); letter-spacing: .1em; }
.event-table code, .event-table time { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font: 10px/1.3 var(--font-data); letter-spacing: .1em; }
.data-table td small { display: block; color: var(--muted); }

.docs-hero { max-width: var(--max); margin: auto; padding: 76px 24px 54px; border-bottom: 1px solid var(--line); }
.docs-hero h1 { max-width: 960px; }
.docs-hero > p { max-width: 760px; color: var(--muted); font-size: 19px; }
.docs-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 13px; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 70px; max-width: var(--max); margin: auto; padding: 0 24px 90px; }
.docs-toc { position: sticky; top: 100px; align-self: start; padding-top: 34px; }
.docs-toc a { display: block; padding: 8px 0; color: var(--muted); font-size: 14px; }
.docs-toc a:hover { color: var(--accent); }
.docs-content > section { padding: 54px 0; border-bottom: 1px solid var(--line); }
.docs-content h2 { margin-bottom: 20px; font-size: 38px; }
.docs-content p, .docs-content li { color: var(--muted); }
.step-list { display: grid; gap: 1px; margin: 28px 0; padding: 0; border: 1px solid var(--line); background: var(--line); list-style: none; }
.step-list li { display: flex; gap: 16px; padding: 18px; background: var(--panel); }
.step-list li > span { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-data); }
.step-list strong { color: var(--ink); }
.step-list p { margin: 4px 0 0; }
.docs-content pre { max-width: 100%; overflow: auto; padding: 20px; border: 1px solid var(--line); background: var(--signal-ink); color: #ddebd8; }
.docs-content code { color: var(--data-accent); }
.provider-reference { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 20px 0; }
.provider-reference button { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); text-align: left; }
.provider-reference code { margin-left: auto; color: var(--muted); }
.callout { padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--panel-alt); }
.docs-checks p { display: flex; gap: 10px; margin: 10px 0; }
.docs-checks span { color: var(--accent); }

.wechat-flow { display: grid; grid-template-columns: 1fr minmax(300px, 430px); gap: 70px; min-height: calc(100vh - 72px); max-width: 980px; margin: auto; padding: 70px 24px; align-items: center; }
.wechat-copy h1, .complete-page h1, .error-page h1 { font-size: clamp(46px, 6vw, 76px); }
.wechat-copy > p { max-width: 550px; color: var(--muted); font-size: 18px; }
.wechat-code { display: inline-flex; gap: 10px; align-items: baseline; margin: 18px 0; padding: 12px 16px; border: 1px solid var(--line); background: var(--panel); }
.wechat-code strong { color: var(--accent); font: 600 22px/1 var(--font-data); letter-spacing: .12em; }
.wechat-qr-panel { display: grid; justify-items: center; gap: 16px; padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.wechat-qr-panel img { width: min(100%, 300px); height: auto; padding: 10px; background: white; image-rendering: auto; }
.wechat-qr-panel span { color: var(--muted); font-size: 12px; }
.qr-fallback { display: grid; place-items: center; width: 260px; height: 260px; border: 1px dashed var(--line-strong); text-align: center; }
.hint { color: var(--accent) !important; font-family: var(--font-data); font-size: 13px !important; }
.complete-page, .error-page { display: grid; justify-items: center; align-content: center; min-height: calc(100vh - 210px); padding: 60px 24px; text-align: center; }
.complete-page p, .error-page p { max-width: 640px; color: var(--muted); }
.complete-signal { position: relative; width: 180px; height: 90px; margin-bottom: 30px; }
.complete-signal i { position: absolute; top: 20px; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; }
.complete-signal i:first-child { left: 0; }
.complete-signal i:nth-child(2) { right: 0; }
.complete-signal b { position: absolute; left: 52px; top: 40px; width: 76px; height: 1px; background: var(--accent); animation: completeLine 1.4s ease-in-out infinite; }
.request-id { font-size: 13px; }

@keyframes relayPulse {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(70px); opacity: 1; }
}
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
@keyframes completeLine { 0%, 100% { transform: scaleX(.2); opacity: .4; } 50% { transform: scaleX(1); opacity: 1; } }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { animation: reveal .55s ease-out both; }
.reveal:nth-child(2) { animation-delay: .12s; }

@media (max-width: 1099px) {
  .hero-grid { grid-template-columns: 1fr; }
  .relay-stage { max-width: 680px; }
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
  .provider-cell:nth-child(4) { border-right: 0; }
  .flow-section, .capability-section { grid-template-columns: 1fr; gap: 44px; }
  .app-card-grid { grid-template-columns: 1fr; }
  .console-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .docs-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 767px) {
  body { background-size: 32px 32px, 32px 32px, auto; }
  .site-header { min-height: 64px; padding: 0 16px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 64px 12px auto; display: none; padding: 14px;
    border: 1px solid var(--line-strong); border-radius: 10px;
    background: var(--panel); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: grid; }
  .site-nav > a, .site-nav .text-button { min-height: 48px; padding: 0 10px; border-bottom: 1px solid var(--line); }
  .site-nav form { display: block; }
  .site-nav .text-button { width: 100%; text-align: left; }
  .theme-toggle { margin: 8px 0 0; }
  .hero, .flow-section, .capability-section, .cta-section, .provider-band { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 48px; }
  h1 { font-size: clamp(44px, 14vw, 66px); }
  .hero-proof { display: grid; }
  .relay-stage { min-height: 480px; padding: 16px; }
  .relay-node { width: 46px; }
  .relay-core { width: 88%; }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .provider-cell { border-bottom: 1px solid var(--line); }
  .provider-cell:nth-child(2n) { border-right: 0; }
  .capability-list > div { grid-template-columns: 32px 1fr; }
  .capability-list p { grid-column: 2; }
  .cta-section, .site-footer { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .auth-layout { grid-template-columns: 1fr; gap: 38px; padding: 40px 16px; }
  .auth-aside { display: none; }
  .auth-panel { padding: 24px 18px; }
  .console-layout { display: block; }
  .console-rail { position: static; min-height: 0; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; gap: 4px; }
  .console-rail .rail-label, .console-rail .rail-meta { display: none; }
  .console-rail > a { flex: 0 0 auto; padding: 0 12px; }
  .console-main { padding: 34px 16px 64px; }
  .console-head { flex-direction: column; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric-strip article { min-height: 110px; }
  .app-row { grid-template-columns: 44px 1fr 20px; padding: 14px 0; }
  .app-row .app-count, .app-row .status-badge { display: none; }
  .console-section { padding: 18px; }
  .section-row { align-items: flex-start; }
  .provider-picker, .console-provider-form { grid-template-columns: 1fr 1fr; }
  .console-provider-form > label:not(.provider-option) { grid-column: 1 / -1; }
  .credential-grid { grid-template-columns: 1fr; }
  .inline-form, .callback-list > div { flex-direction: column; align-items: stretch; }
  .event-table > div { grid-template-columns: 1fr 1fr; }
  .event-head { display: none; }
  .event-table code { grid-column: 1 / -1; }
  .docs-hero { padding: 52px 16px 40px; }
  .docs-layout { display: block; padding: 0 16px 66px; }
  .docs-toc { position: static; display: flex; overflow-x: auto; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .docs-toc .rail-label { display: none; }
  .docs-toc a { flex: 0 0 auto; padding: 8px 12px; }
  .docs-content h2 { font-size: 32px; }
  .provider-reference { grid-template-columns: 1fr; }
  .wechat-flow { grid-template-columns: 1fr; gap: 38px; padding: 44px 16px; }
  .wechat-qr-panel { order: -1; max-width: 360px; width: 100%; }
  .flash { right: 12px; top: 76px; }
  .profile-list, .social-options { grid-template-columns: 1fr; }
}

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