/* =========================================
   1. 全局样式重置与变量
   ========================================= */
:root {
  --color-white: #ffffff;
  --color-black: #111111;
  --color-gray-bg: #f5f5f5;
  --color-border: rgba(255, 255, 255, 0.1);
  --font-en: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-zh: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --container-pad: 100px;
  --container-inner: 1720px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

ul,
li {
  list-style: none;
}

a,
button,
input,
textarea,
select,
label,
summary,
[role='button'],
[tabindex]:not([tabindex='-1']) {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

a,
button,
input,
textarea,
select,
summary,
[role='button'] {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[role='button']:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

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

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

html {
  scroll-behavior: smooth;
}

/* 非默认语言首屏：由 js/i18n-boot.js 添加 .i18n-pending，i18n.js 初始化后移除 */
html.i18n-pending body {
  visibility: hidden;
}

/* Lenis 接管滚动时关闭原生 smooth，避免双重插值 */
html.lenis-scroll {
  scroll-behavior: auto;
}

html.lenis-scroll.lenis-smooth {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-zh);
  color: var(--color-black);
  background: var(--color-white);
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

@media (min-width: 769px) {
  html {
    min-width: 1440px;
  }

  body {
    min-width: 1440px;
  }
}

.container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
  width: 100%;
}

@media (max-width: 1440px) {
  .container {
    max-width: 1200px;
    padding: 0 60px;
  }
}

.img-placeholder {
  background-color: lightblue;
}

.page {
  width: 100%;
  overflow-x: hidden;
}

/* =========================================
   2. Header 导航
   ========================================= */
/* 首页 PC Header（与固定 Banner 配合，独立于 .banner 之外） */
body:not([class*="page--"]) .page > #header-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 96px;
  z-index: 1000;
  pointer-events: none;
  overflow: visible;
}

body:not([class*="page--"]) .page > #header-placeholder .header {
  pointer-events: auto;
}

/* Header 组件 fetch 完成并翻译后再显示，避免 header__inner 闪简体 */
#header-placeholder:not(.is-i18n-ready) .header {
  visibility: hidden;
}

@media (min-width: 769px) {
  body:not([class*="page--"]) .page > #header-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
}

.header {
  position: relative;
  z-index: 1000;
  width: 100%;
  height: 96px;
}

.page--company .header,
.page--career .header,
.page--contact .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  width: 1720px;
  max-width: calc(100% - 200px);
  margin: 0 auto;
}

.header__left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__brand {
  display: block;
  flex-shrink: 0;
  width: 240px;
  height: 64px;
}

.header__logo-img {
  width: 192px;
  object-fit: contain;
  object-position: left center;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__nav-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}

.header__nav-link {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-white);
  white-space: nowrap;
  line-height: 1.2;
}

.header__nav-indicator {
  display: none;
  position: absolute;
  left: 0;
  top: 32px;
  width: 100%;
  height: 3px;
  background: var(--color-white);
}

.header__nav-item--active .header__nav-indicator {
  display: block;
}

/* PC 导航指示条：移入从左、移出向右（不影响 H5） */
@media (min-width: 769px) {
  .header__nav-indicator {
    display: block;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
  }

  .header__nav-item--active .header__nav-indicator {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .header__nav-item:not(.header__nav-item--active):hover .header__nav-indicator {
    transform: scaleX(1);
    transform-origin: left center;
  }

  /* 首页回到顶部时仅保留当前激活项的下划线（含业务内容/工作方式锚点回顶后的 hover） */
  .page.page--at-top #header-placeholder .header__nav-item:not(.header__nav-item--active) .header__nav-indicator {
    transform: scaleX(0);
    transform-origin: right center;
  }

  .header__nav-item:not(.header__nav-item--active):not(:hover) .header__nav-indicator {
    transform: scaleX(0);
    transform-origin: right center;
  }
}

.header__lang {
  position: relative;
  flex-shrink: 0;
  z-index: 1001;
}

.header__lang-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.header__lang-text {
  font-size: 16px;
  color: var(--color-white);
  line-height: 18px;
  white-space: nowrap;
}

.header__lang-icon {
  width: 9px;
  height: auto;
  flex-shrink: 0;
  display: block;
  transition: transform 0.2s ease;
}

.header__lang--open .header__lang-icon {
  transform: scaleY(-1);
}

