/* ============ marketing site ============ */

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 900; display: flex; align-items: center;
  transition: background .3s var(--ease), border-color .3s, backdrop-filter .3s, height .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 56px;
  background: var(--nav-glass);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(var(--brand-rgb), .4);
}
.logo .mark i { font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 13px; border-radius: 10px; font-size: 14.5px; color: var(--text-dim);
  font-weight: 500; transition: color .18s, background .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 950; background: rgba(4, 6, 10, .6);
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(320px, 84vw);
  background: var(--surface); border-left: 1px solid var(--line); padding: 22px;
  transform: translateX(100%); transition: transform .28s var(--ease);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.drawer.open .drawer-panel { transform: none; }
.drawer-panel a { padding: 13px 14px; border-radius: 12px; font-size: 16px; font-weight: 500; color: var(--text-dim); }
.drawer-panel a:hover, .drawer-panel a.active { background: var(--surface-2); color: var(--text); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 76px) 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
  opacity: .55;
}
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--orb-opacity); }
.orb.a { width: 460px; height: 460px; background: var(--orb-a); top: -140px; left: -80px; animation: float1 16s ease-in-out infinite; }
.orb.b { width: 380px; height: 380px; background: var(--orb-b); top: 60px; right: -100px; animation: float2 19s ease-in-out infinite; }
.orb.c { width: 300px; height: 300px; background: var(--orb-c); bottom: -120px; left: 45%; opacity: .28; animation: float1 22s ease-in-out infinite reverse; }
@keyframes float1 { 50% { transform: translate(50px, 40px) scale(1.08); } }
@keyframes float2 { 50% { transform: translate(-60px, 30px) scale(1.12); } }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 2; }

.announce {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 10px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13px; color: var(--text-dim); margin-bottom: 22px;
}
.announce b { color: var(--text); font-weight: 600; }
.hero h1 {
  font-size: clamp(32px, 6.2vw, 62px);
  line-height: 1.1; font-weight: 800; letter-spacing: -.035em; max-width: 15ch;
}
/* 拉丁 / 西里尔文字更宽，收一号字号并放宽限度，避免三行断字 */
html[data-lang="en"] .hero h1,
html[data-lang="fr"] .hero h1,
html[data-lang="ru"] .hero h1,
html[data-lang="vi"] .hero h1 {
  font-size: clamp(27px, 4.4vw, 52px); max-width: 24ch; letter-spacing: -.025em;
}
html[data-lang="ja"] .hero h1 { font-size: clamp(28px, 5vw, 55px); max-width: 18ch; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: clamp(15px, 1.5vw, 18px); max-width: 620px; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 42px; max-width: 580px; }
.hero-stats div b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats div span { font-size: 13px; color: var(--muted); line-height: 1.32; display: block; }

/* ---------- code panel ---------- */
.code-panel {
  margin-top: 46px;
  border: 1px solid var(--code-line); border-radius: var(--radius-lg);
  background: var(--code-bg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: background .28s var(--ease), border-color .28s var(--ease);
}
.code-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--code-line);
  background: var(--code-head);
  transition: background .28s var(--ease);
}
.code-head .code-file { font-size: 13px; color: var(--code-dim); }
.code-dots { display: flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--code-dim); opacity: .45; display: block; }
.code-dots i:nth-child(1) { background: #ff5f57; opacity: 1; }
.code-dots i:nth-child(2) { background: #febc2e; opacity: 1; }
.code-dots i:nth-child(3) { background: #28c840; opacity: 1; }
.code-tabs { display: flex; gap: 4px; margin-left: 8px; }
.code-tabs button {
  height: 30px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent;
  color: var(--code-dim); font-size: 13px; cursor: pointer; font-weight: 500;
}
.code-tabs button:hover { color: var(--code-text); }
.code-tabs button.on { background: var(--code-chip); color: var(--code-text); font-weight: 600; }
.code-body { padding: 18px 20px; overflow-x: auto; }
.code-body pre { margin: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: var(--code-text); min-width: 420px; }
.code-body .k { color: var(--syn-k); } .code-body .s { color: var(--syn-s); }
.code-body .c { color: var(--code-dim); } .code-body .f { color: var(--syn-f); } .code-body .n { color: var(--syn-n); }
.code-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-top: 1px solid var(--code-line);
  font-size: 12.5px; color: var(--code-dim); flex-wrap: wrap;
}
.copy-btn {
  height: 32px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--code-line); background: var(--code-chip);
  cursor: pointer; font-size: 13px; color: var(--code-text);
  display: inline-flex; align-items: center; gap: 6px;
}
.copy-btn:hover { border-color: var(--brand); color: var(--brand); }
.copy-btn.done { border-color: var(--green); color: var(--green); }

/* ---------- marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line-soft); background: var(--bg-soft); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: slide 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 17px; font-weight: 700; color: var(--faint); letter-spacing: .02em; white-space: nowrap; transition: color .2s; }
.marquee-track span:hover { color: var(--text); }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; width: 120px; height: 100%; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-soft), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-soft), transparent); }

/* ---------- model catalog ---------- */
.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 26px 0 20px; }
.filters .input { height: 40px; max-width: 260px; width: 100%; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }

/* ---------- 按厂商分组折叠 ---------- */
/* 容器切成纵向排列的厂商块，每块内部再走卡片网格 */
.model-grid.vg-wrap { display: flex; flex-direction: column; gap: 26px; }
.vgroup { min-width: 0; }
.vgroup-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.vgroup-head .vg-name { font-size: 15px; font-weight: 650; letter-spacing: .2px; }
.vgroup-head .vg-cnt {
  font-size: 12px; color: var(--muted); font-family: var(--mono); line-height: 1;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
}
.vgroup-head .vg-more {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; flex: none;
  font: inherit; font-size: 12.5px; color: var(--brand); background: none; border: 0; cursor: pointer;
  padding: 5px 10px; border-radius: 999px; transition: background .2s var(--ease);
}
.vgroup-head .vg-more:hover { background: rgba(var(--brand-rgb), .1); }
.vgroup-head .vg-more i { font-style: normal; font-size: 10px; transition: transform .25s var(--ease); }
.vgroup-head .vg-more.on i { transform: rotate(180deg); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.mcard.is-folded { display: none; }
.vg-all { display: flex; justify-content: center; margin-top: 4px; }
.vg-all .vg-expand-all { display: inline-flex; align-items: center; gap: 6px; }
.vg-all .vg-expand-all i { font-style: normal; font-size: 10px; transition: transform .25s var(--ease); }
.vg-all .vg-expand-all.on i { transform: rotate(180deg); }
.vgroup-head .vlogo-img { width: 22px; height: 22px; flex: none; }

.mcard {
  position: relative; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  cursor: pointer; overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.mcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--brand-rgb), .16), transparent 60%);
  transition: opacity .3s; pointer-events: none;
}
.mcard:hover { transform: translateY(-3px); border-color: rgba(var(--brand-rgb), .55); box-shadow: var(--shadow-sm); }
.mcard:hover::after { opacity: 1; }
.mcard .vhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.vlogo {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff; flex: none; background: var(--surface-3);
}
.mcard h4 {
  font-size: 15px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  /* break-word 优先在连字符等自然断点换行，anywhere 会在任意字符处硬断，长模型名会被切得很难读 */
  overflow-wrap: break-word; word-break: normal; line-height: 1.35;
}
.mcard .vhead > .badge { flex: none; align-self: flex-start; margin-top: 1px; }
.mcard .vendor { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mcard .ctx { font-size: 12px; color: var(--faint); font-family: var(--mono); }
.price-row { display: flex; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.price-row div { font-size: 12px; color: var(--muted); }
.price-row b { display: block; font-size: 15px; color: var(--text); font-family: var(--mono); }
.price-row del { color: var(--faint); font-size: 12px; }
.caps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.caps span { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--line-soft); }
.discount { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); padding: 2px 7px; border-radius: 6px; }

/* ---------- feature 01-04 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 34px; }
/* 四件能力卡固定 2×2（三步接入仍用 auto-fit） */
.feat-grid.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feat {
  position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s;
}
.feat:hover { transform: translateY(-4px); border-color: rgba(var(--brand-rgb), .5); }
.feat .num {
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--brand);
  letter-spacing: .1em; opacity: .9;
}
.feat h4 { font-size: 18px; margin: 10px 0 8px; }
.feat p { color: var(--text-dim); font-size: 14.5px; }
.feat .link { margin-top: 14px; display: inline-flex; gap: 6px; font-size: 13.5px; color: var(--brand); font-weight: 600; align-items: center; }
.feat .link:hover .ar { transform: translateX(3px); }

