/* ============================================
   IteraCompute 官网样式
   设计风格:品牌亮蓝渐变、流动水波与柔光、
   白色背景及等宽字体技术元素
   ============================================ */

:root {
  /* Logo palette: electric blue, ice blue and deep navy on white. */
  --brand-blue: #087DFF;
  --brand-cyan: #59BDFD;
  --brand-white: #ffffff;
  --brand-blue-rgb: 8, 125, 255;
  --brand-cyan-rgb: 89, 189, 253;
  --brand-white-rgb: 255, 255, 255;
  --bg: var(--brand-white);
  --bg-soft: #f2f8ff;
  --bg-card: #ffffff;
  --text: #000D3B;
  --text-secondary: #3f536d;
  --text-muted: #586b82;
  --border: rgba(var(--brand-blue-rgb), 0.15);
  --border-strong: rgba(var(--brand-blue-rgb), 0.32);
  --accent: #056bdc;
  --accent-ink: var(--brand-white);
  --accent-hover: #055bc2;
  --highlight: var(--brand-blue);
  --highlight-dark: #0561c6;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-button: 6px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
    "Cascadia Mono", "Cascadia Code", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", monospace;
  --nav-height: 64px;
  --max-width: 1160px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html:lang(zh) {
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  position: relative;
  isolation: isolate;
  font-family: var(--font-sans);
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
}

html:lang(zh) :is(h1, h2, h3, h4) {
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 10% 15%, rgba(var(--brand-cyan-rgb), 0.2), transparent 75%),
    radial-gradient(ellipse 55% 45% at 90% 40%, rgba(var(--brand-blue-rgb), 0.08), transparent 75%),
    linear-gradient(180deg, #f5faff, #ffffff 90%);
}

/* A low-resolution fluid field stays behind the content; no grid or ring layer. */
.brand-waves {
  position: fixed;
  inset: -32px;
  width: calc(100% + 64px);
  height: calc(100% + 64px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.62;
  filter: blur(16px);
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.9) 55%, rgba(0, 0, 0, 0.18) 100%);
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.9) 55%, rgba(0, 0, 0, 0.18) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 通用元素 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-button);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(115deg, #0768d5, #0872df);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -14px rgba(var(--brand-blue-rgb), 0.6);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(115deg, #055bc2, #0768d5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--text);
  background: var(--bg-soft);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brand-blue);
}

h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* ---------- 导航 ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  padding: 0;
  background: transparent;
  border: 0;
  z-index: 100;
  transition: top 0.3s ease, padding 0.3s ease;
}

.nav-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  transition:
    height 0.3s ease,
    max-width 0.3s ease,
    border-color 0.3s ease,
    border-radius 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.nav.nav-scrolled {
  top: 10px;
  padding: 0 16px;
}

.nav.nav-scrolled .nav-inner {
  height: 56px;
  max-width: 1240px;
  border-color: rgba(100, 160, 230, 0.18);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 6px 30px rgba(30, 90, 160, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo .logo-word-accent {
  color: var(--brand-blue);
}

.logo span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-mark {
  width: 30px;
  height: 30px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.06);
  filter: drop-shadow(0 3px 6px rgba(var(--brand-blue-rgb), 0.24));
}

.nav .logo {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 auto;
}

.nav-link,
.nav-dropdown-trigger,
.nav-sign-in {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover,
.nav-dropdown-trigger:hover,
.nav-sign-in:hover {
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.nav-dropdown .chevron {
  flex: 0 0 auto;
  opacity: 0.65;
  transition: transform 0.18s ease;
}

.nav-dropdown.is-open .chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  display: grid;
  min-width: 260px;
  padding: 8px;
  background: rgba(var(--brand-white-rgb), 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 40px -24px rgba(39, 79, 132, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.nav-dropdown-menu[hidden] {
  display: none;
}

@media (hover: hover) and (min-width: 1201px) {
  /* Invisible bridge over the 8px offset so the pointer can travel from the trigger to the menu without closing it. */
  .nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
  }
}

.nav-dropdown-menu a,
.nav-dropdown-menu > .nav-pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(var(--brand-blue-rgb), 0.08);
}

.nav-pending {
  cursor: default;
}

.coming-soon {
  display: inline-flex;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.nav-cta {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 14px;
}

.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-radius 300ms ease;
}

section[id] {
  scroll-margin-top: calc(var(--nav-height) + 28px);
}

/* ---------- Hero ---------- */

.hero {
  padding: calc(var(--nav-height) + 90px) 0 70px;
  text-align: center;
  position: relative;
}

.hero > .container,
.cta > .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero h1 .accent {
  background: linear-gradient(115deg, var(--highlight-dark), var(--brand-blue) 58%, #289ff3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 24px;
}

html[lang="zh-CN"] .hero p {
  max-width: 1000px;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 10px 0;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Secondary product details use a quiet text row. */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
}

.hero-pill:first-child {
  padding-left: 0;
}

.hero-pill + .hero-pill {
  border-left: 1px solid var(--border-strong);
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  max-width: 620px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hero-benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.hero-benefit svg {
  flex-shrink: 0;
  color: var(--accent);
}

.hero-benefit-arrow {
  color: var(--text-muted);
  font-size: 12px;
}

.hero-benefit:hover {
  color: var(--accent);
}

.hero-benefit:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 5px;
  border-radius: 2px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-harness {
  font-family: inherit;
  cursor: default;
}

.hero-harness .coming-soon {
  color: inherit;
  border-color: rgba(var(--brand-white-rgb), 0.35);
  background: rgba(var(--brand-white-rgb), 0.12);
}

.hero-terminal {
  max-width: 720px;
  margin: 40px auto 0;
  background: rgba(var(--brand-white-rgb), 0.9);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 24px 64px -28px rgba(8, 84, 180, 0.3), inset 0 1px 0 var(--brand-white);
}

.hero-terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(100deg, #ffffff, #f1f8ff);
}

.hero-terminal-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hero-terminal-header .dot:first-child {
  background: #f87171;
}

.hero-terminal-header .dot:nth-child(2) {
  background: #fbbf24;
}

.hero-terminal-header .dot:nth-child(3) {
  background: #34d399;
}

.hero-terminal-header .title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

.code-tabs {
  display: flex;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.code-tab {
  padding: 12px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: 500 13px var(--font-mono);
  color: var(--text-muted);
  cursor: pointer;
}

.code-tab[aria-selected="true"] {
  color: var(--highlight-dark);
  border-bottom-color: var(--brand-blue);
}

.code-tab:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: -2px;
}

.hero-terminal-body {
  min-height: 350px;
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-secondary);
  overflow-x: auto;
}

.hero-terminal-body[hidden] {
  display: none;
}

.hero-terminal-body pre,
.hero-terminal-body code {
  font: inherit;
  white-space: pre;
  overflow-wrap: normal;
}

.hero-terminal-body:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: -3px;
}

.hero-terminal-body .k {
  color: var(--highlight-dark);
}

.hero-terminal-body .s {
  color: var(--highlight);
}

.hero-terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-size: 13px;
}

.hero-terminal-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--highlight-dark);
  font-weight: 600;
}

.hero-terminal-footer a:hover {
  text-decoration: underline;
}

/* ---------- Free, catalog and crawlable model detail pages ---------- */

.landing-hero,
.model-detail-hero {
  padding: calc(var(--nav-height) + 88px) 0 52px;
}

