/* ==========================================================================
   EasyAPI Dual Theme Landing Page
   主题：Cartoon / Cyberpunk
   ========================================================================== */

:root {
  color-scheme: light;
  --shell: 1160px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --header-height: 76px;
  --transition: 180ms ease;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ------------------------------ 卡通主题 ------------------------------ */
html[data-theme="cartoon"] {
  color-scheme: light;
  --bg: #fff9ec;
  --bg-soft: #edfaff;
  --surface: #ffffff;
  --surface-2: #fff4c9;
  --surface-3: #def7ff;
  --text: #18243a;
  --muted: #607089;
  --border: #18243a;
  --primary: #4ea8ff;
  --primary-strong: #237bdb;
  --secondary: #ffca3a;
  --accent: #ff6b9d;
  --success: #2bb673;
  --warning: #f59e0b;
  --shadow: 7px 7px 0 #18243a;
  --shadow-soft: 0 18px 45px rgba(34, 71, 112, 0.13);
  --grid-line: rgba(24, 36, 58, 0.055);
  --code-bg: #17243b;
  --code-text: #f6fbff;
  --header-bg: rgba(255, 249, 236, 0.86);
}

/* ---------------------------- 赛博朋克主题 ---------------------------- */
html[data-theme="cyberpunk"] {
  color-scheme: dark;
  --bg: #05050d;
  --bg-soft: #09091a;
  --surface: #0d0e22;
  --surface-2: #151631;
  --surface-3: #081d28;
  --text: #effcff;
  --muted: #95a7bd;
  --border: #21f6ff;
  --primary: #13e8ff;
  --primary-strong: #00b8cc;
  --secondary: #ff3ccd;
  --accent: #c8ff2e;
  --success: #63ffbf;
  --warning: #ffe766;
  --shadow: 0 0 0 1px rgba(33, 246, 255, 0.8),
    0 0 24px rgba(33, 246, 255, 0.24),
    -8px 8px 0 rgba(255, 60, 205, 0.16);
  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.48);
  --grid-line: rgba(33, 246, 255, 0.08);
  --code-bg: #050611;
  --code-text: #dffcff;
  --header-bg: rgba(5, 5, 13, 0.78);
}

/* ------------------------------- Reset -------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

code,
pre {
  font-family: var(--font-mono);
}

::selection {
  color: #071019;
  background: var(--secondary);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

/* ---------------------------- Background FX ---------------------------- */
.page-effects {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cartoon-cloud {
  position: absolute;
  width: 220px;
  height: 70px;
  background: rgba(255, 255, 255, 0.76);
  border: 3px solid rgba(24, 36, 58, 0.12);
  border-radius: 999px;
  filter: blur(0.2px);
}

.cartoon-cloud::before,
.cartoon-cloud::after {
  content: "";
  position: absolute;
  bottom: 22px;
  background: inherit;
  border: inherit;
  border-radius: 50%;
}

.cartoon-cloud::before {
  left: 34px;
  width: 78px;
  height: 78px;
}

.cartoon-cloud::after {
  right: 34px;
  width: 105px;
  height: 105px;
}

.cloud-a {
  top: 170px;
  left: -70px;
  transform: scale(0.7);
}

.cloud-b {
  top: 620px;
  right: -80px;
  transform: scale(0.9);
}

html[data-theme="cyberpunk"] .cartoon-cloud {
  display: none;
}

.cyber-grid,
.cyber-scanlines {
  display: none;
}

html[data-theme="cyberpunk"] .cyber-grid {
  display: block;
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -26vh;
  height: 72vh;
  background:
    linear-gradient(rgba(33, 246, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 246, 255, 0.13) 1px, transparent 1px);
  background-size: 58px 42px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, black 30%, transparent 92%);
}

html[data-theme="cyberpunk"] .cyber-scanlines {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.07) 4px
  );
  mix-blend-mode: overlay;
}

/* ------------------------------- Header -------------------------------- */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 22%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  filter: drop-shadow(3px 3px 0 color-mix(in srgb, var(--border) 80%, transparent));
}

