/* ============================================================
   DeepSeek Chat 落地页 — 渐变海报风 / 暗夜极光 / 玻璃拟态
   零依赖,纯手写 CSS
   ============================================================ */

:root {
  --grad-a: #6B5BFF;
  --grad-b: #9B5CFF;
  --grad-c: #FF5CA8;
  --accent-cyan: #38E1FF;
  --accent-green: #34D399;
  --accent-amber: #FFC84D;

  --bg-0: #070912;
  --bg-1: #0D1020;
  --bg-2: #151A33;

  --text-1: #F5F7FF;
  --text-2: #A7ADC6;
  --text-3: #6B7280;

  --line: rgba(245, 247, 255, 0.08);
  --glass: rgba(21, 26, 51, 0.55);
  --glass-strong: rgba(21, 26, 51, 0.8);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --font: "Poppins", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --maxw: 1160px;
  --nav-h: 68px;

  --grad-text: linear-gradient(100deg, #F5F7FF 10%, #B9A6FF 45%, #FF9AC8 90%);
  --grad-cta: linear-gradient(120deg, var(--grad-a), var(--grad-b) 55%, var(--grad-c));
  --grad-line: linear-gradient(120deg, rgba(107, 91, 255, 0.85), rgba(155, 92, 255, 0.85) 50%, rgba(255, 92, 168, 0.85));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-1);
  background: var(--bg-0);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: rgba(155, 92, 255, 0.45); color: #fff; }

/* ---------------- 极光背景 ---------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(107, 91, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(255, 92, 168, 0.12), transparent 60%),
    var(--bg-0);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.blob-a { width: 46vw; height: 46vw; min-width: 420px; min-height: 420px; top: -12%; left: -8%; background: var(--grad-a); animation: drift-a 26s ease-in-out infinite alternate; }
.blob-b { width: 40vw; height: 40vw; min-width: 360px; min-height: 360px; top: 18%; right: -12%; background: var(--grad-c); animation: drift-b 32s ease-in-out infinite alternate; }
.blob-c { width: 34vw; height: 34vw; min-width: 320px; min-height: 320px; bottom: -16%; left: 28%; background: #2F6BFF; opacity: 0.4; animation: drift-c 38s ease-in-out infinite alternate; }

@keyframes drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, 8vh, 0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-7vw, 10vh, 0) scale(0.95); } }
@keyframes drift-c { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(8vw, -9vh, 0) scale(1.1); } }

/* ---------------- 通用 ---------------- */
.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 48px;
  text-align: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 17px 40px; font-size: 17px; }

.btn-primary {
  color: #fff;
  background: var(--grad-cta);
  background-size: 160% 160%;
  box-shadow: 0 10px 34px rgba(107, 91, 255, 0.38);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(155, 92, 255, 0.5); background-position: 100% 50%; }
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
  color: var(--text-1);
  border: 1px solid var(--line);
  background: rgba(245, 247, 255, 0.04);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(155, 92, 255, 0.55); background: rgba(155, 92, 255, 0.1); }

/* ---------------- 导航 ---------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 9, 18, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.nav-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: var(--grad-cta);
  box-shadow: 0 6px 18px rgba(107, 91, 255, 0.45);
}

.nav-links { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text-1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(245, 247, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.lang-toggle:hover { border-color: rgba(155, 92, 255, 0.55); background: rgba(155, 92, 255, 0.12); }
.lang-opt { color: var(--text-3); transition: color 0.2s ease; }
.lang-opt.is-active { color: var(--text-1); }
.lang-sep { color: var(--text-3); font-weight: 400; }

/* ---------------- Hero ---------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 24px 96px;
}

.hero-inner { max-width: 980px; margin: 0 auto; text-align: center; width: 100%; }

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(155, 92, 255, 0.4);
  background: rgba(155, 92, 255, 0.1);
  color: #CDBBFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(42px, 7.2vw, 88px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, #8E7BFF, #FF7AB4 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 2.1vw, 22px);
  font-weight: 600;
  color: var(--text-2);
  max-width: 720px;
  margin: 0 auto 38px;
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

.hero-shot { display: block; }

.shot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--grad-line);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(107, 91, 255, 0.22);
  overflow: hidden;
}
.shot-frame img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 1px);
  background: var(--bg-1);
}

.shot-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  background: linear-gradient(rgba(7, 9, 18, 0.5), transparent);
}
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(245, 247, 255, 0.28); }
.shot-bar span:first-child { background: rgba(255, 92, 168, 0.75); }
.shot-bar span:nth-child(2) { background: rgba(255, 200, 77, 0.75); }
.shot-bar span:nth-child(3) { background: rgba(52, 211, 153, 0.75); }

.shot-caption { margin-top: 16px; font-size: 13px; color: var(--text-3); text-align: center; }

/* ---------------- 三大卖点 ---------------- */
.features { padding: 120px 0 40px; }