/* Figma 269:1065 — 多语言下拉 */
.header__lang-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 0 83.5px rgba(0, 0, 0, 0.07),
    0 0 48.902px rgba(0, 0, 0, 0.05),
    0 0 26.596px rgba(0, 0, 0, 0.04),
    0 0 6.804px rgba(0, 0, 0, 0.03);
}

.header__lang-dropdown[hidden] {
  display: none;
}

.header__lang--open .header__lang-dropdown {
  display: block;
}

.header__lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 10px 16px;
  font-family: var(--font-zh);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--color-black);
  background: var(--color-white);
  white-space: nowrap;
  overflow-wrap: break-word;
  word-break: normal;
  cursor: pointer;
  user-select: none;
}

.header__lang-option--active {
  font-weight: 700;
  background: var(--color-white);
}

.header__lang-option:hover {
  background: #f8f8f8;
}

.header__lang-option--active:hover {
  background: var(--color-white);
}

/* =========================================
   3. Banner
   ========================================= */
.banner {
  position: relative;
  width: 100%;
  height: 1250px;
  overflow: hidden;
}

/* PC 首页：Banner 固定视口撑满首屏，下方内容滚动覆盖 */
@media (min-width: 769px) {
  .page {
    --banner-h: 100vh;
  }

  .banner {
    height: var(--banner-h);
  }

  .page > .banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--banner-h);
    z-index: 0;
  }

  /* 滚动占位与 Banner 同高，保留 170px 叠压过渡区 */
  .page > .preface {
    margin-top: calc(var(--banner-h) - 170px);
  }

  .page > .company,
  .page > .service,
  .page > .work-process,
  .page > .models,
  .page > #footer-placeholder {
    position: relative;
    z-index: 2;
  }

  /* 滚过 Preface 或接近页底时隐藏固定 Banner，避免底部惯性滚动露出轮播 */
  .page.page--banner-bg-hidden > .banner {
    visibility: hidden;
  }

  /* 首屏在顶部时：让 Preface 暂时沉到 Banner 下方，露出 Banner 底部；
     一旦开始向上滑动（滚动），即恢复 Preface 在上层覆盖 Banner 的效果 */
  .page.page--at-top > .preface {
    z-index: -1;
  }
}

/* PC 首页：抑制滚动链弹性，减轻拉到底/顶时的橡皮筋回弹 */
@media (min-width: 769px) {
  body:not([class*='page--']) {
    overscroll-behavior-y: none;
  }
}

.banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
}

.banner__slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}

.banner__slide--active {
  opacity: 1;
  z-index: 1;
}

