:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --text: #1a1a1a;
  --muted: #666666;
  --sub: #888888;
  --blue: #004894;
  --pin: #003e8e;
  --line: #e8e8e8;
  --visited: #3a6aa8;
  --max: 1200px;
  --header: 76px;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header);
  background: #fff;
}
.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.logo {
  display: flex;
  align-items: center;
  height: 28px;
}
.logo img {
  height: 28px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  color: var(--text);
  padding: 8px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 2px;
  background: var(--blue);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 150ms ease;
}
.nav a.is-active::after,
.nav a:hover::after { transform: translateX(-50%) scaleX(1); }
.nav a.is-active { font-weight: 500; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  padding: 10px 8px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: #111;
  margin: 6px 0;
  transition: transform 150ms ease, opacity 150ms ease;
}
.menu-btn.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero {
  position: relative;
  height: calc(100svh - var(--header));
  min-height: 420px;
  overflow: hidden;
  background: #0b1520 center / cover no-repeat;
  background-image: url("https://boxcdn.gamelz.cn/zm-website/img/poster-1920.jpg?v=2");
  display: grid;
  place-items: center;
  scroll-margin-top: var(--header);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: 0;
}
.hero.is-playing .hero__video { opacity: 1; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: 120px 40px;
  scroll-margin-top: calc(var(--header) + 12px);
}
.section--alt { background: var(--bg-alt); }
.section__title {
  margin: 0;
  text-align: center;
  font-size: 34px;
  font-weight: 500;
}
.section__title::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--blue);
  margin: 14px auto 0;
}
.section__sub {
  margin: 18px 0 0;
  text-align: center;
  color: var(--sub);
  font-size: 14px;
}

.intro__copy {
  max-width: 820px;
  margin: 48px auto 0;
  text-align: center;
  color: #444;
  line-height: 2;
}
.intro__copy p { margin: 0 0 1.4em; }
.intro__copy p:last-child { margin-bottom: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 780px;
  margin: 64px auto 0;
}
.stats__item {
  text-align: center;
  padding: 8px 16px;
}
.stats__item + .stats__item {
  border-left: 1px solid var(--line);
}
.stats__num {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stats__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--sub);
}

.hq__loc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 36px;
  color: var(--text);
  font-size: 14px;
}
.hq__loc img { width: 12px; height: auto; }

.carousel {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}
.carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  touch-action: pan-y;
}
.carousel__viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
  pointer-events: none;
}
.carousel__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 1;
  transition: transform 400ms var(--ease), opacity 200ms ease;
}
.carousel__track li { flex: 0 0 100%; }
.carousel__track img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.carousel__bar {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
  pointer-events: none;
}
.carousel__count {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.carousel__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  pointer-events: auto;
}
.carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.carousel__dots button.is-on { background: #fff; }
.carousel__arrows {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: auto;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.icon-btn img { width: 40px; height: 40px; }

.timeline {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  max-width: 1280px;
  margin: 56px auto 0;
}
.tl-btn {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.tl-btn:disabled { opacity: 0.35; cursor: default; }
.tl-btn img { width: 40px; height: 40px; }
.timeline__viewport {
  position: relative;
  overflow: hidden;
}
.timeline__viewport::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #d9d9d9;
  transform: translateY(-50%);
}
.timeline__track {
  display: flex;
  transition: transform 400ms var(--ease);
}
.timeline__viewport { touch-action: pan-y; }
.tl-col {
  flex: 0 0 20%;
  display: grid;
  grid-template-rows: 1fr 10px 1fr;
  min-height: 320px;
  padding: 0 14px;
}
.tl-col__dot {
  width: 10px;
  height: 10px;
  margin: 0;
  justify-self: start;
  background: var(--blue);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.tl-col__above,
.tl-col__below {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.tl-col__above { justify-content: flex-end; padding-bottom: 16px; }
.tl-col__below { justify-content: flex-start; padding-top: 16px; }
.tl-item__date {
  color: var(--blue);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}
.tl-item p {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.brands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 28px;
  max-width: var(--max);
  margin: 48px auto 0;
}
.brand {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand--static { cursor: default; }
.brand__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}
.brand__media picture img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 400ms var(--ease), filter 400ms ease;
}
.brand:hover .brand__media picture img {
  transform: scale(1.03);
  filter: brightness(0.92);
}
.brand--static:hover .brand__media picture img { transform: none; filter: none; }
.brand__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 8px;
  padding-right: 6px;
}
.brand__row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}
.brand__row h3 span {
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
}
.brand__link {
  flex-shrink: 0;
  color: var(--blue);
  font-size: 14px;
  display: inline-block;
  transition: transform 150ms ease;
}
.brand:visited .brand__link { color: var(--visited); }
.brand:hover .brand__link { text-decoration: underline; }
@media (hover: hover) {
  .brand:hover .brand__link { transform: translateX(4px); }
}
.brand p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max);
  margin: 48px auto 0;
}
.split__copy p {
  margin: 0 0 1.4em;
  color: #444;
  line-height: 2;
  font-size: 16px;
}
.split__copy p:last-child { margin-bottom: 0; }
.split__media { border-radius: var(--radius); overflow: hidden; }
.split__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.culture {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  max-width: var(--max);
  margin: 48px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
}
.culture__words {
  background: var(--blue);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px;
  gap: 28px;
}
.culture__words p {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.culture__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.footer {
  background: var(--bg-alt);
  padding: 28px 40px;
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--sub);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1em;
}
.footer__copy a {
  color: var(--sub);
  text-decoration: none;
  white-space: nowrap;
}
.footer__copy a:hover { text-decoration: underline; }

