/* ==========================================================================
   forcepower.top 首站样式
   纯静态、零依赖。字体与图片都在本目录，不请求任何第三方域名。
   ========================================================================== */

/* ---------- 字体（仅拉丁子集，中文走系统字体） ---------- */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 变量 ---------- */
:root {
  --ink: #08080d;
  --ink-2: #101019;
  --paper: #f4f3ee;
  --paper-deep: #eae9e1;
  --text: #111219;
  --ink-soft: #3b3f4c;
  --muted: #5f6472;
  --muted-dark: #9aa1b3;

  --line: rgba(12, 13, 20, 0.1);
  --line-strong: rgba(12, 13, 20, 0.18);
  --line-dark: rgba(255, 255, 255, 0.1);
  --line-dark-strong: rgba(255, 255, 255, 0.2);

  --brand: #4f5df6;
  --brand-soft: #eef0ff;
  --brand-2: #8b3dff;
  --brand-3: #d14bff;

  --font-sans:
    'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', 'Songti SC', 'Times New Roman', serif;
  --font-mono: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;

  --pad: clamp(20px, 4vw, 40px);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(139, 61, 255, 0.25);
}

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.i {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* 胶片颗粒：极淡，只在深色区域显形 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 14px;
}

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.btn .i {
  transition: transform 0.35s var(--ease);
}

.btn:hover .i {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, #6a74ff 0%, #8b3dff 55%, #c04bff 100%);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 30px -12px rgba(107, 74, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow:
    0 20px 44px -16px rgba(107, 74, 255, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-outline {
  color: var(--paper);
  border-color: var(--line-dark-strong);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-2px);
}

.btn-quiet {
  color: rgba(255, 255, 255, 0.76);
  padding: 0 14px;
  min-height: 40px;
}

.btn-quiet:hover {
  color: #fff;
}

.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1rem;
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.88rem;
}

/* ---------- 页头 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  color: var(--paper);
  background: rgba(8, 8, 13, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  transition:
    background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(8, 8, 13, 0.88);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px -30px rgba(0, 0, 0, 0.9);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.brand img {
  width: 30px;
  height: 29px;
  filter: drop-shadow(0 4px 12px rgba(139, 61, 255, 0.5));
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.42);
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.88rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: #fff;
}

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

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  overflow: clip;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(124px, 16vh, 184px) 0 clamp(56px, 8vh, 88px);
  isolation: isolate;
}

.hero-aurora {
  position: absolute;
  inset: -12% -8% 0;
  z-index: -2;
  filter: blur(70px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-aurora span {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.hero-aurora span:nth-child(1) {
  width: 54vw;
  height: 54vw;
  left: -12vw;
  top: -16vw;
  background: radial-gradient(circle at 40% 40%, rgba(79, 93, 246, 0.7), transparent 62%);
  animation: drift-a 24s ease-in-out infinite alternate;
}

.hero-aurora span:nth-child(2) {
  width: 44vw;
  height: 44vw;
  right: -8vw;
  top: -6vw;
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.62), transparent 64%);
  animation: drift-b 20s ease-in-out infinite alternate;
}

.hero-aurora span:nth-child(3) {
  width: 40vw;
  height: 40vw;
  left: 24vw;
  bottom: -22vw;
  background: radial-gradient(circle at 50% 50%, rgba(208, 75, 255, 0.42), transparent 66%);
  animation: drift-c 28s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 12%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 62% at 50% 12%, #000 20%, transparent 72%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, rgba(8, 8, 13, 0.9));
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.55);
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5cf2b4;
  box-shadow: 0 0 0 0 rgba(92, 242, 180, 0.6);
  animation: pulse 2.6s ease-out infinite;
}

.hero-title {
  font-size: clamp(2.3rem, 4.3vw, 4.05rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.hero-title .grad {
  background: linear-gradient(100deg, #9aa4ff 0%, #c9a6ff 42%, #ff9ad5 92%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 14s linear infinite;
}

.hero .lede {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.85;
  color: var(--muted-dark);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.cta-row--center {
  justify-content: center;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

/* 产品窗口 */
.hero-visual {
  position: relative;
  min-width: 0;
  --px: 0;
  --py: 0;
}

.hero-glow {
  position: absolute;
  inset: 2% -12% -6% -10%;
  background: radial-gradient(58% 58% at 52% 42%, rgba(139, 61, 255, 0.5), transparent 72%);
  filter: blur(46px);
  z-index: 0;
  pointer-events: none;
}