.brand-mark.small {
  width: 36px;
  height: 36px;
}

.mark-back {
  fill: var(--secondary);
  stroke: var(--border);
  stroke-width: 4;
}

.mark-line {
  fill: none;
  stroke: var(--border);
  stroke-linecap: round;
  stroke-width: 4;
}

.mark-node {
  fill: var(--accent);
  stroke: var(--border);
  stroke-width: 3;
}

html[data-theme="cyberpunk"] .brand-mark {
  filter:
    drop-shadow(0 0 8px rgba(33, 246, 255, 0.7))
    drop-shadow(0 0 16px rgba(255, 60, 205, 0.35));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.16rem;
  letter-spacing: -0.03em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 680;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 3px;
  background: var(--secondary);
  border-radius: 99px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.desktop-nav a:hover {
  color: var(--text);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-switcher {
  display: flex;
  padding: 4px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 2px solid color-mix(in srgb, var(--border) 30%, transparent);
  border-radius: var(--radius-pill);
}

.theme-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 750;
}

.theme-button.is-active {
  color: var(--text);
  background: var(--secondary);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--border) 65%, transparent);
}

html[data-theme="cyberpunk"] .theme-button.is-active {
  color: #051017;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(33, 246, 255, 0.6);
}

/* ------------------------------ Buttons -------------------------------- */
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  font-weight: 800;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.button:hover {
  transform: translate(-2px, -2px);
}

.button-primary {
  color: #081522;
  background: var(--secondary);
  box-shadow: 4px 4px 0 var(--border);
}

.button-primary:hover {
  box-shadow: 7px 7px 0 var(--border);
}

.button-secondary {
  color: var(--text);
  background: var(--surface);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--border) 70%, transparent);
}

.button-small {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.84rem;
}

.button-large {
  min-height: 52px;
  padding: 12px 22px;
}

html[data-theme="cyberpunk"] .button {
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

html[data-theme="cyberpunk"] .button-primary {
  color: #031216;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow:
    0 0 18px rgba(33, 246, 255, 0.45),
    5px 5px 0 rgba(255, 60, 205, 0.5);
}

/* -------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  padding: 92px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: 78px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--success);
  border: 2px solid var(--border);
  border-radius: 50%;
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--border) 60%, transparent);
}

.hero h1 {
  max-width: 780px;
  margin: 22px 0 22px;
  font-size: clamp(3.1rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.accent-text {
  display: block;
  color: var(--primary-strong);
}

html[data-theme="cartoon"] .accent-text {
  text-shadow: 4px 4px 0 #bce9ff;
}

html[data-theme="cyberpunk"] .accent-text {
  color: var(--primary);
  text-shadow:
    0 0 12px rgba(33, 246, 255, 0.75),
    3px 3px 0 rgba(255, 60, 205, 0.45);
}

.hero-lead {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta span::before {
  content: "✓";
  display: grid;
  width: 20px;
  height: 20px;
  color: #07151b;
  background: var(--success);
  border: 2px solid var(--border);
  border-radius: 50%;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
}

.hero-meta b {
  color: var(--text);
}

/* ----------------------------- Hero visual ----------------------------- */
.hero-visual {
  position: relative;
  min-height: 510px;
}

.visual-card {
  position: absolute;
  inset: 28px 0 26px 22px;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

html[data-theme="cyberpunk"] .visual-card {
  clip-path: polygon(0 0, 92% 0, 100% 9%, 100% 100%, 8% 100%, 0 91%);
  border-radius: 0;
}

.hero-logo {
  position: absolute;
  z-index: 9;
  right: 18px;
  bottom: 18px;
  width: min(46%, 235px);
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(24, 36, 58, 0.18));
}

html[data-theme="cyberpunk"] .hero-logo {
  filter:
    drop-shadow(0 0 12px rgba(33, 246, 255, 0.28))
    drop-shadow(0 0 24px rgba(255, 60, 205, 0.2));
}

.card-topline,
.gateway-footer {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: var(--surface-2);
  border-bottom: 2px solid var(--border);
}

.gateway-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 68px;
  border-top: 2px solid var(--border);
  border-bottom: 0;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots i {
  width: 11px;
  height: 11px;
  background: var(--accent);
  border: 2px solid var(--border);
  border-radius: 50%;
}

.window-dots i:nth-child(2) {
  background: var(--secondary);
}

.window-dots i:nth-child(3) {
  background: var(--success);
}

.card-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.gateway-stage {
  position: absolute;
  inset: 56px 0 68px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-3) 78%, transparent), var(--surface));
}

