:root {
  color-scheme: light;
  --ink: #202938;
  --muted: #586980;
  --soft: #68798e;
  --line: #dce3ed;
  --paper: #fff;
  --canvas: #f4f6f8;
  --navy: #19344d;
  --blue: #315bea;
  --blue-soft: #edf1ff;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}
body {
  min-width: 320px;
  margin: 0;
  line-height: 1.75;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  color: var(--navy);
}
h1 {
  margin-bottom: 22px;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 720;
  letter-spacing: -1.2px;
  line-height: 1.35;
}
h2 {
  margin-bottom: 16px;
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 650;
  letter-spacing: -0.6px;
  line-height: 1.45;
}
h3 {
  font-size: 17px;
  line-height: 1.6;
}
p {
  margin-bottom: 18px;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 8px 16px;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--blue);
}
.skip-link:focus {
  transform: none;
}
.page-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.5px;
}
.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}
.site-nav a:hover,
.footer-inner a:hover,
.article-aside a:hover {
  color: var(--blue);
}
.site-nav .nav-cta {
  padding: 8px 16px;
  border: 1px solid #c5d0e0;
  border-radius: 6px;
  color: var(--navy);
  font-weight: 600;
}
.site-nav .nav-support {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid #c5d0e0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}
.site-nav .nav-support::before {
  width: 16px;
  height: 16px;
  background: url('/support-heart.svg') center / contain no-repeat;
  content: '';
}
.site-nav .nav-support:hover,
.site-nav .nav-support[aria-current='page'] {
  border-color: #e54862;
  color: #b42346;
}
.eyebrow {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 68px;
  padding: 72px 0 76px;
}
.hero-description {
  max-width: 500px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  transition:
    background 140ms ease,
    border-color 140ms ease;
}
.button:hover {
  border-color: #2448c5;
  background: #2448c5;
}
.button.secondary {
  border-color: #c5d0e0;
  background: transparent;
  color: var(--navy);
}
.button.secondary:hover {
  border-color: var(--blue);
  background: var(--paper);
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0 10px;
  padding: 0;
  list-style: none;
  color: var(--navy);
  font-size: 12px;
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-facts li::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  content: '';
}
.hero-copy .micro-note {
  max-width: 500px;
  margin: 0;
  color: var(--soft);
  font-size: 12px;
}
.micro-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.document-preview {
  min-width: 0;
  margin: 0;
}
.document-card {
  position: relative;
  width: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  background: var(--paper);
  box-shadow: 0 18px 36px #19344d0c;
}
.document-topline,
.document-total,
.document-terms {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.document-topline {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}
.document-topline span:last-child {
  color: var(--muted);
  font: 10px var(--mono);
}
.document-title {
  margin: 20px 0;
  color: var(--navy);
  font:
    26px Georgia,
    serif;
  letter-spacing: 0.07em;
}
.document-parties {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  margin-bottom: 24px;
}
.document-parties span,
.document-parties strong,
.document-parties small {
  display: block;
}
.document-parties span {
  margin-bottom: 6px;
  color: var(--soft);
  font: 9px var(--mono);
}
.document-parties strong {
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
}
.document-parties small {
  color: var(--muted);
  font-size: 10px;
}
.document-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--navy);
  font-size: 10px;
}
.document-table th {
  padding: 8px 4px;
  background: #eef2f8;
  color: var(--muted);
  font: 9px var(--mono);
  text-align: left;
}
.document-table td {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.document-table th:not(:first-child),
.document-table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}
.document-table small {
  display: block;
  color: var(--soft);
  font-size: 8px;
}
.document-total {
  margin: 20px 0;
  color: var(--navy);
  font: 10px var(--mono);
}
.document-total strong {
  color: var(--blue);
  font: 700 20px var(--mono);
}
.document-terms {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}
.document-preview figcaption {
  margin-top: 14px;
  color: var(--soft);
  font-size: 11px;
  text-align: center;
}
.section {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}
.section-heading {
  max-width: 740px;
  margin-bottom: 28px;
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
.section-heading h2 {
  margin-bottom: 12px;
}
.section-heading > p:last-child,
.section-intro {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.text-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: #315bea50;
  text-underline-offset: 4px;
}
.text-link:hover {
  text-decoration-color: var(--blue);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.content-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: border-color 140ms ease;
}
.content-card:hover {
  border-color: var(--blue);
}
.card-kicker {
  margin-bottom: 18px;
  color: var(--blue);
  font: 10px/1.6 var(--mono);
}
.content-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
}
.content-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}
.arrow-link {
  margin-top: auto;
  padding-top: 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 64px;
}
.section-copy h2 {
  margin-bottom: 20px;
}
.workflow {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.workflow-label {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}
.workflow-path {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 650;
}
.workflow-path b {
  color: var(--soft);
  font-weight: 400;
}
.workflow > p:not(.workflow-label) {
  color: var(--muted);
  font-size: 13px;
}
.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.fact-list li {
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
}
.fact-list li + li {
  border-top: 1px solid var(--line);
}
.fact-list strong {
  color: var(--navy);
}
.privacy-note {
  padding: 24px;
  border-left: 3px solid var(--blue);
  background: #eaf0f7;
}
.privacy-note h3 {
  margin-bottom: 12px;
}
.privacy-note p {
  color: var(--muted);
  font-size: 14px;
}
.privacy-note p:last-child {
  margin-bottom: 0;
}
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.faq-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.faq-item h3 {
  margin-bottom: 10px;
  font-size: 16px;
}
.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 20px 0 64px;
  padding: 30px 34px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--paper);
}
.page-wrap.cta-band {
  margin: 20px auto 64px;
}
.cta-band h2 {
  margin-bottom: 8px;
  color: var(--paper);
  font-size: 24px;
}
.cta-band p {
  margin: 0;
  color: #d2dce8;
  font-size: 14px;
}
.cta-band .button {
  flex-shrink: 0;
  border-color: var(--paper);
  background: var(--paper);
  color: var(--navy);
}
.cta-band .button:hover {
  background: var(--blue-soft);
}
.site-footer {
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 12px;
}
.footer-inner {
  display: flex;
  max-width: 1120px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.home-footer {
  padding: 58px 24px 24px;
  background: #f1f3f6;
  color: var(--muted);
  font-size: 14px;
}
.home-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.home-footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 50px;
}
.home-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 19px;
}
.home-footer-brand-link img {
  width: 30px;
  height: 30px;
}
.home-footer-brand p {
  max-width: 280px;
  margin: 18px 0 20px;
  color: var(--soft);
  line-height: 1.7;
}
.home-footer-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.home-footer-github:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.home-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.home-footer-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.home-footer-group h2 {
  margin: 2px 0 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.home-footer-group a {
  color: var(--soft);
  line-height: 1.5;
}
.home-footer-group a:hover {
  color: var(--blue);
}
.home-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 12px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  color: var(--soft);
  font-size: 12px;
}
.breadcrumbs a:hover {
  color: var(--blue);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 64px;
  padding: 36px 0 32px;
}
.article {
  min-width: 0;
}
.article-header {
  margin-bottom: 32px;
}
.article .eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
}
.article h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.45;
  letter-spacing: -0.7px;
}
.article-intro {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}
.article .article-meta {
  margin-bottom: 20px;
  color: var(--soft);
  font-size: 12px;
}
.privacy-page .privacy-updated {
  color: var(--soft);
  font-size: 13px;
}
.privacy-page .article section a,
.support-page .article section a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.article .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.article section {
  padding: 28px 0 18px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.article section h2 {
  margin-bottom: 16px;
  font-size: 24px;
}
.article p,
.article li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.article p:last-child {
  margin-bottom: 0;
}
.article strong {
  color: var(--navy);
}
.article ul,
.article ol {
  margin: 0 0 18px;
  padding-left: 23px;
}
.article li + li {
  margin-top: 10px;
}
.table-scroll {
  max-width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}
.field-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.8;
}
.field-table caption {
  padding: 12px 16px;
  background: var(--paper);
  color: var(--soft);
  font-size: 12px;
  text-align: left;
}
.field-table th,
.field-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.field-table th {
  background: #edf2f8;
  color: var(--navy);
  font-weight: 600;
}
.field-table td {
  color: var(--muted);
}
.field-table th:first-child {
  width: 30%;
}
.field-table td + td,
.field-table th + th {
  border-left: 1px solid var(--line);
}
.article .example-note {
  padding: 14px 18px;
  border-left: 3px solid #bdcbea;
  background: #eaf0f7;
  font-size: 13px;
}
.article-question + .article-question {
  margin-top: 24px;
}
.article-question h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 650;
}
.article-question p {
  margin-bottom: 0;
}
.article-aside {
  position: sticky;
  top: 32px;
  align-self: start;
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.toc-label {
  margin-bottom: 12px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
}
.article-aside a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.related-pages {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .hero {
    gap: 32px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split-section {
    gap: 32px;
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .privacy-page .article-aside,
  .support-page .article-aside {
    display: none;
  }
  .home-footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 24px;
  }
  .article-aside {
    position: static;
    order: -1;
    padding: 14px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .article-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  .article-toc .toc-label {
    flex-basis: 100%;
    margin: 0;
  }
  .article-aside a {
    padding: 0;
    font-size: 12px;
  }
  .related-pages {
    display: none;
  }
}

@media (max-width: 640px) {
  .home-footer {
    padding: 40px 18px 24px;
  }
  .home-footer-main {
    padding-bottom: 36px;
  }
  .home-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
  .home-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .page-wrap,
  .site-header {
    width: calc(100% - 36px);
  }
  .site-header {
    gap: 12px;
    padding: 18px 0;
  }
  .brand {
    gap: 8px;
    font-size: 18px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .site-nav {
    gap: 12px;
    font-size: 12px;
  }
  .site-nav a:nth-child(2),
  .home-nav a[href='/zh-cn/guides/'] {
    display: none;
  }
  .site-nav .nav-cta {
    padding: 7px 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0;
  }
  .hero h1 {
    font-size: clamp(28px, 6.5vw, 36px);
    letter-spacing: -0.6px;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-facts {
    margin-top: 20px;
  }
  .document-preview {
    width: min(100%, 460px);
    justify-self: center;
  }
  .section {
    padding: 36px 0;
  }
  .section-heading {
    margin-bottom: 24px;
  }
  .split-section,
  .faq-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-copy h2 br {
    display: none;
  }
  .section-intro {
    font-size: 14px;
  }
  .card-grid {
    gap: 12px;
  }
  .content-card {
    padding: 18px;
  }
  .card-kicker {
    font-size: 9px;
  }
  .content-card h3 {
    font-size: 17px;
  }
  .content-card p {
    font-size: 13px;
  }
  .content-card .arrow-link {
    font-size: 11px;
  }
  .faq-item {
    padding: 20px;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    margin: 12px 0 40px;
    padding: 24px;
  }
  .page-wrap.cta-band {
    margin: 12px auto 40px;
  }
  .cta-band h2 {
    font-size: 22px;
  }
  .cta-band .button {
    width: 100%;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .article h1 {
    font-size: 28px;
  }
  .article-intro {
    font-size: 15px;
  }
  .article section h2 {
    font-size: 22px;
  }
  .article p,
  .article li {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .home-nav > a:first-child {
    display: none;
  }
  .site-nav:not(.home-nav) > a:first-child {
    display: none;
  }
  .card-grid,
  .article .card-grid {
    grid-template-columns: 1fr;
  }
  .document-card {
    padding: 18px 14px;
  }
  .document-table {
    font-size: 9px;
  }
  .document-table th {
    font-size: 8px;
  }
  .workflow {
    padding: 20px;
  }
  .workflow-path {
    gap: 9px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
