.support-page {
  background: #fff;
}

.docs-page-root {
  scroll-behavior: auto;
}

.support-language-panel[data-support-language="en"] {
  display: none;
}

html[lang="en"] .support-language-panel[data-support-language="zh"] {
  display: none;
}

html[lang="en"] .support-language-panel[data-support-language="en"] {
  display: block;
}

.resource-main {
  padding-top: 120px;
}

.resource-hero {
  padding-top: 28px;
  padding-bottom: 86px;
}

.resource-back-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px 8px;
  color: #656b74;
  font-size: 12px;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.resource-back-link:hover {
  color: var(--ink);
  transform: translateX(-3px);
}

.resource-hero-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  padding: 72px;
  border: 1px solid rgba(18,20,23,.09);
  border-radius: 32px;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 20%, rgba(13,139,141,.11), transparent 28%),
    linear-gradient(145deg, #f7f7f4, #eef0ef);
  box-shadow: 0 32px 90px rgba(38,43,51,.11), inset 0 1px 0 white;
}

.changelog-page .resource-hero-card {
  color: #fff;
  border-color: rgba(255,255,255,.18);
  background:
    radial-gradient(circle at 82% 32%, rgba(12,145,148,.2), transparent 32%),
    linear-gradient(145deg, rgba(76,81,91,.98), rgba(25,29,35,.99));
  box-shadow: 0 35px 90px rgba(36,42,51,.18), inset 0 1px 0 rgba(255,255,255,.18);
}

.resource-hero-orb {
  position: absolute;
  right: -82px;
  top: -118px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: conic-gradient(#071113, #0a8a8c, #efc94d, #071113);
  filter: blur(76px);
  opacity: .13;
}

.resource-kicker,
.resource-section-number,
.resource-toc > span,
.release-date,
.release-version,
.resource-eyebrow {
  font: 700 9px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .15em;
}

.resource-kicker {
  position: relative;
  z-index: 1;
  color: #777d84;
}

.changelog-page .resource-kicker {
  color: rgba(255,255,255,.5);
}

.resource-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 32px 0 24px;
  font-size: clamp(56px, 6vw, 86px);
  line-height: .98;
  letter-spacing: -.07em;
  font-weight: 640;
}

.resource-hero h1 em {
  color: #899098;
  font-style: normal;
}

.changelog-page .resource-hero h1 em {
  color: rgba(255,255,255,.52);
}

.resource-lead {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: #676e76;
  font-size: 16px;
  line-height: 1.8;
}

.changelog-page .resource-lead {
  color: rgba(255,255,255,.62);
}

.resource-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.resource-hero-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid rgba(18,20,23,.1);
  border-radius: 12px;
  color: #454b53;
  background: rgba(255,255,255,.66);
  box-shadow: 0 10px 24px rgba(38,44,53,.05), inset 0 1px 0 white;
  font-size: 12px;
}

.resource-hero-actions a:first-child {
  color: #fff;
  border-color: #1d2228;
  background: #1d2228;
  box-shadow: 0 10px 24px rgba(38,44,53,.14);
}

.changelog-page .resource-hero-actions a {
  color: rgba(255,255,255,.74);
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.changelog-page .resource-hero-actions a:first-child {
  color: #20252a;
  border-color: #fff;
  background: #fff;
}

.resource-stat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 52px;
}