.gateway-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(circle, var(--grid-line) 2px, transparent 2px);
  background-size: 24px 24px;
}

.cartoon-mascot {
  position: absolute;
  z-index: 4;
  top: 108px;
  left: 50%;
  width: 146px;
  height: 178px;
  transform: translateX(-50%);
}

.antenna {
  position: absolute;
  top: -31px;
  left: 50%;
  width: 5px;
  height: 39px;
  background: var(--border);
  transform: translateX(-50%);
}

.antenna i {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: 3px solid var(--border);
  border-radius: 50%;
  transform: translateX(-50%);
}

.robot-face {
  position: relative;
  z-index: 2;
  width: 146px;
  height: 98px;
  background: var(--surface);
  border: 4px solid var(--border);
  border-radius: 38px;
  box-shadow: 0 8px 0 rgba(24, 36, 58, 0.1);
}

.eye {
  position: absolute;
  top: 36px;
  width: 14px;
  height: 20px;
  background: var(--border);
  border-radius: 50%;
}

.eye-left {
  left: 38px;
}

.eye-right {
  right: 38px;
}

.smile {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 34px;
  height: 16px;
  border-bottom: 4px solid var(--border);
  border-radius: 0 0 25px 25px;
  transform: translateX(-50%);
}

.robot-body {
  position: absolute;
  top: 86px;
  left: 20px;
  width: 106px;
  height: 80px;
  background: var(--primary);
  border: 4px solid var(--border);
  border-radius: 26px 26px 34px 34px;
}

.heart {
  position: absolute;
  top: 17px;
  left: 50%;
  color: var(--accent);
  font-size: 35px;
  -webkit-text-stroke: 3px var(--border);
  transform: translateX(-50%);
}

.robot-shadow {
  position: absolute;
  bottom: -17px;
  left: 50%;
  width: 110px;
  height: 18px;
  background: rgba(24, 36, 58, 0.18);
  border-radius: 50%;
  transform: translateX(-50%);
}

.cyber-core {
  display: none;
}

.route {
  position: absolute;
  z-index: 2;
  height: 3px;
  background: var(--border);
  transform-origin: left center;
}

.route span {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--secondary);
  border: 2px solid var(--border);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: routePulse 2.6s linear infinite;
}

.route-a {
  top: 150px;
  left: 64px;
  width: 132px;
  transform: rotate(10deg);
}

.route-b {
  top: 267px;
  left: 68px;
  width: 148px;
  transform: rotate(-9deg);
}

.route-c {
  top: 202px;
  right: 62px;
  width: 130px;
  transform: rotate(175deg);
}

.provider {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: 14px;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--border) 50%, transparent);
  font-size: 0.72rem;
  font-weight: 850;
}

.provider-icon {
  display: grid;
  width: 27px;
  height: 27px;
  color: #081522;
  background: var(--secondary);
  border: 2px solid var(--border);
  border-radius: 8px;
  place-items: center;
}

.provider-a {
  top: 102px;
  left: 25px;
}

.provider-b {
  bottom: 72px;
  left: 28px;
}

.provider-c {
  top: 168px;
  right: 24px;
}

.gateway-footer small,
.gateway-footer strong {
  display: block;
}

