/* AIRelayZone 静态页样式。颜色全部来自 logo.svg：
   底色 #142B56 → #0A1A39 → #061127，外圈光晕 #3E68B0，S 标志渐变 #79F4BD → #39D9E7 → #3875F6，描边 #A5BFFF。 */
:root {
  --navy-950: #061127;
  --navy-900: #0A1A39;
  --navy-800: #142B56;
  --glow: #3E68B0;
  --mint: #79F4BD;
  --cyan: #39D9E7;
  --blue: #3875F6;
  --periwinkle: #A5BFFF;
  --brand: linear-gradient(135deg, var(--mint) 0%, var(--cyan) 48%, var(--blue) 100%);
  --hero: radial-gradient(120% 90% at 18% 0%, rgba(62, 104, 176, .45) 0%, rgba(62, 104, 176, 0) 60%),
          linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 52%, var(--navy-950) 100%);
  --bg: #F4F7FD;
  --surface: #FFFFFF;
  --text: #0A1A39;
  --muted: #4B5A7A;
  --line: #DCE4F3;
  --link: #2F66E0;
  --code-bg: #0A1A39;
  --code-text: #DDE7FF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(6, 17, 39, .06), 0 8px 24px rgba(6, 17, 39, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #061127;
    --surface: #0B1C3D;
    --text: #E6EDFF;
    --muted: #9EADCC;
    --line: #1D335F;
    --link: #8FB2FF;
    --code-bg: #040C1D;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { background: var(--navy-950); border-bottom: 1px solid rgba(165, 191, 255, .12); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 20px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a, .nav span { color: #C9D6F5; font-size: 15px; white-space: nowrap; }
.nav span { opacity: .5; cursor: default; }
.nav a:hover, .nav a.on { color: #fff; text-decoration: none; }
.nav a.on { box-shadow: inset 0 -2px 0 var(--cyan); padding-bottom: 2px; }
.head-actions { display: flex; gap: 10px; align-items: center; }
.head-actions .login { color: #C9D6F5; font-size: 15px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-primary { background: var(--brand); color: var(--navy-950); }
.btn-ghost { border: 1px solid rgba(165, 191, 255, .45); color: #E6EDFF; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* hero: the logo's navy background with its blue glow */
.hero { background: var(--hero); color: #EAF0FF; padding: 40px 0 56px; }
.crumbs { font-size: 13px; color: #9EB2DA; margin-bottom: 14px; }
.crumbs a { color: #C9D6F5; }
.hero h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.25; margin: 0 0 12px; letter-spacing: .3px; }
.hero h1 .grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: #C9D6F5; max-width: 760px; margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.badges li { font-size: 13px; color: var(--periwinkle); border: 1px solid rgba(165, 191, 255, .35); border-radius: 999px; padding: 2px 12px; }

/* cards */
.card { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero .card { border-color: rgba(165, 191, 255, .18); }
.price-card { padding: 6px 0 0; overflow: hidden; }
.price-card .cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 11px 20px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { font-size: 13px; font-weight: 600; color: var(--muted); background: transparent; }
thead th .tier { display: block; color: var(--text); font-size: 15px; word-break: keep-all; }
tbody tr:last-child td { border-bottom: none; }
td.num { font-variant-numeric: tabular-nums; }
td.na { color: var(--muted); text-align: center; }
td .new { font-size: 11px; font-weight: 700; color: var(--navy-950); background: var(--brand); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }

/* api base + code */
.api-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.api-row .label { font-size: 14px; color: #9EB2DA; }
.code { position: relative; background: var(--code-bg); color: var(--code-text); border-radius: 12px; border: 1px solid rgba(165, 191, 255, .15); font: 14px/1.65 "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.code.inline { display: inline-flex; align-items: center; }
.code.inline pre { padding: 8px 14px; }
.copy { position: absolute; top: 8px; right: 8px; border: 1px solid rgba(165, 191, 255, .35); background: rgba(10, 26, 57, .85); color: #DDE7FF; border-radius: 8px; font-size: 12px; padding: 3px 10px; cursor: pointer; }
.code.inline .copy { position: static; margin-right: 8px; }
.copy.done { color: var(--mint); border-color: var(--mint); }

/* content */
main { padding: 8px 0 64px; }
section.block { margin-top: 48px; }
section.block > h2 { font-size: 24px; line-height: 1.4; margin: 0 0 14px; padding-left: 14px; position: relative; }
section.block > h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: var(--brand); }
h3 { font-size: 18px; margin: 22px 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pad { padding: 20px 22px; }
.tier-card h3 { margin-top: 0; }
.tier-card .who { font-size: 14px; color: var(--muted); margin: 0; }
.step { padding: 20px 22px; }
.step .no { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: var(--navy-950); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.step h3 { margin: 0 0 6px; }
ul.check { padding-left: 0; list-style: none; margin: 0; }
ul.check li { padding-left: 26px; position: relative; margin-bottom: 10px; }
ul.check li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--periwinkle); padding: 6px 12px; margin: 12px 0; }
.pay { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pay li { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 16px; font-weight: 600; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 12px 28px 12px 0; position: relative; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 20px; color: var(--muted); }
details[open] summary::after { content: "−"; }
details > div { padding: 0 0 12px; color: var(--muted); }

/* final cta */
.cta { margin-top: 56px; background: var(--hero); color: #EAF0FF; border-radius: 18px; padding: 32px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta .cta-title { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: #fff; }
.cta p { margin: 0; color: #C9D6F5; }

/* footer */
.site-footer { background: var(--navy-950); color: #9EB2DA; padding: 40px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.foot-grid .foot-h { color: #E6EDFF; font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-grid a { color: #9EB2DA; }
.foot-grid a:hover { color: #fff; }
.foot-grid span { color: #5E709A; }
.foot-bottom { border-top: 1px solid rgba(165, 191, 255, .12); margin-top: 28px; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-actions .login { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  /* two rows on phones: logo and sign-up first, the scrollable nav underneath */
  .site-header .wrap { flex-wrap: wrap; height: auto; gap: 6px 12px; padding-top: 10px; }
  .head-actions { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; gap: 18px; padding: 0 0 10px; }
  .hero { padding: 28px 0 40px; }
  th, td { padding: 10px; font-size: 14px; }
  thead th, td:first-child { white-space: normal; }
  thead th .tier { font-size: 14px; }
  .price-card .cap { padding: 10px; }
  section.block { margin-top: 36px; }
  section.block > h2 { font-size: 21px; }
}