/* ---------- flow ---------- */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
/* 请求流程区左栏的代码面板：列内收窄，字号降一档，避免横向滚动 */
.flow .code-panel { margin-top: 0; min-width: 0; }
.flow .code-head { padding: 9px 12px; gap: 8px; }
.flow .code-file { display: none; }
.flow .code-tabs { margin-left: 4px; }
.flow .code-tabs button { height: 28px; padding: 0 10px; font-size: 12.5px; }
.flow .code-body { padding: 14px 16px; }
.flow .code-body pre { min-width: 0; font-size: 12px; line-height: 1.72; }
.flow .code-foot { padding: 10px 14px; font-size: 12px; }
.flow .copy-btn { height: 30px; font-size: 12.5px; }
.flow-steps { display: flex; flex-direction: column; gap: 4px; }
.step {
  display: flex; gap: 16px; padding: 18px; border-radius: 14px; border: 1px solid transparent;
  transition: background .25s, border-color .25s; cursor: default;
}
.step:hover { background: var(--surface); border-color: var(--line); }
.step .sn {
  width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--cyan);
}
.step b { display: block; font-size: 15.5px; }
.step span { font-size: 13.5px; color: var(--muted); }
.terminal {
  border: 1px solid var(--code-line); border-radius: var(--radius); overflow: hidden; background: var(--code-bg);
  box-shadow: var(--shadow);
}
.terminal .thead { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--code-line); background: var(--code-head); font-size: 12.5px; font-family: var(--mono); color: var(--code-dim); }
.terminal pre { margin: 0; padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--code-text); min-height: 210px; }
.terminal .ok { color: var(--green); } .terminal .hl { color: var(--code-hl); } .terminal .dim { color: var(--code-dim); }

/* ---------- observability ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat {
  padding: 20px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
}
.stat .lb { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.stat .vl { font-size: 27px; font-weight: 800; margin-top: 8px; letter-spacing: -.02em; font-family: var(--mono); }
.stat .sub { font-size: 12px; color: var(--green); margin-top: 4px; }
.spark { margin-top: 12px; height: 34px; display: flex; align-items: flex-end; gap: 3px; }
.spark i { flex: 1; background: linear-gradient(180deg, var(--brand), rgba(var(--brand-rgb), .18)); border-radius: 2px 2px 0 0; display: block; min-height: 3px; }
.req-list { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.req-list .rh { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.req {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px;
}
.req:last-child { border-bottom: 0; }
.req .m { font-family: var(--mono); font-size: 13px; }
.req .meta { font-size: 12px; color: var(--muted); }
.req .cost { font-family: var(--mono); color: var(--text); }

/* ---------- governance ---------- */
.gov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 30px; }
.gov { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; gap: 14px; transition: border-color .2s, transform .2s; }
.gov:hover { border-color: rgba(var(--brand-rgb), .45); transform: translateY(-2px); }
.gov .ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); font-size: 16px; }
.gov b { font-size: 15px; display: block; margin-bottom: 4px; }
.gov span { font-size: 13.5px; color: var(--muted); }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 30px auto 0; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px; background: transparent; border: 0; cursor: pointer; text-align: left;
  font-size: 15.5px; font-weight: 600; color: var(--text);
}
.faq-q i { font-style: normal; color: var(--muted); transition: transform .28s var(--ease); font-size: 18px; line-height: 1; }
.faq-item.open .faq-q i { transform: rotate(45deg); color: var(--brand); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); }
.faq-a p { padding: 0 20px 18px; color: var(--text-dim); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 480px; }