.window {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0d0d14;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 80px -20px rgba(107, 74, 255, 0.4);
  transform: perspective(1500px) rotateY(calc(-6deg + var(--px) * 3deg))
    rotateX(calc(2.5deg + var(--py) * -2.5deg));
  transform-origin: 60% 50%;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: linear-gradient(#1a1a24, #101018);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dots {
  display: inline-flex;
  gap: 5px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.window-url {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 4px 12px;
}

.window img {
  width: 100%;
  height: auto;
}

.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #e9e8ff;
  background: rgba(16, 16, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.85);
  animation: float 7s ease-in-out infinite alternate;
}

.chip-round {
  top: -30px;
  left: 6px;
  padding: 10px 15px;
  border-radius: 999px;
}

.chip-round .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5cf2b4;
  box-shadow: 0 0 10px rgba(92, 242, 180, 0.8);
}

.chip-render {
  right: -22px;
  bottom: 42px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 178px;
  padding: 12px 14px;
  border-radius: 14px;
  animation-delay: -3.5s;
}

.chip-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
}

.chip-row b {
  font-weight: 600;
  color: #c9c4ff;
  font-variant-numeric: tabular-nums;
}

.chip-render .bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.chip-render .bar i {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6a74ff, #c04bff);
  transform-origin: left;
  animation: progress 5.5s ease-in-out infinite;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
}

.scroll-line {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
}

/* ---------- 滚动字幕 ---------- */
.ticker {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 17px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
}

.ticker-group i {
  font-style: normal;
  color: rgba(255, 255, 255, 0.2);
}

/* ---------- 通用区块 ---------- */
.section {
  position: relative;
  padding: clamp(72px, 8.5vw, 124px) 0;
}

.section--paper {
  background: var(--paper);
  color: var(--text);
}

.section--deep {
  background: linear-gradient(180deg, var(--paper-deep) 0%, #e5e4db 100%);
  color: var(--text);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section-head {
  position: relative;
  margin-bottom: clamp(34px, 4.5vw, 60px);
}

.section-head[data-index]::after {
  content: attr(data-index);
  position: absolute;
  right: 0;
  top: -0.55em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(90px, 12vw, 170px);
  line-height: 1;
  color: currentColor;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.section-head .idx {
  color: var(--brand);
  letter-spacing: 0.1em;
}

.section--ink .section-head .idx {
  color: #a8b0ff;
}

.section-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
  margin-top: 16px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.9vw, 3rem);
  letter-spacing: -0.035em;
  font-weight: 780;
  margin: 0;
  max-width: 20ch;
}

.section-head--tight {
  margin-bottom: 18px;
}

.section-lede {
  font-size: clamp(0.97rem, 1.1vw, 1.06rem);
  line-height: 1.85;
  color: var(--muted);
  max-width: 44ch;
}

.section--ink .section-lede {
  color: var(--muted-dark);
}

.fine {
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.75;
}

.section--ink .fine {
  color: var(--muted-dark);
}

/* ---------- 能力：便当盒 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 28px);
  box-shadow:
    0 1px 2px rgba(12, 13, 20, 0.04),
    0 30px 60px -54px rgba(12, 13, 20, 0.5);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow:
    0 2px 4px rgba(12, 13, 20, 0.05),
    0 44px 80px -54px rgba(12, 13, 20, 0.5);
}

.card--chat {
  grid-column: span 7;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card--feature {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  overflow: hidden;
}

.card--feature::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 61, 247, 0.07), transparent 68%);
  pointer-events: none;
}

.feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: rgba(12, 13, 20, 0.26);
}

.card--feature .example {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.card--feature .example::before {
  content: '›';
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

.card--feature:nth-of-type(4),
.card--feature:nth-of-type(5) {
  grid-column: span 6;
}

.card-head h3 {
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.card-head p {
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.card--feature h3 {
  font-size: 1.06rem;
  margin-top: 4px;
}

.card--feature p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(79, 93, 246, 0.12), rgba(168, 85, 247, 0.16));
  color: var(--brand);
  border: 1px solid rgba(79, 93, 246, 0.12);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 会话示例 */
.chat {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  margin-top: auto;
}

.msg p {
  font-size: 13px;
  line-height: 1.65;
}

.msg--user p {
  width: fit-content;
  max-width: 88%;
  margin-left: auto;
  padding: 9px 14px;
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, #5b66f7, #7b5bf8);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(79, 93, 246, 0.9);
}

.msg--bot {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
}

.who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.avatar {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6a74ff, #a855f7);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

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

.result picture img {
  width: 138px;
  height: 104px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.result-meta {
  display: grid;
  gap: 3px;
  font-size: 11px;
  color: var(--muted);
}

.result-meta b {
  font-size: 12.5px;
  color: var(--text);
  font-weight: 600;
}

.result-meta .mono {
  font-size: 10.5px;
  color: var(--muted);
}

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.quick span {
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.msg--status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}

.typing {
  display: inline-flex;
  gap: 3px;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  animation: blink 1.3s ease-in-out infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.16s;
}

.typing i:nth-child(3) {
  animation-delay: 0.32s;
}

/* ---------- 迭代 ---------- */
.iterate {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 10px;
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
}

.steps li:first-child {
  border-top-color: var(--line-dark-strong);
}

.steps .mono {
  grid-row: 1 / span 2;
  padding-top: 4px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 10.5px;
}

.steps h3 {
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: #fff;
}

.steps p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted-dark);
}

.compare-wrap {
  display: grid;
  gap: 18px;
}

.compare {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: #0d0d12;
  border: 1px solid var(--line-dark-strong);
  box-shadow:
    0 50px 110px -50px rgba(0, 0, 0, 0.95),
    0 0 90px -40px rgba(139, 61, 255, 0.5);
  --pos: 52%;
  touch-action: pan-y;
}

.compare:hover,
.compare:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
}