.banner__slide-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* 视频上层 #000 40% 遮罩（仅视频区域，不盖住文案/分页/Header） */
.banner__slide-video,
.banner__slide-video-pc {
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

.banner__slide-video-pc {
  display: none;
}

/* PC 顶部 Banner 视频轮播；H5 在 index-mobile.css 独立实现 */
@media (min-width: 769px) {
  .banner__slide-video {
    display: none;
  }

  .banner__slide-img {
    display: none;
  }

  .banner__slide-video-pc {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner__slide {
    transition: none;
  }
}

.banner__content {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1920px;
  padding: 0;
  margin: 0 auto;
}

.banner__title {
  position: relative;
  width: 100%;
  height: 100%;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 180px;
  line-height: 1;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.banner__title-line {
  position: absolute;
  white-space: nowrap;
}

.banner__title-line--from {
  left: calc(50% - 571px);
  top: 354px;
}

.banner__title-line--zero {
  left: calc(50% - 571px + 3.389em);
  top: 354px;
}

.banner__title-line--launch {
  left: 402px;
  top: 532px;
}

.banner__desc {
  position: absolute;
  right: calc(80px - max(0px, (100vw - 1920px) / 2));
  bottom: 100px;
  min-height: 104px;
  font-size: 32px;
  font-weight: 700;
  line-height: 52px;
  color: var(--color-white);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

/* PC：Banner 高度随视口，文案/分页按 1250 设计稿比例（vh）适配 */
@media (min-width: 769px) {
  .banner__title {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    justify-items: center;
    align-content: start;
    column-gap: 0.2em;
    row-gap: 0;
    height: 100%;
    padding-top: 24.72vh; /* 309 / 1250 */
    font-size: min(14.4vh, 180px);
  }

  .banner__title-line {
    position: static;
    white-space: nowrap;
  }

  .banner__title-line--from {
    grid-column: 1;
    grid-row: 1;
  }

  .banner__title-line--zero {
    grid-column: 2;
    grid-row: 1;
  }

  .banner__title-line--launch {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    margin-top: -0.011em;
  }

  .banner__desc {
    right: calc(80px - max(0px, (100vw - 1920px) / 2));
    bottom: 8vh; /* 100 / 1250 */
    min-height: 0;
    font-size: min(2.56vh, 32px);
    line-height: min(4.16vh, 52px);
  }
}

.banner__desc p {
  margin: 0;
}

/* PC 简繁中文：Banner 描述每行完整展示，不按容器宽度折行 */
@media (min-width: 769px) {
  html[lang="zh-CN"] .banner__desc,
  html[lang="zh-TW"] .banner__desc {
    width: max-content;
    max-width: none;
  }

  html[lang="zh-CN"] .banner__desc p,
  html[lang="zh-TW"] .banner__desc p {
    white-space: nowrap;
    overflow-wrap: normal;
  }

  /* 英文较长，限制宽度避免遮挡底部分页器（<1920 更窄） */
  html[lang="en"] .banner__desc {
    max-width: min(520px, calc(50vw - 200px));
    text-align: left;
  }
}

/* PC 首页：首屏向下滚动时 Banner 文案退场 */
@media (min-width: 769px) {
  .banner--text-exiting .banner__title,
  .banner--text-entering .banner__title {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  /* 退场由 GSAP scrub 驱动；仅回顶 instant 时保留 CSS transition */
  .banner__title-line--from,
  .banner__title-line--zero,
  .banner__title-line--launch,
  .banner__desc {
    transition: none;
  }

  .banner--text-instant .banner__title-line--from,
  .banner--text-instant .banner__title-line--zero,
  .banner--text-instant .banner__title-line--launch,
  .banner--text-instant .banner__desc {
    transition:
      opacity 0.62s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .banner--text-exiting .banner__title-line--from,
  .banner--text-exiting .banner__title-line--zero,
  .banner--text-exiting .banner__title-line--launch,
  .banner--text-exiting .banner__desc,
  .banner--text-entering .banner__title-line--from,
  .banner--text-entering .banner__title-line--zero,
  .banner--text-entering .banner__title-line--launch,
  .banner--text-entering .banner__desc {
    will-change: opacity, transform;
  }

  .banner--text-exiting .banner__title-line--from,
  .banner--text-exiting .banner__title-line--zero,
  .banner--text-exited .banner__title-line--from,
  .banner--text-exited .banner__title-line--zero,
  .banner--text-entering .banner__title-line--from,
  .banner--text-entering .banner__title-line--zero {
    opacity: 0;
    transform: translateX(-45vw);
    pointer-events: none;
  }

  .banner--text-exiting .banner__title-line--launch,
  .banner--text-exited .banner__title-line--launch,
  .banner--text-entering .banner__title-line--launch {
    opacity: 0;
    transform: translateX(45vw);
    pointer-events: none;
  }

  .banner--text-exiting .banner__desc,
  .banner--text-exited .banner__desc,
  .banner--text-entering .banner__desc {
    opacity: 0;
    transform: translateY(-24px);
    pointer-events: none;
  }

  .banner--text-exiting .banner__pagination,
  .banner--text-exited .banner__pagination,
  .banner--text-entering .banner__pagination {
    opacity: 0;
    transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }

  .banner--text-instant .banner__title-line--from,
  .banner--text-instant .banner__title-line--zero,
  .banner--text-instant .banner__title-line--launch,
  .banner--text-instant .banner__desc,
  .banner--text-instant .banner__pagination {
    transition: none !important;
  }
}

@media (min-width: 769px) and (prefers-reduced-motion: reduce) {
  .banner__title-line--from,
  .banner__title-line--zero,
  .banner__title-line--launch,
  .banner__desc {
    transition: opacity 0.2s ease;
  }

  .banner--text-exiting .banner__title-line--from,
  .banner--text-exiting .banner__title-line--zero,
  .banner--text-exited .banner__title-line--from,
  .banner--text-exited .banner__title-line--zero,
  .banner--text-entering .banner__title-line--from,
  .banner--text-entering .banner__title-line--zero,
  .banner--text-exiting .banner__title-line--launch,
  .banner--text-exited .banner__title-line--launch,
  .banner--text-entering .banner__title-line--launch,
  .banner--text-exiting .banner__desc,
  .banner--text-exited .banner__desc,
  .banner--text-entering .banner__desc {
    transform: none;
  }
}

/* Banner 分页器 — Figma 821:5606，PC only（H5 在 index-mobile.css 隐藏） */
.banner__pagination {
  position: absolute;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  border: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* 设计稿 1250 基准略下移，随视口高度比例缩放 */
@media (min-width: 769px) {
  .banner__pagination {
    top: auto;
    bottom: 11.28%;
  }
}

.banner__pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  pointer-events: none;
  line-height: 0;
}

.banner__pagination-track {
  display: none;
  position: relative;
  width: 42.667px;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
}

.banner__pagination-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 8px;
  border-radius: 4px;
  background: #fff;
}

.banner__pagination-item--active .banner__pagination-fill {
  animation: banner-pagination-fill 5s linear forwards;
  /* 默认 5s；PC 视频加载后由 main.js 按实际时长覆盖 animation-duration */
}

@keyframes banner-pagination-fill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner__pagination-item--active .banner__pagination-fill {
    animation: none;
    width: 100%;
  }
}

.banner__pagination-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.banner__pagination-item--active .banner__pagination-track {
  display: block;
}

.banner__pagination-item--active .banner__pagination-dot {
  display: none;
}

/* =========================================
   4. Preface（Figma 64:15）
   ========================================= */
.preface {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 620px;
  margin-top: -170px;
  background-color: transparent;
  overflow: hidden;
}

.preface__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #111111 73.065%, rgba(17, 17, 17, 0) 100%);
  pointer-events: none;
}

.preface__inner {
  position: absolute;
  left: 50%;
  top: calc(50% + 36.5px);
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 31px;
  width: 1266px;
  max-width: calc(100% - 64px);
  text-align: center;
}

.preface__title {
  margin: 0;
  font-family: var(--font-en);
  font-size: 80px;
  font-weight: 800;
  line-height: normal;
  color: #ffffff;
  white-space: nowrap;
}

.preface__subtitle {
  margin: 0;
  width: 100%;
  font-family: var(--font-zh);
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  color: #ffffff;
}

.preface__zero,
.preface__period {
  font-family: var(--font-en);
  font-weight: 800;
}

/* =========================================
   5. Company（Figma 66:25）
   ========================================= */
.company {
  width: 100%;
  min-height: 810px;
  background: var(--color-gray-bg);
}

.company__inner {
  padding-top: 96px;
  padding-bottom: 84px;
}

.company__layout {
  display: flex;
  align-items: flex-start;
  gap: 144px;
}

.company__col-left {
  flex-shrink: 0;
  width: 724px;
}

.company__heading {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 89px;
}

.company__title {
  margin: 0;
  font-family: var(--font-en);
  font-size: 96px;
  font-weight: 800;
  line-height: normal;
  color: var(--color-black);
}

.company__subtitle {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-black);
  opacity: 0.4;
}

.company__media {
  width: 724px;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

.company__media-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.company__content {
  flex: 1;
  min-width: 0;
  max-width: 852px;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.company__headline {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 64px;
  color: var(--color-black);
  font-family: "Noto Sans SC";
}

.company__headline-line {
  display: block;
}

.company__zero {
  font-family: var(--font-en);
  font-weight: 800;
}

.company__detail {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.company__text {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 40px;
  color: var(--color-black);
}

.company__more {
  display: inline-flex;
  align-items: center;
  color: var(--color-black);
}

.company__more-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company__more-label {
  position: relative;
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: normal;
}

.company__more-label::before {
  display: block;
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: right;
  background-color: currentColor;
  content: "";
  transition: transform 0.3s ease-out;
}

.company__more-icon {
  display: block;
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  aspect-ratio: 1;
}

.company__more-icon::before,
.company__more-icon::after {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: currentColor;
  content: "";
}

.company__more-icon::before {
  width: 100%;
  height: 3px;
}

.company__more-icon::after {
  width: 3px;
  height: 100%;
}

@keyframes company__more-icon-bar-x {
  0% {
    transform: translate(-50%, -50%) scaleX(1);
    transform-origin: right;
  }

  50% {
    transform: translate(-50%, -50%) scaleX(0);
    transform-origin: right;
  }

  51% {
    transform: translate(-50%, -50%) scaleX(0);
    transform-origin: left;
  }

  to {
    transform: translate(-50%, -50%) scaleX(1);
    transform-origin: left;
  }
}

@keyframes company__more-icon-bar-y {
  0% {
    transform: translate(-50%, -50%) scaleY(1);
    transform-origin: bottom;
  }

  50% {
    transform: translate(-50%, -50%) scaleY(0);
    transform-origin: bottom;
  }

  51% {
    transform: translate(-50%, -50%) scaleY(0);
    transform-origin: top;
  }

  to {
    transform: translate(-50%, -50%) scaleY(1);
    transform-origin: top;
  }
}

@media (hover: hover) {
  .company__more:hover .company__more-label::before,
  .company__more:focus-visible .company__more-label::before {
    transform: scaleX(1);
    transform-origin: left;
  }

  .company__more:hover .company__more-icon::before,
  .company__more:focus-visible .company__more-icon::before {
    animation: company__more-icon-bar-x 0.6s ease-in-out forwards;
  }

  .company__more:hover .company__more-icon::after,
  .company__more:focus-visible .company__more-icon::after {
    animation: company__more-icon-bar-y 0.6s ease-in-out 0.25s forwards;
  }
}

.company__more-img--h5 {
  display: none;
}

@media (max-width: 1440px) {
  .company__layout {
    gap: 80px;
  }

  .company__col-left,
  .company__media {
    width: 520px;
  }

  .company__media {
    height: 288px;
  }

  .company__title {
    font-size: 72px;
  }

  .company__subtitle {
    font-size: 24px;
  }

  .company__heading {
    margin-bottom: 56px;
  }

  .company__headline {
    font-size: 36px;
    line-height: 48px;
  }

  .company__text {
    font-size: 18px;
    line-height: 32px;
  }

}

/* =========================================
   6. Service（Figma 365:1324 / 66:41）
   ========================================= */
.service {
  width: 100%;
  background: var(--color-black);
  padding: 112px 0 0;
}

.service__inner {
  max-width: 1920px;
}

.service__heading {
  margin-bottom: 71px;
}

.service__title {
  font-family: var(--font-en);
  font-size: 96px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-white);
}

.service__subtitle {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  opacity: 0.4;
}

/* PC：GSAP ScrollTrigger 驱动逐项展开 */
@media (min-width: 769px) {
  .service--scroll-drive .service__scroll-stage {
    position: relative;
    width: 100%;
  }

  .service--scroll-drive .service__scroll-pin {
    min-height: var(--service-pin-min-height, calc(100vh - var(--service-pin-top, 96px)));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    will-change: transform;
  }

  /* B：仅 pin 列表时，外层 pin 容器不参与固定高度计算 */
  .service--scroll-drive.service--compact-pin.service--gsap-ready .service__scroll-pin {
    min-height: 0;
    will-change: auto;
  }

  .service--scroll-drive.service--compact-pin.service--gsap-ready .service__list {
    width: 100%;
    min-height: var(--service-pin-min-height, calc(100vh - var(--service-pin-top, 96px)));
    box-sizing: border-box;
    will-change: transform;
  }

  .service--scroll-drive.service--gsap-ready .service__card-body {
    min-height: 0;
  }

  .service--scroll-drive .service__card-header {
    cursor: default;
    pointer-events: none;
  }

  .service--scroll-drive.service--gsap-ready .service__card {
    min-height: 0;
    transition: none !important;
  }

  .service--scroll-drive.service--gsap-ready .service__card-panel {
    transition: none !important;
  }

  .service--scroll-drive.service--gsap-ready .service__card.is-expanded,
  .service--scroll-drive.service--gsap-ready .service__card.is-active {
    min-height: 0;
  }

  /* 层级由 GSAP 内联控制，避免与默认 is-expanded 规则冲突 */
  .service--scroll-drive.service--gsap-ready .service__card {
    z-index: auto;
  }

  .service--scroll-drive.service--gsap-ready .service__card-header {
    position: relative;
    z-index: 2;
  }

  .service--scroll-drive.service--gsap-ready .service__card-panel {
    position: relative;
    z-index: 1;
  }

  /* GSAP 叠层：标题区尺寸固定，避免收起/展开时 padding 突变抖动（高度由 JS 写入 --service-collapsed） */
  .service--scroll-drive.service--gsap-ready .service__card-header {
    min-height: var(--service-collapsed, 115px);
    padding: 40px 24px 39px;
    box-sizing: border-box;
  }

  /*
   * GSAP 叠层：收起项底边会被下一项盖住，分隔线画在「下一项」header 顶边。
   * - 收起 + 展开（如第 4 项收起、第 5 项展开）
   * - 收起 + 收起（连续收起项之间）
   */
  .service--scroll-drive.service--gsap-ready .service__card:not(.is-expanded) + .service__card .service__card-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 1;
  }

  /* 展开 + 收起（如第 1 项展开、第 2 项收起） */
  .service--scroll-drive.service--gsap-ready .service__card.is-expanded + .service__card:not(.is-expanded) .service__card-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 1;
  }

  .service--scroll-drive.service--gsap-ready .service__list > .service__card:first-child:not(.is-expanded) .service__card-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 1;
  }

  /* 无 GSAP 时按 H5：收起项标题底部分隔线 */
  .service--scroll-drive:not(.service--gsap-ready) .service__card:not(.is-expanded) .service__card-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 1;
  }

  .service__card.is-expanded .service__card-divider {
    display: none;
  }
}