.feature {
  max-width: var(--maxw);
  margin: 0 auto 110px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature:last-child { margin-bottom: 40px; }

.feature-alt { direction: rtl; }
.feature-alt > * { direction: ltr; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: #fff;
  margin-bottom: 22px;
}
.icon-grad-a { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); box-shadow: 0 10px 26px rgba(107, 91, 255, 0.4); }
.icon-grad-b { background: linear-gradient(135deg, var(--accent-cyan), #3B82F6); box-shadow: 0 10px 26px rgba(56, 225, 255, 0.3); }
.icon-grad-c { background: linear-gradient(135deg, var(--grad-c), #FF7A59); box-shadow: 0 10px 26px rgba(255, 92, 168, 0.35); }

.feature h3 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.feature-sub {
  font-size: 15px;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.feature-desc { color: var(--text-2); margin-bottom: 22px; }

.feature-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: 15px;
}
.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-line);
}

.feature-shot { margin: 0; }

/* ---------------- 能力网格 ---------------- */
.grid-section { padding: 80px 0 40px; }

.grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
}
.grid-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad-line);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.grid-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4); }
.grid-card:hover::before { opacity: 1; }

.grid-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #D9CCFF;
  background: rgba(155, 92, 255, 0.14);
  border: 1px solid rgba(155, 92, 255, 0.3);
  margin-bottom: 18px;
}
.grid-card h4 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.grid-card p { font-size: 14px; color: var(--text-2); }

/* ---------------- 展示带 ---------------- */
.showcase { padding: 80px 0; }

.marquee { overflow: hidden; position: relative; }
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(40px, 10vw, 140px);
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-0), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-0), transparent); }

.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

.marquee-item {
  flex: 0 0 auto;
  width: min(480px, 66vw);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.marquee-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.marquee-item-tall { width: min(240px, 40vw); }

/* ---------------- 步骤 ---------------- */
.steps { padding: 100px 0 40px; }

.steps-list {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.step {
  position: relative;
  padding: 34px 28px 30px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--line);
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 2px;
  background: var(--grad-line);
  border-radius: 2px;
}

.step-num {
  display: block;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--grad-b), var(--grad-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.step h4 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--text-2); }

.step-code {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: rgba(7, 9, 18, 0.75);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13.5px;
  color: var(--accent-green);
}

/* ---------------- DeepSeek API 申请与充值指南 ---------------- */
#api { scroll-margin-top: calc(var(--nav-h) + 20px); }

.api-guide { padding: 100px 0 0; }

.api-sub {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-2);
}

.api-steps {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.api-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 26px 26px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.api-step::after {
  content: "";
  position: absolute;
  top: 0; left: 26px; right: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-line);
}
.api-step:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 92, 255, 0.38);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), 0 0 40px rgba(107, 91, 255, 0.16);
}
.api-step .step-num { font-size: 46px; margin-bottom: 14px; }
.api-step h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.api-step p { flex: 1; font-size: 14px; line-height: 1.72; color: var(--text-2); }
.api-step-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #C9BCFF;
  transition: color 0.2s ease, transform 0.2s ease;
}
.api-step-link::after { content: "↗"; font-size: 13px; }
.api-step-link:hover { color: var(--text-1); transform: translateX(2px); }

.api-facts {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding: 0 32px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.api-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(245, 247, 255, 0.03);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}
.api-facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-c));
  box-shadow: 0 0 10px rgba(155, 92, 255, 0.7);
}

.api-shots {
  max-width: var(--maxw);
  margin: 36px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.api-shot { margin: 0; }
.api-shot .shot-frame {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.api-shot:hover .shot-frame {
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), 0 0 50px rgba(107, 91, 255, 0.16);
}
.api-shot .shot-caption { text-align: left; padding: 0 2px; }

/* 官方截图按钮化:整卡可点,点击放大查看 */
.api-shot button.shot-frame {
  display: block;
  width: 100%;
  padding: 1px;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  appearance: none;
  cursor: zoom-in;
}
.api-shot button.shot-frame::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    rgba(9, 11, 20, 0.55)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E")
    center / 18px 18px no-repeat;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.api-shot button.shot-frame:hover::after,
.api-shot button.shot-frame:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.api-shot button.shot-frame:focus-visible {
  outline: 2px solid rgba(107, 91, 255, 0.9);
  outline-offset: 3px;
}
@media (hover: none) {
  .api-shot button.shot-frame::after { opacity: 0.9; transform: none; }
}

.api-body {
  max-width: var(--maxw);
  margin: 52px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: start;
}

.api-faq-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.api-qa {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--glass);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.api-qa:hover { border-color: rgba(245, 247, 255, 0.16); }
.api-qa[open] { border-color: rgba(155, 92, 255, 0.4); background: var(--glass-strong); }

.api-qa summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-1);
  transition: color 0.2s ease;
}
.api-qa summary::-webkit-details-marker { display: none; }
.api-qa summary::after {
  content: "+";
  position: absolute;
  top: 15px;
  right: 20px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-2);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.api-qa[open] summary::after {
  content: "−";
  color: #C9BCFF;
  border-color: rgba(155, 92, 255, 0.5);
}
.api-qa summary:hover::after { color: var(--text-1); border-color: rgba(245, 247, 255, 0.28); }

