:root {
  --black: #050505;
  --accent: #ffd345;
  --footer: #2f2f2f;
  --page-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(--black);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

.site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(var(--page-width), calc(100% - 48px));
  height: 1px;
  margin-inline: auto;
  content: "";
  background: rgba(255, 255, 255, 0.64);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  flex: 0 0 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: var(--accent);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--accent);
}

.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;
}

.contact-main {
  position: relative;
  min-height: max(814px, calc(100svh - 210px));
  overflow: hidden;
  isolation: isolate;
}

.background-media,
.background-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.background-media img {
  position: absolute;
  top: -5.53%;
  left: -5.9%;
  width: 113.49%;
  height: 113.13%;
  max-width: none;
  object-fit: cover;
}

.background-shade {
  z-index: -1;
  background: rgba(0, 0, 0, 0.65);
}

.contact-shell {
  position: relative;
  min-height: max(814px, calc(100svh - 210px));
}

.contact-shell h1,
.contact-shell h2,
.contact-shell p {
  margin: 0;
}

.contact-shell h1 {
  position: absolute;
  top: 135px;
  left: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.35;
}

.contact-details,
.follow-us {
  position: absolute;
  top: 372px;
}

.contact-details {
  left: 0;
  width: 500px;
}

.follow-us {
  left: 694px;
  width: 506px;
}

.contact-details h2,
.follow-us h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
}

.detail-list {
  width: 493px;
  margin-top: 57px;
  margin-left: 4px;
}

.detail-row {
  position: relative;
  height: 54px;
  font-size: 20px;
  font-weight: 500;
  line-height: 25px;
}