.service__list {
  position: relative;
  width: 100%;
}

.service__card {
  position: relative;
  width: 100%;
  max-width: var(--container-inner);
  margin-left: auto;
  margin-right: auto;
  background: var(--color-black);
  overflow: hidden;
  min-height: 115px;
  transition: min-height 0.45s ease;
}

.service__card:not(.is-expanded) {
  z-index: 2;
}

.service__card.is-expanded {
  min-height: 580px;
  z-index: 1;
}

.service__card-header {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 115px;
  padding: 40px 24px 39px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  position: relative;
  z-index: 3;
}

.service__card.is-expanded .service__card-header {
  min-height: 115px;
  padding: 40px 24px 0;
  box-sizing: border-box;
}

/* GSAP 驱动时保持与收起态相同 header 内边距，避免展开/收起切换抖动 */
@media (min-width: 769px) {
  .service--scroll-drive.service--gsap-ready .service__card.is-expanded .service__card-header,
  .service--scroll-drive.service--gsap-ready .service__card.is-active .service__card-header {
    padding: 40px 24px 39px;
  }
}

.service__card-index {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-white);
  white-space: nowrap;
}

.service__card-title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-white);
  white-space: nowrap;
}

.service__card-panel {
  position: relative;
  z-index: 2;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease;
}