.landing-hero h1 {
  max-width: 860px;
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.landing-hero p {
  max-width: 780px;
  color: var(--text-secondary);
  font-size: 18px;
}

/* Homepage hero subtitle: two lines with highlighted 免费/free link to /free/. */
.landing-hero .hero-sub {
  line-height: 1.75;
}

.landing-hero .catalog-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.landing-hero .evidence-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.landing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Models 目录 hero:标题居左,按钮居右 */
.catalog-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.catalog-hero .landing-actions {
  margin-top: 0;
  flex: 0 0 auto;
}

.catalog-section {
  padding: 0 0 96px;
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pricing-plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  background: rgba(var(--brand-white-rgb), 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pricing-plan h2 {
  font-size: 22px;
}

.pricing-plan-price {
  min-height: 64px;
  margin: 18px 0 24px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--highlight-dark);
}

.pricing-plan dl {
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
  font-size: 13px;
}

.pricing-plan dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pricing-plan dt {
  color: var(--text-muted);
}

.pricing-plan dd {
  text-align: right;
}

.pricing-plan .btn {
  justify-content: center;
  margin-top: auto;
  padding: 12px 14px;
  font-size: 13px;
}

.pricing-note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.model-detail-hero + .container .live-catalog-note {
  margin-bottom: 24px;
}

.pricing-model-section {
  padding-top: 72px;
  padding-bottom: 96px;
}

.pricing-table-wrapper {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(var(--brand-white-rgb), 0.64);
}

.pricing-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.pricing-table th,
.pricing-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 400;
}

.pricing-table thead th {
  color: var(--text-muted);
  background: rgba(var(--brand-blue-rgb), 0.04);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.pricing-table tbody tr:last-child > * {
  border-bottom: 0;
}

.pricing-table td {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.pricing-table th a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.pricing-table th a:hover {
  color: var(--highlight-dark);
}

.pricing-table img {
  flex-shrink: 0;
  object-fit: contain;
}

.pricing-model-note {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.catalog-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(var(--brand-white-rgb), 0.78);
}

.catalog-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.catalog-table th,
.catalog-table td {
  padding: 14px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 400;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.catalog-table thead th {
  text-align: center;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.catalog-table tbody td:nth-child(2),
.catalog-table tbody td:nth-child(n+7):nth-child(-n+12) {
  text-align: center;
}

.catalog-table thead th:first-child {
  width: 22%;
}

.catalog-table thead th:nth-child(2) {
  width: 8%;
}

.catalog-table thead th:nth-child(3),
.catalog-table thead th:nth-child(4),
.catalog-table thead th:nth-child(5),
.catalog-table thead th:nth-child(6) {
  width: 6%;
}

.catalog-table thead th:nth-child(7),
.catalog-table thead th:nth-child(8) {
  width: 7%;
}

.catalog-table thead th:nth-child(9),
.catalog-table thead th:nth-child(10),
.catalog-table thead th:nth-child(11),
.catalog-table thead th:nth-child(12) {
  width: 5%;
}

.catalog-table thead th:nth-child(13) {
  width: 12%;
}

.catalog-table tbody tr:last-child > * {
  border-bottom: 0;
}

.catalog-table tr > :first-child {
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
}

.catalog-table .catalog-model-cell {
  padding: 14px 12px;
}

.catalog-model-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.catalog-model-name:hover {
  color: var(--highlight-dark);
}

.catalog-model-name img {
  object-fit: contain;
  flex-shrink: 0;
}

.catalog-model-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.catalog-model-cell .model-id {
  gap: 6px;
  margin: 6px 0 0;
}

.catalog-model-cell .model-id code {
  font-size: 10.5px;
}

.catalog-model-cell .model-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 5px;
}

.catalog-model-cell .copy-success,
.catalog-model-cell .is-copied .copy-icon {
  display: none;
}

.catalog-model-cell .is-copied .copy-success {
  display: block;
}

.catalog-model-cell .alias-note {
  margin-top: 8px;
  font-size: 11px;
}

.catalog-price {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.catalog-context-line {
  display: block;
  font-size: 11px;
}

.catalog-table .model-status {
  gap: 4px;
  padding: 4px 6px;
  white-space: normal;
  line-height: 1.4;
}

.catalog-table .model-status::before {
  flex-shrink: 0;
}

.catalog-table-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.catalog-table-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 7px 8px;
  font-size: 11px;
}

.model-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  margin-top: 28px;
  padding: 18px 22px;
  background: rgba(var(--brand-white-rgb), 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  scroll-margin-top: 220px;
}

.model-summary .summary-price-label { margin: 0; flex-shrink: 0; font-size: 12px; text-align: center; white-space: nowrap; }
.model-summary-metrics { flex: 1; display: grid; grid-template-columns: repeat(11, minmax(max-content, 1fr)); align-items: center; gap: 12px; min-width: 800px; margin: 0; font-family: var(--font-sans); }
.model-summary-metrics > div { text-align: center; }
.model-summary-metrics dt { color: var(--text-muted); font-size: 12px; white-space: nowrap; margin-bottom: 8px; }
.model-summary-metrics dd { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 36px; margin: 0; color: var(--text); font-size: 17px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.model-summary:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }

.model-detail-name img {
  object-fit: contain;
  flex-shrink: 0;
}

.model-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.model-status,
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
  white-space: nowrap;
}

.model-status {
  background: var(--bg-soft);
  color: var(--text-muted);
}

.model-status.online {
  color: #146643;
  background: #edf9f2;
}

.model-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.source-badge {
  color: var(--highlight-dark);
  border: 1px solid var(--border-strong);
}

.model-id {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  min-width: 0;
  position: relative;
}

.model-id code,
.api-facts code {
  font: 12.5px var(--font-mono);
  overflow-wrap: anywhere;
}

.model-id code {
  min-width: 0;
  flex: 0 1 auto;
}

.model-copy {
  flex-shrink: 0;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--highlight-dark);
  background: var(--bg);
  font: 500 12px var(--font-sans);
  cursor: pointer;
}

.copy-feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.price-cell {
  min-width: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.price-cell strong {
  display: block;
  font-size: 23px;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
  white-space: nowrap;
}

.catalog-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 24px 0;
}

.catalog-specs dt,
.api-facts dt {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.catalog-specs dd {
  font-size: 14px;
}

.model-detail-link,
.back-link,
.quickstart-link {
  font-size: 13px;
  color: var(--highlight-dark);
}

.model-detail-top {
  display: block;
  margin-top: 32px;
  align-items: start;
}

.model-detail-top > div {
  min-width: 0;
}

.model-detail-name {
  display: flex;
  align-items: center;
  gap: 18px;
}

.model-detail-name h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.model-provider,
.summary-price-label {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

.summary-price-label {
  margin-top: 0;
}

.playground-pending {
  font-family: inherit;
  cursor: default;
}

.playground-pending:hover {
  background: transparent;
  border-color: var(--border-strong);
}

.model-quickstart {
  scroll-margin-top: 116px;
}

.model-quickstart .hero-terminal,
.model-content-section .hero-terminal {
  max-width: none;
}

.model-section-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  width: calc(100% - 48px);
  max-width: calc(var(--max-width) - 48px);
  overflow-x: auto;
  position: sticky;
  top: 84px;
  z-index: 3;
  padding: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 255, 0.82));
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(var(--brand-blue-rgb), 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.model-section-nav a {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.model-section-nav a:hover,
.model-section-nav a:focus-visible {
  background: rgba(var(--brand-blue-rgb), 0.08);
  color: var(--accent);
}

.model-section-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.model-content-section {
  padding: 48px 0;
  scroll-margin-top: 160px;
}

.model-content-section h2 {
  font-size: 30px;
  margin-bottom: 24px;
}

.model-content-section p {
  max-width: 880px;
  color: var(--text-secondary);
  margin: 16px 0;
}

.model-page #parameters .guide-code {
  max-width: 100%;
  margin: 24px 0;
}

.model-page #parameters .hero-terminal-body {
  min-height: 0;
}

.model-page #image-input {
  scroll-margin-top: 160px;
}

.api-field-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.api-field-list code {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-soft);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.detail-prices {
  max-width: 720px;
}

.api-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.api-facts dd {
  overflow-wrap: anywhere;
}

.model-page .api-facts > div {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(var(--brand-white-rgb), 0.72);
}

.model-page .api-facts dd {
  margin: 12px 0 0;
  line-height: 1.8;
}

.model-faq details {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.model-faq summary {
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.alias-note,
.availability-note {
  color: var(--text-muted);
  font-size: 13px;
}

.source-explainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

@media (max-width: 900px) {
  .catalog-table {
    min-width: 1040px;
  }
  .pricing-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .model-detail-top {
    grid-template-columns: 1fr;
  }
  .model-detail-top {
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .pricing-plans {
    grid-template-columns: 1fr;
  }
  .pricing-plan-price {
    min-height: 0;
  }
  .landing-hero,
  .model-detail-hero {
    padding-top: 164px;
  }
  .model-summary {
    padding: 20px;
  }
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .price-cell strong {
    font-size: clamp(16px, 4.9vw, 19px);
  }
  .price-cell {
    font-size: 11px;
  }
  .model-detail-name {
    gap: 12px;
  }
  .model-detail-name img {
    width: 40px;
    height: 40px;
  }
  .model-section-nav {
    top: 128px;
    gap: 6px;
  }
  .model-content-section {
    scroll-margin-top: 204px;
  }
  .source-explainer,
  .api-facts {
    grid-template-columns: 1fr;
  }
  .model-quickstart {
    scroll-margin-top: 152px;
  }
  .landing-actions .btn {
    justify-content: center;
    width: 100%;
  }
  .catalog-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .model-page .hero-terminal-footer code {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
}

/* ---------- 免费模型 ---------- */

.free-models {
  padding: 76px 0;
  scroll-margin-top: 112px;
}

.free-models h2 {
  margin-bottom: 32px;
}

.free-model-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: 32px 0;
  background: transparent;
}

.free-model-info {
  min-width: 0;
}

.free-model-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.free-model-heading img {
  flex-shrink: 0;
}

.free-model-heading h3 {
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.free-model-badge {
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: rgba(var(--brand-blue-rgb), 0.08);
  color: var(--highlight-dark);
  font: 600 12px var(--font-mono);
}

.free-model-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  list-style: none;
  color: var(--text-secondary);
  font-size: 15px;
}

.free-model-features li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--highlight-dark);
}

.free-model-actions {
  padding-left: 32px;
}

.free-model-note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 800px) {
  .free-model-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  .free-model-actions {
    padding: 24px 0 0;
  }
}

@media (max-width: 560px) {
  .hero-terminal-body {
    min-height: 320px;
    padding: 16px;
    font-size: 12.5px;
  }

  .code-tabs {
    padding: 0 16px;
    gap: 12px;
  }

  .hero-terminal-footer {
    padding: 14px 16px;
  }

  .free-models {
    padding: 56px 0;
    scroll-margin-top: 152px;
  }

  .free-model-card {
    padding: 24px 0;
  }

  .free-model-heading {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .free-model-heading h3 {
    font-size: 24px;
  }

  .free-model-heading img {
    width: 36px;
    height: 36px;
  }

  .free-model-badge {
    grid-column: 2;
    justify-self: start;
  }

  .free-model-features {
    grid-template-columns: 1fr;
    font-size: 14px;
  }

  .free-model-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- 数据指标 ---------- */

.stats {
  background: transparent;
  padding: 36px 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat .num {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.stat .num em {
  font-style: normal;
  color: var(--highlight);
}

.stat .num .amp {
  font-weight: 400;
  color: var(--highlight);
  margin: 0 2px;
}

.stat .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- 产品区块 ---------- */

.product {
  padding: 96px 0;
}

.product + .product {
  border-top: 1px solid var(--border);
}

.product-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.product-head h2 {
  max-width: 560px;
}

.product-head p {
  color: var(--text-secondary);
  max-width: 560px;
  margin-top: 14px;
  font-size: 16px;
}

.product-head .section-label {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--accent);
}

.product-head .link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero-terminal {
    margin-top: 24px;
  }
}

/* ---------- 模型阵容网格 ---------- */

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.model-grid-note {
  font-size: 13.5px;
  color: var(--text-muted);
}

.model-card {
  display: block;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.model-card:hover,
.model-card:focus-visible {
  border-color: var(--text);
  transform: translateY(-2px);
}

.model-card .name {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
  min-height: 40px;
}

.model-card .model-title {
  display: -webkit-box;
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.model-card .ext {
  justify-self: end;
  color: var(--text-muted);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.15s;
}

.model-card:hover .ext,
.model-card:focus-visible .ext {
  opacity: 1;
}

.model-card .badge-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.model-card .badge-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.model-card .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.model-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 8px;
  margin-top: 10px;
}

/* ---------- 标语 ---------- */

.slogans {
  display: grid;
  gap: 6px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--highlight);
  padding-left: 16px;
}

/* 双栏特色区块 */

.product-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* 允许分栏子元素收缩到内容以下,避免长文本撑破布局 */
.product-split > * {
  min-width: 0;
}

.endpoint-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.12);
}

.endpoint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.endpoint-row:last-child {
  border-bottom: none;
}

.endpoint-row .k {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.endpoint-row .v {
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: right;
}

.endpoint-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--highlight);
}

