/*! ASTRONSTAR 运行时镜像 — 请勿直接修改本文件 | 源文件: src/content/astronstar/css/world.css | 重新生成: npm run prepare:runtime | 源码归属与修改边界见 docs/architecture.md */
/* Brand adaptations for the imported careers layout used by World & Residents. */
@font-face {
  font-family: "Alibaba PuHuiTi 2";
  src: url("/assets/font/alibaba-puhuiti-2-115-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

#careers.as-astronstar-page .p-recruit-intro__headTop .p-page__title .u-emoji {
  font-family: inherit;
}

#careers.as-astronstar-page #values .p-recruit-values__item__title .copy {
  font-size: clamp(44px, 5.2rem, 56px);
  line-height: 1.05;
}

#careers.as-astronstar-page
  #values
  .p-recruit-values__item__title
  .as-world-rule-title__second-line {
  display: block;
}

#careers.as-astronstar-page
  #values
  .p-recruit-values__item__title
  .as-world-rule-title__zh {
  font-family: "Alibaba PuHuiTi 2", sans-serif;
  font-weight: 900;
}

#careers.as-astronstar-page #values .as-world-rule-api-title {
  margin: 0 0 clamp(8px, 1.2rem, 14px);
  color: #111;
  font-size: clamp(16px, 1.8rem, 20px);
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Match the World Rules introduction to the regular page-title typeface. */
#careers.as-astronstar-page #values .p-recruit-values__title .u-emoji {
  font-family: inherit;
}

/*
 * Keep the complete page shell visible while the API is resolving, but never
 * expose the imported document's retired placeholder content. Visibility is
 * used instead of display so cards, spacing, and artwork keep their layout.
 */
#careers.as-astronstar-page
  #values:not([data-dynamic-state="ready"])
  :is(
    .p-recruit-values__item__title,
    .as-world-rule-api-title,
    .p-recruit-values__item__copy
  ),
#careers.as-astronstar-page
  #keyFigures:not([data-dynamic-state="ready"])
  :is(
    .p-recruit-keyFigures__itemTitle,
    .p-recruit-keyFigures__itemSubCopy,
    .p-recruit-keyFigures__itemNum
  ),
#careers.as-astronstar-page
  #jobs:not([data-dynamic-state="ready"])
  :is(
    .p-recruit-jobs__detailsTitle > span,
    .c-details__title,
    .c-details__item
  ),
#careers.as-astronstar-page
  #caseStudy:not([data-dynamic-state="ready"])
  :is(
    .p-recruit-caseStudy__articleThumbnail img,
    .p-recruit-caseStudy__articleLead span,
    .p-recruit-caseStudy__articleTitle,
    .p-recruit-caseStudy__articleCopy,
    .p-recruit-caseStudy__articleTag,
    .c-button .text
  ),
#careers.as-astronstar-page
  #faq:not([data-dynamic-state="ready"])
  :is(.c-details__title, .c-details__text),
#careers.as-astronstar-page
  #profile:not([data-dynamic-state="ready"])
  img.as-resident-profile:not([data-carousel-ready]) {
  visibility: hidden;
}

#careers.as-astronstar-page .as-world-wordmark {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

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

#careers.as-astronstar-page .l-footer__logo {
  aspect-ratio: 1;
}

#careers.as-astronstar-page .p-recruit-intro .p-recruit-intro__head {
  width: calc(100% - min(50%, 75vh));
}

#careers.as-astronstar-page .p-recruit-intro .p-recruit-intro__body {
  width: min(50%, 75vh);
  background: #000;
}

#careers.as-astronstar-page .p-recruit-intro__body img,
#careers.as-astronstar-page .p-recruit-profile__img img,
#careers.as-astronstar-page .p-recruit-jobs__detailsTitleAnimals img,
#careers.as-astronstar-page .c-jobListAnimal img {
  image-rendering: pixelated;
}

#careers.as-astronstar-page .p-recruit-intro__body img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Keep all five shortcut rockets pointing to the right. */
#careers.as-astronstar-page .p-recruit-intro__pageLinkBard {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: visible;
}

#careers.as-astronstar-page .p-recruit-intro__pageLinkBard img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

#careers.as-astronstar-page .p-recruit-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

/* Keep the eight-digit resident total unabridged without affecting other metrics. */
#careers.as-astronstar-page
  #keyFigures
  .p-recruit-keyFigures__item[data-world-metric-id="3"]
  .p-recruit-keyFigures__itemNumDummy {
  max-width: 100%;
  font-size: clamp(56px, 6.8rem, 76px);
  letter-spacing: -0.055em;
  white-space: nowrap;
}