.service__card.is-expanded .service__card-panel {
  max-height: 470px;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .service__card,
  .service__card-panel {
    transition: none;
  }
}

.service__card-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.service__card-body {
  position: relative;
  min-height: 465px;
}

.service__card-list {
  position: relative;
  z-index: 2;
  padding: 48px 0 40px 80px;
  font-size: 24px;
  font-weight: 400;
  line-height: 48px;
  color: var(--color-white);
}

.service__card-list li {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service__card-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: calc((1lh - 6px) / 2);
  border-radius: 50%;
  background-color: currentColor;
}

.service__card-list__text {
  flex: 1;
  min-width: 0;
}

.service__card-list__item--stacked .service__card-list__line,
.service__card-list__note {
  display: block;
  line-height: inherit;
}

.service__card-visual {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  z-index: 1;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.service__card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
}

.service__card--01 .service__card-visual {
  background-image: url('../images/home_service_img1.jpg');
  background-position: 42% 28%;
  background-size: 115% auto;
}

.service__card--01 .service__card-visual::after {
  background: linear-gradient(90deg, rgba(24, 24, 24, 0.7) 20%, rgba(24, 24, 24, 0) 100%);
}

.service__card--02 .service__card-visual {
  background-image: url('../images/home_service_img2.jpg');
  background-position: center 29%;
  background-size: 100% 208%;
}

