/*! ASTRONSTAR 运行时镜像 — 请勿直接修改本文件 | 源文件: src/content/company/css/company.css | 重新生成: npm run prepare:runtime | 源码归属与修改边界见 docs/architecture.md */
/* Brand-only adaptations for the imported Company page. */
#company .p-page__head .p-page__title .u-emoji {
  font-family: inherit;
}

#company .as-company-wordmark {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

#company .l-heder__left .l-header__logo,
#company .l-hambergerMenu__logo {
  width: clamp(130px, 15rem, 180px);
}

#company .l-footer__logo {
  aspect-ratio: auto;
}

/* Use the requested display face only for the Company Culture heading. */
#company .p-company-culture__title {
  font-family: "Alibaba PuHuiTi 2", sans-serif;
  font-weight: 900;
}

#company .p-company-history__progressValue span::before {
  background-image: url("/assets/img/astronstar/official-logo.png") !important;
  background-position: center !important;
  background-size: contain !important;
  aspect-ratio: 297 / 99 !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain !important;
}

/* Keep complete timeline dates together instead of wrapping after a hyphen. */
#company .p-company-history__year {
  white-space: nowrap;
  font-size: clamp(64px, 5.5vw, 92px);
  letter-spacing: -0.03em;
}

/* Keep the animated brand accent in a dedicated lane below the company data. */
#company .p-company-outline {
  overflow: hidden;
}

#company .p-company-outline .p-company-outline__inner {
  padding-bottom: 22rem;
}

#company .p-company-outline__bear {
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: normal;
}

#company .p-company-outline__bearImage {
  top: auto;
  bottom: 2.4rem;
  left: 8rem;
  width: clamp(185px, 16.5vw, 265px);
  height: auto;
}

#company .p-company-outline__bearImage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 284 / 120;
  object-fit: contain;
  image-rendering: pixelated;
}

/* The team grid begins with a branded title card, matching the reference layout. */
#company .p-company-officer__item.-head {
  position: relative;
  display: flex;
  flex-direction: column;
  color: #fff;
  background-color: #1c1c1c;
  cursor: default;
  pointer-events: none;
}

#company .p-company-officer__item.-head .p-company-officer__title {
  margin-top: 9rem;
  margin-left: 7.6rem;
  color: #fff;
  font-size: clamp(14px, 1.6rem, 18px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

#company .p-company-officer__item.-head .p-company-officer__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(34%, 10.8rem);
  margin: 0;
  transform: translate(-50%, -50%);
}

#company .p-company-officer__item.-head .p-company-officer__logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

/* Team portraits always fill the visual frame without changing their proportions. */
#company .p-company-officer__item .p-company-officer__image {
  aspect-ratio: 360 / 394;
  overflow: hidden;
}

#company .p-company-officer__item .p-company-officer__image picture,
#company .p-company-officer__item .p-company-officer__image img,
#company .p-company-officer__modal__image picture,
#company .p-company-officer__modal__image img {
  display: block;
  width: 100%;
  height: 100%;
}

#company .p-company-officer__item .p-company-officer__image img,
#company .p-company-officer__modal__image img {
  object-fit: cover;
  object-position: center;
}

#company .p-company-officer__modal__image {
  position: relative;
  height: auto;
  aspect-ratio: 608 / 704;
  overflow: hidden;
  background: #ececec;
}

#company .p-company-officer__modal__image[data-image-state="loading"]::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.8rem;
  aspect-ratio: 1;
  content: "";
  border: 2px solid rgb(28 28 28 / 20%);
  border-top-color: #1c1c1c;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: as-team-avatar-loading 0.8s linear infinite;
}

@keyframes as-team-avatar-loading {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Keep the modal's image and pager locked to the viewport height. Without an
 * explicit flex track, the fixed vh heights can leave a gray strip below the
 * pager on desktop screens. */
@media screen and (min-width: 769px) {
  #company .p-company-officer .p-company-officer__modal__body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  #company .p-company-officer .p-company-officer__modal__image {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
  }

  #company .p-company-officer .p-company-officer__modal__pg {
    flex: 0 0 12vh;
    height: auto;
  }
}

@media screen and (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  #company .p-company-officer__item[data-entry-state="pending"] {
    opacity: 0;
    transform: translateY(8%);
  }

  #company .p-company-officer__item[data-entry-state="ready"] {
    animation: as-team-card-entry 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--team-card-delay, 0ms);
  }
}

@keyframes as-team-card-entry {
  from {
    opacity: 0;
    transform: translateY(8%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  #company .p-company-history__year {
    font-size: clamp(38px, 11vw, 54px);
  }

  #company .l-heder__left .l-header__logo,
  #company .l-hambergerMenu__logo {
    width: 13rem;
  }

  #company .p-company-outline .p-company-outline__inner {
    padding-bottom: 16rem;
  }

  #company .p-company-outline__bearImage {
    bottom: 1.5rem;
    left: 2.4rem;
    width: 194px;
  }

  #company .p-company-officer__modal__image {
    aspect-ratio: 390 / 390;
  }

  #company .p-company-officer__item.-head .p-company-officer__title {
    margin-top: 2.8rem;
    margin-left: 2rem;
  }

  #company .p-company-officer__item.-head .p-company-officer__logo {
    width: min(42%, 7.2rem);
  }
}