.endpoint-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--highlight);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

.endpoint-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.metric {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.metric .v {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
}

.metric .k {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* GPU 三卡 */

.gpu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gpu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s, transform 0.15s;
}

.gpu-card:hover {
  border-color: var(--text);
  transform: translateY(-3px);
}

.gpu-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.gpu-card h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.gpu-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  flex: 1;
}

.gpu-card ul {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.gpu-card ul li::before {
  content: "▸ ";
  color: var(--highlight);
}

/* ---------- 语言切换 ---------- */

.lang-toggle {
  position: relative;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 0;
  min-height: 44px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s, border-radius 300ms ease;
  white-space: nowrap;
}

.lang-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  list-style: none;
}

.lang-trigger::-webkit-details-marker {
  display: none;
}

.lang-trigger:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
  border-radius: inherit;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1;
  display: grid;
  width: max-content;
  min-width: 224px;
  max-width: calc(100vw - 48px);
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(var(--brand-white-rgb), 0.98);
  box-shadow: 0 14px 36px -20px rgba(39, 79, 132, 0.55);
  transform-origin: top right;
  animation: language-menu-enter 160ms ease-out;
}

@keyframes language-menu-enter {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-toggle:hover {
  color: var(--text);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 7px 8px;
  border-radius: 6px;
  color: inherit;
  font-size: 13px;
  line-height: 1.4;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.lang-option.is-active {
  color: var(--accent);
  background: var(--bg-soft);
}

.lang-option::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
}

.lang-option.is-active::before {
  background: currentColor;
}

.lang-native {
  flex: 1;
}

.lang-name {
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 400;
}

.lang-option.is-active .lang-name {
  display: none;
}

.lang-option:is(:hover, :focus-visible) {
  color: var(--accent);
  background: var(--bg-soft);
}

/* ---------- 合作生态 ---------- */

.eco {
  padding: 96px 0;
  text-align: center;
}

.eco p.eco-sub {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 14px auto 40px;
}

/* ---------- CTA ---------- */

.cta {
  padding: 110px 0;
  text-align: center;
  background: linear-gradient(118deg, #064db4, #066cdf 68%, #258ffa);
  color: var(--brand-white);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 60% at 50% 110%,
    rgba(var(--brand-cyan-rgb), 0.3),
    transparent 65%
  );
  pointer-events: none;
}

.cta h2 {
  margin-bottom: 16px;
}

.cta p {
  color: var(--brand-white);
  max-width: 560px;
  margin: 0 auto 36px;
}

.cta .btn-primary {
  background: var(--brand-white);
  color: var(--text);
}

.cta .btn-primary:hover {
  background: var(--bg-soft);
}

.cta .btn-ghost {
  color: var(--brand-white);
  border-color: var(--brand-white);
}

.cta .btn-ghost:hover {
  background: rgba(var(--brand-white-rgb), 0.12);
  border-color: var(--brand-white);
}

/* ---------- 页脚 ---------- */

.footer {
  background: linear-gradient(
    180deg,
    rgba(var(--brand-white-rgb), 0) 0%,
    rgba(var(--brand-white-rgb), 0.85) 55%,
    var(--brand-white) 100%
  );
  border-top: 0;
  padding: 120px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr));
  gap: 32px 24px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 14px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  cursor: default;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.footer-social a:hover {
  color: var(--text);
}

.footer-social a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 滚动入场动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 940px) {
  .lang-toggle {
    font-size: 11.5px;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-split {
    grid-template-columns: 1fr;
  }

  .gpu-grid {
    grid-template-columns: 1fr;
  }

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

  .product-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .nav-inner,
  .nav-cta {
    gap: 8px;
  }

  .nav-dropdown-trigger {
    font-size: 12.5px;
  }

  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .model-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* 指标网格改两列,容纳较长的英文单词 */
  .endpoint-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .logo-mark,
  .logo:hover .logo-mark {
    transform: none;
    transition: none;
  }

  .live-badge::before,
  .endpoint-status::before {
    animation: none;
  }
}

/* ---------- 法务页面 ---------- */

.legal {
  padding: calc(var(--nav-height) + 72px) 0 96px;
}

.legal h1 {
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-updated {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 32px;
  max-width: 760px;
  scroll-margin-top: 104px;
}

.legal-section h2[id] {
  scroll-margin-top: 104px;
}

.security-page h1 {
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 600;
}

.security-page .legal-section {
  padding: 24px 0;
  margin-bottom: 0;
  border-top: 1px solid var(--border);
}

.legal-section h2,
#refund-policy h3 {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 10px;
}

#refund-policy {
  margin-top: 28px;
}

.legal-section p {
  color: var(--text-secondary);
  font-size: 15px;
}

.legal-section p + p {
  margin-top: 10px;
}

.legal-list {
  margin: 10px 0 0 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.legal-list li + li {
  margin-top: 6px;
}

.legal-section a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 更新日志(仅展示过去 7 天) ---------- */

.changelog-note {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 8px;
}

.changelog-list {
  position: relative;
  max-width: 760px;
  padding: 0 0 88px 30px;
}

/* 竖向时间轴线 */
.changelog-list::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 88px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-blue), rgba(var(--brand-blue-rgb), 0.12));
}

.changelog-list.is-empty::before {
  display: none;
}

.changelog-entry {
  position: relative;
  padding: 24px 0 28px;
}

/* 横向线划分每一次更新的区域 */
.changelog-entry + .changelog-entry {
  border-top: 1px solid var(--border);
}

/* 时间点圆点 */
.changelog-entry::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 31px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(var(--brand-blue-rgb), 0.25), 0 0 12px rgba(var(--brand-blue-rgb), 0.45);
}

.changelog-entry[hidden],
#changelog-empty[hidden] {
  display: none;
}

.changelog-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.changelog-entry h2 {
  font-size: 18px;
  font-weight: 650;
  margin: 8px 0 10px;
}

.changelog-entry p {
  color: var(--text-secondary);
  font-size: 15px;
}

.changelog-entry .product-related {
  margin-top: 14px;
}

#changelog-empty {
  color: var(--text-muted);
  font-size: 15px;
  padding: 24px 0;
}

/* ---------- 企业信任中心(连续画布) ---------- */

.trust-page {
  padding-top: var(--nav-height);
  background: transparent;
}

.trust-hero {
  padding: 88px 0 64px;
  background: transparent;
}

.trust-hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.trust-sub {
  max-width: 660px;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 19px);
}

.trust-hero .landing-actions {
  margin-top: 32px;
}

.card-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.trust-section {
  padding: 64px 0;
  background: transparent;
}

.section-divider {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  border: 0;
  border-top: 1px solid rgba(22, 90, 170, 0.08);
}

.glance-section h2,
.resources-section h2,
.infrastructure-section h2 {
  max-width: 720px;
  margin-bottom: 40px;
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.glance-card {
  padding: 24px 0 0;
  border-top: 1px solid var(--border-strong);
}

.glance-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.glance-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

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

.residency-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.residency-copy h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.residency-copy > p {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 16px;
}

.residency-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.res-route {
  fill: none;
  stroke: rgba(var(--brand-blue-rgb), 0.28);
  stroke-width: 1;
}

.res-flow {
  fill: none;
  stroke: var(--highlight);
  stroke-width: 1.6;
  stroke-dasharray: 7 93;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px var(--highlight));
  animation: beamTravel 3.6s linear infinite;
}

@keyframes beamTravel { to { stroke-dashoffset: -100; } }

.res-endpoint-halo { fill: var(--brand-blue); opacity: 0.16; }
.res-endpoint-core { fill: var(--brand-blue); stroke: #fff; stroke-width: 1.2; }

.res-regions text {
  fill: var(--text-secondary);
  font: 500 13px var(--font-sans);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.res-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-secondary);
}

.res-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.res-legend-node {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 12px var(--highlight);
}

.res-legend-line {
  width: 22px;
  height: 2px;
  background: var(--highlight);
}

.res-legend-note {
  margin-left: auto;
  text-align: right;
  color: var(--text-muted);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.resource-col h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.resource-col ul {
  list-style: none;
}

.resource-col a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease, padding-left 0.2s ease;
}

.resource-col a:hover {
  color: var(--highlight-dark);
  padding-left: 6px;
}

.resource-col a span[aria-hidden="true"] {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.15s ease;
}

.resource-col a:hover span[aria-hidden="true"] {
  transform: translateX(3px);
  color: var(--highlight-dark);
}

.contact-section {
  padding-bottom: 112px;
}

.contact-head {
  margin-bottom: 40px;
}

.contact-rows {
  display: grid;
  gap: 10px;
}

.contact-type {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 96px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 104px;
}

.contact-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.contact-row-desc {
  color: var(--text-secondary);
  font-size: 13.5px;
}