.compare-base,
.compare-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compare-base img,
.compare-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.compare-overlay {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  will-change: clip-path;
}

.compare-tag {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(8, 8, 13, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.compare-tag--left {
  left: 14px;
}

.compare-tag--right {
  right: 14px;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #12131a;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.grip svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compare-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
}

.compare-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 48px;
  height: 48px;
}

.compare-range::-moz-range-thumb {
  width: 48px;
  height: 48px;
  border: 0;
}

.compare-wrap:focus-within .compare {
  outline: 2px solid #a68bff;
  outline-offset: 4px;
}

.compare-note {
  display: grid;
  gap: 6px;
}

.compare-note .mono {
  color: rgba(255, 255, 255, 0.38);
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

.compare-note p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.drag-hint {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.36);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- 版本画廊 ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.shot {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0d12;
  border: 1px solid var(--line);
}

.shot picture,
.shot img {
  width: 100%;
  height: 100%;
}

.shot img {
  object-fit: cover;
  transition:
    transform 1.1s var(--ease),
    filter 0.6s var(--ease);
}

.shot:hover img {
  transform: scale(1.045);
}

.shot figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 5px;
  padding: 44px 14px 13px;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(8, 8, 13, 0.9) 0%,
    rgba(8, 8, 13, 0.45) 55%,
    transparent 100%
  );
  transition: transform 0.5s var(--ease);
}

.turn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.prompt {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}