.gateway-footer small {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.gateway-footer strong {
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.signal-bars {
  display: flex;
  height: 28px;
  align-items: end;
  gap: 4px;
}

.signal-bars i {
  width: 7px;
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 3px 3px 0 0;
}

.signal-bars i:nth-child(1) { height: 8px; }
.signal-bars i:nth-child(2) { height: 14px; }
.signal-bars i:nth-child(3) { height: 20px; }
.signal-bars i:nth-child(4) { height: 27px; }

.floating-badge {
  position: absolute;
  z-index: 8;
  padding: 8px 13px;
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--border) 55%, transparent);
  font-size: 0.73rem;
  font-weight: 900;
}

.badge-one {
  top: 0;
  right: 36px;
  transform: rotate(4deg);
}

.badge-two {
  bottom: 3px;
  left: 0;
  transform: rotate(-3deg);
}

.badge-three {
  right: -18px;
  bottom: 94px;
  transform: rotate(2deg);
}

/* Cyber hero */
html[data-theme="cyberpunk"] .cartoon-mascot {
  display: none;
}

html[data-theme="cyberpunk"] .cyber-core {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  transform: translate(-50%, -50%);
}

.core-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  border-radius: 50%;
  box-shadow:
    inset 0 0 18px rgba(33, 246, 255, 0.25),
    0 0 16px rgba(33, 246, 255, 0.36);
}

.ring-one {
  animation: cyberSpin 9s linear infinite;
  clip-path: polygon(0 0, 65% 0, 65% 18%, 100% 18%, 100% 100%, 0 100%);
}

.ring-two {
  inset: 17px;
  border-color: var(--secondary);
  animation: cyberSpinReverse 6s linear infinite;
}

.ring-three {
  inset: 39px;
  border: 4px solid var(--accent);
  box-shadow: 0 0 18px rgba(200, 255, 46, 0.5);
}

.core-label {
  z-index: 2;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-shadow:
    -2px 0 var(--secondary),
    2px 0 var(--primary);
}

html[data-theme="cyberpunk"] .provider {
  color: var(--text);
  background: rgba(13, 14, 34, 0.92);
  border: 1px solid var(--primary);
  border-radius: 2px;
  box-shadow:
    0 0 15px rgba(33, 246, 255, 0.24),
    -4px 4px 0 rgba(255, 60, 205, 0.19);
}

html[data-theme="cyberpunk"] .provider-icon {
  color: #061419;
  background: var(--primary);
  border: 0;
  border-radius: 1px;
}

html[data-theme="cyberpunk"] .route {
  height: 1px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

html[data-theme="cyberpunk"] .route span {
  background: var(--accent);
  border: 0;
  box-shadow: 0 0 10px var(--accent);
}

html[data-theme="cyberpunk"] .floating-badge {
  color: var(--primary);
  background: rgba(5, 5, 13, 0.9);
  border: 1px solid var(--secondary);
  border-radius: 2px;
  box-shadow:
    0 0 16px rgba(255, 60, 205, 0.25),
    4px 4px 0 rgba(33, 246, 255, 0.15);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes routePulse {
  from { left: 0; }
  to { left: calc(100% - 12px); }
}

@keyframes cyberSpin {
  to { transform: rotate(360deg); }
}

@keyframes cyberSpinReverse {
  to { transform: rotate(-360deg); }
}

/* ------------------------------- Sections ------------------------------- */
.section {
  position: relative;
  padding: 92px 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.section-heading h2,
.quickstart-copy h2,
.status-copy h2,
.cta-card h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.section-heading p,
.quickstart-copy > p,
.status-copy p,
.cta-card p {
  margin: 0;
  color: var(--muted);
}

.section-features {
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--border) 13%, transparent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 270px;
  padding: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--border) 68%, transparent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-7px) rotate(-0.6deg);
  box-shadow: 8px 10px 0 color-mix(in srgb, var(--border) 72%, transparent);
}

.feature-card:nth-child(even):hover {
  transform: translateY(-7px) rotate(0.6deg);
}

.feature-card h3 {
  margin: 18px 0 10px;
  font-size: 1.17rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.feature-icon {
  display: grid;
  width: 52px;
  height: 52px;
  color: #081522;
  background: var(--secondary);
  border: 3px solid var(--border);
  border-radius: 16px;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 900;
  transform: rotate(-3deg);
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--accent);
  transform: rotate(3deg);
}