.resource-stat-grid article {
  min-height: 120px;
  padding: 22px;
  border: 1px solid rgba(18,20,23,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.changelog-page .resource-stat-grid article {
  border-color: rgba(255,255,255,.11);
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.resource-stat-grid b {
  display: block;
  margin-bottom: 11px;
  font-size: 15px;
}

.resource-stat-grid p {
  margin: 0;
  color: #747a82;
  font-size: 11px;
  line-height: 1.7;
}

.changelog-page .resource-stat-grid p {
  color: rgba(255,255,255,.5);
}

.resource-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: clamp(54px, 7vw, 110px);
  padding-bottom: 150px;
}

.resource-toc {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 4px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resource-toc > span {
  margin-bottom: 12px;
  color: #999da3;
}

.resource-toc a {
  padding: 8px 0;
  color: #717780;
  font-size: 11px;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.resource-toc a:hover {
  color: var(--ink);
  transform: translateX(3px);
}

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

.resource-section {
  scroll-margin-top: 116px;
  padding: 0 0 76px;
  margin-bottom: 76px;
  border-bottom: 1px solid rgba(18,20,23,.11);
}

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

.resource-section-number {
  display: block;
  margin-bottom: 18px;
  color: #a0a4aa;
}

.resource-section h2 {
  max-width: 900px;
  margin: 0 0 22px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 630;
}

.resource-section > p,
.guide-card p,
.surface-card p,
.field-row p,
.faq-list p,
.trouble-row p,
.release-list li,
.release-note {
  color: #656b74;
  font-size: 14px;
  line-height: 1.82;
}

.resource-section > p {
  max-width: 900px;
  margin: 0 0 16px;
}

.resource-callout {
  max-width: 940px;
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid rgba(15,123,125,.16);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(14,133,135,.07), rgba(255,255,255,.7));
}

.resource-callout.warning {
  border-color: rgba(181,139,31,.2);
  background: linear-gradient(135deg, rgba(240,200,78,.1), rgba(255,255,255,.76));
}

.resource-callout strong {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
}

.resource-callout p {
  margin: 0;
  color: #656b74;
  font-size: 13px;
  line-height: 1.78;
}

.numbered-guide {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.numbered-guide li {
  position: relative;
  min-height: 92px;
  padding: 20px 22px 20px 78px;
  border: 1px solid rgba(18,20,23,.09);
  border-radius: 18px;
  background: rgba(249,250,249,.78);
  counter-increment: guide-step;
}

.numbered-guide li::before {
  content: counter(guide-step, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18,20,23,.09);
  border-radius: 50%;
  color: #677078;
  background: #fff;
  box-shadow: 0 8px 20px rgba(38,44,53,.06), inset 0 1px 0 white;
  font: 8px ui-monospace, Consolas, monospace;
}

.numbered-guide b,
.surface-card b,
.field-row b,
.trouble-row b {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.numbered-guide p {
  margin: 0;
  color: #656b74;
  font-size: 13px;
  line-height: 1.72;
}

.resource-document code {
  padding: 2px 5px;
  border-radius: 5px;
  color: #394048;
  background: rgba(31,36,43,.06);
  font: 11px ui-monospace, Consolas, monospace;
  overflow-wrap: anywhere;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 30px;
}

.surface-card {
  min-height: 165px;
  padding: 23px;
  border: 1px solid rgba(18,20,23,.09);
  border-radius: 18px;
  background: rgba(248,249,248,.72);
  box-shadow: inset 0 1px 0 white;
}

.surface-card span {
  display: block;
  margin-bottom: 19px;
  color: #9b9fa4;
  font: 700 8px ui-monospace, Consolas, monospace;
  letter-spacing: .13em;
}

.surface-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
}

.field-list {
  max-width: 960px;
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-top: 30px;
  border: 1px solid rgba(18,20,23,.09);
  border-radius: 19px;
  background: rgba(18,20,23,.09);
}

.field-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 24px;
  background: #fff;
}

.field-row p {
  margin: 0;
  font-size: 12px;
  line-height: 1.72;
}

.faq-list {
  display: grid;
  gap: 9px;
  margin-top: 28px;
}

.faq-list details {
  border: 1px solid rgba(18,20,23,.09);
  border-radius: 15px;
  background: rgba(249,250,249,.76);
}

.faq-list summary {
  position: relative;
  padding: 19px 54px 19px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 670;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 19px;
  top: 16px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18,20,23,.1);
  border-radius: 50%;
  color: #737982;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: -2px 54px 20px 20px;
  font-size: 13px;
  line-height: 1.75;
}

.trouble-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid rgba(18,20,23,.09);
  border-radius: 18px;
  background: rgba(18,20,23,.09);
}

.trouble-row {
  display: grid;
  grid-template-columns: minmax(160px, .7fr) minmax(0, 1.3fr);
  gap: 24px;
  padding: 22px 24px;
  background: #fff;
}

.trouble-row p {
  margin: 0;
  font-size: 12px;
  line-height: 1.72;
}

.resource-contact {
  padding: 42px;
  border: 1px solid rgba(18,20,23,.09);
  border-radius: 23px;
  background:
    radial-gradient(circle at 90% 8%, rgba(13,139,141,.08), transparent 29%),
    rgba(249,250,249,.86);
  box-shadow: 0 24px 70px rgba(41,47,55,.07), inset 0 1px 0 white;
}

.resource-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.resource-contact-email {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(18,20,23,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 10px 28px rgba(38,44,53,.05), inset 0 1px 0 white;
}

.resource-contact-email span {
  color: #858b92;
  font-size: 11px;
}

.resource-contact-email strong {
  color: #22272d;
  font-size: 14px;
  letter-spacing: .02em;
}

.resource-contact-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(18,20,23,.1);
  border-radius: 11px;
  color: #454b53;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 22px rgba(38,44,53,.05), inset 0 1px 0 white;
  font-size: 11px;
}

.resource-contact-actions a:first-child {
  color: #fff;
  border-color: #1c2026;
  background: #1c2026;
  box-shadow: 0 8px 22px rgba(38,44,53,.12);
}

.changelog-document {
  position: relative;
}

.release-entry {
  scroll-margin-top: 116px;
  padding: 0 0 76px;
  margin-bottom: 76px;
  border-bottom: 1px solid rgba(18,20,23,.11);
}

.release-entry:last-child {
  margin-bottom: 0;
}

.release-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.release-version {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  color: #fff;
  background: #1d2228;
  letter-spacing: .08em;
}

.release-head h2 {
  margin: 17px 0 0;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 630;
}

.release-date {
  padding-top: 7px;
  color: #93989e;
  white-space: nowrap;
}

.release-note {
  max-width: 900px;
  margin: 0 0 28px;
}

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

.release-category {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(18,20,23,.09);
  border-radius: 18px;
  background: rgba(249,250,249,.78);
  box-shadow: inset 0 1px 0 white;
}

.release-category h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  font-size: 14px;
}