/* Keep the FAQ artwork's complete 1440x620 frame visible. */
#careers.as-astronstar-page
  #faq
  + .p-recruit-bg
  :is(.p-recruit-bgInner, picture) {
  display: block;
  width: 100%;
  height: auto;
}

#careers.as-astronstar-page #faq + .p-recruit-bg img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: none !important;
  will-change: auto !important;
}

/* Crop the 132px transparent band baked into the 960x613 rules artwork. */
#careers.as-astronstar-page #values + .p-recruit-bg {
  aspect-ratio: 960 / 481;
}

#careers.as-astronstar-page
  #values
  + .p-recruit-bg
  :is(.p-recruit-bgInner, picture) {
  display: block;
  width: 100%;
  height: 100%;
}

#careers.as-astronstar-page #values + .p-recruit-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: none !important;
  will-change: auto !important;
}

#careers.as-astronstar-page .c-jobListHukidashi img {
  width: 76%;
  height: auto;
  object-fit: contain;
}

#careers.as-astronstar-page .c-jobListAnimal img {
  object-fit: contain;
}

#careers.as-astronstar-page #profile.p-recruit-profile {
  overflow: hidden;
  background-color: #626262;
  background-image: var(--as-resident-atlas-background, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  image-rendering: pixelated;
}

#careers.as-astronstar-page .as-resident-profile {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
  object-fit: cover;
  image-rendering: pixelated;
  background: #626262;
  box-shadow: rgba(0, 0, 0, 0.2) 0 5px 40px;
}

#careers.as-astronstar-page .as-profile-carousel {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

#careers.as-astronstar-page .as-profile-carousel:active {
  cursor: grabbing;
}

#careers.as-astronstar-page .as-profile-carousel:focus-visible {
  outline: 4px solid #f803a3;
  outline-offset: 5px;
}

#careers.as-astronstar-page .as-profile-carousel__viewport,
#careers.as-astronstar-page .as-profile-carousel__track,
#careers.as-astronstar-page .as-profile-carousel__slide {
  width: 100%;
  height: 100%;
}

#careers.as-astronstar-page .as-profile-carousel__viewport {
  overflow: hidden;
}

#careers.as-astronstar-page .as-profile-carousel__track {
  display: flex;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

#careers.as-astronstar-page
  .as-profile-carousel.is-dragging
  .as-profile-carousel__track {
  transition: none;
}

#careers.as-astronstar-page .as-profile-carousel__slide {
  flex: 0 0 100%;
  margin: 0;
  background: #626262;
}

#careers.as-astronstar-page .as-profile-carousel__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
}

#careers.as-astronstar-page .as-profile-carousel__button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: clamp(44px, 4.6vw, 60px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  place-items: center;
  transform: translateY(-50%);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
  cursor: pointer;
}

#careers.as-astronstar-page .as-profile-carousel__button[hidden],
#careers.as-astronstar-page .as-profile-carousel__meta[hidden] {
  display: none !important;
}

#careers.as-astronstar-page .as-profile-carousel__button.-previous {
  left: clamp(12px, 2.2vw, 28px);
}

#careers.as-astronstar-page .as-profile-carousel__button.-next {
  right: clamp(12px, 2.2vw, 28px);
}

#careers.as-astronstar-page .as-profile-carousel__button svg {
  width: 38%;
  height: 38%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  #careers.as-astronstar-page .as-profile-carousel__button:hover {
    color: #000;
    background: #f803a3;
    transform: translateY(-50%) scale(1.08);
  }
}

#careers.as-astronstar-page .as-profile-carousel__button:focus-visible {
  outline: 3px solid #f803a3;
  outline-offset: 3px;
}

#careers.as-astronstar-page .as-profile-carousel__meta {
  position: absolute;
  right: clamp(12px, 2.2vw, 28px);
  bottom: clamp(12px, 2.2vw, 28px);
  left: clamp(12px, 2.2vw, 28px);
  z-index: 2;
  display: flex;
  min-height: 44px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

#careers.as-astronstar-page .as-profile-carousel__title,
#careers.as-astronstar-page .as-profile-carousel__count {
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

#careers.as-astronstar-page .as-profile-carousel__count {
  display: inline-flex;
  min-width: 4.5em;
  justify-content: flex-end;
  gap: 0.45em;
}

#careers.as-astronstar-page .as-profile-carousel__slash {
  opacity: 0.45;
}

