:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #657087;
  --soft: #344056;
  --line: #dce4f1;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-solid: #ffffff;
  --blue: #387bd9;
  --blue-deep: #2868c7;
  --violet: #7769d8;
  --mint: #138d80;
  --shadow: 0 24px 70px rgba(40, 67, 112, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% -4%, rgba(77, 137, 224, 0.16), transparent 35rem),
    radial-gradient(circle at 94% 4%, rgba(130, 105, 216, 0.12), transparent 30rem),
    linear-gradient(180deg, #f8faff 0%, #f2f6fc 46%, #f7f9fd 100%);
  color: var(--ink);
  line-height: 1.75;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(48, 83, 132, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 83, 132, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  pointer-events: none;
}

a {
  color: #245fae;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #174a8b;
}

a:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(105, 167, 255, 0.42);
  outline-offset: 3px;
}

.site-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 4px 22px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(88, 116, 163, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(42, 67, 108, 0.18);
  object-fit: cover;
}

.brand-name {
  display: block;
}

.brand-name {
  font-size: 17px;
  font-weight: 760;
  line-height: 1.25;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  padding: 8px 12px;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: rgba(56, 123, 217, 0.1);
  color: var(--ink);
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language-control label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.language-control select {
  min-width: 170px;
  max-width: 34vw;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 9px 34px 9px 11px;
}

.document,
.home-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 72px 48px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 5%, rgba(54, 175, 158, 0.1), transparent 22rem),
    radial-gradient(circle at 7% 0%, rgba(56, 123, 217, 0.12), transparent 28rem),
    #fbfcff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 18px;
  border: 1px solid rgba(56, 123, 217, 0.2);
  border-radius: 999px;
  background: rgba(56, 123, 217, 0.07);
  color: #2868b8;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  padding: 4px 11px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero h1,
.home-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(36px, 6.2vw, 68px);
  font-weight: 790;
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.hero-lead,
.home-lead {
  max-width: 790px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.75;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 52px;
  padding: 54px 72px 70px;
}

.document-content {
  min-width: 0;
}

.document-section {
  max-width: 760px;
  margin: 0 0 42px;
  scroll-margin-top: 24px;
}

.document-section:last-child {
  margin-bottom: 0;
}

.document-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.document-section h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  line-height: 1.4;
}

.document-section p {
  margin: 0 0 14px;
  color: var(--soft);
}

.document-section ul,
.document-section ol {
  margin: 10px 0 16px;
  padding-inline-start: 24px;
  color: var(--soft);
}

.document-section li + li {
  margin-top: 8px;
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 22px;
}

.toc-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.toc a {
  display: block;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 8px;
  text-decoration: none;
}

.toc a:hover {
  background: rgba(56, 123, 217, 0.08);
  color: #1e559b;
}

.callout {
  margin: 20px 0;
  border: 1px solid rgba(19, 141, 128, 0.2);
  border-radius: var(--radius-md);
  background: rgba(19, 141, 128, 0.07);
  color: var(--soft);
  padding: 18px 20px;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: #087467;
}

.platform-grid,
.support-grid,
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.platform-card,
.support-card,
.home-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8faff;
  padding: 20px;
}

.platform-card h3,
.support-card h3,
.home-card h2 {
  margin: 0 0 8px;
}

.platform-card p,
.support-card p,
.home-card p {
  margin: 0;
  color: var(--muted);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 123, 217, 0.2);
  border-radius: 12px;
  background: var(--blue-deep);
  color: white;
  font-size: 14px;
  font-weight: 740;
  padding: 9px 15px;
  text-decoration: none;
}

.button-link:hover {
  background: #4a8cea;
  color: white;
}

.button-link.secondary {
  background: rgba(56, 123, 217, 0.08);
  color: #225da9;
}

.button-link.secondary:hover {
  background: rgba(56, 123, 217, 0.15);
}

.home-hero {
  padding: 74px 72px 68px;
  background:
    radial-gradient(circle at 88% 2%, rgba(54, 175, 158, 0.1), transparent 27rem),
    radial-gradient(circle at 4% 12%, rgba(56, 123, 217, 0.11), transparent 31rem),
    var(--panel);
}

.home-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
}

.home-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 24px;
}

.home-card h2 {
  font-size: 21px;
}

.home-card .button-link {
  align-self: flex-start;
  margin-top: auto;
}

.email-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 28px;
  border: 1px solid rgba(19, 141, 128, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 95% 0%, rgba(56, 123, 217, 0.1), transparent 15rem),
    #f5fafb;
  padding: 22px 24px;
}

.email-panel p {
  margin: 3px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 6px 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: inherit;
}

a[href^="mailto:"] {
  display: inline-block;
  direction: ltr;
  unicode-bidi: embed;
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .toc-title {
  letter-spacing: 0;
}

@media (max-width: 940px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 12px;
  }

  .document-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 12px;
  }

  .topbar {
    flex-direction: column;
    padding-bottom: 16px;
  }

  .topbar-actions,
  .primary-nav,
  .language-control {
    width: 100%;
  }

  .topbar-actions {
    align-items: stretch;
  }

  .primary-nav {
    flex-wrap: wrap;
  }

  .language-control {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-control select {
    width: 100%;
    max-width: none;
  }

  .hero,
  .home-hero {
    padding: 42px 24px 36px;
  }

  .document-layout {
    gap: 0;
    padding: 38px 24px 50px;
  }

  .platform-grid,
  .support-grid,
  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-card {
    min-height: 190px;
  }

  .email-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