.service__card--02 .service__card-visual::after {
  background: linear-gradient(90deg, rgba(24, 24, 24, 0.5) 40.4%, rgba(24, 24, 24, 0.4) 100%);
}

.service__card--03 .service__card-visual {
  background-image: url('../images/home_service_img3.jpg');
  background-position: 50% 22%;
  background-size: 109% auto;
}

.service__card--03 .service__card-visual::after {
  background: linear-gradient(90deg, rgba(24, 24, 24, 0.6) 20%, rgba(24, 24, 24, 0) 77.35%);
}

.service__card--04 .service__card-visual {
  background-image: url('../images/home_service_img4.jpg');
}

.service__card--04 .service__card-visual::after {
  background: linear-gradient(90deg, rgba(24, 24, 24, 0.3) 20%, rgba(24, 24, 24, 0.2) 100%);
}

.service__card--05 .service__card-visual {
  background-image: url('../images/home_service_img5.jpg');
}

.service__card--05 .service__card-visual::after {
  background: linear-gradient(90deg, rgba(24, 24, 24, 0.6) 20%, rgba(24, 24, 24, 0) 77.35%);
}

@media (max-width: 1440px) {
  .service__title {
    font-size: 72px;
  }

  .service__subtitle {
    font-size: 28px;
  }

  .service__card-title {
    font-size: 30px;
  }

  .service__card-list {
    font-size: 20px;
    line-height: 40px;
    padding: 40px 0 33px 60px;
  }

  .service__card-list li {
    gap: 25px;
  }
}

