/* =========================================================
   巴斯蒂安AI 首页 · 极简黑白 + logo 蓝点缀
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #fbfbfc;
  --ink: #0b0b0c;
  --ink-2: #1c1c1f;
  --muted: #6c6c74;
  --muted-2: #93939b;
  --line: rgba(11, 11, 12, 0.1);
  --line-soft: rgba(11, 11, 12, 0.055);
  --accent: #3ea4ec;
  --accent-deep: #0e72bc;
  --card: #ffffff;
  --code-bg: #0c0e11;
  --code-ink: #e8eaee;
  --shadow: 0 1px 2px rgba(11, 11, 12, 0.04), 0 12px 32px -18px rgba(11, 11, 12, 0.22);
  --r: 14px;
  --max: 1200px;
  --nav-h: 64px;
}

html[data-theme='dark'] {
  --bg: #08080a;
  --bg-alt: #0c0c0f;
  --ink: #f4f4f6;
  --ink-2: #e6e6ea;
  --muted: #9b9ba4;
  --muted-2: #77777f;
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.07);
  --card: #0e0e12;
  --code-bg: #050507;
  --code-ink: #e8eaee;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 40px -22px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang SC', 'HarmonyOS Sans SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Noto Sans SC', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-narrow { max-width: 880px; }

/* ---------------- 顶部导航（仅独立访问时显示） ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 40;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line-soft);
}
html.is-embedded .nav { display: none; }

.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }
html[data-theme='dark'] .brand img,
html[data-theme='dark'] .foot-brand img {
  background: #fff;
  box-shadow: 0 0 0 3px #fff;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; }

/* ---------------- 按钮 ---------------- */
.btn {
  --h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 34px; padding: 0 15px; font-size: 13px; }
.btn-lg { --h: 50px; padding: 0 26px; font-size: 15px; }

