:root {
  --black: #050505;
  --footer: #2f2f2f;
  --accent: #f1be27;
  --card-gray: rgba(162, 162, 162, 0.43);
  --content-width: 1200px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  color: #ffffff;
  background: var(--footer);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.header-inner,
.footer-inner {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 100px;
  color: #ffffff;
  background: var(--black);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand {
  gap: 10px;
  width: auto;
}

.brand img {
  width: 139px;
  height: auto;
}

.brand span {
  padding-left: 10px;
  border-left: 1px solid #ffffff;
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 516px;
  height: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 100%;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  height: 2px;
  content: "";
  background: #ffd345;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: #ffd345;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.support-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: calc(100svh - 210px);
  min-height: 720px;
}

.hero-background {
  position: absolute;
  z-index: -3;
  top: -9.91%;
  left: 0;
  width: 123.13%;
  height: 109.93%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
}

.hero-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.hero-top-line {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: min(var(--content-width), calc(100% - 48px));
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
}

.hero-content {
  width: min(var(--content-width), calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  padding-top: 81px;
}

.hero-content h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
}

.support-copy {
  width: 483px;
  margin-top: 123px;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.support-copy.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.support-copy h2 {
  margin: 0 0 27px 2px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}

.support-copy p {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  white-space: pre-line;
}

.support-action-link {
  display: block;
  width: 64px;
  height: 64px;
  margin-top: 28px;
  border-radius: 50%;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.support-action-link:hover,
.support-action-link:focus-visible {
  opacity: 0.86;
  transform: translateY(-2px);
}

.support-action-link.is-hidden {
  display: none;
}

.support-action-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.support-tabs {
  position: absolute;
  z-index: 3;
  left: max(24px, calc(50% - 600px));
  right: 0;
  bottom: 0;
  display: grid;
  align-items: end;
  width: auto;
  transition: grid-template-columns 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.support-tabs.active-index-0 {
  grid-template-columns: 30.34% repeat(3, 23.22%);
}

.support-tabs.active-index-1 {
  grid-template-columns: 23.22% 30.34% 23.22% 23.22%;
}

.support-tabs.active-index-2 {
  grid-template-columns: 23.22% 23.22% 30.34% 23.22%;
}

.support-tabs.active-index-3 {
  grid-template-columns: repeat(3, 23.22%) 30.34%;
}

.support-card {
  --card-pad-x: clamp(34px, 1.9vw, 46px);
  --card-pad-y: clamp(37px, 4.6svh, 62px);

  position: relative;
  display: block;
  width: 100%;
  height: clamp(240px, 24svh, 320px);
  padding: var(--card-pad-y) var(--card-pad-x);
  overflow: hidden;
  color: #ffffff;
  border-right: 5px solid rgba(59, 59, 59, 0.8);
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: var(--card-gray);
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    height 320ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 320ms cubic-bezier(0.22, 1, 0.36, 1),
    background 240ms ease,
    border-radius 240ms ease,
    font-size 240ms ease;
}

.support-card:last-child {
  border-right: 0;
}

.support-card:hover,
.support-card:focus-visible {
  background: rgba(175, 175, 175, 0.62);
}

.support-card.active {
  --card-pad-x: clamp(36px, 2.1vw, 52px);
  --card-pad-y: clamp(40px, 5svh, 68px);

  height: clamp(300px, 32svh, 430px);
  padding: var(--card-pad-y) var(--card-pad-x);
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--accent);
  font-size: 28px;
}

.card-title,
.card-number {
  position: absolute;
  top: var(--card-pad-y);
}

.card-title {
  left: var(--card-pad-x);
}

.card-number {
  right: var(--card-pad-x);
}

.support-card:not(.active) .card-number {
  top: auto;
  right: auto;
  bottom: clamp(41px, 4.6svh, 64px);
  left: var(--card-pad-x);
}

.support-card.active .card-title,
.support-card.active .card-number {
  top: var(--card-pad-y);
}

.support-card.active .card-title {
  left: var(--card-pad-x);
}

.support-card.active .card-number {
  right: clamp(57px, 3.2vw, 68px);
}

.card-icon {
  position: absolute;
  right: clamp(57px, 3.2vw, 68px);
  bottom: clamp(36px, 4.2svh, 58px);
  object-fit: contain;
  opacity: 0;
  transform: translateY(10px) scale(0.88);
  transition:
    opacity 180ms ease 30ms,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.support-card.active .card-icon {
  opacity: 0.6;
  transform: translateY(0) scale(1);
}

.manual-icon {
  width: 85px;
  height: 85px;
}

.document-icon {
  width: 89px;
  height: 89px;
}

.tutorial-icon {
  width: 95px;
  height: 95px;
  bottom: clamp(34px, 4svh, 56px);
}

.cooperation-icon {
  right: clamp(41px, 2.4vw, 56px);
  bottom: clamp(32px, 3.8svh, 54px);
  width: 117px;
  height: 96px;
}

.site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 110px;
  background: var(--footer);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.footer-brand {
  gap: 8px;
}

.footer-brand img {
  width: 115px;
}

.footer-brand span {
  padding-left: 8px;
  border-left: 1px solid #ffffff;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.social-links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1080px) {
  .site-header {
    height: 82px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 126px;
  }

  .brand span {
    padding-left: 8px;
    font-size: 19px;
  }

  .site-nav {
    width: 396px;
    font-size: 15px;
  }

  .site-nav a {
    flex-basis: 60px;
    width: 60px;
  }

  .support-hero {
    height: calc(100svh - 192px);
    min-height: 720px;
  }

  .support-tabs {
    width: auto;
  }

  .support-card {
    padding-inline: 24px;
    font-size: 20px;
  }

  .card-title {
    left: 24px;
  }

  .card-number {
    right: 24px;
  }

  .support-card:not(.active) .card-number {
    left: 24px;
  }
}

@media (max-width: 820px) {
  .header-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 36px, 680px);
  }

  .site-header {
    height: 72px;
  }

  .brand {
    gap: 7px;
  }

  .brand img {
    width: 116px;
  }

  .brand span {
    padding-left: 7px;
    font-size: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    width: auto;
    height: auto;
    padding: 10px 18px 18px;
    border-top: 1px solid #2b2b2b;
    background: rgba(5, 5, 5, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    width: auto;
    flex-basis: auto;
    height: 52px;
    border-bottom: 1px solid #262626;
  }

  .site-nav a::after {
    display: none;
  }

  .support-hero {
    height: auto;
    min-height: 0;
    padding-bottom: 0;
  }

  .hero-background {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-position: center top;
  }

  .hero-top-line {
    width: calc(100% - 36px);
  }

  .hero-content {
    min-height: 620px;
    padding-top: 54px;
    padding-bottom: 190px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .support-copy {
    width: min(100%, 500px);
    margin-top: 85px;
  }

  .support-copy h2 {
    margin-bottom: 20px;
    font-size: 28px;
  }

  .support-copy p {
    font-size: 18px;
    line-height: 1.65;
  }

  .support-action-link {
    width: 60px;
    height: 60px;
    margin-top: 24px;
  }

  .support-tabs {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    transition: none;
  }

  .support-tabs.active-index-0,
  .support-tabs.active-index-1,
  .support-tabs.active-index-2,
  .support-tabs.active-index-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-card,
  .support-card.active {
    height: 150px;
    padding: 24px;
    border: 1px solid rgba(59, 59, 59, 0.75);
    border-radius: 0;
    font-size: 21px;
  }

  .support-card.active {
    background: var(--accent);
  }

  .card-title,
  .card-number,
  .support-card.active .card-title,
  .support-card.active .card-number {
    top: 24px;
  }

  .card-title,
  .support-card.active .card-title {
    left: 24px;
  }

  .card-number,
  .support-card.active .card-number {
    right: 24px;
  }

  .support-card:not(.active) .card-number {
    bottom: 24px;
    left: 24px;
  }

  .card-icon {
    right: 24px;
    bottom: 18px;
    width: 64px;
    height: 64px;
  }

  .cooperation-icon {
    width: 74px;
    height: 62px;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .footer-inner {
    width: calc(100% - 32px);
  }
}

@media (max-width: 520px) {
  .hero-content {
    width: calc(100% - 32px);
  }

  .hero-top-line {
    width: calc(100% - 32px);
  }

  .hero-content {
    min-height: 570px;
    padding-top: 42px;
    padding-bottom: 140px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .support-copy {
    margin-top: 62px;
  }

  .support-copy h2 {
    font-size: 25px;
  }

  .support-copy p {
    font-size: 16px;
  }

  .support-action-link {
    width: 54px;
    height: 54px;
    margin-top: 20px;
  }

  .support-tabs {
    grid-template-columns: 1fr;
  }

  .support-card,
  .support-card.active {
    height: 110px;
  }

  .support-card:not(.active) .card-number {
    right: 24px;
    bottom: 24px;
    left: auto;
  }

  .card-icon {
    right: 72px;
    bottom: 18px;
    width: 58px;
    height: 58px;
  }

  .cooperation-icon {
    width: 68px;
    height: 56px;
  }

  .site-footer {
    height: 136px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 18px;
  }

  .footer-brand img {
    width: 112px;
  }

  .footer-brand span {
    font-size: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
