/* 智序API — dark + RunningHub lime, with motion */
:root {
  --bg: #070807;
  --ink: #f4f7ee;
  --muted: rgba(244,247,238,.56);
  --line: rgba(204,255,0,.16);
  --card: #101210;
  --lime: #ccff00;
  --lime-2: #f5ffcd;
  --dark: #0c0d0b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}
a { color: var(--lime); text-decoration: none; }
img { display: block; }
button, select { font-family: inherit; }

#fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.blob {
  position: fixed; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(204,255,0,.16), transparent 68%);
  filter: blur(20px); pointer-events: none; z-index: 0;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
header, main, footer, .announce { position: relative; z-index: 1; }

.announce {
  background: var(--lime); color: #111;
  display: flex; justify-content: center; align-items: center;
  gap: 12px; padding: 8px 40px; font-size: 13px; font-weight: 650;
}
.announce a { color: #111; }
.announce-x {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #333; font-size: 18px; cursor: pointer;
}
.announce.hid { display: none; }

.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 6vw;
  position: sticky; top: 0; z-index: 20;
  background: rgba(7,8,7,.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; letter-spacing: .04em; }
.brand img { border-radius: 6px; box-shadow: 0 0 0 1px rgba(204,255,0,.35); }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.top nav a.on, .top nav a:hover { color: var(--lime); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 4px; padding: 10px 16px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime {
  background: var(--lime); color: #111 !important;
  box-shadow: 0 0 0 1px rgba(204,255,0,.2);
}
.btn-lime:hover { box-shadow: 0 0 24px rgba(204,255,0,.35); background: var(--lime-2); }
.btn-line { background: transparent; border-color: var(--line); color: var(--ink) !important; }
.btn-line:hover { border-color: var(--lime); color: var(--lime) !important; }
.btn-lg { padding: 13px 20px; font-size: 15px; }
.glow { animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204,255,0,.45); }
  50% { box-shadow: 0 0 28px 2px rgba(204,255,0,.28); }
}

