/* ============================================
   设计稿基准尺寸（PS 原始画布）
   整页统一坐标系：1755 × 21824
   ============================================ */
:root {
  --design-width: 1755;
  --design-height: 21824;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: #fff;
  overflow-x: hidden;
}

/* 页面外层：宽度跟随屏幕，最大不超过设计稿 */
.page {
  width: 100%;
  max-width: calc(var(--design-width) * 1px);
  margin: 0 auto;
  /* 基准字号：设计稿宽度时 16px，随屏幕等比缩放 */
  font-size: calc(100vw / var(--design-width) * 16);
}

@media (min-width: 1755px) {
  .page {
    font-size: 16px;
  }
}

/* 画布：锁定整页比例，背景与内容共享同一坐标系 */
.page-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1755 / 21824;
}

/* ========== 背景切片层 ========== */
.bg-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bg-slice {
  position: absolute;
  left: 0;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}

.bg-slice-01 { top: 0%;      height: 6.710%; background-image: url("../images/index_01.jpg"); }
.bg-slice-02 { top: 6.710%;  height: 7.451%; background-image: url("../images/index_02.jpg"); }
.bg-slice-03 { top: 14.160%; height: 8.344%; background-image: url("../images/index_03.jpg"); }
.bg-slice-04 { top: 22.504%; height: 8.390%; background-image: url("../images/index_04.jpg"); }
.bg-slice-05 { top: 30.894%; height: 6.543%; background-image: url("../images/index_05.jpg"); }
.bg-slice-06 { top: 37.437%; height: 6.392%; background-image: url("../images/index_06.jpg"); }
.bg-slice-07 { top: 43.830%; height: 7.029%; background-image: url("../images/index_07.jpg"); }
.bg-slice-08 { top: 50.858%; height: 7.933%; background-image: url("../images/index_08.jpg"); }
.bg-slice-09 { top: 58.791%; height: 7.299%; background-image: url("../images/index_09.jpg"); }
.bg-slice-10 { top: 66.090%; height: 7.391%; background-image: url("../images/index_10.jpg"); }
.bg-slice-11 { top: 73.481%; height: 6.901%; background-image: url("../images/index_11.jpg"); }
.bg-slice-12 { top: 80.382%; height: 8.317%; background-image: url("../images/index_12.jpg"); }
.bg-slice-13 { top: 88.699%; height: 8.157%; background-image: url("../images/index_13.jpg"); }
.bg-slice-14 { top: 96.856%; height: 3.148%; background-image: url("../images/index_14.jpg"); }

/* ========== 内容覆盖层（唯一排版层，可跨切片） ========== */
/*
  所有文字/图片都放在 .content-layer 内
  坐标统一基于整页画布（1755 × 21824），百分比定位：

  --x = PS左边距  ÷ 1755  × 100%
  --y = PS顶部距  ÷ 21824 × 100%
  --w = PS元素宽度 ÷ 1755  × 100%
  --h = PS元素高度 ÷ 21824 × 100%（可选，一般图片用 --w 即可）
*/
.content-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.content-layer > * {
  pointer-events: auto;
}

.item {
  position: absolute;
  left: var(--x, 0%);
  top: var(--y, 0%);
  width: var(--w, auto);
  height: var(--h, auto);
  transform: var(--transform, none);
  z-index: var(--z, 1);
}

/* 文字辅助类 */
.item-text {
  color: #333;
  line-height: 1.7;
  letter-spacing: 0.08em;
  word-break: break-word;
}
.item-text--pink{
  color: #e70782;
}

.item-text--white { color: #fff; }
.item-text--center { text-align: center; }
.item-text--bold { font-weight: bold; }

.item-list a {
  text-decoration: none;
}

/* 图片：容器设 --w，图片自动等比缩放 */
.item-img {
  display: block;
  width: 100%;
  height: auto;
}

/* 视频：与图片相同，容器设 --w/--h，滚动进入视口后自动播放 */
.item-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
