/* 协奏曲 · 落地页设计系统（api.xiezouqu.com 首页 iframe 与 xiezouqu.com 共用） */

@font-face {
  font-family: "Geist";
  src: url("/brand/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/brand/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fcfcfb;
  --ink: #0c0c0d;
  --ink-2: #2c2c2f;
  --muted: #6c6c71;
  --tile: #f5f5f3;
  --soft: #eeeeeb;
  --soft-2: #e5e5e2;
  --line: #e7e7e4;
  --paper: #fefefe;
  --blue: #0051ff;
  --blue-2: #6d9cff;
  --term: #111113;
  --term-2: #1d1d20;
  --sans: "Geist", "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; }
button { font: inherit; color: inherit; }
::selection { background: #d7e3ff; }

.wrap {
  width: 100%;
  max-width: 1264px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

/* ---------- 入场 ---------- */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 70ms + 60ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding-top: clamp(72px, 12vh, 136px);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.badge:hover { border-color: #d6d6d2; box-shadow: 0 2px 10px rgba(12, 12, 13, 0.05); }
.badge-new {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f0ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
}
.badge-title { font-weight: 500; }
.badge-sub { color: var(--muted); }
.badge-arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--soft);
  font-size: 12px;
  transition: transform 0.3s var(--ease);
}
.badge:hover .badge-arrow { transform: translate(1px, -1px); }

.hero h1 {
  margin: 30px 0 22px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 560;
}
.ul { position: relative; white-space: nowrap; }
.ul::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: -0.06em;
  height: 0.055em;
  border-radius: 1em;
  background: #cfcfcb;
  transform: scaleX(0);
  transform-origin: left;
  animation: draw 1.1s var(--ease) 0.7s forwards;
}
@keyframes draw { to { transform: scaleX(1); } }

.lead {
  max-width: 44em;
  margin: 0 auto;
  text-wrap: balance;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-2);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-ink { background: var(--ink); color: #fafafa; }
.btn-ink:hover { background: #2a2a2d; }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-soft:hover { background: var(--soft-2); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.chev {
  margin-left: 10px;
  font-size: 20px;
  line-height: 0;
  transform: translateY(-1px);
  transition: transform 0.3s var(--ease);
}
.btn:hover .chev { transform: translate(3px, -1px); }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(64px, 10vh, 112px);
}
.tile {
  position: relative;
  grid-column: span 2;
  height: 300px;
  border-radius: 22px;
  background: var(--tile);
  overflow: hidden;
  isolation: isolate;
}
.tile-models { grid-column: span 4; height: 380px; }
.tile-orb { grid-column: span 2; height: 380px; }
.tile-foot {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 18px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.tile-foot .explore { transition: transform 0.35s var(--ease); }
.tile:hover .explore { transform: translateX(3px); }
.tile-foot.on-dark { color: #f2f2f4; }

/* Chat */
.chat-window {
  position: absolute;
  inset: 0 0 58px 0;
  padding: 0 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 88%, transparent 100%);
}
.chat-track {
  display: flex;
  flex-direction: column;
  animation: chat-scroll 26s linear infinite;
}
@keyframes chat-scroll { to { transform: translateY(-50%); } }
.tile-chat:hover .chat-track { animation-play-state: paused; }
.msg {
  width: fit-content;
  max-width: 80%;
  margin-bottom: 10px;
  padding: 9px 14px;
  border-radius: 16px;
  background: #ebebe8;
  font-size: 13.5px;
  line-height: 1.55;
}
.msg.me { margin-left: auto; border-radius: 16px 16px 6px 16px; }
.msg.ai { background: #e9e9e6; border-radius: 16px 16px 16px 6px; max-width: 88%; }
.msg .tag {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* Build / terminal */
.tile-term { background: var(--term); }
.term { position: absolute; inset: 0 0 52px 0; overflow: hidden; }
.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: #8b8b91;
}
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.term-meter {
  margin-left: auto;
  width: 44px;
  height: 11px;
  border: 1px solid #3a3a3f;
  padding: 1px;
}
.term-meter b { display: block; height: 100%; width: 13%; background: #e9e9ec; transition: width 0.4s; }
.term-pct { min-width: 50px; text-align: right; color: #bdbdc3; }
.term-body {
  padding: 2px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: #d8d8dd;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.ln { display: flex; gap: 6px; opacity: 1; }
.js .ln { opacity: 0; transform: translateY(4px); transition: opacity 0.35s, transform 0.35s var(--ease); }
.js .ln.show { opacity: 1; transform: none; }
.ln.gap { margin-top: 8px; }
.ln .k, .ln .c1 { color: #62cbb6; }
.ln .s { color: #d8d8dd; }
.ln .dim { color: #6f6f76; }
.ln .v { color: #b79dff; }
.ln .st { margin-left: auto; }
.ln .st.run { color: #86a8ff; }
.ln .st.ok { color: #7fd49a; }
.ln.code { gap: 0; padding-left: 6px; }
.ln .no { display: inline-block; width: 30px; color: #66666c; }
.ln.add { background: rgba(78, 170, 104, 0.16); }
.ln.del { background: rgba(224, 86, 86, 0.14); }

/* Agent */
.agent {
  position: absolute;
  inset: 0 0 58px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
}
.bubble-ink {
  align-self: flex-end;
  max-width: 94%;
  padding: 13px 18px;
  border-radius: 18px;
  background: var(--ink);
  color: #f6f6f7;
  font-size: 15px;
  line-height: 1.55;
}
.thinking {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 34px;
  font-size: 14px;
  color: var(--muted);
}
.thinking i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 1.4s ease-in-out infinite;
}
.thinking i:nth-child(1) { background: #b9ccff; }
.thinking i:nth-child(2) { background: #7fa4ff; animation-delay: 0.18s; }
.thinking i:nth-child(3) { animation-delay: 0.36s; }
.thinking span {
  margin-left: 6px;
  background: linear-gradient(90deg, var(--muted) 30%, #c9c9cd 50%, var(--muted) 70%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 2.4s linear infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(0.8); opacity: 0.55; } 50% { transform: scale(1); opacity: 1; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* Models wall */
.models-head {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 2;
}
.kicker { font-size: 13px; color: var(--muted); }
.kicker b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.marquee {
  position: absolute;
  inset: 52px 0 58px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.mrow {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: slide var(--dur, 60s) linear infinite;
}
.mrow.rev { animation-direction: reverse; }
.marquee:hover .mrow { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.chip img { width: 26px; height: 26px; }
.chip small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.chip.hot { background: var(--ink); border-color: var(--ink); color: #f6f6f7; }
.chip.hot small { color: #9d9da3; }
.chip.hot img[src*="openai"], .chip.hot img[src*="grok"] { filter: invert(1); }

/* Orb */
.tile-orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Quick start ---------- */
.quick {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(96px, 14vh, 160px);
}
.quick h2, .sec-title {
  margin: 0 0 28px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  font-weight: 560;
}
.steps { list-style: none; padding: 0; margin: 0 0 28px; }
.steps li {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps span { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.baseurl {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s;
}
.baseurl:hover { border-color: #cfcfcb; }
.baseurl-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.baseurl code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 14px; }
.baseurl-act {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 13px;
  white-space: nowrap;
}
.code-card {
  border-radius: 22px;
  background: var(--term);
  overflow: hidden;
}
.tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid #222226; }
.tabs button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8b8b91;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tabs button:hover { color: #d8d8dd; }
.tabs button[aria-selected="true"] { background: #25252a; color: #f2f2f4; }
.code-card pre {
  margin: 0;
  padding: 20px 24px 28px;
  min-height: 268px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: #dcdce1;
}
.code-card .c1 { color: #62cbb6; }
.code-card .s { color: #e9c08a; }

/* ---------- Clients ---------- */
.clients { margin-top: clamp(88px, 12vh, 136px); text-align: center; }
.clients-title { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.client-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.client-list li {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--tile);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(96px, 14vh, 160px);
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.foot-brand img { border-radius: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: var(--ink); }

/* ---------- 官网专用：顶栏 / 优势 / 收尾 CTA ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 252, 251, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; height: 68px; gap: 44px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.site-logo img { border-radius: 7px; }
.site-links { display: flex; gap: 4px; }
.site-links a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 15px;
  color: #3a3a3e;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.site-links a:hover { color: var(--ink); background: var(--tile); }
.site-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* xAI 式分体按钮：主操作 + 下拉 */
.split { position: relative; display: flex; }
.split > .btn { border-radius: 999px 0 0 999px; padding-right: 16px; }
.split summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 0 999px 999px 0;
  border-left: 1px solid #3a3a3e;
  background: var(--ink);
  color: #fafafa;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}
.split summary::-webkit-details-marker { display: none; }
.split summary:hover, .split details[open] summary { background: #2a2a2d; }
.split summary svg { transition: transform 0.25s var(--ease); }
.split details[open] summary svg { transform: rotate(180deg); }
.split-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(12, 12, 13, 0.08);
}
.split-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--ink-2);
}
.split-menu a:hover { background: var(--tile); color: var(--ink); }

.why {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(112px, 16vh, 176px);
}
.why-head { position: sticky; top: 108px; align-self: start; }
.why-head p { margin: 0; max-width: 24em; color: var(--muted); }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 28px 0 30px;
  border-top: 1px solid var(--line);
}
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list .no { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 6px; }
.why-list h3 { margin: 0 0 6px; font-size: 22px; font-weight: 560; letter-spacing: -0.015em; }
.why-list p { margin: 0; color: var(--ink-2); max-width: 34em; }
.why-list code { font-family: var(--mono); font-size: 0.86em; padding: 2px 6px; border-radius: 6px; background: var(--tile); }
[id] { scroll-margin-top: 88px; }
html { scroll-behavior: smooth; }

.outro {
  margin-top: clamp(112px, 16vh, 176px);
  padding: clamp(56px, 9vw, 112px) clamp(20px, 4vw, 48px);
  border-radius: 28px;
  background: var(--term);
  color: #f2f2f4;
  text-align: center;
}
.outro h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 560;
}
.outro p { margin: 0 auto; max-width: 30em; color: #a4a4aa; }
.outro .cta { margin-top: 34px; }
.outro .btn-ink { background: #fafafa; color: var(--ink); }
.outro .btn-ink:hover { background: #e6e6e6; }
.outro .btn-soft { background: #242428; color: #f2f2f4; }
.outro .btn-soft:hover { background: #2f2f34; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { grid-column: span 1; }
  .tile-agent, .tile-models, .tile-orb { grid-column: span 2; }
  .tile-agent { height: 240px; }
  .quick, .why { grid-template-columns: minmax(0, 1fr); }
  .why-head { position: static; }
  .site-links { display: none; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile, .tile-agent, .tile-models, .tile-orb { grid-column: span 1; height: 290px; }
  .tile-models { height: 340px; }
  .hero h1 { letter-spacing: -0.02em; }
  .badge-sub { display: none; }
  .cta .btn { flex: 1 1 auto; }
  .chip { height: 44px; font-size: 14.5px; }
  .chip img { width: 22px; height: 22px; }
  .code-card pre { font-size: 12.5px; padding: 16px 18px 22px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .site-actions .btn-soft { display: none; }
  .why-list li { grid-template-columns: 40px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
  .ul::after { transform: none; animation: none; }
  .chat-track, .mrow, .thinking i, .thinking span { animation: none; }
  .js .ln { opacity: 1; transform: none; }
}