.contact-row-side {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.contact-row-side strong {
  font-size: 15px;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact-row-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  color: var(--text-secondary);
  font-size: 18px;
  transition: color 0.15s ease, transform 0.2s ease;
}

.contact-row-go:hover {
  color: var(--highlight-dark);
  transform: translateX(3px);
}

.contact-copy {
  display: inline-flex;
  width: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  touch-action: manipulation;
}

.contact-copy:hover {
  color: var(--highlight-dark);
  transform: scale(1.08);
}

.contact-copy:focus-visible {
  outline: 3px solid rgba(var(--brand-blue-rgb), 0.24);
  outline-offset: 2px;
}

.contact-copy.is-copied {
  color: #08745b;
}

.contact-copy.is-copy-failed {
  color: #b42318;
}

.contact-copy svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-copy .copy-success {
  display: none;
}

.contact-copy.is-copied .copy-default {
  display: none;
}

.contact-copy.is-copied .copy-success {
  display: block;
}

.contact-copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .residency-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .glance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 800px) {
  .trust-section-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .trust-section,
  .trust-hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .glance-grid {
    grid-template-columns: 1fr;
  }

  .res-legend {
    flex-wrap: wrap;
  }

  .res-legend-note {
    flex-basis: 100%;
    margin-left: 0;
    text-align: left;
  }

  .contact-row {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-row-side {
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .trust-hero h1 {
    font-size: 42px;
  }

  .contact-row {
    padding: 16px;
  }

  .contact-row-side strong {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .res-flow {
    animation: none;
  }
}

/* ---------- API 文档页 ---------- */

body[data-page="docs"] .legal > .container {
  max-width: 1048px;
}

body[data-page="docs"] .legal-section,
body[data-page="docs"] .code-block,
body[data-page="docs"] .doc-table,
body[data-page="docs"] .first-free-examples {
  max-width: none;
}

body[data-page="docs"] .legal-section h3 {
  margin: 24px 0 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.first-free-examples {
  max-width: 760px;
  margin: 14px 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}

.first-free-dependencies {
  margin: 0 0 16px;
  font: 400 14px/1.7 var(--font-sans);
  white-space: normal;
}

.first-free-toolbar {
  display: flex;
  align-items: center;
  padding-right: 12px;
  border-bottom: 1px solid var(--border);
}

.first-free-toolbar .code-tabs {
  flex: 1;
  min-width: 0;
  gap: 12px;
  padding: 0 12px;
  border: 0;
}

.first-free-panels {
  height: 320px;
  min-width: 0;
}

.first-free-panels > .code-block {
  height: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: auto;
}

.first-free-panels code {
  font: inherit;
}

.first-free-panels > .code-block:focus-visible,
.first-free-toolbar .code-copy:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: -3px;
}

.rate-recovery dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
}

.rate-recovery dd {
  margin: 8px 0 0;
}

.rate-recovery .doc-inline {
  font-size: 13px;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: anywhere;
}

.code-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
  margin: 14px 0 10px;
  max-width: 760px;
}

.code-block .c {
  color: var(--text-muted);
}

.code-block .s {
  color: var(--highlight);
}

.code-block .k {
  color: var(--highlight);
}

.doc-table {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
  max-width: 760px;
  margin: 14px 0 10px;
}

.doc-table th,
.doc-table td {
  border: 1px solid var(--border);
  text-align: left;
  padding: 8px 12px;
  vertical-align: top;
}

.doc-table th {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-soft);
}

.doc-table td:first-child {
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.doc-inline {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}

#contact {
  scroll-margin-top: 96px;
}

/* 数据条:允许长技术词换行 */
.stat .num {
  overflow-wrap: anywhere;
}

/* ---------- 手机端修正(放在最后,覆盖上方既有断点) ---------- */

@media (max-width: 640px) {
  /* 卡片名（DeepSeek V4.1 Flash 等）在 2 列时只剩几十像素宽，
     会按字母断行成 "DeepS / eek"。小屏改为单列,名称一行放得下。 */
  .model-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  /* 三项指标在 2 列时第三个落单换行,且 NVFP4 / FP8 会于斜杠处断行 */
  .endpoint-metrics {
    grid-template-columns: 1fr;
  }

  .metric .v {
    overflow-wrap: normal;
    word-break: keep-all;
  }

  /* 页脚链接栏窄屏改两列,品牌块独占一行 */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  /* 技术名词再断行会难以阅读,"vLLM+SGLang" 一类缩写优先整体显示 */
  .stat .num {
    font-size: 21px;
    overflow-wrap: normal;
    word-break: keep-all;
  }
}

@media (max-width: 1200px) {
  .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    max-height: calc(100dvh - var(--nav-height) - 40px);
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 40px -24px rgba(39, 79, 132, 0.55);
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
  }

  .nav-link,
  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0 0 4px 12px;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 560px) {
  .nav-inner {
    grid-template-columns: minmax(0, 1fr) auto 44px;
    gap: 6px;
    padding: 0 10px;
  }

  .nav .logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    max-width: 100%;
    gap: 6px;
    font-size: 15px;
  }

  .nav .logo-mark {
    width: 26px;
    height: 26px;
  }

  .nav.nav-scrolled {
    padding: 0 6px;
  }

  .nav.nav-scrolled .nav-inner {
    height: 56px;
    padding: 0 4px;
    border-radius: 18px;
  }

  .nav-cta {
    gap: 4px;
  }

  .nav-menu-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  .nav .nav-sign-in {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  .nav .nav-sign-in > span:not(.entry-sr-label) {
    display: none;
  }

  .nav .nav-sign-in-icon {
    display: block;
  }

  .lang-menu {
    right: -48px;
    max-height: calc(100dvh - var(--nav-height) - 32px);
    overflow-y: auto;
  }

  .lang-option {
    min-height: 44px;
  }

  .nav-dropdown-menu a,
  .nav-dropdown-menu > .nav-pending {
    gap: 8px;
    padding: 9px 8px;
    font-size: 13px;
  }
}

/* 代码块的横向滚动条不应把外层文档撑宽(320px 窄屏会多出约 38px) */
.legal .container {
  overflow-x: clip;
}



.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-bottom: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-trust a:hover {
  color: var(--accent);
}

/* Product pages reuse the site's cards, buttons and background. */
.homepage .landing-hero {
  padding-bottom: 76px;
  text-align: center;
}

.homepage .landing-hero h1 {
  max-width: 980px;
  font-size: clamp(38px, 5.2vw, 64px);
  margin-inline: auto;
}

.homepage .landing-hero .hero-sub,
.homepage .landing-hero .hero-benefits {
  margin-inline: auto;
}

.homepage .landing-hero .landing-actions,
.homepage .landing-hero .hero-benefits {
  justify-content: center;
}

.hero-title-part {
  display: inline-block;
}

.hero-model-summary {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-model-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.22em;
  min-height: 1.18em;
}

.hero-model-prefix {
  white-space: nowrap;
}

.hero-model-typewriter {
  display: inline-flex;
  height: 1.18em;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--brand-blue);
}

.hero-model-active {
  display: flex;
  align-items: center;
  gap: 0.18em;
  height: 1.18em;
  overflow: hidden;
  white-space: nowrap;
}

.hero-model-active img {
  width: 0.78em;
  height: 0.78em;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-free {
  color: var(--brand-blue);
}

@media (max-width: 600px) {
  .hero-model-heading {
    flex-direction: column;
    gap: 0;
    min-height: 2.36em;
  }
}

.product-hero .section-label {
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--accent);
}

.product-hero .product-hero-explanation {
  margin-top: 20px;
  font-size: 16px;
}

.product-section {
  padding: 64px 0;
}

.product-section .product-head {
  margin-bottom: 30px;
}

.product-section .product-head h2 {
  max-width: 780px;
}

.product-section p {
  color: var(--text-secondary);
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.65fr);
  align-items: start;
  gap: 72px;
}

.request-copy h2 {
  margin-bottom: 20px;
}

.request-copy p {
  font-size: 16px;
  line-height: 1.8;
}

.request-copy .request-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.request-copy .product-related {
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.request-layout .contact-form {
  margin-top: 0;
}

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

@media (max-width: 900px) {
  .request-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .request-copy {
    max-width: 680px;
  }
  .request-copy .product-related {
    flex-direction: row;
    gap: 12px 24px;
  }
}

.product-path-card,
.integration-card,
.feature-grid .gpu-card {
  min-width: 0;
}

.product-path-card .product-path-detail {
  color: var(--text-muted);
  font-size: 13px;
}

.product-path-card .btn,
.integration-card .btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 16px;
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.product-related {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 24px;
}

.product-related a,
.integration-source a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.product-related a:hover,
.integration-source a:hover {
  text-decoration: underline;
}

.use-case-list,
.request-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  padding: 0;
  list-style: none;
}

.use-case-list li,
.request-fields li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.use-case-list li::before {
  margin-right: 10px;
  color: var(--accent);
  content: "→";
}

.request-panel .request-fields {
  margin: 24px 0;
}

.request-panel h3 {
  margin-bottom: 12px;
}

#product-request {
  margin-bottom: 28px;
}

.deployment-config-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.deployment-config-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.deployment-config-fields > div {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.deployment-config-fields dt {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.deployment-config-fields dd {
  color: var(--text);
  font-weight: 500;
}

.deployment-config .config-note {
  margin-top: 22px;
  font-size: 13px;
}

.guide-code {
  width: 100%;
  margin-top: 24px;
}

.integration-guide .product-section p + p {
  margin-top: 16px;
}

.integration-guide .product-section > .container > p {
  margin: 16px 0;
}

.integration-guide .product-section > .container > h3 {
  margin: 24px 0 16px;
}

.integration-guide .product-section > .container > .guide-code + p,
.integration-guide .product-section > .container > p + .guide-code {
  margin-top: 24px;
}

.integration-guide #troubleshooting .feature-grid + p {
  margin-top: 24px;
}

#first-free-call > .container > ol {
  padding-left: 1.5em;
  margin-bottom: 24px;
  line-height: 1.75;
}

#first-free-call > .container > ol > li + li {
  margin-top: 8px;
}

#first-free-call > .container > p {
  margin: 16px 0;
}

#first-free-call > .container > .guide-code + p {
  margin-top: 24px;
}

.integration-card .source-badge {
  align-self: flex-start;
}

.integration-source {
  padding-bottom: 64px;
}

.product-final-cta {
  padding: 72px 0;
}