.detail-row::after {
  position: absolute;
  top: 31px;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background:
    linear-gradient(#ffd345, #ffd345) right top / 64.528px 3px no-repeat,
    linear-gradient(#ffffff, #ffffff) left top / 100% 1px no-repeat;
  pointer-events: none;
}

.detail-row img {
  position: absolute;
  top: 7px;
  left: 0;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.detail-row:first-child img {
  top: 7px;
  left: 1px;
  width: 17px;
  height: 17px;
}

.detail-row:nth-child(2) img {
  top: 5px;
  width: 21px;
  height: 21px;
}

.detail-label {
  position: absolute;
  top: 0;
  left: 24px;
  white-space: nowrap;
}

.detail-row:nth-child(2) .detail-label {
  left: 25px;
}

.detail-row:nth-child(3) .detail-label {
  left: 26px;
}

.detail-value {
  position: absolute;
  top: 0;
  right: 0;
  text-align: right;
  white-space: nowrap;
}

.detail-row:first-child .detail-value {
  top: 4px;
}

.detail-row:nth-child(2) .detail-value {
  left: auto;
  right: 0;
  text-align: right;
}

.detail-row:nth-child(3) .detail-value {
  left: auto;
  right: 0;
  text-align: right;
}

.social-platforms {
  position: absolute;
  top: 90px;
  left: -4px;
  width: 142px;
  height: 154px;
}

.platform {
  position: absolute;
  display: grid;
  place-items: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.platform:hover,
.platform:focus-visible {
  opacity: 0.76;
  transform: translateY(-2px);
}

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

.platform.wechat {
  top: 4px;
  left: 0;
  width: 40px;
  height: 32px;
}

.platform.taobao {
  top: 0;
  left: 99px;
  width: 34px;
  height: 34px;
}

.platform.video-channel {
  top: 51px;
  left: -3px;
  width: 46px;
  height: 46px;
}

.platform.douyin {
  top: 64px;
  left: 102px;
  width: 27px;
  height: 27px;
}

.platform.bilibili {
  top: 116px;
  left: 4px;
  width: 31px;
  height: 31px;
}

.platform.youtube {
  top: 124px;
  left: 87px;
  width: 58px;
  height: 23px;
}

.qr-card {
  position: absolute;
  top: 97px;
  width: 138px;
  text-align: center;
}

.qr-card > img,
.video-qr-crop {
  width: 117px;
  height: 117px;
  margin-inline: auto;
}

.qr-card > img {
  object-fit: cover;
}

.qr-card p {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
}

.official-account {
  left: 201px;
}

.official-video {
  left: 366px;
}

.video-qr-crop {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.video-qr-crop img {
  position: absolute;
  top: -51.94%;
  left: -25.38%;
  width: 151.61%;
  height: 190.5%;
  max-width: none;
}

.site-footer {
  width: 100%;
  height: 110px;
  color: #ffffff;
  background: var(--footer);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
}

.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;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

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

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

.footer-socials 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;
  }

  .contact-main,
  .contact-shell {
    min-height: max(720px, calc(100svh - 182px));
  }

  .contact-shell h1 {
    top: 104px;
    font-size: 42px;
  }

  .contact-details,
  .follow-us {
    top: 300px;
  }

  .contact-details {
    width: 46%;
  }

  .detail-list {
    width: 100%;
    margin-left: 0;
  }

  .detail-row {
    font-size: 16px;
  }

  .detail-value {
    right: auto;
  }

  .follow-us {
    right: 0;
    left: auto;
    width: 47%;
  }

  .official-account {
    left: 31%;
  }

  .official-video {
    right: 0;
    left: auto;
  }
}

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

  .site-header {
    height: 72px;
  }

  .site-header::after {
    width: min(100% - 36px, 680px);
  }

  .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;
    height: 52px;
    flex-basis: auto;
    border-bottom: 1px solid #262626;
  }

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

  .contact-main {
    min-height: 0;
  }

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

  .background-shade {
    background: rgba(0, 0, 0, 0.7);
  }

  .contact-shell {
    display: grid;
    min-height: 0;
    padding-block: 50px 64px;
  }

  .contact-shell h1,
  .contact-details,
  .follow-us {
    position: static;
  }

  .contact-shell h1 {
    font-size: 38px;
  }

  .contact-details,
  .follow-us {
    width: 100%;
  }

  .contact-details {
    margin-top: 82px;
  }

  .follow-us {
    margin-top: 76px;
  }

  .contact-details h2,
  .follow-us h2 {
    font-size: 28px;
  }

  .detail-list {
    margin-top: 38px;
  }

  .detail-row {
    display: grid;
    grid-template-columns: 28px 64px minmax(0, 1fr);
    align-items: start;
    height: auto;
    min-height: 54px;
    padding: 0 0 14px;
    margin-bottom: 14px;
  }

  .detail-row::after {
    top: auto;
    bottom: 0;
  }

  .detail-row img,
  .detail-row:first-child img,
  .detail-row:nth-child(2) img {
    position: static;
    grid-column: 1;
    margin-top: 3px;
  }

  .detail-label,
  .detail-value,
  .detail-row:first-child .detail-value {
    position: static;
    text-align: left;
  }

  .detail-label {
    grid-column: 2;
  }

  .detail-value {
    grid-column: 3;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .follow-us {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px 20px;
  }

  .follow-us h2 {
    grid-column: 1 / -1;
  }

  .social-platforms {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1 / -1;
    width: 145px;
    height: 154px;
  }

  .qr-card {
    position: static;
    width: 100%;
  }

  .qr-card > img,
  .video-qr-crop {
    width: min(160px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  .qr-card p {
    white-space: normal;
  }

  .site-footer {
    height: 92px;
  }
}

@media (max-width: 520px) {
  .contact-shell h1 {
    font-size: 34px;
  }

  .contact-details {
    margin-top: 64px;
  }

  .detail-row {
    grid-template-columns: 26px 1fr;
    row-gap: 8px;
    font-size: 15px;
  }

  .detail-label {
    grid-column: 2;
  }

  .detail-value {
    grid-column: 1 / -1;
    padding-left: 26px;
  }

  .follow-us {
    grid-template-columns: 1fr;
  }

  .social-platforms {
    grid-column: 1;
  }

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

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

  .footer-socials {
    gap: 8px;
  }

  .footer-socials a {
    width: 30px;
    height: 30px;
  }
}

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

  .site-header::after {
    width: calc(100% - 32px);
  }
}

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