﻿/* =============================================================================
   落地页
   顺序：进度条 → 顶栏 → Hero/极光 → 终端 → 跑马灯 → 声明 → 能力 → 步骤 → 数字 → CTA
   ============================================================================= */

/* ── 顶部滚动进度 ─────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 40;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--t1), var(--primary), var(--t3), var(--t4));
  pointer-events: none;
}

/* ── 极光背景 ─────────────────────────────────────────── */
.aurora {
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 780px;
  z-index: 0;
  pointer-events: none;
  filter: blur(64px) saturate(1.15);
  opacity: .55;
}
.aurora__blob {
  position: absolute;
  border-radius: 50%;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora__blob--1 {
  width: 560px; height: 460px;
  left: 4%; top: 4%;
  background: radial-gradient(circle, rgba(34, 211, 238, .45), transparent 68%);
}
.aurora__blob--2 {
  width: 620px; height: 520px;
  right: -6%; top: -12%;
  background: radial-gradient(circle, rgba(59, 130, 246, .42), transparent 66%);
  animation-delay: -8s;
}
.aurora__blob--3 {
  width: 520px; height: 420px;
  left: 42%; top: 26%;
  background: radial-gradient(circle, rgba(139, 92, 246, .34), transparent 68%);
  animation-delay: -15s;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(30px, -24px, 0) scale(1.07); }
  100% { transform: translate3d(-24px, 18px, 0) scale(.96); }
}

[data-theme="dark"] .aurora { opacity: .38; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 76px 0 42px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 588px;
  gap: 56px;
  align-items: center;
}

.hero__title {
  margin: 22px 0 0;
  font-size: clamp(40px, 4.2vw, 62px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.035em;
}

.hero__title-line {
  display: block;
  margin-top: 8px;
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  margin-top: 24px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-2);
  max-width: 470px;
}
.hero__lead code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--card-3);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.btn--lg { height: 46px; padding: 0 22px; font-size: 14.5px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 36px;
  font-size: 12.5px;
  color: var(--text-3);
}
.hero__meta li { position: relative; padding-left: 14px; }
.hero__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--primary-line);
}

/* ── 终端卡片 ─────────────────────────────────────────── */
.hero__stage {
  position: relative;
  min-width: 0;              /* 不让终端的 min-content 撑破栅格 */
  border-radius: var(--r-xl);
}

.term {
  --mx: 50%;
  --my: 0%;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 472px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at var(--mx) var(--my), rgba(59, 130, 246, .18) 0%, transparent 60%),
    linear-gradient(180deg, #12151c 0%, #0b0e14 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .05),
    0 40px 90px -46px rgba(15, 23, 42, .55);
  color: #d5dbe6;
  font-family: var(--mono);
  font-size: 12px;
}
[data-theme="dark"] .term {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .03),
    0 40px 100px -56px rgba(59, 130, 246, .38),
    0 2px 6px rgba(0, 0, 0, .5);
}