.api-qa p {
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
}
.api-qa p strong { color: var(--text-1); font-weight: 700; }

.api-side { position: sticky; top: calc(var(--nav-h) + 24px); }

.api-links-card {
  padding: 26px 22px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.api-links-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 16px; }

.api-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  transition: color 0.2s ease, transform 0.2s ease;
}
.api-links-card h4 + .api-link { border-top: 0; padding-top: 0; }
.api-link:hover { transform: translateX(2px); color: #C9BCFF; }
.api-link-host {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
}

.api-updated {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--text-3);
}

/* ---------------- CTA ---------------- */
.cta {
  margin: 120px auto 0;
  padding: 110px 32px;
  max-width: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 360px at 50% 0%, rgba(155, 92, 255, 0.28), transparent 70%),
    linear-gradient(160deg, rgba(107, 91, 255, 0.16), rgba(255, 92, 168, 0.1)),
    var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.cta-sub { color: var(--text-2); font-size: clamp(15px, 1.8vw, 18px); margin-bottom: 36px; }

/* ---------------- 页脚 ---------------- */
.footer { padding: 64px 32px 32px; }

.footer-cols {
  max-width: var(--maxw);
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand .nav-brand { margin-bottom: 14px; }
.footer-tag { color: var(--text-2); font-size: 14px; max-width: 320px; }

.footer-col h5 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text-1); }

.footer-copy {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

/* ---------------- Reveal 动效 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* 动效降级 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .api-step:hover,
  .api-shot:hover .shot-frame,
  .api-link:hover { transform: none; }
  .blob-a, .blob-b, .blob-c, .marquee-track { animation: none; }
  .btn, .grid-card { transition: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .feature { grid-template-columns: 1fr; gap: 34px; margin-bottom: 84px; }
  .feature-alt { direction: ltr; }
  .feature .feature-shot { order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); }

  .api-steps { gap: 18px; }
  .api-step { padding: 28px 22px 24px; }
  .api-body { grid-template-columns: 1fr; gap: 30px; }
  .api-side { position: static; }
  .api-links-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
  .api-links-card h4,
  .api-updated { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav { gap: 10px; }
  .nav-links { display: none; }
  .nav-name { font-size: 15px; }

  .hero { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 64px; }
  .hero-ctas { margin-bottom: 44px; }

  .features { padding-top: 72px; }
  .feature { padding: 0 20px; margin-bottom: 64px; }
  .section-head { padding: 0 20px 36px; text-align: left; }
  .grid { grid-template-columns: 1fr; padding: 0 20px; }
  .steps-list { grid-template-columns: 1fr; padding: 0 20px; }
  .marquee-item { width: 74vw; }
  .marquee-item-tall { width: 44vw; }
  .cta { margin-top: 72px; padding: 72px 20px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }

  .api-guide { padding-top: 72px; }
  .api-sub { margin: 14px 0 0; }
  .api-steps,
  .api-facts,
  .api-shots,
  .api-body { padding: 0 20px; }
  .api-steps { grid-template-columns: 1fr; gap: 16px; }
  .api-shots { grid-template-columns: 1fr; gap: 26px; }
  .api-body { margin-top: 40px; gap: 34px; }
  .api-links-card { grid-template-columns: 1fr; }
  .api-qa summary { padding: 16px 48px 16px 16px; font-size: 14.5px; }
  .api-qa p { padding: 0 16px 18px; }
}

/* ---------------- 官方截图放大层 ---------------- */
body.is-lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 60px);
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 14, 0.82);
  backdrop-filter: blur(18px) saturate(1.15);
  animation: lightbox-fade 0.22s ease both;
  cursor: zoom-out;
}

.lightbox-panel {
  position: relative;
  margin: 0;
  max-width: min(1120px, 92vw);
  animation: lightbox-pop 0.26s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86vh;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0d14;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.7),
    0 0 90px rgba(107, 91, 255, 0.18);
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(16, 18, 30, 0.82);
  color: #f3f5ff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { background: rgba(107, 91, 255, 0.85); transform: scale(1.06); }
.lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lightbox-pop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .lightbox { padding: 14px; }
  .lightbox-img { max-height: 82vh; border-radius: 12px; }
  .lightbox-close { top: 8px; right: 8px; width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-backdrop,
  .lightbox-panel { animation: none; }
  .api-shot button.shot-frame::after,
  .lightbox-close { transition: none; }
}