.feature-card:nth-child(3) .feature-icon {
  background: var(--primary);
}

.feature-card:nth-child(4) .feature-icon {
  background: var(--success);
  transform: rotate(4deg);
}

.feature-tag {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: var(--primary-strong);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

html[data-theme="cyberpunk"] .feature-card {
  border: 1px solid color-mix(in srgb, var(--primary) 70%, transparent);
  border-radius: 0;
  box-shadow:
    inset 0 0 30px rgba(33, 246, 255, 0.035),
    0 0 18px rgba(33, 246, 255, 0.08);
  clip-path: polygon(0 0, 91% 0, 100% 12%, 100% 100%, 0 100%);
}

html[data-theme="cyberpunk"] .feature-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 30px rgba(33, 246, 255, 0.07),
    0 0 24px rgba(33, 246, 255, 0.19),
    -5px 5px 0 rgba(255, 60, 205, 0.16);
}

html[data-theme="cyberpunk"] .feature-icon {
  color: #031216;
  border: 0;
  border-radius: 1px;
  box-shadow: 0 0 16px rgba(33, 246, 255, 0.32);
}

/* ----------------------------- Quick start ----------------------------- */
.quickstart-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr);
  align-items: center;
  gap: 72px;
}

.api-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--border) 55%, transparent);
}

.api-address small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.api-address code {
  font-size: 0.83rem;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 29px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  color: #07151b;
  background: var(--success);
  border: 2px solid var(--border);
  border-radius: 50%;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 900;
}

.code-window {
  overflow: hidden;
  background: var(--code-bg);
  border: 3px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.code-header {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 12px 8px 15px;
  background: color-mix(in srgb, var(--surface-2) 18%, var(--code-bg));
  border-bottom: 1px solid color-mix(in srgb, var(--border) 44%, transparent);
}

.code-tabs {
  display: flex;
  gap: 4px;
}

.code-tab,
.copy-button {
  padding: 7px 11px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
}

.code-tab.is-active {
  color: var(--code-text);
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
}

.copy-button {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.copy-button:hover {
  background: var(--secondary);
}

.code-panel {
  display: none;
  min-height: 340px;
  margin: 0;
  padding: 26px;
  overflow: auto;
  color: var(--code-text);
  font-size: 0.83rem;
  line-height: 1.75;
  white-space: pre;
}

.code-panel.is-active {
  display: block;
}

.code-string {
  color: #9fffd4;
}

.code-keyword {
  color: #ff83d8;
}

.code-function {
  color: #80eaff;
}

html[data-theme="cyberpunk"] .code-window,
html[data-theme="cyberpunk"] .api-address {
  border-width: 1px;
  border-radius: 0;
}

/* ------------------------------- Status -------------------------------- */
.status-board {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 58px;
  padding: 38px;
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.status-items {
  display: grid;
  gap: 12px;
}

.status-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  background: var(--surface-2);
  border: 2px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-radius: var(--radius-sm);
}

.service-icon {
  display: grid;
  width: 39px;
  height: 39px;
  color: #07151b;
  background: var(--primary);
  border: 2px solid var(--border);
  border-radius: 11px;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 900;
}

.status-item strong,
.status-item small {
  display: block;
}

.status-item small {
  color: var(--muted);
}

.status-pill {
  padding: 5px 9px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 900;
}

.status-testing {
  color: #07151b;
  background: var(--secondary);
}

.status-pending {
  color: #07151b;
  background: var(--accent);
}

html[data-theme="cyberpunk"] .status-board,
html[data-theme="cyberpunk"] .status-item {
  border-width: 1px;
  border-radius: 0;
}

html[data-theme="cyberpunk"] .status-pill {
  border-width: 1px;
  border-radius: 1px;
  text-transform: uppercase;
}

/* -------------------------------- FAQ ---------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--border) 42%, transparent);
}

.faq-list summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  width: 25px;
  height: 25px;
  background: var(--secondary);
  border: 2px solid var(--border);
  border-radius: 8px;
  place-items: center;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

html[data-theme="cyberpunk"] .faq-list details {
  border-width: 1px;
  border-radius: 0;
  box-shadow: 3px 3px 0 rgba(255, 60, 205, 0.13);
}

html[data-theme="cyberpunk"] .faq-list summary::after {
  color: #031216;
  background: var(--primary);
  border: 0;
  border-radius: 1px;
}

/* -------------------------------- CTA ---------------------------------- */
.section-cta {
  padding-top: 30px;
}

.cta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--secondary) 55%, transparent), transparent 24%),
    var(--surface-3);
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.cta-card::before {
  content: "→";
  position: absolute;
  top: -34px;
  right: 32%;
  color: color-mix(in srgb, var(--primary) 24%, transparent);
  font-size: 12rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-12deg);
}