.hero {
  text-align: center; padding: 48px 6vw 20px; max-width: 760px; margin: 0 auto;
  position: relative;
}
.gridbg {
  position: absolute; inset: -40px -30vw 10%;
  background-image:
    linear-gradient(rgba(204,255,0,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,255,0,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 72%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(204,255,0,.06);
  font-size: 13px; font-weight: 650; color: var(--lime-2);
}
.eyebrow i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 4px rgba(204,255,0,.18);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }

h1 {
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.25;
  letter-spacing: -.03em; margin: 0 0 12px; font-weight: 650;
}
.reveal {
  display: inline-block;
  animation: up .7s cubic-bezier(.2,.7,.2,1) both;
}
.delay-1 { animation-delay: .05s; }
.delay-2 { animation-delay: .18s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .42s; }
@keyframes up {
  from { opacity: 0; transform: translateY(16px) filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.swap {
  display: inline-block; position: relative; height: 1.2em; min-width: 6.2em;
  overflow: hidden; vertical-align: bottom; margin-left: .12em;
  color: var(--lime);
}
.swap b {
  position: absolute; left: 0; top: 0;
  opacity: 0; transform: translateY(40%);
  font-weight: 650; font-style: normal;
  white-space: nowrap;
}
.swap b.on {
  animation: wordIn .55s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes wordIn {
  to { opacity: 1; transform: none; }
}

.lead {
  color: var(--muted); font-size: 15px; line-height: 1.7;
  max-width: 34em; margin: 0 auto 20px;
}
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.endpoint {
  margin: 22px auto 0; max-width: 520px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  background: rgba(16,18,16,.9); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 8px 8px 12px;
  box-shadow: 0 0 0 1px rgba(204,255,0,.05), 0 20px 60px rgba(0,0,0,.45);
}
.endpoint select {
  border: 0; background: rgba(204,255,0,.1); color: var(--ink);
  border-radius: 4px; padding: 8px 10px; font-size: 13px; font-weight: 650; cursor: pointer;
}
.endpoint code {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 13px; text-align: left; overflow: auto; color: var(--lime-2);
}
.icon-copy, .copyrow button {
  border: 1px solid var(--line); background: transparent; color: var(--lime);
  border-radius: 4px; padding: 7px 10px; cursor: pointer; font-size: 12px; font-weight: 650;
}

.route {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 0; align-items: center;
  max-width: 560px; margin: 28px auto 8px; padding: 0 6vw;
}
.route-col {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
.route-col p {
  margin: 0 0 8px; font-size: 11px; letter-spacing: .14em;
  color: var(--muted); font-weight: 600;
}
.route-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.route-col li {
  background: rgba(204,255,0,.05); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 10px; font-size: 13px; font-weight: 500;
  text-align: left;
}
.route-mid {
  display: flex; align-items: center; justify-content: center; min-width: 88px;
}
.route-mid .rail {
  flex: 1; height: 0; border-top: 1px dashed rgba(204,255,0,.55);
  animation: dash 1.4s linear infinite;
  background: none;
}
@keyframes dash { to { opacity: .4; } }
.route-mid img {
  border-radius: 8px; margin: 0 6px; flex: none;
  box-shadow: 0 0 0 1px rgba(204,255,0,.45), 0 0 16px rgba(204,255,0,.18);
  animation: spinGlow 6s linear infinite;
}
@keyframes spinGlow {
  50% { box-shadow: 0 0 0 1px rgba(204,255,0,.8), 0 0 48px rgba(204,255,0,.4); }
}

.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 0; margin: 32px 0 8px;
}
.marquee-track { display: flex; gap: 28px; width: max-content; animation: slide 28s linear infinite; }
.marquee-track span {
  font-size: 13px; font-weight: 650; color: var(--lime-2);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
}
@keyframes slide { to { transform: translateX(-50%); } }

.sec-head { text-align: center; margin-bottom: 22px; }
.sec-head h2, .faq > h2, .bottom-cta h2, .band h2 {
  font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -.03em; margin: 0 0 8px;
}
.sec-head p { margin: 0; color: var(--muted); }

.pricing, .start { padding: 36px 6vw; max-width: 980px; margin: 0 auto; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
  box-shadow: 0 0 28px rgba(204,255,0,.12);
}
.price-card h3 { margin: 0 0 4px; font-size: 14px; font-weight: 650; }
.price-card .vendor { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.price-card .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.price-card .cols span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.price-card .cols b { font-size: 16px; color: var(--lime); }
.price-card a {
  display: block; text-align: center; border: 1px solid var(--line); border-radius: 4px;
  padding: 8px; font-size: 13px; font-weight: 650; color: var(--ink);
}
.price-card a:hover { background: var(--lime); color: #111; }
.loading, .more { text-align: center; color: var(--muted); }
.more { margin: 18px 0 0; }

.band {
  max-width: 1120px; margin: 0 auto 24px; width: calc(100% - 12vw);
  background: linear-gradient(120deg, rgba(204,255,0,.12), rgba(204,255,0,.02));
  border: 1px solid var(--line);
  border-radius: 12px; padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.band p { color: var(--muted); margin: 6px 0 0; }

.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.tabs button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 650; font-size: 13px;
}
.tabs button.on { background: var(--lime); color: #111; border-color: var(--lime); }
.pane { display: none; max-width: 640px; margin: 0 auto 18px; text-align: left; }
.pane.on { display: block; }
.how { padding-left: 18px; color: var(--muted); line-height: 1.8; }
.how code { color: var(--lime-2); }
.codewin {
  background: #0b0c0a; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.dots { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #333; }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.dots span { margin-left: 8px; font-size: 12px; color: var(--muted); }
pre {
  margin: 0; color: var(--lime-2); padding: 16px;
  overflow: auto; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 13px;
}
.copyrow {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
.copyrow span { color: var(--muted); font-size: 12px; }
.copyrow code { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 13px; overflow: auto; color: var(--lime-2); }
.start .btn { display: flex; width: fit-content; margin: 0 auto; }

.faq { max-width: 720px; margin: 0 auto; padding: 12px 6vw 48px; }
.faq > h2 { text-align: center; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary {
  cursor: pointer; font-weight: 650; list-style: none;
  display: flex; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-weight: 400; font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 8px 0 0; line-height: 1.7; }

.bottom-cta { text-align: center; padding: 12px 6vw 72px; }
.bottom-cta img {
  margin: 0 auto 12px; border-radius: 12px;
  box-shadow: 0 0 30px rgba(204,255,0,.25);
}
.bottom-cta p { color: var(--muted); margin: 0 0 16px; }

footer {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px;
  padding: 28px 6vw 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.foot-brand p { margin: 10px 0 0; }
footer nav { display: grid; gap: 8px; align-content: start; }
footer nav p { margin: 0 0 4px; color: var(--ink); font-weight: 700; }
footer a { color: var(--muted); }
footer a:hover { color: var(--lime); }

@media (max-width: 860px) {
  .price-grid, .route, footer { grid-template-columns: 1fr; }
  .endpoint { grid-template-columns: 1fr auto; }
  .endpoint label { grid-column: 1 / -1; }
  .band { flex-direction: column; align-items: flex-start; width: calc(100% - 10vw); }
  .copyrow { grid-template-columns: 1fr auto; }
  .copyrow span { grid-column: 1 / -1; }
  .swap { min-width: 5.2em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #fx, .blob { display: none; }
}

/* polish: logos, mobile menu, trust, filters */
section[id], .faq { scroll-margin-top: 132px; }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line); background: transparent;
  border-radius: 6px; cursor: pointer; padding: 10px 9px;
  flex-direction: column; justify-content: space-between;
}
.menu-btn span {
  display: block; height: 2px; background: var(--ink); border-radius: 1px;
}
.drawer {
  position: fixed; inset: 0; top: auto;
  z-index: 30;
  background: rgba(7,8,7,.96);
  border-top: 1px solid var(--line);
  padding: 18px 6vw 32px;
  display: grid; gap: 14px;
}
.drawer[hidden] { display: none; }
.drawer a { color: var(--ink); font-weight: 650; font-size: 16px; }
.drawer .btn { justify-self: start; }

.vlogo {
  width: 16px; height: 16px; flex: none;
  object-fit: contain;
  filter: brightness(1.15);
}
.route-col li {
  display: flex; align-items: center; gap: 8px;
}

.filters {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: -6px 0 18px;
}
.filters button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 7px 12px; cursor: pointer;
  font-weight: 650; font-size: 13px;
}
.filters button.on { background: var(--lime); color: #111; border-color: var(--lime); }

.price-card .head {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px;
}
.price-card .head .vlogo { width: 22px; height: 22px; margin-top: 2px; }
.price-card .head h3 { margin: 0 0 2px; }
.price-card .cache {
  font-size: 12px; color: var(--muted); margin: -6px 0 12px;
}
.price-card .cache b { color: var(--lime-2); font-weight: 650; }

.trust {
  max-width: 980px; margin: 8px auto 12px; padding: 8px 6vw 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.trust article {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px;
}
.trust h3 { margin: 0 0 8px; font-size: 15px; }
.trust p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.faq code { color: var(--lime-2); font-size: 13px; }

@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .top nav { display: none; }
  .trust { grid-template-columns: 1fr; }
  h1 {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .2em;
  }
  .swap {
    display: block; width: 100%; min-width: 0; height: 1.25em;
  }
  .swap b {
    position: absolute; left: 0; right: 0; text-align: center;
    width: 100%;
  }
}

.ep-hint {
  text-align: center; color: var(--muted); font-size: 12px;
  margin: 8px 0 0;
}
.dots { justify-content: flex-start; }
.dots .icon-copy { margin-left: auto; }
.price-card { display: flex; flex-direction: column; }
.price-card a { margin-top: auto; }
.price-card .cache { min-height: 1.35em; }
.filters button[hidden] { display: none; }
.menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-btn span { transition: transform .15s ease, opacity .15s ease; }
.drawer-back {
  position: fixed; inset: 0; z-index: 24;
  background: rgba(0,0,0,.55);
}
.drawer-back[hidden] { display: none; }
.drawer {
  inset: 0;
  top: 0;
  z-index: 26;
  padding: 88px 6vw 32px;
  align-content: start;
}
body.menu-on { overflow: hidden; }
@media (max-width: 860px) {
  section[id], .faq { scroll-margin-top: 128px; }
  .swap { height: 1.35em; }
}