/* 顶栏 */
.term__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .015);
}
.term__dots { display: inline-flex; gap: 5px; }
.term__dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #3a4150;
}
.term__dots i:nth-child(1) { background: #f0685f; }
.term__dots i:nth-child(2) { background: #f3bd4e; }
.term__dots i:nth-child(3) { background: #58c26a; }

.term__name {
  font-family: var(--font);
  font-size: 12px;
  color: #7d8798;
  letter-spacing: .01em;
}

.term__status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 11px;
  color: #7d8798;
}
.term__status i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7d8798;
}
.term__status.is-ok   { color: #4ade80; }
.term__status.is-ok i { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, .8); }
.term__status.is-fail   { color: #f87171; }
.term__status.is-fail i { background: #f87171; }
.term__status.is-wait i { animation: breathe 1.6s ease-in-out infinite; }

@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* 页签 */
.term__tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.term__tab {
  padding: 5px 10px 9px;
  font-family: var(--font);
  font-size: 12px;
  color: #6b7486;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.term__tab:hover { color: #c3cad6; }
.term__tab.is-on {
  color: #e6ebf3;
  border-bottom-color: #3b82f6;
}
.term__hint {
  margin-left: auto;
  font-family: var(--font);
  font-size: 10.5px;
  color: #5a6274;
  padding-bottom: 8px;
}

/* 代码区 */
.term__body {
  flex: 1;
  min-height: 0;
  position: relative;
}
.term__code {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 16px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.72;
  color: #c3cad6;
  white-space: pre-wrap;
  word-break: break-word;
  scrollbar-width: thin;
}
.term__code::-webkit-scrollbar { width: 6px; }
.term__code::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 3px;
}

/* 语法着色 */
.tk-key  { color: #7dd3fc; }
.tk-str  { color: #a5d6a7; }
.tk-num  { color: #f0b072; }
.tk-bool { color: #c4a7f7; }
.tk-punc { color: #6b7486; }
.tk-dim  { color: #5a6274; }
.tk-cmd  { color: #e6ebf3; }

.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 1px;
  vertical-align: -2px;
  background: #7dd3fc;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* 底部指标 */
.term__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .22);
  font-family: var(--font);
  font-size: 11px;
  color: #6b7486;
}
.term__metric b { color: #d5dbe6; font-weight: 600; }
.term__sep { color: #3a4150; }
.term__grow { flex: 1; min-width: 0; }
.term__metric, .term__src { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term__src { color: #5a6274; font-family: var(--mono); font-size: 10.5px; }

/* ── 模型跑马灯 ───────────────────────────────────────── */
.marquee {
  position: relative;
  margin: 6px 0 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* 轨道由两组"严格等宽"的拷贝组成：
   - 组内用 gap，组间用组的 padding-right 补同等间距 → 两组宽度完全一致
   - translateX(-50%) 正好等于一组宽度，接缝处不会跳
   - 每组内部会按容器宽度自动复制若干份，保证任何屏宽都铺满 */
.marquee__track {
  display: flex;
  align-items: center;
  /* 内容由 JS 填，填之前是空轨道；淡入避免"啪"地蹦出来 */
  opacity: 0;
  /* 固定高度：内容还没生成时也先把位置占住，
     否则会从 0 长到 30px，把下面的内容顶下去（CLS） */
  height: 30px;
  gap: 0;
  width: max-content;
  will-change: transform;
  animation: marquee 46s linear infinite;
}
.marquee__group {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}
.marquee__track.is-ready {
  opacity: 1;
  transition: opacity .28s var(--ease);
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 内容不足以成列时（比如一个模型都没有），居中显示，不要拉成一条空轨 */
.marquee--empty .marquee__track {
  animation: none;
  opacity: 1;
  width: 100%;
  justify-content: center;
}

/* 关掉动效时不要"瞬间跳一下"，直接静止 */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
}
.chip i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}
.chip--empty { color: var(--text-3); border-style: dashed; }

/* ── 声明 ─────────────────────────────────────────────── */
.statement { padding: 44px 0 10px; }

.statement__box {
  position: relative;
  padding: 44px 46px;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.statement__box::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 68%);
}

.statement__tag {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--primary);
  text-transform: uppercase;
}

.statement__title {
  font-size: 25px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.02em;
  max-width: 720px;
}

.statement__text {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-2);
  max-width: 660px;
}

.rejects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.reject {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--reject-bg);
  border: 1px solid var(--reject-bd);
  color: var(--reject-fg);
  font-size: 13px;
  font-weight: 500;
}
.reject b { font-weight: 700; opacity: .75; }

.statement__strong {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.statement__note {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-3);
}

/* ── 通用区块标题 ─────────────────────────────────────── */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 64px 0 26px;
}
.sec-head__left { display: flex; flex-direction: column; gap: 12px; }
.sec-head__no {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: .1em;
}
.sec-head__title {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.sec-head__sub {
  font-size: 12.5px;
  color: var(--text-3);
  padding-bottom: 6px;
}
.sec-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

/* ── Bento 能力卡 ─────────────────────────────────────── */
/* 一整块面板，内部用 1px 线切成 2×2
   —— 参考站的做法：只有一块"卡"，其余都是线和留白 */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--card);
  overflow: hidden;
}

.bento__card {
  position: relative;
  padding: 30px 32px 28px;
  background: transparent;
  border: 0;
  transition: background var(--dur-mid) var(--ease);
}
.bento__card:nth-child(1) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bento__card:nth-child(2) { border-bottom: 1px solid var(--line); }
.bento__card:nth-child(3) { border-right: 1px solid var(--line); }

.bento__card:hover { background: var(--card-2); }

.bento__head {
  display: flex;
  align-items: center;
  gap: 9px;
}
/* 编号：灰底圆圈，数字本身带一点主题色（身份靠颜色，不靠装饰） */
.bento__no {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--card-3);
  color: color-mix(in srgb, var(--tint) 62%, var(--text-2));
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
}
.bento__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.015em;
}
.bento__desc {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--text-2);
  max-width: 560px;
}
.bento__desc code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--card-3);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
}

/* 路由链路 */
.route-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.route-flow li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 13px 0 11px;
  border-radius: var(--r-pill);
  background: var(--card-3);
  border: 1px solid transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.route-flow li i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tint);
  opacity: .9;
}
.route-flow li + li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: color-mix(in srgb, var(--tint) 40%, transparent);
}