/* =========================================
   7. Work Process（Figma 66:65）
   ========================================= */
.work-process {
  width: 100%;
  min-height: 1080px;
  background: var(--color-black);
  overflow: hidden;
}

.work-process__inner {
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
}

.work-process__header {
  text-align: center;
  margin-bottom: 96px;
  padding: 0 var(--container-pad);
}

.work-process__title {
  font-family: var(--font-en);
  font-size: 96px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-white);
}

.work-process__subtitle {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  opacity: 0.6;
}

.work-process__scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 100px;
}

.work-process__scroll::-webkit-scrollbar {
  display: none;
}

.work-process__scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.work-process__list {
  position: relative;
  width: 2563px;
  min-height: 530px;
  margin-left: 373px;
  flex-shrink: 0;
}

/* 视口可容纳全部卡片时：收窄列表并整体水平居中（修饰类由 JS 切换） */
@media (min-width: 769px) {
  .work-process__scroll.work-process__scroll--fits-viewport {
    display: flex;
    justify-content: center;
    overflow-x: hidden;
  }

  .work-process__list.work-process__list--centered {
    width: 2190px;
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
  }
}

.work-process__card {
  position: absolute;
  width: 374px;
  min-height: 430px;
  height: 430px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-black);
  overflow: hidden;
}

.work-process__card--pos-1 {
  left: 0;
  top: 0;
}

.work-process__card--pos-2 {
  left: 454px;
  top: 100px;
}

.work-process__card--pos-3 {
  left: 908px;
  top: 0;
}

.work-process__card--pos-4 {
  left: 1362px;
  top: 100px;
}

.work-process__card--pos-5 {
  left: 1816px;
  top: 0;
}

.work-process__card-bg {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  z-index: 0;
}

.work-process__card-bg--center {
  object-position: 38% center;
}

.work-process__card-mask {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  max-width: none;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    rgba(24, 24, 24, 0) 49.94%,
    rgba(24, 24, 24, 0.75) 78%,
    #181818 92%,
    #181818 100%
  );
  z-index: 1;
  pointer-events: none;
}

.work-process__icon {
  position: absolute;
  top: 31px;
  left: 31px;
  z-index: 2;
  width: 48px;
  height: 48px;
  max-width: none;
  object-fit: contain;
}

.work-process__card-body {
  position: absolute;
  bottom: 31px;
  left: 31px;
  z-index: 2;
  width: 310px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.work-process__card-title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-white);
}

.work-process__card-desc {
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
  color: var(--color-white);
  opacity: 0.6;
}

