:root {
  --black: #050505;
  --footer: #2f2f2f;
  --accent: #ffd345;
  --pale: #ecf5f4;
  --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,
.cases-shell {
  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: 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;
}

.cases-main {
  position: relative;
  overflow: hidden;
  height: 1185px;
  background: #000000;
}

.top-rule {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1202px, calc(100% - 48px));
  height: 1px;
  background: rgba(255, 255, 255, 0.72);
  transform: translateX(-50%);
}

.cases-shell {
  position: relative;
  height: 100%;
}

.page-intro {
  position: absolute;
  top: 80px;
  left: 0;
}

.page-intro h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: normal;
}

.cases-section {
  position: absolute;
  left: 0;
  width: 100%;
}

.field-section {
  top: 187px;
}

.solution-section {
  top: 652px;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
}

.section-heading span {
  display: block;
  width: 68px;
  height: 1px;
  margin-top: 23px;
  background: rgba(255, 255, 255, 0.9);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 385px);
  gap: 23px;
  margin-top: 22px;
}

.case-card {
  position: relative;
  width: 385px;
  height: 323px;
  overflow: hidden;
  border-radius: 10px;
}

.field-card {
  background: var(--pale);
}

.field-card h3 {
  position: absolute;
  z-index: 2;
  top: 29px;
  left: 36px;
  margin: 0;
  color: #000000;
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
}

.quote-mark {
  position: absolute;
  z-index: 1;
  top: 4px;
  right: 21px;
  color: rgba(0, 0, 0, 0.32);
  font-size: 96px;
  font-weight: 500;
  line-height: 1;
}

.field-card .image-stage {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

.field-card .image-stage img {
  position: absolute;
  max-width: none;
}

.robot-arm-card .image-stage {
  top: 49px;
  left: 78px;
  width: 243px;
  height: 218px;
}

.robot-arm-card .image-stage img {
  top: 0;
  left: -18.5%;
  width: 134.8%;
  height: 100%;
}

.robot-dog-card .image-stage {
  top: 62px;
  left: 69px;
  width: 250px;
  height: 200px;
}

.robot-dog-card .image-stage img {
  top: 0;
  left: -0.11%;
  width: 106.28%;
  height: 106.06%;
}

.humanoid-card h3 {
  left: 38px;
}

.humanoid-card .image-stage {
  top: 23px;
  left: 129px;
  width: 224px;
  height: 253px;
  transform: rotate(180deg) scaleY(-1);
}

.humanoid-card .image-stage img {
  top: 0;
  left: -29.94%;
  width: 201.72%;
  height: 100%;
}

.field-card.uploaded-image-card .image-stage {
  transform: none !important;
}

.field-card .image-stage img.uploaded-image {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.field-card p,
.solution-card p {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  height: 48px;
  margin: 0;
  color: var(--accent);
  background: rgba(60, 60, 60, 0.72);
  font-weight: 500;
  line-height: normal;
}

.field-card p {
  padding-inline: 14px;
  font-size: 16px;
  white-space: nowrap;
}

.solution-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-card img.uploaded-image {
  object-fit: contain !important;
  object-position: center !important;
  background: #ffffff;
}

.solution-card p {
  font-size: 24px;
}

.site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 110px;
  color: #ffffff;
  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;
  }

  .cases-main {
    height: auto;
  }

  .cases-shell {
    height: auto;
    padding-block: 72px 100px;
  }

  .page-intro,
  .cases-section {
    position: static;
  }

  .page-intro h1 {
    font-size: 44px;
  }

  .field-section {
    margin-top: 76px;
  }

  .solution-section {
    margin-top: 70px;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 385px));
    gap: 28px;
  }
}

@media (max-width: 820px) {
  .header-inner,
  .footer-inner,
  .cases-shell {
    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;
    height: 52px;
    flex-basis: auto;
    border-bottom: 1px solid #262626;
  }

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

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

  .cases-shell {
    padding-block: 54px 80px;
  }

  .page-intro h1 {
    font-size: 40px;
  }

  .field-section {
    margin-top: 60px;
  }

  .case-grid {
    grid-template-columns: minmax(0, 385px);
    gap: 30px;
  }

  .case-card {
    width: 100%;
    max-width: 385px;
  }
}

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

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

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

  .page-intro h1 {
    font-size: 34px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .case-card {
    height: 284px;
  }

  .field-card h3 {
    top: 24px;
    left: 28px;
    font-size: 22px;
  }

  .robot-arm-card .image-stage {
    top: 54px;
    left: 16%;
    width: 68%;
    height: 190px;
  }

  .robot-dog-card .image-stage {
    top: 60px;
    left: 16%;
    width: 70%;
    height: 176px;
  }

  .humanoid-card .image-stage {
    top: 26px;
    left: 35%;
    width: 58%;
    height: 220px;
  }

  .field-card p {
    font-size: 14px;
  }

  .solution-card p {
    font-size: 20px;
  }

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