/* token 标签 */
.tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.token {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--card-3);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11px;
}

/* 代码片段 */
.snippet {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--card-3);
  border: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-2);
  overflow-x: auto;
}

/* 追溯 */
.trace {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--card-3);
  border: 1px solid var(--line);
}
.trace__id {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
}
.trace__path {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
}

/* ── 三步 ─────────────────────────────────────────────── */
.steps { padding-bottom: 10px; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 10px 0 20px;
}

/* 三步：不装卡片，图标 + 文字直接放在页面上 */
.step {
  position: relative;
  padding: 6px 8px 6px 0;
  background: transparent;
  border: 0;
  transition: transform var(--dur-fast) var(--ease);
}
.step:hover { transform: translateY(-2px); }
.step__no {
  position: absolute;
  top: 0;
  left: 52px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 10.5px;
  font-weight: 700;
}
.step__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card-3);
  color: var(--text-2);
  border: 1px solid var(--line);
}
.step__icon svg { width: 21px; height: 21px; }
.step__title {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.step__desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 300px;
}

/* ── 数字 ─────────────────────────────────────────────── */
.numbers { padding: 60px 0 10px; }

/* 数字区：不套盒子，纯排布（参考站的统计行就是这样） */
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.num {
  padding: 20px 12px;
  text-align: center;
}
.num__value {
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text);
}
.num__value--money { font-size: clamp(22px, 2.1vw, 28px); letter-spacing: -.02em; }
.num__value small {
  font-size: .45em;
  font-weight: 700;
  margin-left: 2px;
  color: var(--text-2);
}
.num__label {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-3);
}

/* ── CTA ──────────────────────────────────────────────── */
.cta-band { padding: 62px 0 72px; }

/* 收尾：没有卡片，就是一段居中的大字 */
.cta-band { padding: 80px 0 96px; }

.cta-final {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-final__title {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -.035em;
}
.cta-final__title span {
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-final__sub {
  margin: 18px auto 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-3);
  max-width: 520px;
}

.cta-final__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* ── 页脚 ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12.5px;
  color: var(--text-3);
}
.footer__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.footer__links { display: flex; gap: 18px; margin-left: auto; }
.footer__copy { color: var(--text-3); }

/* ── 入场动画：弹出来 ─────────────────────────────────────
   位移 + 缩放 + 透明度，带一点回弹。
   ⚠️ 隐藏态 (.will-reveal) 只由 JS 加，且 JS 里有 4 秒兜底强制显示，
      所以"动画没跑"最多是"没动"，不会白屏。
   ──────────────────────────────────────────────────────── */
@keyframes pop-in {
  from { opacity: 0; transform: translateY(26px) scale(.965); }
  to   { opacity: 1; transform: none; }
}

.will-reveal {
  opacity: 0;
  transform: translateY(26px) scale(.965);
}

.reveal.is-in {
  animation: pop-in .62s cubic-bezier(.22, 1.15, .36, 1) both;
  animation-delay: calc(var(--d, 0) * 1ms);
}

/* 数字块再明显一点：从更下面弹上来 */
.num.reveal.is-in { animation-duration: .7s; }

/* 卡片悬停：抬起 + 描边跟着主题色 */
.bento__card { will-change: transform; }

/* ── 响应式 ───────────────────────────────────────────── */
@media (max-width: 1180px) {
  .hero { padding-top: 52px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .term { height: 420px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--wide { grid-column: span 2; }
  .step-grid { grid-template-columns: 1fr; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .num:nth-child(2) { border-right: 0; }
  .num:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .hero__title { font-size: 36px; }
  .aurora { height: 520px; filter: blur(48px); }
  .statement__box { padding: 28px 22px; }
  .statement__title { font-size: 20px; }
  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: span 1; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 46px; }
  .sec-head__sub { padding-bottom: 0; }
  .term { height: 400px; }
  .term__code { font-size: 11px; padding: 13px; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .cta-box__right { margin-left: 0; width: 100%; }
  .cta-box__right .btn { flex: 1; }
  .footer__inner { flex-wrap: wrap; }
  .footer__links { margin-left: 0; }
  .numbers__grid { grid-template-columns: 1fr; }
  .num { border-right: 0; border-bottom: 1px solid var(--line); }
  .num:last-child { border-bottom: 0; }
}
/* 窄屏下终端底部信息太多，只留关键的三项 */
@media (max-width: 560px) {
  .term__src { display: none; }
  .term__foot { gap: 6px; font-size: 10px; padding: 8px 12px; }
  .term__hint { display: none; }
}