:root {
  color-scheme: light;
  --ink: #182131;
  --muted: #566174;
  --soft: #647085;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f4f8;
  --line: #d7dde7;
  --line-strong: #bcc6d5;
  --primary: #2864d7;
  --primary-strong: #174aab;
  --primary-soft: #edf3ff;
  --danger: #c63d36;
  --danger-soft: #fff1f0;
  --good: #157d3a;
  --good-soft: #edf8f0;
  --warn: #9a6200;
  --max: 1180px;
  --radius: 5px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 9px 14px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  text-decoration: none;
}

.skip:focus {
  top: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 126px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 19px;
  letter-spacing: .04em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--soft);
  font-size: 11px;
}

.links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
}

.links a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.links a:hover,
.links a:focus-visible,
.links a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--ink);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  border-color: var(--primary-strong);
  background: var(--primary-strong);
}

.button.secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.button.ghost {
  min-height: 38px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.button:disabled {
  border-color: var(--line-strong);
  background: var(--line);
  color: var(--muted);
  cursor: wait;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
}

.hero {
  padding: 92px 0 76px;
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 76px;
  align-items: end;
}

.section-label {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.4vw, 66px);
  letter-spacing: -.045em;
}

.hero-title span {
  display: block;
}

.hero-title span:last-child {
  white-space: nowrap;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.7vw, 44px);
  letter-spacing: -.03em;
}

h3 {
  font-size: 20px;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-facts {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.hero-facts div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.hero-facts dt {
  color: var(--soft);
}

.hero-facts dd {
  margin: 0;
  font-weight: 700;
}

.content-section {
  padding: 74px 0;
  border-bottom: 1px solid var(--line);
}

.content-section.muted-section {
  background: var(--bg);
}

.section-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 700px);
  gap: 20px;
  margin-bottom: 34px;
}

.section-index {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.data-list {
  border-top: 1px solid var(--line-strong);
}

.data-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.data-row strong {
  font-size: 17px;
}

.data-row p {
  margin: 0;
  color: var(--muted);
}

.data-row p:first-of-type {
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.tool-table,
.status-table,
.release-table {
  width: 100%;
  border-collapse: collapse;
}

.tool-table {
  min-width: 760px;
}

.status-table {
  min-width: 680px;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.tool-name {
  color: var(--primary-strong);
  font-weight: 700;
}

.status {
  display: inline-flex;
  min-width: 58px;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}

.status.good {
  background: var(--good-soft);
  color: var(--good);
}

.status.warn {
  background: #fff7e8;
  color: var(--warn);
}

.status.bad {
  background: var(--danger-soft);
  color: var(--danger);
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.product-shot {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-shot img {
  width: 100%;
  max-height: 640px;
  border: 1px solid var(--line);
  object-fit: contain;
  object-position: top center;
  background: #0e0e12;
}

.product-shot figcaption {
  padding: 11px 4px 1px;
  color: var(--soft);
  font-size: 13px;
}

.step-list {
  margin: 24px 0 0;
  border-top: 1px solid var(--line-strong);
}

.step-list div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.step-list dt {
  color: var(--primary);
  font-weight: 800;
}

.step-list dd {
  margin: 0;
}

.step-list dd span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.beta-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: start;
}

.beta-copy {
  position: sticky;
  top: 94px;
}

.beta-copy p {
  color: var(--muted);
}

.plain-list {
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.plain-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.form {
  border-top: 1px solid var(--line-strong);
}

.form-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.form-row > label,
.field-title {
  padding-top: 10px;
  color: var(--ink);
  font-weight: 700;
}

.required {
  color: var(--danger);
}

input[type="text"],
input[type="tel"],
input[type="password"],
textarea,
select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: 0;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--primary);
  outline: 3px solid var(--primary-soft);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-option,
.consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.check-option {
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.check-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.check-option input,
.consent input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: var(--primary);
}

.form-actions {
  padding-top: 20px;
}

.consent {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.consent a {
  color: var(--primary-strong);
}

.form-status {
  min-height: 26px;
  margin-top: 12px;
  color: var(--muted);
}

.form-status[data-tone="success"] {
  color: var(--good);
}

.form-status[data-tone="error"] {
  color: var(--danger);
}

.application-success {
  padding: 28px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.application-success h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.application-success p:not(.section-label) {
  margin: 0;
  color: var(--muted);
}

.application-success .button {
  margin-top: 22px;
}

.application-success:focus {
  outline: 0;
}

.page-head {
  padding: 66px 0 38px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 4.5vw, 52px);
}

.page-head .lead {
  font-size: 16px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.subpage {
  min-height: calc(100vh - 220px);
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 54px;
  padding: 48px 0 80px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 94px;
  border-top: 1px solid var(--line-strong);
}

.docs-nav a {
  display: block;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.docs-nav a:hover,
.docs-nav a:focus-visible {
  color: var(--primary-strong);
}

.prose {
  max-width: 780px;
}

.prose section {
  padding: 0 0 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.prose section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.prose h2 {
  margin-bottom: 14px;
  font-size: 25px;
}

.prose h3 {
  margin: 25px 0 8px;
  font-size: 18px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose code,
.release-table code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font: 13px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}

.download-form {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.download-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.download-form .button {
  width: 100%;
  margin-top: 14px;
}

.release-panel {
  border-top: 1px solid var(--line-strong);
}

.release-panel h2 {
  padding: 0 0 14px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
}

.release-table th {
  width: 132px;
  background: transparent;
}

.release-download {
  padding-top: 20px;
}

.release-download .button[hidden] {
  display: none;
}

.status-board {
  padding: 48px 0 80px;
}

.status-summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.status-summary h2 {
  margin: 0;
  font-size: 24px;
}

.status-summary p {
  margin: 4px 0 0;
  color: var(--muted);
}

.status-board .table-wrap {
  margin-top: 28px;
}

.status-table td:first-child {
  width: 220px;
  font-weight: 700;
}

.status-table td:last-child {
  width: 160px;
  text-align: right;
}

.legal-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 760px);
  gap: 64px;
  padding: 48px 0 80px;
  align-items: start;
}

.legal-meta {
  color: var(--soft);
  font-size: 13px;
}

.legal-meta strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
}

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--soft);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary-strong);
}

@media (max-width: 900px) {
  .hero-layout,
  .workspace-layout,
  .beta-layout,
  .download-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout,
  .workspace-layout,
  .beta-layout {
    gap: 42px;
  }

  .hero {
    padding-top: 68px;
  }

  .beta-copy,
  .docs-nav {
    position: static;
  }

  .links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .links.open {
    display: grid;
  }

  .links .button {
    margin-top: 4px;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .docs-layout,
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .docs-nav {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--line-strong);
  }

  .docs-nav a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }

  .brand-copy small {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .hero {
    padding: 52px 0 48px;
  }

  .content-section {
    padding: 54px 0;
  }

  .section-head {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .data-row,
  .form-row,
  .step-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-row > label,
  .field-title {
    padding-top: 0;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    grid-template-columns: 90px 1fr;
  }

  .status-summary,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-table td,
  .status-table th {
    padding: 14px 10px;
  }

  .status-table td:first-child,
  .status-table td:last-child {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