/* PC：GSAP ScrollTrigger 固定区块 + 纵向滚动驱动横向列表 */
@media (min-width: 769px) {
  .work-process--scroll-drive {
    min-height: 0;
  }

  /* 横向滚动结束后与 Gallery 之间留出黑色过渡区 */
  .work-process--scroll-drive .work-process__inner {
    padding-bottom: 72px;
  }

  .work-process--scroll-drive .work-process__scroll-stage {
    position: relative;
    width: 100%;
  }

  .work-process--scroll-drive .work-process__scroll-pin {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    will-change: transform;
  }

  /* ≤1920：仅固定横向区，标题先随页滚出再 pin（见 work-process.js） */
  @media (max-width: 1920px) {
    .work-process--scroll-drive.work-process--compact-pin .work-process__scroll-pin {
      will-change: auto;
    }

    .work-process--scroll-drive.work-process--compact-pin.work-process--gsap-ready
      .work-process__scroll {
      will-change: transform;
    }
  }

  .work-process--scroll-drive .work-process__scroll {
    overflow-y: hidden;
  }

  .work-process--scroll-drive.work-process--gsap-ready {
    overflow: hidden;
    isolation: isolate;
  }

  .work-process--scroll-drive.work-process--gsap-ready .work-process__scroll {
    overflow-x: hidden;
    overflow-y: hidden;
    cursor: default;
  }

  .work-process__card-bg,
  .work-process__card-mask {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .work-process__card-bg {
    opacity: 1;
  }

  .work-process__card:hover .work-process__card-bg,
  .work-process__card:hover .work-process__card-mask {
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  @media (min-width: 769px) {
    .work-process__card-bg,
    .work-process__card-mask {
      transition: none;
      will-change: auto;
    }

    .work-process__card:hover .work-process__card-bg,
    .work-process__card:hover .work-process__card-mask {
      transform: none;
    }
  }
}

@media (max-width: 1440px) {
  .work-process__title {
    font-size: 72px;
  }

  .work-process__subtitle {
    font-size: 28px;
  }

  .work-process__header {
    margin-bottom: 72px;
  }
}

/* =========================================
   8. Gallery（Figma 329:1241）
   ========================================= */
.gallery {
  width: 100%;
  height: 760px;
  background: var(--color-black);
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.gallery__viewport {
  width: 100%;
  height: 760px;
  overflow: hidden;
  margin-left: 0;
}

.gallery__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  height: 760px;
  animation: gallery-marquee 20s linear infinite;
  will-change: transform;
}

.gallery__set {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
}

.gallery__item {
  flex-shrink: 0;
  margin: 0;
  overflow: hidden;
}

.gallery__item--sm {
  width: 760px;
  height: 760px;
}

.gallery__item--lg {
  width: 1080px;
  height: 760px;
}

.gallery__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

@keyframes gallery-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__track {
    animation: none;
  }
}

@media (max-width: 1440px) {
  .gallery {
    height: 560px;
  }

  .gallery__viewport {
    width: 100%;
    height: 560px;
    margin-left: 0;
  }

  .gallery__track {
    height: 560px;
  }

  .gallery__item--sm {
    width: 560px;
    height: 560px;
  }

  .gallery__item--lg {
    width: 800px;
    height: 560px;
  }
}

/* =========================================
   9. Footer（Figma 66:127）
   ========================================= */
.footer {
  width: 100%;
  min-height: 760px;
  background: var(--color-black);
  color: var(--color-white);
}

.footer__inner {
  padding-top: 80px;
  padding-bottom: 64px;
  min-height: 760px;
  display: flex;
  flex-direction: column;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__contact-title {
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 40px;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  opacity: 0.8;
}

.footer__contact-list li {
  white-space: nowrap;
}

.footer__nav {
  display: flex;
  gap: 80px;
  align-items: center;
  flex-shrink: 0;
}

.footer__nav-link {
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-white);
  white-space: nowrap;
}

.footer__brand {
  margin-top: 102px;
}

.footer__brand-img {
  width: 1258px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 70px;
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 500;
  line-height: 18px;
}

.footer__copyright,
.footer__credit {
  white-space: nowrap;
}

.footer__credit {
  text-align: right;
}

@media (max-width: 1440px) {
  .footer__nav {
    gap: 48px;
  }

  .footer__nav-link {
    font-size: 32px;
  }

  .footer__brand {
    margin-top: 80px;
  }

  .footer__bottom {
    margin-top: 56px;
    font-size: 20px;
  }
}

/* =========================================
   10. 大屏 PC（≥1920px）— Banner 描述文案
   ========================================= */
@media (min-width: 1920px) {
  .banner__desc {
    font-size: min(3.2vh, 40px); /* 40 / 1250 */
    line-height: min(5.2vh, 65px); /* 65 / 1250 */
  }

  html[lang="en"] .banner__desc {
    max-width: min(720px, calc(50vw - 140px));
  }
}

/* =========================================
   11. 超宽屏 PC（≥2560px）— 放宽版心，避免两侧留白过大
   ========================================= */
@media (min-width: 2560px) {
  :root {
    --container-pad: 200px;
    --container-inner: calc(100vw - 2 * var(--container-pad));
  }

  .container {
    max-width: none;
    width: 100%;
  }

  .header__inner {
    width: var(--container-inner);
    max-width: calc(100% - 2 * var(--container-pad));
  }

  .banner__content,
  .service__inner,
  .work-process__inner,
  .pr-banner__inner {
    max-width: none;
    width: 100%;
  }

  .banner__content {
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
    box-sizing: border-box;
  }

  .banner__title {
    font-size: min(19.2vh, 240px); /* 240 / 1250 */
  }

  .banner__desc {
    right: 80px;
  }

  .ct-banner__info {
    max-width: none;
  }

  .cr-gallery__viewport {
    margin-left: 0;
  }
}