.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: #000; box-shadow: 0 10px 24px -12px rgba(11, 11, 12, 0.6); }
html[data-theme='dark'] .btn-solid:hover { background: #fff; color: #0b0b0c; }

.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
html[data-theme='dark'] .btn-line { border-color: rgba(255, 255, 255, 0.26); }
.btn-line:hover { border-color: var(--ink); }

.btn-text {
  background: none;
  color: var(--muted);
  padding: 0 4px;
}
.btn-text:hover { color: var(--accent-deep); }

.btn-invert { background: #fff; color: #0b0b0c; }
.btn-invert:hover { background: #f0f0f0; }
.btn-ghost-invert { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-ghost-invert:hover { border-color: #fff; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 70px) 0 78px;
  overflow: hidden;
  isolation: isolate;
}
html.is-embedded .hero { padding-top: calc(var(--nav-h) + 64px); }

.hero-inner { position: relative; z-index: 3; }

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: 96px 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6.2vw, 90px);
  line-height: 1.18;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 16em;
}
.hero h1 .mark {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.hero h1 .mark::after {
  content: '';
  position: absolute;
  left: -0.02em;
  right: -0.02em;
  bottom: -0.05em;
  height: 0.075em;
  background: var(--accent);
  opacity: 0.9;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: markIn 0.9s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes markIn { to { transform: scaleX(1); } }

.lede {
  margin: 26px 0 0;
  max-width: 42em;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.78;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  margin: 60px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  max-width: 720px;
}
.hero-facts div { display: flex; flex-direction: column; gap: 3px; }
.hero-facts dt {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
.hero-facts dd { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------------- 指标条 ---------------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}
.marquee { position: relative; }
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.track {
  display: flex;
  width: max-content;
  animation: slide 22s linear infinite;
}
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.strip-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 28px 46px;
  border-right: 1px solid var(--line-soft);
  white-space: nowrap;
}
.strip-item b {
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.strip-item span {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 108px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-line { border-top: 1px solid var(--line); }

.sec-head { margin-bottom: 54px; }
.sec-head h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 18em;
}
.sec-sub {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 42em;
}
.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.sec-note {
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-2);
  text-align: right;
}

/* ---------------- 能力卡片 ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.card {
  background: var(--bg);
  padding: 34px 30px 38px;
  transition: background 0.3s ease;
}
.card:hover { background: var(--card); }
.idx {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  margin-bottom: 26px;
  font-variant-numeric: tabular-nums;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* ---------------- 模型矩阵 ---------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}
.tab {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.tab:hover { color: var(--ink); border-color: var(--ink); }
.tab.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.model-groups { display: grid; gap: 12px; }
.mgroup {
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 24px 26px;
  background: var(--bg);
  transition: border-color 0.25s ease;
}
.mgroup:hover { border-color: var(--line); }
.mgroup.is-hidden { display: none; }
.mgroup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.mgroup-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mgroup-head .proto {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-weight: 600;
}
.mgroup-head .count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid var(--line-soft);
  background: var(--bg-alt);
  font-size: 12.5px;
  font-family: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color: var(--ink-2);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  flex: none;
}

/* ---------------- 代码卡 ---------------- */
.code-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.code-card {
  border-radius: var(--r);
  background: var(--code-bg);
  color: var(--code-ink);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.code-card header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.code-card h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #d7dae0;
}
.dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.copy {
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #b9bec8;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.copy:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.copy.is-done { color: var(--accent); border-color: var(--accent); }

.code-card pre {
  margin: 0;
  padding: 22px 20px 26px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.85;
  font-family: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  tab-size: 4;
}
.code-card code { color: #cfd4dc; }

.code-foot {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------- 计费 ---------------- */
.bill {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}
.bill-item h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.bill-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.bill-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
}
.bill-bar p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------------- 步骤 ---------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.steps li {
  position: relative;
  padding: 40px 32px 44px;
  background: var(--bg);
}
.step-no {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  margin-bottom: 22px;
}
.steps h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -0.02em; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---------------- FAQ ---------------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p {
  margin: 0;
  padding: 0 60px 24px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* ---------------- CTA ---------------- */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  padding: 96px 0 104px;
}
.cta-band h2 {
  margin: 0 0 40px;
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.cta-band .btn-solid { background: #fff; color: #0b0b0c; }
.cta-band .btn-solid:hover { background: #f1f1f1; }

/* ---------------- 页脚 ---------------- */
.foot { padding: 40px 0; border-top: 1px solid var(--line-soft); }
.foot-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
}
.foot-brand img { width: 22px; height: 22px; border-radius: 6px; }
.foot-links { display: flex; gap: 22px; font-size: 13px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-copy { margin: 0 0 0 auto; font-size: 12.5px; color: var(--muted-2); }

/* ---------------- 入场动画 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .sec-head-row { align-items: flex-start; }
  .sec-note { text-align: left; }
}

@media (max-width: 860px) {
  .wrap { padding: 0 22px; }
  .nav-inner { padding: 0 22px; }
  .hero { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 210px; }
  #map { opacity: 0.72; }
  .hero .live { display: none; }
  .grid-lines { background-size: 64px 100%; }
  .hero-facts { gap: 28px; margin-top: 44px; }
  .section { padding: 76px 0; }
  .sec-head { margin-bottom: 38px; }
  .code-cards { grid-template-columns: 1fr; }
  .bill { grid-template-columns: 1fr; gap: 26px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 30px 24px 34px; }
  .cta-band { padding: 72px 0 80px; }
  .foot-copy { margin-left: 0; width: 100%; }
  .faq summary { font-size: 15px; }
  .faq details p { padding-right: 6px; }
  .strip-item { padding: 22px 30px 22px 0; margin-right: 30px; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 56px); }
  .hero h1 .mark::after { height: 0.11em; }
  .cta-row .btn { flex: 1 1 auto; }
  .cta-row .btn-text { flex: 0 0 auto; }
  .hero-facts { gap: 20px 26px; }
  .mgroup { padding: 20px 18px; }
  .chip { font-size: 11.5px; height: 28px; padding: 0 10px; }
  .foot-links { gap: 16px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1 .mark::after { animation: none; transform: scaleX(1); }
}

/* =========================================================
   v2：轮播词 / 点云地球 / 章节动效 / 多行模型滚动
   ========================================================= */

/* ---- 第三行轮播词 ---- */
.rot-prefix {
  display: inline-block;
  margin-right: 0.06em;
}
.mark.rotator {
  width: 2.92em;
  height: 1em;
  display: inline-block;
  overflow: visible;
}
.rot-word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  top: 50%;
  opacity: 0;
  transform: translateY(calc(-50% + 0.5em));
  transition: opacity 0.34s ease, transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.rot-word.is-on { opacity: 1; transform: translateY(-50%); }
.rot-word.is-prev { opacity: 0; transform: translateY(calc(-50% - 0.5em)); }

/* ---- 章节头：左文右动效 ---- */
.sec-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 56px;
  align-items: center;
}
.sec-anim {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  aspect-ratio: 460 / 260;
}
.sec-anim svg { width: 100%; height: 100%; overflow: visible; }

.ring { fill: none; stroke: var(--line); stroke-width: 1; }
.ring.core { fill: color-mix(in srgb, var(--accent) 5%, transparent); stroke: color-mix(in srgb, var(--accent) 26%, var(--line)); }
.flow { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; opacity: 0.9; }
.f1 { stroke-dasharray: 34 136; animation: dash1 7s linear infinite; }
.f2 { stroke-dasharray: 24 116; animation: dash2 5.4s linear infinite reverse; }
.f3 { stroke-dasharray: 18 82; animation: dash3 4s linear infinite; }
@keyframes dash1 { to { stroke-dashoffset: -340; } }
@keyframes dash2 { to { stroke-dashoffset: -280; } }
@keyframes dash3 { to { stroke-dashoffset: -200; } }

.pulse {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.75); }
}
.spark { fill: var(--accent); opacity: 0.5; animation: blink 3.2s ease-in-out infinite; }
.s2 { animation-delay: 0.8s; }
.s3 { animation-delay: 1.6s; }
.s4 { animation-delay: 2.4s; }
@keyframes blink {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.85; }
}

/* ---- 模型多行滚动 ---- */
.model-rows {
  display: grid;
  gap: 10px;
  padding: 8px 0 4px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.mrow {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.mrow-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  padding-left: 2px;
}
.mrow-view { position: relative; overflow: hidden; padding: 9px 0; }
.mrow-view::before,
.mrow-view::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}
.mrow-view::before { left: 0; background: linear-gradient(to right, var(--bg-alt), transparent); }
.mrow-view::after { right: 0; background: linear-gradient(to left, var(--bg-alt), transparent); }

.mtrack {
  display: flex;
  gap: 9px;
  width: max-content;
  animation: slide 46s linear infinite;
}
.mrow:nth-child(1) .mtrack { animation-duration: 52s; }
.mrow:nth-child(2) .mtrack { animation-duration: 44s; }
.mrow:nth-child(3) .mtrack { animation-duration: 58s; }
.mrow:nth-child(4) .mtrack { animation-duration: 48s; }
.mrow:hover .mtrack { animation-play-state: paused; }
.mtrack .chip { flex: none; }
.mtrack .chip:hover { border-color: var(--line-soft); color: var(--ink-2); }

@media (max-width: 1080px) {
  .sec-head-split { grid-template-columns: 1fr; gap: 28px; }
  .sec-anim { margin: 0; max-width: 380px; }
}

/* 章节动效里的漂浮方块 */
.float { fill: var(--accent); opacity: 0.3; transform-box: fill-box; transform-origin: center; animation: floaty 6.5s ease-in-out infinite; }
.fa { animation-delay: 0.3s; }
.fb { animation-delay: 1.4s; }
.fc { animation-delay: 2.1s; }
.fd { animation-delay: 3.2s; }
.fe { animation-delay: 4.1s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); opacity: 0.14; }
  50% { transform: translateY(-9px); opacity: 0.55; }
}
@media (max-width: 860px) {
  .rot-prefix {
  display: inline-block;
  margin-right: 0.06em;
}
.mark.rotator { width: 2.9em; }
  .mrow { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  .mrow-view::before, .mrow-view::after { width: 32px; }
}
@media (max-width: 620px) {

}
@media (max-width: 560px) {
  .sec-anim { max-width: 100%; }
  .cta-row .btn { flex: 0 0 auto; }
  .cta-row .btn-text { flex: 0 0 auto; }
  .hero h1 { font-size: clamp(36px, 10.2vw, 52px); }
  .mrow-label { font-size: 10px; letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  .track, .mtrack { animation-duration: 60s !important; }
  .f1, .f2, .f3, .pulse, .spark { animation-duration: 12s; }
}

.chip-sep {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 0 3px;
  color: var(--muted-2);
  font-size: 12px;
}

/* ---------------- v3：世界地图版 ---------------- */
.hero .live {
  position: absolute;
  right: 32px;
  bottom: 24px;
  z-index: 4;
}
.live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green, #10b981);
  animation: liveBlink 1.6s ease-in-out infinite;
}
@keyframes liveBlink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
html[data-theme='dark'] .live i { background: #34d399; }

.lede, .cta-row, .hero-facts {
  text-shadow: 0 1px 10px var(--bg), 0 0 22px var(--bg);
}


/* ---------------- aibulid 创作台入口（新增） ---------------- */
.nav-ai-entry {
  color: var(--accent-deep);
  border-color: rgba(62, 164, 236, 0.42);
}
.nav-ai-entry:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
html[data-theme='dark'] .nav-ai-entry {
  color: var(--accent);
  border-color: rgba(62, 164, 236, 0.45);
}
html[data-theme='dark'] .nav-ai-entry:hover {
  color: #08080a;
  background: var(--accent);
}
@media (max-width: 560px) {
  .nav-ai-entry { display: none; }
}