.cta-card > * {
  position: relative;
  z-index: 2;
}

html[data-theme="cyberpunk"] .cta-card {
  border-width: 1px;
  border-radius: 0;
  clip-path: polygon(0 0, 95% 0, 100% 25%, 100% 100%, 5% 100%, 0 75%);
}

/* -------------------------------- Footer ------------------------------- */
.site-footer {
  padding: 54px 0 38px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 2px solid color-mix(in srgb, var(--border) 28%, transparent);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong,
.footer-brand small {
  display: block;
}

.footer-brand small {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: var(--primary-strong);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

/* -------------------------------- Toast -------------------------------- */
.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  padding: 11px 16px;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity var(--transition), transform var(--transition);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------- Cyber details ---------------------------- */
html[data-theme="cyberpunk"] .section-kicker,
html[data-theme="cyberpunk"] .eyebrow {
  color: var(--primary);
  font-family: var(--font-mono);
  text-shadow: 0 0 8px rgba(33, 246, 255, 0.45);
}

html[data-theme="cyberpunk"] h1,
html[data-theme="cyberpunk"] h2,
html[data-theme="cyberpunk"] h3 {
  text-transform: uppercase;
}

html[data-theme="cyberpunk"] .status-dot {
  border-color: var(--success);
  box-shadow: 0 0 12px rgba(99, 255, 191, 0.85);
}

html[data-theme="cyberpunk"] .hero-meta span::before,
html[data-theme="cyberpunk"] .check-list li::before {
  border: 0;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(99, 255, 191, 0.5);
}

/* ----------------------------- Responsive ------------------------------ */
@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .hero-lead,
  .hero-meta {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 590px);
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quickstart-grid,
  .status-board,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .quickstart-grid {
    gap: 40px;
  }

  .faq-grid {
    gap: 32px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 15vw, 4.3rem);
  }

  .hero-visual {
    min-height: 430px;
  }

  .visual-card {
    inset: 28px 4px 28px 4px;
  }

  .badge-three {
    right: 0;
  }

  .hero-logo {
    right: 12px;
    bottom: 20px;
    width: min(54%, 210px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 230px;
  }

  .section {
    padding: 68px 0;
  }

  .quickstart-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .code-panel {
    min-height: 390px;
    padding: 20px;
    font-size: 0.73rem;
  }

  .code-tabs {
    overflow-x: auto;
  }

  .status-board,
  .cta-card {
    padding: 25px;
  }

  .cta-card {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 500px) {
  .theme-button span:last-child {
    display: none;
  }

  .button-small {
    padding-inline: 12px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .provider {
    transform: scale(0.88);
  }

  .provider-a,
  .provider-b {
    left: 9px;
  }

  .provider-c {
    right: 8px;
  }

  .floating-badge {
    font-size: 0.62rem;
  }

  .hero-logo {
    width: min(58%, 170px);
  }

  .api-address {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-button {
    align-self: flex-start;
  }

  .status-item {
    grid-template-columns: auto 1fr;
  }

  .status-pill {
    grid-column: 2;
    justify-self: start;
  }
}

/* 尊重减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