/* ---------- 计量 ---------- */
.metering {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.metering-copy .section-lede {
  max-width: 40ch;
}

.checks {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.checks li {
  position: relative;
  padding-left: 28px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(79, 93, 246, 0.12);
  box-shadow: inset 0 0 0 1.5px rgba(79, 93, 246, 0.45);
}

.checks li::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 0.5em;
  width: 7px;
  height: 4px;
  border-left: 1.5px solid var(--brand);
  border-bottom: 1.5px solid var(--brand);
  transform: rotate(-45deg);
}

.ledger {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow:
    0 1px 2px rgba(12, 13, 20, 0.05),
    0 50px 90px -60px rgba(12, 13, 20, 0.55);
}

.ledger-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.ledger-head .mono {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.ledger-head h3 {
  margin-top: 6px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.tag {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: rgba(79, 93, 246, 0.09);
  border: 1px solid rgba(79, 93, 246, 0.18);
}

.ledger-rows {
  padding: 4px 0;
}

.ledger-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(12, 13, 20, 0.08);
  font-size: 0.9rem;
}

.ledger-rows .name {
  color: var(--ink-soft);
}

.amt {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.state {
  min-width: 44px;
  text-align: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  color: var(--muted);
  background: rgba(12, 13, 20, 0.05);
}

.state--ok {
  color: #0d7757;
  background: rgba(20, 138, 98, 0.1);
}

.ledger-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.ledger-foot b {
  display: block;
  margin-top: 3px;
  font-size: 1.18rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.ledger .fine {
  margin-top: 14px;
}

/* ---------- 底座 ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.platform-grid li {
  padding: 26px 30px 30px 0;
  border-bottom: 1px solid var(--line);
}

.platform-grid li:nth-child(3n + 2),
.platform-grid li:nth-child(3n) {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.platform-grid .mono {
  color: var(--brand);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.platform-grid h3 {
  margin: 12px 0 8px;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
}

.platform-grid p {
  font-size: 0.89rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 收尾 ---------- */
.closing {
  position: relative;
  overflow: clip;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(92px, 13vw, 168px) 0;
  text-align: center;
  isolation: isolate;
}

.closing-glow {
  position: absolute;
  inset: auto -10% -55% -10%;
  height: 130%;
  z-index: -2;
  background:
    radial-gradient(48% 52% at 50% 88%, rgba(139, 61, 255, 0.62), transparent 70%),
    radial-gradient(34% 40% at 78% 84%, rgba(79, 93, 246, 0.4), transparent 72%);
  filter: blur(40px);
}

.closing-word {
  position: absolute;
  left: 50%;
  bottom: -0.3em;
  z-index: -1;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(120px, 23vw, 320px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.closing-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.closing .eyebrow {
  color: rgba(255, 255, 255, 0.45);
}

.closing h2 {
  font-size: clamp(2.3rem, 5.6vw, 4.3rem);
  letter-spacing: -0.045em;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.closing .section-lede {
  color: var(--muted-dark);
  max-width: 30ch;
}

.closing .cta-row {
  margin-top: 10px;
}

.closing .fine {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.38);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 52px 0 28px;
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.48);
}

.footer-cols {
  display: flex;
  gap: clamp(40px, 7vw, 96px);
}

.footer-cols h4 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.footer-cols a,
.footer-cols span {
  display: block;
  margin-bottom: 9px;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer-cols a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.38);
}

/* ---------- 进场 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}

/* ---------- 关键帧 ---------- */
@keyframes drift-a {
  to {
    transform: translate3d(6vw, 4vw, 0) scale(1.08);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(-5vw, 5vw, 0) scale(1.12);
  }
}

@keyframes drift-c {
  to {
    transform: translate3d(4vw, -5vw, 0) scale(0.94);
  }
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

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

@keyframes float {
  to {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(92, 242, 180, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(92, 242, 180, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(92, 242, 180, 0);
  }
}

@keyframes progress {
  0%,
  100% {
    transform: scaleX(0.64);
  }
  50% {
    transform: scaleX(0.92);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .hero-visual {
    max-width: 720px;
  }

  .chip-round {
    left: 8px;
  }

  .chip-render {
    right: 8px;
  }

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

  /* 单列时先给图，再读要点 */
  .iterate .compare-wrap {
    order: -1;
  }

  .compare-wrap {
    max-width: 680px;
  }
}

@media (max-width: 900px) {
  .section-head-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .section-head h2 {
    max-width: 24ch;
  }

  .section-head[data-index]::after {
    top: -0.4em;
    opacity: 0.045;
  }

  .card--chat,
  .card--feature,
  .card--feature:nth-of-type(4),
  .card--feature:nth-of-type(5) {
    grid-column: span 12;
  }

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

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

  .platform-grid li:nth-child(3n + 2),
  .platform-grid li:nth-child(3n) {
    padding-left: 0;
    border-left: 0;
  }

  .platform-grid li:nth-child(even) {
    padding-left: 26px;
    border-left: 1px solid var(--line);
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .header-inner {
    height: 64px;
  }

  .hero {
    padding-top: 108px;
  }

  .hero .eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.14em;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .brand-sub {
    display: none;
  }

  .chip-round {
    top: auto;
    bottom: -18px;
    left: 12px;
    font-size: 11px;
  }

  .chip-render {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .cta-row .btn {
    flex: 1 1 auto;
  }

  .result picture img {
    width: 112px;
    height: 84px;
  }

  .result {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .shots {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .platform-grid li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .footer-cols {
    gap: 48px;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-visual {
    margin-bottom: 26px;
  }
}

/* ---------- 降级：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .ticker-track {
    animation: none;
    transform: none;
  }
}