#careers.as-astronstar-page .as-profile-carousel__announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#careers.as-astronstar-page
  #profile
  :is(
    .p-recruit-profile__back,
    .p-recruit-profile__list,
    .p-recruit-profile__img
  ) {
  background: transparent;
}

#careers.as-astronstar-page
  #profile
  .p-recruit-profile__back
  .p-recruit-profile__list {
  visibility: hidden;
  pointer-events: none;
}

#careers.as-astronstar-page .p-recruit-profile__img img {
  width: 100%;
  height: 100%;
  padding: 8%;
  object-fit: contain;
}

#careers.as-astronstar-page .p-recruit-caseStudy__articleThumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

#careers.as-astronstar-page
  .p-recruit-caseStudy__articleTextBody
  > .c-button[hidden] {
  display: none !important;
}

#careers.as-astronstar-page .p-recruit-caseStudy__inner {
  margin-top: 0;
  padding-top: 14rem;
}

#careers.as-astronstar-page .p-recruit-caseStudy__title {
  color: #fff;
}

#careers.as-astronstar-page .p-recruit-jobs__detailsTitleAnimals img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#careers.as-astronstar-page
  .p-recruit-jobs[data-world-resident-layout="compact"]
  .p-recruit-jobs__inner {
  padding-top: clamp(80px, 8rem, 112px);
  padding-bottom: clamp(88px, 9rem, 128px);
}

#careers.as-astronstar-page
  .p-recruit-jobs
  .c-details[data-world-resident-action="careers"]
  .c-details__summary {
  cursor: pointer;
}

#careers.as-astronstar-page
  .p-recruit-jobs
  .c-details[data-world-resident-action="careers"]
  .c-details__icon::before,
#careers.as-astronstar-page
  .p-recruit-jobs
  .c-details[data-world-resident-action="careers"][data-status="open"]
  .c-details__icon::before {
  transform: translate(-50%, -50%) rotate(-90deg);
}

#careers.as-astronstar-page .p-page__title .en {
  letter-spacing: 0;
}

/* Reuse the homepage SVG as the residents-story backdrop. The existing legacy
 * scroll controller still provides the existing scale reveal. */
#careers.as-astronstar-page .p-recruit-stickyContent {
  position: relative;
  overflow: hidden;
  background-color: #f7f7f7;
  border-radius: 2.4rem;
  isolation: isolate;
}

#careers.as-astronstar-page .p-recruit-caseStudy__heart {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

#careers.as-astronstar-page .p-recruit-caseStudy__heart img {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: max(112vw, 160.9rem);
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  transform-origin: center;
  will-change: transform;
}

#careers.as-astronstar-page .p-recruit-caseStudy {
  z-index: 1;
}

#careers.as-astronstar-page .p-recruit-caseStudy__contents::before {
  background-color: transparent;
}

#careers.as-astronstar-page .as-world-story-empty {
  padding: 4rem 0;
  color: #fff;
  font-size: clamp(1.6rem, 2vw, 2.4rem);
}

body.as-world-story-modal-open {
  overflow: hidden;
}

.as-world-story-modal {
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 1.6rem;
  border: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 260ms ease;
}

.as-world-story-modal[open] {
  display: grid;
  place-items: center;
}

.as-world-story-modal.is-visible {
  opacity: 1;
}

.as-world-story-modal::backdrop {
  background: rgba(20, 20, 20, 0.74);
  backdrop-filter: blur(2px);
}

.as-world-story-modal__panel {
  position: relative;
  width: min(92rem, 100%);
  max-height: 84dvh;
  overflow: hidden;
  border-radius: 2.4rem;
  color: #111;
  background: #fff;
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.28);
  transform: translateY(1.6rem) scale(0.98);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.as-world-story-modal.is-visible .as-world-story-modal__panel {
  transform: translateY(0) scale(1);
}

.as-world-story-modal__close {
  position: absolute;
  z-index: 2;
  top: 1.8rem;
  right: 1.8rem;
  width: 4.8rem;
  height: 4.8rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #111;
  background: #f2f2f2;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.as-world-story-modal__close::before,
.as-world-story-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.8rem;
  height: 2px;
  background: currentColor;
}

.as-world-story-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.as-world-story-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.as-world-story-modal__close:focus-visible {
  outline: 3px solid #f803a3;
  outline-offset: 4px;
}

@media (hover: hover) {
  .as-world-story-modal__close:hover {
    color: #fff;
    background: #f803a3;
    transform: rotate(90deg);
  }
}