@media (max-width: 1080px) {
  .feature-grid,
  .feature-grid.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 768px) {
  .product-section {
    padding: 44px 0;
  }

  .product-section .gpu-grid,
  .feature-grid,
  .feature-grid.columns-4,
  .deployment-config-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .use-case-list,
  .request-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .use-case-list,
  .request-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-page .btn,
  .homepage .btn,
  .request-panel .btn {
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
}

.logo-monochrome { filter: brightness(0); }
.logo-showcase { padding: 0 0 88px; }
.logo-showcase-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo-showcase h2 { font-size: 28px; letter-spacing: -0.03em; }
.logo-showcase-head p { color: var(--text-secondary); font-size: 14px; margin-top: 6px; }

.homepage .landing-actions .btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 9px;
}

/* The four entries share blue, stable hit areas and 9px corners. */
.entry-sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.homepage .entry-interactive {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: var(--accent);
  transition: box-shadow 300ms ease;
}

.entry-solid {
  --entry-fill: #ffffff;
  --entry-hover-ink: var(--accent);
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 8px 24px -14px rgba(var(--brand-blue-rgb), 0.6);
}

.entry-outline {
  --entry-fill: var(--accent);
  --entry-hover-ink: #ffffff;
  color: var(--accent);
  background: transparent;
}

.entry-interactive::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--entry-fill);
  transform: translateY(-50%);
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.3, 1);
  pointer-events: none;
}

.entry-rest {
  position: relative;
  padding-left: 17px;
  transition: transform 300ms ease, opacity 300ms ease;
}

.entry-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--entry-hover-ink);
  opacity: 0;
  transform: translateX(-18px);
  transition: transform 300ms ease, opacity 300ms ease;
}

.entry-hover svg {
  flex: 0 0 auto;
}

.entry-interactive:is(:hover, :focus-visible)::before {
  transform: translateY(-50%) scale(220);
}

.entry-interactive:is(:hover, :focus-visible) .entry-rest {
  opacity: 0;
  transform: translateX(18px);
}

.entry-interactive:is(:hover, :focus-visible) .entry-hover {
  opacity: 1;
  transform: translateX(0);
}

.entry-hyper {
  position: relative;
  min-width: 100px;
  color: var(--accent);
  border-color: var(--border-strong);
  background: rgba(var(--brand-white-rgb), 0.5);
  transition: border-color 300ms ease, background-color 300ms ease;
}

.homepage .landing-actions .entry-hyper {
  padding-inline: 35px;
}

.entry-hyper:is(:hover, :focus-visible) {
  border-color: var(--accent);
  background: rgba(var(--brand-white-rgb), 0.9);
}

.hyper-copy > svg {
  position: absolute;
  left: -26px;
  top: 50%;
  opacity: 0;
  transform: translate(-4px, -50%);
  transition: opacity 180ms ease, transform 220ms ease;
}

.entry-hyper:is(:hover, :focus-visible) .hyper-copy > svg {
  opacity: 1;
  transform: translate(0, -50%);
}

.hyper-copy {
  position: relative;
  transition: transform 220ms ease;
}

.entry-hyper:is(:hover, :focus-visible) .hyper-copy {
  transform: translateX(13px);
}

.hyper-ready .hyper-label,
.hyper-character > span {
  opacity: 0;
}

.hyper-letters {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hyper-character {
  position: relative;
  white-space: pre;
}

.hyper-character::after {
  content: attr(data-display);
  position: absolute;
  inset: 0;
  text-align: center;
}

.nav-sign-in {
  justify-content: center;
  min-width: 78px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: #ffffff;
  background: var(--accent);
  transition: border-color 300ms ease, background-color 300ms ease, border-radius 300ms ease;
}

.nav-sign-in-icon {
  display: none;
}

.nav-sign-in:is(:hover, :focus-visible) {
  color: #ffffff;
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.nav.nav-scrolled .nav-sign-in,
.nav.nav-scrolled .lang-toggle,
.nav.nav-scrolled .nav-menu-toggle {
  border-radius: 22px;
}

@media (max-width: 560px) {
  .nav.nav-scrolled .nav-sign-in,
  .nav.nav-scrolled .lang-toggle,
  .nav.nav-scrolled .nav-menu-toggle {
    border-radius: 10px;
  }
}

.sign-in-en,
.sign-in-zh {
  display: inline-flex;
  perspective: 300px;
  line-height: 1.4;
}

.sign-in-zh,
html:lang(zh) .sign-in-en {
  display: none;
}

html:lang(zh) .sign-in-zh {
  display: inline-flex;
}

.sign-in-char {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  transform: translateZ(-0.7em);
  transition: transform 360ms cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: calc(var(--char-index) * 25ms);
  white-space: pre;
}

.sign-in-char > span {
  display: block;
  backface-visibility: hidden;
  transform: translateZ(0.7em);
}

.sign-in-char > span + span {
  position: absolute;
  inset: 0;
  transform: rotateX(-90deg) translateZ(0.7em);
}

.nav-sign-in:is(:hover, :focus-visible) .sign-in-char {
  transform: translateZ(-0.7em) rotateX(90deg);
}

.homepage .landing-actions .btn:focus-visible,
.nav-sign-in:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .entry-interactive::before,
  .entry-rest,
  .entry-hover,
  .entry-hyper,
  .hyper-copy,
  .hyper-copy > svg,
  .nav-sign-in,
  .lang-toggle,
  .nav-menu-toggle,
  .sign-in-char {
    transition: none;
  }

  .lang-menu {
    animation: none;
  }

  .nav-sign-in:is(:hover, :focus-visible) .sign-in-char {
    transform: translateZ(-0.7em);
  }
}

/* IteraWork: office and scheduled-task examples in the site's blue/white palette. */
.iterawork-page .landing-hero { padding-bottom: 36px; }
.iterawork-page .product-hero-explanation { font-size: 13px; color: var(--text-muted); }
.iterawork-overview .product-head { max-width: 800px; }
.iterawork-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 64px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.iterawork-feature-reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.iterawork-feature-reverse .iterawork-feature-copy { order: 2; }
.iterawork-feature-reverse .iterawork-preview { order: 1; }
.iterawork-feature .iterawork-feature-label { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.iterawork-feature h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.3; letter-spacing: -0.03em; margin-bottom: 20px; }
.iterawork-feature-copy > p { font-size: 16px; line-height: 1.8; }
.iterawork-feature-list { list-style: none; margin-top: 24px; }
.iterawork-feature-list li { position: relative; padding: 9px 0 9px 22px; color: var(--text-secondary); font-size: 14px; }
.iterawork-feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.iterawork-feature-copy .iterawork-schedule-note { font-size: 12px; color: var(--text-muted); margin-top: 20px; }
.iterawork-preview {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(var(--brand-blue-rgb), 0.18);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(35, 100, 180, 0.1), inset 0 1px 0 #fff;
}
.iterawork-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 22px; background: rgba(var(--brand-blue-rgb), 0.035); border-bottom: 1px solid var(--border); }
.iterawork-preview-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.iterawork-example-label { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.iterawork-preview-body { padding: 26px; }
.iterawork-preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.iterawork-mode { padding: 4px 9px; border-radius: 5px; background: rgba(var(--brand-blue-rgb), 0.08); color: var(--accent); font-size: 11px; white-space: nowrap; }
.iterawork-prompt { padding: 15px 17px; margin: 22px 0 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border); }
.iterawork-prompt p { font-size: 13px; line-height: 1.7; }
.iterawork-file-row { display: flex; align-items: center; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--border); }
.iterawork-file-row:last-child { padding-bottom: 0; border-bottom: 0; }
.iterawork-file-type { flex: 0 0 48px; display: grid; place-items: center; min-height: 48px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.iterawork-file-row > div { min-width: 0; flex: 1; }
.iterawork-file-row strong { display: block; font-size: 13px; font-weight: 600; }
.iterawork-file-row > div > span { display: block; font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.iterawork-file-check { font-size: 16px; color: var(--accent); }
.iterawork-schedule-time { display: flex; align-items: baseline; gap: 14px; padding: 24px 0 0; }
.iterawork-schedule-time > span:first-child { font-family: var(--font-mono); font-size: 40px; line-height: 1.2; letter-spacing: -0.04em; }
.iterawork-schedule-time > span:last-child { font-size: 12px; color: var(--text-muted); }
.iterawork-schedule-progress { margin-top: 16px; }
.iterawork-schedule-progress > div { position: relative; padding: 10px 0 10px 24px; }
.iterawork-schedule-progress > div:not(:last-child)::after { content: ""; position: absolute; left: 3px; top: 24px; bottom: -9px; width: 1px; background: var(--border-strong); }
.iterawork-task-dot { position: absolute; left: 0; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-blue); box-shadow: 0 0 0 3px rgba(var(--brand-blue-rgb), 0.08); }
.iterawork-schedule-progress strong { display: block; font-size: 12px; font-weight: 600; }
.iterawork-schedule-progress > div > span:last-child { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 850px) {
  .iterawork-feature, .iterawork-feature-reverse { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0; }
  .iterawork-feature-reverse .iterawork-feature-copy, .iterawork-feature-reverse .iterawork-preview { order: initial; }
  .iterawork-feature-copy { max-width: 620px; }
}
@media (max-width: 560px) {
  .iterawork-preview-bar { padding: 15px 18px; }
  .iterawork-preview-body { padding: 20px 18px; }
  .iterawork-feature { gap: 24px; }
  .iterawork-page .product-hero-explanation { max-width: 290px; font-size: 12px; }
}

.logo-showcase .product-related {
  margin-top: 36px;
}

/* Homepage scale section: borderless columns split by short vertical dividers. */
.scale-section {
  padding: 0 0 130px;
}
.scale-section h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 52px;
}
.scale-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 64px;
}
.scale-col + .scale-col {
  position: relative;
}
.scale-col + .scale-col::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
.scale-col h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.scale-col p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 8px;
}
.scale-col .link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
}
.scale-col .link:hover {
  text-decoration: underline;
}
.code-copy,
.integration-filters button {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-button);
  padding: 8px 12px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.logo-showcase-rows { margin-top: 26px; }