.page-404 {
  min-height: calc(100svh - var(--header) - 80px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

.page-404 h1 { font-size: 28px; font-weight: 500; margin: 0 0 12px; }
.page-404 p { color: var(--muted); }
.page-404 a { color: var(--blue); }

@media (max-width: 1199px) {
  .tl-col { flex-basis: 33.333%; }
  .header__inner { padding: 0 32px; }
  .section { padding: 96px 32px; }
}

@media (max-width: 767px) {
  .header__inner { padding: 0 20px; }
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 14px 24px;
    font-size: 16px;
  }
  .nav a::after { left: 24px; transform: translateX(0) scaleX(0); }
  .nav a.is-active::after,
  .nav a:hover::after { transform: translateX(0) scaleX(1); }

  .section { padding: 72px 20px; }
  .section__title { font-size: 26px; }
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: calc(100svh - var(--header));
  }
  .reveal {
    opacity: 1;
    transform: none;
  }

  .stats {
    margin-top: 40px;
  }
  .stats__item {
    padding: 8px 6px;
  }
  .stats__item + .stats__item {
    border-left: 1px solid var(--line);
    border-top: 0;
    padding-top: 8px;
  }
  .stats__num {
    font-size: 22px;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .stats__label { font-size: 12px; }

  .carousel__bar { left: 12px; right: 12px; bottom: 12px; }
  /* 手机竖轴。恢复横滑：删掉本段，改回
     .tl-col { flex-basis: 50%; min-height: 360px; }
     .timeline { margin-top: 36px; }
     并去掉 js 里 isMobileTl 早退。 */
  .timeline {
    display: block;
    margin-top: 36px;
  }
  .tl-btn { display: none; }
  .timeline__viewport {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: min(480px, 56svh);
    padding: 16px 12px 20px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .timeline__viewport::before { display: none; }
  .timeline__track {
    display: block;
    position: relative;
    transform: none !important;
  }
  .timeline__track::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: #d9d9d9;
  }
  .tl-col {
    position: relative;
    display: block;
    flex: none;
    width: auto !important;
    min-height: 0;
    padding: 0 0 28px 28px;
  }
  .tl-col:last-child { padding-bottom: 0; }
  .tl-col__dot {
    position: absolute;
    left: 0;
    top: 6px;
    margin: 0;
    justify-self: auto;
  }
  .tl-col__above:empty,
  .tl-col__below:empty { display: none; }
  .tl-col__above,
  .tl-col__below { gap: 8px; }
  .tl-col__above {
    justify-content: flex-start;
    padding-bottom: 0;
  }
  .tl-col__below { padding-top: 0; }
  .tl-col__above:not(:empty) ~ .tl-col__below:not(:empty) {
    margin-top: 16px;
  }

  .brands {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split,
  .culture {
    grid-template-columns: 1fr;
  }
  .culture__words { padding: 40px 28px; gap: 20px; }
  .footer {
    padding: 24px 20px;
  }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