/* ---------- cta ---------- */
.cta {
  position: relative; margin: 60px 0; padding: 56px 34px; border-radius: 26px; overflow: hidden; text-align: center;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(var(--brand-rgb), .12), rgba(var(--brand2-rgb), .09) 55%, rgba(var(--brand-rgb), .05));
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px circle at 50% 0%, rgba(var(--brand-rgb), .22), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(24px, 3.6vw, 38px); }
.cta p { color: var(--text-dim); margin-top: 12px; }
.cta .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 28px; background: var(--bg-soft); }
.f-grid { display: grid; grid-template-columns: 1.8fr repeat(2, 1fr); gap: 30px; }
.f-col h5 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; font-weight: 600; }
.f-col a { display: block; font-size: 14px; color: var(--text-dim); padding: 5px 0; transition: color .18s, transform .18s; }
.f-col a:hover { color: var(--text); transform: translateX(2px); }
.f-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.f-links > a { min-width: 0; }
.f-bottom { border-top: 1px solid var(--line-soft); margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; padding: 60px 56px; display: flex; flex-direction: column; justify-content: center;
  background:
    linear-gradient(155deg,
      color-mix(in srgb, var(--brand) 13%, var(--surface-2)),
      color-mix(in srgb, var(--brand) 5%, var(--surface-2)) 78%);
  border-right: 1px solid var(--line); overflow: hidden;
}
.auth-side::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent), transparent 62%);
  top: -120px; left: -140px; filter: blur(40px);
}
.auth-side::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 20% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 20% 0%, #000 10%, transparent 72%);
  opacity: .5;
}
.auth-side h2 { font-size: 32px; margin-bottom: 14px; position: relative; color: var(--text); }
.auth-side ul { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-dim); }
.auth-side li b { color: var(--text); font-weight: 600; }
.auth-side .tick { width: 22px; height: 22px; flex: none; border-radius: 7px; background: color-mix(in srgb, var(--green) 14%, transparent); border: 1px solid color-mix(in srgb, var(--green) 32%, transparent); color: var(--green); display: grid; place-items: center; font-size: 12px; }
.auth-main { padding: 60px 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 27px; margin-bottom: 8px; }
.auth-box .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.auth-alt { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--brand); font-weight: 600; }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; letter-spacing: .28em; font-family: var(--mono); text-align: center; }
.code-row .btn { flex: none; padding: 0 16px; }
.pwd-strength { display: flex; gap: 4px; margin-top: 8px; }
.pwd-strength i { height: 3px; flex: 1; background: var(--surface-3); border-radius: 2px; transition: background .2s; }
.pwd-strength i.on1 { background: var(--red); } .pwd-strength i.on2 { background: var(--amber); }
.pwd-strength i.on3 { background: var(--cyan); } .pwd-strength i.on4 { background: var(--green); }

/* ---------- docs ---------- */
.docs-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 40px; padding-top: calc(var(--nav-h) + 40px); }
.docs-layout > * { min-width: 0; }
.docs-body { min-width: 0; overflow-wrap: break-word; }
.docs-nav { position: sticky; top: 88px; align-self: start; }
.docs-nav a { display: block; padding: 8px 12px; border-radius: 9px; font-size: 14px; color: var(--text-dim); border-left: 2px solid transparent; }
.docs-nav a:hover, .docs-nav a.on { color: var(--text); background: var(--surface-2); border-left-color: var(--brand); }
.docs-body h2 { font-size: 26px; margin: 34px 0 12px; scroll-margin-top: 90px; }
.docs-body h3 { font-size: 18px; margin: 24px 0 10px; }
.docs-body p, .docs-body li { color: var(--text-dim); font-size: 15px; }
.docs-body ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.docs-body code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 100px 24px 60px; align-items: center; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
  .docs-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .docs-nav a:hover, .docs-nav a.on { border-bottom-color: var(--brand); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .nav-actions .btn.sm.hide-sm { display: none; }
}
@media (max-width: 480px) {
  .nav-actions { gap: 6px; }
  .nav-actions .btn.sm { height: 34px; padding: 0 11px; font-size: 13px; }
  .icon-btn { width: 34px; height: 34px; }
  .logo { font-size: 16px; gap: 8px; }
  .logo .mark { width: 27px; height: 27px; border-radius: 8px; font-size: 13px; }
  .docs-layout { gap: 18px; }
  .docs-body .code-body pre { min-width: 0; }
}
@media (max-width: 720px) {
  .hero { padding: calc(var(--nav-h) + 44px) 0 48px; }
  .hero-stats { gap: 22px; margin-top: 30px; }
  .hero-stats div b { font-size: 22px; }
  .hero-cta .btn { flex: 1; min-width: 150px; }
  .model-grid { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: 1fr; }
  .code-body pre { font-size: 12.5px; }
  .f-grid { grid-template-columns: 1fr; gap: 24px; }
  .feat-grid { grid-template-columns: 1fr; gap: 14px; }
  .feat-grid.cols2 { grid-template-columns: 1fr; }
  .cta { padding: 40px 20px; border-radius: 20px; }
  .filters .input { max-width: none; }
  .marquee-track { gap: 28px; }
  .marquee-track span { font-size: 15px; }
  .auth-main { padding: 92px 18px 48px; }
  .spark { height: 26px; }
}

/* ============ brand bits ============ */
footer .logo-img { width: 38px; height: 38px; }
.palette-btn span { display: none; }