.logo-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.logo-marquee-track { display: flex; width: max-content; animation: logo-scroll 60s linear infinite; }
.logo-marquee.is-reversed .logo-marquee-track { animation-direction: reverse; animation-duration: 40s; }
.logo-marquee-group { display: flex; align-items: center; gap: 60px; padding-right: 60px; }
.logo-item { display: inline-flex; align-items: center; gap: 14px; width: 180px; min-height: 80px; flex-shrink: 0; color: var(--text-secondary); font-size: 17px; font-weight: 600; }
.logo-item:hover { color: var(--text); }
.logo-item img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.logo-marquee:hover .logo-marquee-track,
.logo-marquee:focus-within .logo-marquee-track { animation-play-state: paused; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }

.integration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.integration-directory .integration-grid { grid-auto-rows: 1fr; }
.integration-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 158px; padding: 20px; border-radius: 16px; border: 1px solid rgba(37, 99, 235, 0.1); background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }
.integration-card:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235, 0.22); box-shadow: 0 16px 32px -20px rgba(37, 99, 235, 0.35); }
.integration-card[hidden] { display: none; }
.integration-card-arrow { position: absolute; top: 14px; right: 16px; color: var(--brand-blue); opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.2s ease, transform 0.2s ease; }
.integration-card:hover .integration-card-arrow,
.integration-card:focus-visible .integration-card-arrow { opacity: 1; transform: none; }
.integration-card .integration-logo { width: 40px; height: 40px; }
.integration-card h3 { font-size: 16px; }
.integration-card .integration-card-description { color: var(--text-secondary); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.integration-logo { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.integration-controls { margin-bottom: 24px; }
.guide-model-picker select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.integration-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.integration-filters button { min-height: 40px; padding: 8px 18px; border-radius: 999px; }
.integration-filters button[aria-pressed="true"] { background: rgba(var(--brand-blue-rgb), 0.18); color: var(--text); border-color: var(--brand-blue); }
.integration-count { margin-bottom: 18px; font-size: 13px; color: var(--text-muted); }
.integration-empty { padding: 48px 0; text-align: center; }
.integration-empty[hidden] { display: none; }
.integration-directory #guides { scroll-margin-top: 110px; padding-top: 26px; }

.guide-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.guide-identity .section-label { margin-bottom: 0; }
.integration-guide .landing-hero h1 { font-size: clamp(34px, 4.4vw, 54px); max-width: 1030px; line-height: 1.15; overflow-wrap: anywhere; }
.guide-prerequisite { margin-bottom: 24px; max-width: 900px; }
.guide-model-panel { max-width: 900px; }
.guide-model-picker { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 16px; }
.guide-model-picker label { font-weight: 600; font-size: 14px; }
.guide-model-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 20px 0; font-size: 13px; }
.guide-model-meta code { overflow-wrap: anywhere; }
.guide-model-panel .endpoint-row .v { overflow-wrap: anywhere; }
.guide-code { max-width: none; margin: 0; background: var(--bg-card); box-shadow: none; }
.guide-code + .guide-code { margin-top: 20px; }
.guide-code .hero-terminal-header { background: var(--bg-soft); }
.guide-code .hero-terminal-header .title { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.guide-code .hero-terminal-body { min-height: 0; font-size: 13px; }
.code-copy { flex-shrink: 0; padding: 6px 10px; }
.guide-code + .config-note { margin-top: 20px; }
.integration-guide .config-note .link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.integration-guide .config-note .link:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
.integration-guide .config-note .link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.guide-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; list-style: none; }
.guide-capabilities li { display: flex; align-items: center; min-height: 56px; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; }
.guide-capabilities [data-feature] { color: var(--brand-cyan); }
.guide-capabilities .is-unavailable { color: var(--text-muted); }
.guide-tools-note { display: block; margin: 16px 0; font-size: 12px; line-height: 1.8; color: var(--text-secondary); }
.guide-tools-note[hidden] { display: none; }
.feature-status { margin-left: auto; font-size: 12px; color: var(--text-muted); }

@media (max-width: 900px) {
  .guide-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .logo-showcase-head { align-items: flex-start; gap: 12px; }
  .logo-showcase h2 { font-size: 24px; }
  .logo-showcase-head p { max-width: 200px; }
  .homepage .landing-hero { padding-bottom: 56px; }
  .hero-benefits { gap: 10px 20px; }
  .hero-benefit-arrow { display: none; }
  .logo-showcase { padding-bottom: 84px; }
  .scale-section { padding-bottom: 90px; }
  .scale-section h2 { font-size: 24px; margin-bottom: 36px; }
  .scale-cols { grid-template-columns: 1fr; gap: 44px; }
  .scale-col + .scale-col::before { display: none; }
  .logo-marquee-group { gap: 28px; padding-right: 28px; }
  .logo-item { width: 180px; font-size: 15px; min-height: 74px; }
  .guide-capabilities,
  .guide-model-picker { grid-template-columns: minmax(0, 1fr); }
  .integration-filters { gap: 8px; }
  .integration-filters button { padding: 8px 11px; font-size: 12px; }
  .guide-identity { gap: 12px; }
  .guide-model-panel { padding: 20px; }
  .guide-code .hero-terminal-header { padding: 12px; gap: 5px; }
  .guide-code .hero-terminal-header .dot { width: 6px; height: 6px; }
  .guide-code .hero-terminal-header .title { margin-left: 3px; font-size: 11px; }
  .guide-code .hero-terminal-body { font-size: 12px; }
  .integration-directory #guides { scroll-margin-top: 145px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; width: auto; }
  .logo-marquee { mask-image: none; }
  .logo-marquee-group { flex-wrap: wrap; gap: 8px 24px; padding: 8px 0; }
  .logo-marquee-group[aria-hidden="true"] { display: none; }
  .logo-item { width: auto; min-width: 130px; min-height: 54px; font-size: 14px; }
}

/* ---------- 联系表单（reserved / dedicated / partners） ---------- */
.contact-form { margin-top: 28px; }
.contact-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.contact-form .field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.contact-form .field-wide { grid-column: 1 / -1; }
.contact-form label, .contact-form legend { font-size: 13px; font-weight: 500; color: var(--text); }
.contact-form .req { color: var(--accent); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 12px 16px; background: var(--bg-card);
  color: var(--text); font: inherit; font-size: 15px;
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 1px; border-color: var(--brand-blue); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.contact-form .check { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; font-weight: 500; cursor: pointer; background: var(--bg-soft); }
.contact-form .check input { width: 16px; height: 16px; accent-color: var(--brand-blue); flex-shrink: 0; }
.contact-form fieldset { border: none; padding: 0; margin: 0; }
.contact-form .form-status { margin-top: 16px; font-size: 14px; }
.contact-form .form-status[data-state="ok"] { color: #0a7a3d; }
.contact-form .form-status[data-state="error"] { color: #b3261e; }
.contact-form .form-status[data-state="busy"] { color: var(--text-secondary); }
.contact-form .form-fallback { margin-top: 12px; font-size: 14px; color: var(--text-secondary); }
.contact-form .form-fallback[hidden], .contact-form .form-status[hidden] { display: none; }
.contact-form button[type="submit"][disabled] { opacity: 0.6; cursor: wait; }
@media (max-width: 768px) {
  .contact-form .form-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form .checks { grid-template-columns: minmax(0, 1fr); }
  .request-layout .checks { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reserved page: capacity stats (no cards, hairline dividers) ---------- */
.hero-tags--left { justify-content: flex-start; }

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 6px;
}

.capacity-stat { padding: 4px 0 4px 28px; border-left: 1px solid var(--border); min-width: 0; }
.capacity-stat:first-child { padding-left: 0; border-left: none; }
.capacity-stat .capacity-value {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  overflow-wrap: anywhere;
}
.capacity-stat:last-child .capacity-value { font-size: clamp(20px, 2.1vw, 26px); line-height: 1.4; }
.capacity-stat h3 { font-size: 14px; font-weight: 600; margin: 10px 0 4px; }
.capacity-stat p { font-size: 14px; }

/* ---------- Shared steps: cursor spotlight inspired by Magic UI's Magic Card ---------- */
.steps {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.step {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(var(--brand-blue-rgb), 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 18px -14px rgba(var(--brand-blue-rgb), 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step::before,
.step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.step::before {
  z-index: -1;
  background: radial-gradient(260px circle at var(--step-x, 50%) var(--step-y, 50%), rgba(var(--brand-cyan-rgb), 0.3), transparent 75%);
}

.step::after {
  padding: 1px;
  background: radial-gradient(180px circle at var(--step-x, 50%) var(--step-y, 50%), var(--brand-blue), rgba(var(--brand-cyan-rgb), 0.6) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@media (hover: hover) and (pointer: fine) {
  .step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -26px rgba(var(--brand-blue-rgb), 0.5); }
  .step:hover::before,
  .step:hover::after { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .step { transition: none; }
  .step:hover { transform: none; }
  .step::before,
  .step::after { display: none; }
}

.step-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--brand-blue);
  line-height: 1.1;
}

.step h3 { font-size: 16px; font-weight: 600; margin: 12px 0 6px; }
.step p { font-size: 14.5px; }

/* ---------- Reserved page: capacity request form ---------- */
body[data-page="reserved"] .contact-form.endpoint-panel {
  background: #F8FBFF;
  border: 1px solid rgba(90, 150, 220, 0.22);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(50, 100, 160, 0.08);
}

/* ---------- Partners page: plain 3x2 grid, no cards ---------- */
body[data-page="partners"] .capability-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 44px; }
body[data-page="partners"] .capability-item { padding: 22px 0; border-top: 1px solid rgba(var(--brand-blue-rgb), 0.14); }
body[data-page="partners"] .capability-item:nth-child(-n+3) { border-top-color: transparent; }
body[data-page="partners"] .capability-item h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
body[data-page="partners"] .capability-item p { margin: 0; color: var(--text-secondary); font-size: 14.5px; }

/* ---------- Partners page: form sits on the page background, no outer card ---------- */
body[data-page="partners"] .contact-form input[type="text"],
body[data-page="partners"] .contact-form input[type="email"],
body[data-page="partners"] .contact-form textarea {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(var(--brand-blue-rgb), 0.2);
  border-radius: 12px;
  box-shadow: none;
}
body[data-page="partners"] .contact-form .check {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(var(--brand-blue-rgb), 0.16);
  border-radius: 12px;
  box-shadow: none;
}

.contact-form .form-note { margin-top: 12px; font-size: 13.5px; color: var(--text-muted); }

@media (max-width: 900px) {
  .capacity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .capacity-stat { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }
  .capacity-stat:nth-child(-n+2) { border-top: none; padding-top: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body[data-page="partners"] .capability-list { grid-template-columns: minmax(0, 1fr); }
  body[data-page="partners"] .capability-item:nth-child(-n+3) { border-top: 1px solid rgba(var(--brand-blue-rgb), 0.14); }
  body[data-page="partners"] .capability-item:first-child { border-top: none; }
}

/* ---------- Dedicated page: no-card capability list + soft form container ---------- */
body[data-page="dedicated"] .capability-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
body[data-page="dedicated"] .capability-item { padding: 24px 0; border-top: 1px solid rgba(var(--brand-blue-rgb), 0.14); }
body[data-page="dedicated"] .capability-item:nth-child(-n+2) { border-top-color: transparent; }
body[data-page="dedicated"] .capability-item h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
body[data-page="dedicated"] .capability-item h3::before { content: "→"; font-size: 14px; font-weight: 600; color: var(--brand-blue); }
body[data-page="dedicated"] .capability-item p { margin: 0; color: var(--text-secondary); font-size: 15px; }
body[data-page="dedicated"] #request .contact-form.endpoint-panel { background: rgba(255, 255, 255, 0.52); border: 1px solid rgba(94, 160, 255, 0.22); box-shadow: 0 12px 40px rgba(30, 90, 160, 0.04); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body[data-page="dedicated"] #request .contact-form input[type="text"], body[data-page="dedicated"] #request .contact-form input[type="email"], body[data-page="dedicated"] #request .contact-form textarea { border: 1px solid rgba(70, 125, 190, 0.22); background: rgba(255, 255, 255, 0.45); }
body[data-page="dedicated"] .contact-form .form-privacy { margin-top: 14px; font-size: 13px; color: var(--text-muted); }
body[data-page="dedicated"] .contact-form .form-privacy a { color: var(--accent); }
@media (max-width: 768px) {
  body[data-page="dedicated"] .capability-list { grid-template-columns: minmax(0, 1fr); }
  body[data-page="dedicated"] .capability-item:nth-child(-n+2) { border-top: 1px solid rgba(var(--brand-blue-rgb), 0.14); }
  body[data-page="dedicated"] .capability-item:first-child { border-top: none; }
}

/* ---------- Custom page: consultative narrative and deployment form ---------- */
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body[data-page="custom"] .capability-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
body[data-page="custom"] .capability-item { padding: 22px 0; border-top: 1px solid rgba(var(--brand-blue-rgb), 0.14); }
body[data-page="custom"] .capability-item:nth-child(-n+3) { border-top-color: transparent; }
body[data-page="custom"] .capability-item h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
body[data-page="custom"] .capability-item h3::before { content: "→"; font-size: 14px; font-weight: 600; color: var(--brand-blue); }
body[data-page="custom"] .capability-item p { margin: 0; color: var(--text-secondary); font-size: 15px; }
body[data-page="custom"] .spec-list { border-top: 1px solid rgba(var(--brand-blue-rgb), 0.14); }
body[data-page="custom"] .spec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(var(--brand-blue-rgb), 0.14); font-size: 13px; }
body[data-page="custom"] .spec-row .k { color: var(--text-muted); text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; font-family: var(--font-mono); flex-shrink: 0; }
body[data-page="custom"] .spec-row .v { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
body[data-page="custom"] #request .contact-form.endpoint-panel { background: #ffffff; border: 1px solid rgba(90, 150, 220, 0.22); border-radius: 16px; box-shadow: 0 12px 40px rgba(50, 100, 160, 0.08); }
@media (max-width: 900px) {
  .steps--4 { grid-template-columns: minmax(0, 1fr); }
  body[data-page="custom"] .capability-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  body[data-page="custom"] .capability-item:nth-child(-n+3) { border-top: 1px solid rgba(var(--brand-blue-rgb), 0.14); }
  body[data-page="custom"] .capability-item:nth-child(-n+2) { border-top-color: transparent; }
}
@media (max-width: 768px) {
  body[data-page="custom"] .capability-list { grid-template-columns: minmax(0, 1fr); }
  body[data-page="custom"] .capability-item:nth-child(-n+2) { border-top: 1px solid rgba(var(--brand-blue-rgb), 0.14); }
  body[data-page="custom"] .capability-item:first-child { border-top: none; }
}

/* ---------- Dedicated / Custom shared: inference stack tags + deployment profile ---------- */
body[data-page="dedicated"] .stack-label, body[data-page="custom"] .stack-label { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: 24px 0 10px; }
body[data-page="dedicated"] .tech-tags, body[data-page="custom"] .tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
body[data-page="dedicated"] .tech-tag, body[data-page="custom"] .tech-tag { display: inline-flex; align-items: center; gap: 8px; min-height: 33px; padding: 6px 12px; border-radius: 6px; font-family: var(--font-sans); font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--text); border: 1px solid rgba(var(--brand-blue-rgb), 0.16); }
body[data-page="dedicated"] .tech-tag::before, body[data-page="custom"] .tech-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none; }
body[data-page="dedicated"] .tech-tag--engine, body[data-page="custom"] .tech-tag--engine { background: rgba(var(--brand-blue-rgb), 0.1); }
body[data-page="dedicated"] .tech-tag--engine::before, body[data-page="custom"] .tech-tag--engine::before { background: var(--brand-blue); }
body[data-page="dedicated"] .tech-tag--opt, body[data-page="custom"] .tech-tag--opt { background: rgba(var(--brand-blue-rgb), 0.05); }
body[data-page="dedicated"] .tech-tag--opt::before, body[data-page="custom"] .tech-tag--opt::before { width: 4px; height: 4px; background: transparent; border: 1.5px solid var(--brand-blue); }
body[data-page="dedicated"] .profile-panel, body[data-page="custom"] .profile-panel { background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(120, 170, 230, 0.22); border-radius: 20px; padding: 26px 28px; box-shadow: 0 24px 60px rgba(35, 100, 180, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body[data-page="dedicated"] .profile-kicker, body[data-page="custom"] .profile-kicker { font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
body[data-page="dedicated"] .profile-block, body[data-page="custom"] .profile-block { margin-top: 20px; }
body[data-page="dedicated"] .profile-label, body[data-page="custom"] .profile-label { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
body[data-page="dedicated"] .profile-value, body[data-page="custom"] .profile-value { font-size: 15px; font-weight: 600; color: var(--text); }
body[data-page="dedicated"] .profile-sub, body[data-page="custom"] .profile-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
body[data-page="dedicated"] .scale-rail, body[data-page="custom"] .scale-rail { position: relative; height: 20px; margin: 12px 6px 2px; }
body[data-page="dedicated"] .scale-track, body[data-page="custom"] .scale-track { position: absolute; left: 0; right: 0; top: 9px; height: 2px; border-radius: 2px; background: rgba(70, 120, 180, 0.22); }
body[data-page="dedicated"] .scale-node, body[data-page="custom"] .scale-node { position: absolute; top: 5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; border: 2px solid rgba(var(--brand-blue-rgb), 0.4); animation: scale-node-pulse 4s ease-in-out infinite; }
body[data-page="dedicated"] .scale-flow, body[data-page="custom"] .scale-flow { position: absolute; top: 7px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--brand-blue); box-shadow: 0 0 8px rgba(var(--brand-blue-rgb), 0.7); animation: scale-flow-move 4s linear infinite; }
body[data-page="dedicated"] .scale-labels, body[data-page="custom"] .scale-labels { display: flex; justify-content: space-between; font-family: var(--font-sans); font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
@keyframes scale-node-pulse {
  0%, 100% { border-color: rgba(var(--brand-blue-rgb), 0.4); box-shadow: none; }
  6% { border-color: var(--brand-blue); box-shadow: 0 0 0 5px rgba(var(--brand-blue-rgb), 0.16); }
  26% { border-color: rgba(var(--brand-blue-rgb), 0.4); box-shadow: none; }
}
@keyframes scale-flow-move {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="dedicated"] .scale-flow, body[data-page="custom"] .scale-flow { display: none; }
  body[data-page="dedicated"] .scale-node, body[data-page="custom"] .scale-node { animation: none; }
}

/* ---------- About page: connected nodes inspired by Magic UI's Animated Beam ---------- */
.pipe { list-style: none; margin: 24px 0 0; padding: 0; max-width: 900px; display: grid; gap: 12px; }
.pipe-step { position: relative; padding-left: 48px; }
.pipe-copy {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 20px 24px;
  border: 1px solid rgba(var(--brand-blue-rgb), 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pipe-node {
  position: absolute;
  left: 8px;
  top: 26px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(var(--brand-blue-rgb), 0.5);
  border-radius: 50%;
  background: #fff;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pipe-link {
  position: absolute;
  left: 15px;
  top: 44px;
  width: 2px;
  height: calc(100% - 8px);
  overflow: hidden;
  border-radius: 2px;
  background: rgba(var(--brand-blue-rgb), 0.2);
}
.pipe-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--brand-cyan) 40%, var(--brand-blue) 60%, transparent);
  opacity: 0;
}
@keyframes pipe-beam {
  0% { transform: translateY(-100%); opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .pipe-step:hover .pipe-copy {
    transform: translateX(4px);
    border-color: rgba(var(--brand-blue-rgb), 0.45);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 30px -20px rgba(var(--brand-blue-rgb), 0.45);
  }
  .pipe-step:hover .pipe-node {
    background: var(--brand-blue);
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 5px rgba(var(--brand-blue-rgb), 0.1), 0 0 18px rgba(var(--brand-cyan-rgb), 0.5);
  }
  .pipe-step:hover .pipe-link::after,
  .pipe-step:has(+ .pipe-step:hover) .pipe-link::after { animation: pipe-beam 1.4s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .pipe-copy, .pipe-node { transition: none; }
  .pipe-step:hover .pipe-copy { transform: none; }
  .pipe-link::after { display: none; }
}
.pipe-stage {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.pipe-value { font-size: 16px; font-weight: 500; }
.about-ecosystem { margin-top: 28px; max-width: 780px; }

/* Model evidence and the practical selection guide. */
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 24px 0; }
.task-grid article { border-top: 2px solid var(--brand-blue); padding-top: 18px; }
.task-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.task-grid h3, .decision-list h3 { font-size: 17px; font-weight: 600; line-height: 1.6; margin-bottom: 10px; }
.task-grid p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.workflow-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.workflow-link { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 40px 22px 22px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .5); }
.workflow-link:hover { border-color: var(--brand-blue); }
.workflow-link strong { font-size: 17px; font-weight: 600; }
.workflow-link > span:last-child { position: absolute; right: 20px; top: 20px; }
.workflow-link > span:not(:last-child), .evidence-note { color: var(--text-secondary); font-size: 14px; line-height: 1.75; }
.content-next { margin-top: 20px; }
.evidence-table-wrap { overflow-x: auto; margin: 24px 0; }
.evidence-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.7; }
.evidence-table th, .evidence-table td { border-bottom: 1px solid var(--border); padding: 16px 18px 16px 0; vertical-align: top; }
.evidence-table thead th { color: var(--text-muted); font-weight: 500; }
.evidence-table tbody th { font-weight: 500; }
.evidence-table code { font-family: var(--font-mono); font-size: 13px; font-weight: 400; }
.evidence-table td:first-child { white-space: nowrap; }
.evidence-table caption { text-align: left; color: var(--text-secondary); padding-bottom: 12px; }
.catalog-feature { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 5px; vertical-align: middle; }
.catalog-feature::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.catalog-feature.is-supported { color: #146643; background: #edf9f2; }
.catalog-feature.is-unsupported { color: #c8444e; background: #fff0f2; }
.catalog-feature.is-pending { color: #64748b; background: #f1f5f9; }
.catalog-feature-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.content-limit-list { padding-left: 22px; line-height: 1.8; }
.content-limit-list li + li { margin-top: 12px; }
.history-notice { border-left: 3px solid var(--brand-blue); padding-left: 16px; margin-top: 16px; }
.guide-reading { max-width: 1000px; padding-bottom: 80px; }
.selection-guide .landing-hero > .container { max-width: 1000px; }
.guide-reading > h2 { margin: 60px 0 20px; }
.guide-reading > p { color: var(--text-secondary); line-height: 1.8; margin: 16px 0; }
.decision-list article { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; border-top: 1px solid var(--border); padding: 22px 0; }
.decision-list p { line-height: 1.8; }
.guide-finish { margin-top: 56px; border-top: 1px solid var(--border); padding-top: 32px; }
.guide-finish h2 { margin-bottom: 24px; }
.guide-model-choice label { display: block; color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.guide-model-choice select,
.guide-model-trigger {
  display: block;
  width: min(100%, 520px);
  min-height: 58px;
  margin: 12px 0 20px;
  padding: 15px 52px 15px 18px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23056bdc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 20px;
  box-shadow: 0 4px 16px rgba(var(--brand-blue-rgb), 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.guide-model-choice select:hover,
.guide-model-trigger:hover { border-color: var(--accent); background-color: #fff; }
.guide-model-choice select:focus-visible,
.guide-model-trigger:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgba(var(--brand-blue-rgb), 0.18);
  outline-offset: 3px;
  box-shadow: 0 4px 20px rgba(var(--brand-blue-rgb), 0.1);
}
.integration-guide .guide-model-choice select option { color: #102039; background: #fff; }
.guide-model-choice select[hidden], .guide-model-options[hidden] { display: none; }
.guide-model-picker-control { position: relative; width: min(100%, 520px); margin: 12px 0 20px; }
.guide-model-trigger { position: relative; width: 100%; margin: 0; background-image: none; text-align: left; }
.guide-model-trigger[aria-expanded="true"] { border-color: var(--accent); }
.guide-model-chevron { position: absolute; right: 22px; top: calc(50% - 6px); width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
.guide-model-trigger[aria-expanded="true"] .guide-model-chevron { top: calc(50% - 2px); transform: rotate(225deg); }
.guide-model-options { position: absolute; z-index: 10; top: calc(100% + 8px); left: 0; right: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; padding: 6px; border: 1px solid var(--border-strong); border-radius: 16px; background: #fff; box-shadow: 0 16px 48px rgba(0, 37, 90, 0.16); }
.guide-model-picker-control.is-above .guide-model-options { top: auto; bottom: calc(100% + 8px); }
.guide-model-option { position: relative; padding: 11px 42px 11px 12px; border-radius: 10px; cursor: pointer; color: var(--text); }
.guide-model-option:hover, .guide-model-option.is-active { background: rgba(var(--brand-blue-rgb), 0.06); }
.guide-model-option[aria-selected="true"] { background: rgba(var(--brand-blue-rgb), 0.1); color: var(--accent); }
.guide-model-option[aria-selected="true"]::after { content: "✓"; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 17px; font-weight: 600; }
.guide-model-option-name { display: block; font-size: 15px; font-weight: 500; line-height: 1.5; }
.guide-model-option-id { display: block; margin-top: 3px; color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.model-section-nav { flex-wrap: wrap; }
.workflow-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 32px 0 24px; padding: 24px 0; border-block: 1px solid var(--border); }
.workflow-metrics > div { display: flex; flex-direction: column; gap: 8px; }
.workflow-metrics strong { font-size: 30px; font-weight: 600; color: var(--brand-blue); }
.workflow-metrics span { font-size: 13px; color: var(--text-secondary); }
.guide-reading .guide-code { min-width: 0; margin: 20px 0; }
.guide-reading .hero-terminal-header .title { font-family: var(--font-sans); font-size: 13px; font-weight: 500; }
.workflow-diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; scroll-margin-top: 120px; }
.workflow-diff .hero-terminal-body pre, .workflow-diff .hero-terminal-body code { white-space: pre-wrap; overflow-wrap: anywhere; }
.workflow-details { margin: 24px 0; padding: 16px 0; border-block: 1px solid var(--border); }
.workflow-details summary { cursor: pointer; font-size: 16px; font-weight: 500; }
.task-output pre, .task-output code { white-space: pre-wrap; overflow-wrap: anywhere; }
#task-prompt { white-space: pre-wrap; overflow-wrap: anywhere; }
#complete-a-task { scroll-margin-top: 96px; }
#complete-a-task > .container > .source-explainer + .guide-code { margin-top: 24px; }
.workflow-log { padding-left: 24px; }
.workflow-log li { padding: 12px 0 12px 8px; border-bottom: 1px solid var(--border); line-height: 1.8; }
.workflow-log code { display: block; color: var(--brand-blue); font-family: var(--font-mono); font-size: 13px; }
.cost-formula { overflow-x: auto; }
.cost-formula code { font-family: var(--font-mono); white-space: nowrap; font-size: 14px; }
.cost-formula strong { color: var(--brand-blue); }
@media (max-width: 1000px) {
  .workflow-diff { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 768px) {
  .workflow-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-section-nav { flex-wrap: nowrap; }
  .task-grid, .workflow-links, .decision-list article { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .evidence-table { min-width: 580px; }
}

/* ---------- About page: company facts (hairline rows, no cards) ---------- */
.fact-list { margin-top: 8px; border-top: 1px solid var(--border); max-width: 780px; }
.fact-row { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.fact-row .k { flex: 0 0 180px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.fact-row .v { font-size: 15px; min-width: 0; }

@media (max-width: 900px) {
  .pipe-copy { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 20px; }
  .fact-row { flex-direction: column; gap: 4px; }
  .fact-row .k { flex: none; }
}

html[lang="zh-CN"] [data-hide-zh] { display: none !important; }
html[lang="zh-CN"]:has(meta[name="model-hidden-in-zh"]) main { visibility: hidden; }

/* Body text links share one affordance; navigation, buttons and cards keep theirs. */
main a[href]:not(:where(nav a, [role="navigation"] a, [role="tablist"] a, [role="button"],
  .btn, .workflow-link, .integration-card, .logo-item, .hero-benefit, .contact-row-go,
  .blog-card a, .kg-card a, a:has(> img:only-child, > svg:only-child))) {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

main a[href]:not(:where(nav a, [role="navigation"] a, [role="tablist"] a, [role="button"],
  .btn, .workflow-link, .integration-card, .logo-item, .hero-benefit, .contact-row-go,
  .blog-card a, .kg-card a, a:has(> img:only-child, > svg:only-child))):hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

main a[href]:not(:where(nav a, [role="navigation"] a, [role="tablist"] a, [role="button"],
  .btn, .workflow-link, .integration-card, .logo-item, .hero-benefit, .contact-row-go,
  .blog-card a, .kg-card a, a:has(> img:only-child, > svg:only-child))):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main a[data-link-arrow]:not(:where(nav a, [role="navigation"] a, [role="tablist"] a, [role="button"],
  .btn, .workflow-link, .integration-card, .logo-item, .hero-benefit, .contact-row-go,
  .blog-card a, .kg-card a, a:has(> img:only-child, > svg:only-child)))::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-inline-start: 0.3em;
  vertical-align: -0.05em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h12m-5-5 5 5-5 5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