.release-category h3::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0c8b8d;
  box-shadow: 0 0 0 5px rgba(12,139,141,.08);
  content: "";
}

.release-category.optimized h3::before {
  background: #c29c36;
  box-shadow: 0 0 0 5px rgba(194,156,54,.1);
}

.release-category.fixed h3::before {
  background: #59616b;
  box-shadow: 0 0 0 5px rgba(89,97,107,.09);
}

.release-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-list li {
  position: relative;
  padding-left: 13px;
  font-size: 12px;
  line-height: 1.7;
}

.release-list li::before {
  position: absolute;
  left: 0;
  top: .72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a3a7ac;
  content: "";
}

.milestone-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.milestone-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  border: 1px solid rgba(18,20,23,.09);
  border-radius: 18px;
  background: rgba(249,250,249,.72);
}

.milestone-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.milestone-card time {
  color: #91969c;
  font: 8px ui-monospace, Consolas, monospace;
  letter-spacing: .1em;
}

.milestone-card p {
  margin: 0;
  color: #656b74;
  font-size: 13px;
  line-height: 1.75;
}

.support-footer .footer-version {
  white-space: nowrap;
}

html[lang="en"] .resource-hero h1,
html[lang="en"] .resource-section h2,
html[lang="en"] .release-head h2 {
  letter-spacing: -.045em;
}

@media (max-width: 900px) {
  .resource-main {
    padding-top: 102px;
  }

  .resource-hero {
    padding-bottom: 68px;
  }

  .resource-hero-card {
    min-height: 0;
    padding: 52px 38px;
  }

  .resource-stat-grid {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .resource-stat-grid article {
    min-height: 0;
  }

  .resource-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .resource-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-toc > span {
    grid-column: 1 / -1;
  }

  .release-category-grid {
    grid-template-columns: 1fr;
  }

  .release-category {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .support-page .site-header {
    width: calc(100% - 28px);
  }

  .resource-main {
    padding-top: 92px;
  }

  .resource-hero {
    padding-top: 18px;
    padding-bottom: 56px;
  }

  .resource-back-link {
    margin-left: 2px;
    font-size: 11px;
  }

  .resource-hero-card {
    padding: 38px 24px 24px;
    border-radius: 24px;
  }

  .resource-kicker {
    font-size: 7px;
  }

  .resource-hero h1,
  html[lang="en"] .resource-hero h1 {
    margin-top: 24px;
    font-size: 42px;
    line-height: 1;
  }

  html[lang="en"] .resource-hero h1 {
    font-size: 39px;
  }

  .resource-lead {
    font-size: 13px;
    line-height: 1.75;
  }

  .resource-hero-actions {
    display: grid;
  }

  .resource-hero-actions a {
    width: 100%;
  }

  .resource-stat-grid {
    gap: 9px;
    margin-top: 34px;
  }

  .resource-stat-grid article {
    padding: 18px;
    border-radius: 15px;
  }

  .resource-layout {
    gap: 40px;
    padding-bottom: 90px;
  }

  .resource-toc {
    gap: 1px 12px;
    padding: 18px 0;
  }

  .resource-toc a {
    font-size: 10px;
  }

  .resource-section,
  .release-entry {
    padding-bottom: 52px;
    margin-bottom: 52px;
  }

  .resource-section h2,
  html[lang="en"] .resource-section h2,
  .release-head h2,
  html[lang="en"] .release-head h2 {
    font-size: 34px;
  }

  .resource-section > p {
    font-size: 13px;
    line-height: 1.78;
  }

  .resource-callout {
    padding: 19px;
    border-radius: 15px;
  }

  .numbered-guide li {
    padding: 18px 18px 18px 68px;
  }

  .numbered-guide li::before {
    left: 16px;
    top: 17px;
  }

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

  .surface-card {
    min-height: 0;
    padding: 20px;
  }

  .field-row,
  .trouble-row,
  .milestone-card {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 20px;
  }

  .resource-contact {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .resource-contact-actions {
    display: grid;
  }

  .resource-contact-email {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .resource-contact-actions a {
    width: 100%;
  }

  .release-head {
    display: grid;
    gap: 10px;
  }

  .release-date {
    padding-top: 0;
  }

  .release-category {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-back-link,
  .resource-toc a {
    transition: none;
  }
}