/* ============ hero split ============ */
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.hero-visual { position: relative; min-width: 0; }
.confluence { width: 100%; height: auto; display: block; overflow: visible; }
.confluence .cn-box { fill: var(--surface); stroke: var(--line); }
.confluence .cn-text { fill: var(--text-dim); font-weight: 500; }
.confluence .cn-card { fill: var(--surface); stroke: var(--line); }
.confluence .cn-ct { fill: var(--text); font-weight: 700; }
.confluence .cn-cs { fill: var(--muted); }
.confluence .cn-dot { fill: var(--green); }
.confluence .cn-dot { animation: dotBlink 2.8s ease-in-out infinite; }
.confluence .cn-dot:nth-of-type(2) { animation-delay: .9s; }
@keyframes dotBlink { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.confluence .cn-label { fill: var(--faint); }
.confluence .cn-key { fill: var(--surface-2); stroke: var(--brand); }
.confluence .cn-key-text { fill: var(--brand); font-weight: 600; }
.confluence .cn-hub { fill: var(--brand); }
.confluence .cn-ring,
.confluence .cn-glow { transform-box: fill-box; transform-origin: center; }
.confluence .cn-ring { opacity: .5; animation: hubRing 3.4s ease-in-out infinite; }
.confluence .cn-glow { animation: hubGlow 3.4s ease-in-out infinite; }
@keyframes hubRing {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: .16; transform: scale(1.1); }
}
@keyframes hubGlow {
  0%, 100% { opacity: .09; transform: scale(1); }
  50% { opacity: .15; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .confluence .cn-ring, .confluence .cn-glow, .confluence .cn-dash, .confluence .cn-dot { animation: none; }
}
.confluence .cn-dash { animation: dashFlow 2s linear infinite; }
/* 中心圆内文字：拉丁 / 日文写法更长，按语言收一档，避免溢出圆形 */
html[data-lang="en"] .confluence .hub-name,
html[data-lang="fr"] .confluence .hub-name,
html[data-lang="ru"] .confluence .hub-name,
html[data-lang="vi"] .confluence .hub-name,
html[data-lang="ja"] .confluence .hub-name { font-size: 12.4px; letter-spacing: 0; }
html[data-lang="en"] .confluence .hub-sub,
html[data-lang="fr"] .confluence .hub-sub,
html[data-lang="ru"] .confluence .hub-sub,
html[data-lang="vi"] .confluence .hub-sub { font-size: 8.4px; }
html[data-lang="ja"] .confluence .hub-sub { font-size: 7.6px; }
@keyframes dashFlow { to { stroke-dashoffset: -48px; } }
html[data-palette="midnight"] .confluence .mono-logo,
html[data-palette="xuanku"] .confluence .mono-logo { filter: invert(1) brightness(1.7); }
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { order: 2; max-width: 620px; width: 100%; margin-inline: auto; }
}

/* ============ vendor marquee with logos ============ */
.marquee-track span.vitem {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; color: var(--faint); white-space: nowrap;
}
.vendor-logo { width: 22px; height: 22px; object-fit: contain; flex: none; opacity: .9; }
html[data-palette="midnight"] .vendor-logo.mono,
html[data-palette="xuanku"] .vendor-logo.mono { filter: invert(1) brightness(1.75); }
.marquee-track span.vitem:hover { color: var(--text); }
.marquee-track span.vitem:hover .vendor-logo { opacity: 1; }

/* ============ footer company block ============ */
.f-company {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 26px;
  background: var(--surface); display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 24px;
}
.f-company div { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.f-company b { display: block; color: var(--text-dim); font-weight: 600; font-size: 13px; }
.f-legal { font-size: 12px; color: var(--faint); line-height: 1.9; }

/* ================= 公司简介页 /about ================= */
.about-head { padding: calc(var(--nav-h) + 56px) 0 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 32px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; }
.stat-card b { display: block; font-size: 36px; font-weight: 800; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { display: block; font-size: 13px; color: var(--muted); margin-top: 9px; }
.bullets { margin-top: 14px; display: grid; gap: 10px; }
.bullets li { list-style: none; position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.8; color: var(--text-dim); }
.bullets li::before { content: ""; position: absolute; left: 5px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 28px; }
.contact-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.contact-item .lb { font-size: 11px; letter-spacing: .12em; font-weight: 700; color: var(--brand); }
.contact-item .vl { font-size: 15px; margin-top: 9px; line-height: 1.65; }
.pain-card { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--red); border-radius: var(--radius); padding: 20px 18px; }
.pain-card .pn { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--red); }
.pain-card h4 { font-size: 17px; margin: 8px 0 5px; }
.pain-card .pt { font-size: 12px; color: var(--brand); margin-bottom: 8px; }
.pain-card p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.about-body { font-size: 16px; line-height: 1.88; color: var(--text-dim); }
.about-body + .about-body { margin-top: 14px; }
@media (max-width: 720px) {
  .about-head { padding-top: calc(var(--nav-h) + 30px); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card b { font-size: 27px; }
}