.as-world-story-modal__scroller {
  max-height: 84dvh;
  padding: clamp(4.8rem, 5vw, 6rem) clamp(3.2rem, 6vw, 6rem)
    clamp(3.2rem, 4vw, 4.4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.as-world-story-modal__header {
  padding-right: 5.6rem;
}

.as-world-story-modal__category {
  margin: 0 0 1.2rem;
  color: #f803a3;
  font-size: clamp(1.3rem, 1.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.as-world-story-modal__title {
  margin: 0;
  font-size: clamp(2.8rem, 3.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.as-world-story-modal__image {
  display: block;
  width: 100%;
  max-height: 38rem;
  margin-top: 2.8rem;
  border-radius: 1.4rem;
  background: #f3f3f3;
  object-fit: contain;
}

.as-world-story-modal__summary,
.as-world-story-modal__content {
  max-width: 82rem;
  font-size: clamp(1.45rem, 1.35vw, 1.7rem);
  line-height: 1.7;
}

.as-world-story-modal__summary {
  margin: 2.8rem 0 0;
  font-weight: 700;
}

.as-world-story-modal__content {
  margin-top: 1.8rem;
  white-space: pre-line;
}

.as-world-story-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0;
  margin: 2.8rem 0 0;
  list-style: none;
}

.as-world-story-modal__tags li {
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  color: #111;
  background: #f2f2f2;
  font-size: 1.3rem;
  line-height: 1;
}

@media screen and (min-width: 769px) and (max-width: 1280px) {
  #careers.as-astronstar-page #values .p-recruit-values__item__title .copy {
    font-size: clamp(38px, 4.2rem, 46px);
  }
}

@media screen and (max-width: 768px) {
  #careers.as-astronstar-page #values .p-recruit-values__item__title .copy {
    font-size: clamp(32px, 8.5vw, 40px);
  }

  #careers.as-astronstar-page
    #keyFigures
    .p-recruit-keyFigures__item[data-world-metric-id="3"]
    .p-recruit-keyFigures__itemNumDummy {
    font-size: clamp(42px, 12vw, 54px);
  }

  #careers.as-astronstar-page
    .p-recruit-jobs[data-world-resident-layout="compact"]
    .p-recruit-jobs__inner {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  #careers.as-astronstar-page .l-heder__left .l-header__logo,
  #careers.as-astronstar-page .l-hambergerMenu__logo {
    width: 13rem;
  }

  #careers.as-astronstar-page .p-recruit-intro .p-recruit-intro__head,
  #careers.as-astronstar-page .p-recruit-intro .p-recruit-intro__body {
    width: 100%;
  }

  #careers.as-astronstar-page .p-recruit-intro__body img {
    object-position: center center;
  }

  #careers.as-astronstar-page .p-page__title .en {
    white-space: normal;
  }

  #careers.as-astronstar-page .as-profile-carousel__button {
    width: 4.4rem;
  }

  #careers.as-astronstar-page .as-profile-carousel__meta {
    min-height: 3.8rem;
    padding: 0.7rem 1.2rem;
  }

  #careers.as-astronstar-page .as-profile-carousel__title,
  #careers.as-astronstar-page .as-profile-carousel__count {
    font-size: 1.1rem;
  }

  #careers.as-astronstar-page .p-recruit-caseStudy__inner {
    padding-top: 8rem;
  }

  #careers.as-astronstar-page .p-recruit-stickyContent {
    border-radius: 1.6rem;
  }

  #careers.as-astronstar-page .p-recruit-caseStudy__heart img {
    width: max(180vw, 85rem);
  }

  .as-world-story-modal {
    padding: 1rem;
  }

  .as-world-story-modal__panel,
  .as-world-story-modal__scroller {
    max-height: calc(100dvh - 2rem);
  }

  .as-world-story-modal__panel {
    border-radius: 1.6rem;
  }

  .as-world-story-modal__close {
    top: 1.2rem;
    right: 1.2rem;
    width: 4rem;
    height: 4rem;
  }

  .as-world-story-modal__scroller {
    padding: 5.8rem 2rem 2.4rem;
  }

  .as-world-story-modal__header {
    padding-right: 0;
  }

  .as-world-story-modal__title {
    font-size: clamp(2.8rem, 8.5vw, 3.6rem);
  }

  .as-world-story-modal__image {
    max-height: 30rem;
    margin-top: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #careers.as-astronstar-page .as-profile-carousel__track,
  #careers.as-astronstar-page .as-profile-carousel__button {
    transition: none;
  }

  .as-world-story-modal,
  .as-world-story-modal__panel,
  .as-world-story-modal__close {
    transition: none;
  }
}
