@charset "utf-8";
/* 设计稿基准 1920×1080，元素尺寸按切图像素换算为百分比 */

body,
div,
img,
form,
input,
ul,
li,
h1,
h2,
a,
span,
p {
  margin: 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
}
ul,
li {
  list-style: none;
}
body,
input,
h1,
h2 {
  font-family: '微软雅黑', '黑体';
  font-size: 16px;
  line-height: 30px;
  font-weight: normal;
  position: relative;
}

a {
  color: #000;
  text-decoration: none;
}
a:hover {
  color: #d92636;
}
.fl {
  float: left;
}
.fr {
  float: right;
}
.clearflx:after {
  content: '';
  display: block;
  visibility: hidden;
  clear: both;
}
.cl {
  clear: both;
  height: 0px;
  overflow: hidden;
}

.none {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000 url('../images/p4_bg.jpg') no-repeat center center;
  background-size: cover;
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

.stage {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: url('../images/p4_bg.jpg') no-repeat center center;
  background-size: cover;
}
.stage.is-portrait,
html.is-portrait .stage {
  position: fixed;
  width: 100vh;
  height: 100vw;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
}
@media (orientation: portrait) {
  .stage {
    position: fixed;
    width: 100vh;
    height: 100vw;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

.container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 10;
  opacity: 1;
  -webkit-transition: opacity 0.45s ease;
  transition: opacity 0.45s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.container.is-covered {
  opacity: 0;
  pointer-events: none;
}

.video-layer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 100%;
  background: url('../images/p4_bg.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.45s ease, visibility 0.45s ease;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.video-layer.is-shown {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}
.video-layer.is-portrait,
html.is-portrait .video-layer {
  width: 100vh;
  height: 100vw;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%) rotate(90deg) translateZ(0);
  transform: translate(-50%, -50%) rotate(90deg) translateZ(0);
}
@media (orientation: portrait) {
  .video-layer {
    width: 100vh;
    height: 100vw;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%) rotate(90deg) translateZ(0);
    transform: translate(-50%, -50%) rotate(90deg) translateZ(0);
  }
}
.video-layer video {
  display: block;
  object-fit: cover;
  pointer-events: none;
  max-width: none;
  max-height: none;
  -webkit-touch-callout: none;
  opacity: 0;
  -webkit-transition: opacity 0.35s ease;
  transition: opacity 0.35s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.video-layer.is-shown.is-playing video {
  opacity: 1;
}
.video-layer video::-webkit-media-controls {
  display: none !important;
}
.video-layer video::-webkit-media-controls-enclosure {
  display: none !important;
}

/* 与 video-layer 同尺寸/旋转，层级更高，仅跳过按钮可点 */
.video-ui {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.45s ease, visibility 0.45s ease;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.video-ui.is-shown {
  opacity: 1;
  visibility: visible;
}
.video-ui.is-portrait,
html.is-portrait .video-ui {
  width: 100vh;
  height: 100vw;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%) rotate(90deg) translateZ(0);
  transform: translate(-50%, -50%) rotate(90deg) translateZ(0);
}
@media (orientation: portrait) {
  .video-ui {
    width: 100vh;
    height: 100vw;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%) rotate(90deg) translateZ(0);
    transform: translate(-50%, -50%) rotate(90deg) translateZ(0);
  }
}

.btn-jump {
  position: absolute;
  right: 2.5%;
  top: 3.33%;
  z-index: 3;
  cursor: pointer;
  width: 15.31%; /* 294px */
  height: 10.93%; /* 118px */
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.container img,
.btn-jump img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.btn-jump::after {
  display: none;
}

.video-ui.is-active {
  pointer-events: auto;
}

.video-tap-area {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.video-progress {
  position: absolute;
  left: 50%;
  bottom: 1%;
  width: 88%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: auto;
  padding: 12px 0 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.video-progress.is-visible {
  opacity: 1;
  visibility: visible;
}
.video-progress__track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  overflow: visible;
}
.video-progress__fill {
  width: 0;
  height: 100%;
  background: #fff;
  border-radius: 999px;
  transition: width 0.12s linear;
  pointer-events: none;
}
.video-progress__thumb {
  position: absolute;
  left: 0;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32px;
  height: 38px;
  margin-top: -19px;
  margin-left: -16px;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  transition: left 0.12s linear;
  z-index: 2;
}
.video-progress__lantern {
  display: block;
  width: 14px;
  height: 16px;
  margin-bottom: 2px;
  border-radius: 50% 50% 42% 42%;
  background: #f8edd4;
  border: 2px solid #fff;
  box-shadow: 0 0 6px rgba(255, 248, 220, 0.6);
}
.video-progress__pillar {
  display: block;
  width: 10px;
  height: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px 2px 3px 3px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.25);
}
.video-progress.is-dragging .video-progress__fill,
.video-progress.is-dragging .video-progress__thumb {
  transition: none;
}
.video-progress.is-dragging .video-progress__thumb {
  cursor: grabbing;
}
.video-progress.is-dragging .video-progress__lantern {
  background: #d92636;
  border-color: #ffd8a8;
  box-shadow: 0 0 8px rgba(217, 38, 54, 0.65);
}

.total-progress {
  display: none !important;
}

/* 古桥路径进度 */
.bridge-progress {
  position: absolute;
  left: 2.5%;
  top: 50%;
  width: 52px;
  height: 52%;
  transform: translateY(-50%);
  pointer-events: auto;
}
.bridge-progress__water {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 40px;
  margin-left: -20px;
  background: linear-gradient(
    to bottom,
    rgba(24, 72, 98, 0.18) 0%,
    rgba(24, 72, 98, 0.32) 45%,
    rgba(24, 72, 98, 0.22) 100%
  );
  border-radius: 10px;
  z-index: 0;
}
.bridge-progress__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0 8px;
  z-index: 1;
}
.bridge-progress__rail {
  width: 3px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.55),
    rgba(245, 230, 200, 0.45)
  );
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
}
.bridge-progress__deck {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 8px;
  margin-left: -4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}
.bridge-progress__fill,
.total-progress__fill {
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, #f5e6c8 0%, #fff8ec 55%, #ffffff 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 240, 210, 0.35);
  transition: height 0.45s ease;
}
.bridge-progress__piers {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}
.bridge-progress__pier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 44px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.bridge-progress__lantern {
  position: relative;
  display: block;
  width: 16px;
  height: 18px;
  margin-bottom: 2px;
  border-radius: 50% 50% 42% 42%;
  background: rgba(255, 255, 255, 0.42);
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 -3px 4px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.bridge-progress__pillar {
  display: block;
  width: 12px;
  height: 14px;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 2px 2px 3px 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.bridge-progress__pier.is-done .bridge-progress__lantern {
  background: #f8edd4;
  border-color: #fff;
  box-shadow: 0 0 8px rgba(255, 248, 220, 0.75);
}
.bridge-progress__pier.is-done .bridge-progress__pillar {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}
.bridge-progress__pier.is-active .bridge-progress__lantern {
  background: #d92636;
  border-color: #ffd8a8;
  transform: scale(1.12);
  box-shadow:
    0 0 10px rgba(217, 38, 54, 0.75),
    0 0 18px rgba(255, 190, 90, 0.45);
  -webkit-animation: bridge-lantern-glow 1.6s ease-in-out infinite;
  animation: bridge-lantern-glow 1.6s ease-in-out infinite;
}
.bridge-progress__pier.is-active .bridge-progress__pillar {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}
.bridge-progress__pier.is-pending .bridge-progress__lantern {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.55);
}
.bridge-progress__pier.is-pending .bridge-progress__pillar {
  background: rgba(255, 255, 255, 0.28);
}

@-webkit-keyframes bridge-lantern-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}
@keyframes bridge-lantern-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}

.p0,
.p1,
.p2,
.p3,
.p4,
.p1_c,
.p2_c,
.p3_c {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}
.p0 {
  z-index: 2;
  background: url('../images/p4_bg.jpg') no-repeat center center;
  background-size: cover;
}

.page-loading {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background: url('../images/p4_bg.jpg') no-repeat center center;
  background-size: cover;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.page-loading.is-done {
  opacity: 0;
  pointer-events: none;
}
.page-loading__bar {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -26.665%;
  transform: translateY(-50%);
  width: 53.33%;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}
.page-loading__progress {
  width: 0;
  height: 100%;
  background: #fff;
  border-radius: 999px;
  transition: width 0.15s linear;
}
.page-loading__num {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 18px);
  color: #fff;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 2px;
  text-align: center;
}

.p0-main {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url('../images/p0_bg.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0;
}
.p0-main.is-ready {
  -webkit-animation: p0-main-fade-in 0.8s ease forwards;
  animation: p0-main-fade-in 0.8s ease forwards;
}
@-webkit-keyframes p0-main-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes p0-main-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.btn {
  cursor: pointer;
  overflow: visible;
}

.btn::after {
  content: '';
  position: absolute;
  /* 相对按钮高度缩放，避免 cqh 在 iOS/微信失效导致撑满屏 */
  left: 88%;
  bottom: -21%;
  height: 83%;
  width: auto;
  max-width: 40%;
  aspect-ratio: 90 / 98;
  background: url('../images/tips_hand.png') no-repeat center / contain;
  pointer-events: none;
  transform-origin: 0 100%;
  -webkit-animation: hand-rotate-15 3s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    infinite;
  animation: hand-rotate-15 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.share-tips {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
}
.share-tips img {
  position: absolute;
  right: 30px;
  top: 30px;
  width: 34px; /* 切图 34×236 */
  height: 236px;
  object-fit: contain;
  display: block;
}

.logo,
.btn_start,
.p0_title,
.p1_btn,
.p2_btn,
.p3_btn,
.p1_title,
.p2_title,
.p3_title,
.p4_title,
.p1_c_t,
.p2_c_t,
.p3_c_t,
.p1_c_a,
.p1_c_b,
.p2_c_a,
.p2_c_b,
.p3_c_a,
.p3_c_b,
.p4_pic,
.p4_wz,
.p4_btn_again,
.p4_btn_share {
  position: absolute;
}

.logo {
  left: 1.2%;
  top: 2.5%;
  width: 10.05%;  /* 193px / 1920 */
  height: 13.80%; /* 149px / 1080 */
}

.p0,
.p1,
.p2,
.p3,
.p4,
.bg_choice,
.bg_choice2,
.bg_choice3 {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.p1 {
  background-image: url('../images/p1_bg.jpg');
}
.p2 {
  background-image: url('../images/p2_bg.jpg');
}
.p3 {
  background-image: url('../images/p3_bg.jpg');
}
.p4 {
  background-image: url('../images/p4_bg.jpg');
}
.bg_choice {
  background-image: url('../images/bg_choice.jpg');
}
.bg_choice2 {
  background-image: url('../images/bg_choice2.jpg');
}
.bg_choice3 {
  background-image: url('../images/bg_choice3.jpg');
}

/* 通用按钮 449×119 */
.p1_btn,
.p2_btn,
.p3_btn {
  left: 50%;
  top: 62.54%;
  margin-left: -11.695%; /* 23.39% / 2 */
  width: 23.39%; /* 449px */
  height: 11.02%; /* 119px */
}

/* 封面开始按钮 387×118 */
.btn_start {
  left: 50%;
  top: 74.54%;
  margin-left: -10.08%; /* 20.16% / 2 */
  width: 20.16%; /* 387px */
  height: 10.93%; /* 118px */
}

/* p0 标题 */
.p0_title {
  left: 50%;
  top: 14.24%;
  margin-left: -38.205%;
  width: 76.41%;
  height: 35.83%;
}

.p0_title img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 标题 */
.p1_title {
  left: 50%;
  top: 14.24%;
  margin-left: -38.205%;
  width: 76.41%;
  height: 35.83%;
} /* 1467×387 */
.p2_title {
  left: 50%;
  top: 12.24%;
  margin-left: -45.415%;
  width: 90.83%;
  height: 42.31%;
} /* 1744×457 */
.p3_title {
  left: 50%;
  top: 10.61%;
  margin-left: -37.58%;
  width: 75.16%;
  height: 37.31%;
} /* 1443×403 */
.p4_title {
  left: 50%;
  top: 6.48%;
  margin-left: -22.29%;
  width: 44.58%;
  height: 18.7%;
} /* 856×202 */

/* 选择页标题 */
.p1_c_t {
  left: 50%;
  top: 23.24%;
  margin-left: -42.735%;
  width: 85.47%;
  height: 38.15%;
} /* 1641×412 */
.p2_c_t {
  left: 50%;
  top: 23.24%;
  margin-left: -42.735%;
  width: 85.47%;
  height: 36.2%;
} /* 1641×391 */
.p3_c_t {
  left: 50%;
  top: 23.24%;
  margin-left: -40.78%;
  width: 81.56%;
  height: 36.57%;
} /* 1566×395 */

/* 选择页按钮 A/B 611×118 */
.p1_c_a,
.p2_c_a {
  left: 11.77%;
  top: 74.54%;
  width: 31.82%;
  height: 10.93%;
} /* 226×805, 611×118 */
.p1_c_b,
.p2_c_b {
  left: 50%;
  top: 74.54%;
  width: 31.82%;
  height: 10.93%;
} /* 960×805, 611×118 */

/* p3 选择页按钮 1032×118 */
.p3_c_a,
.p3_c_b {
  left: 19.79%;
  width: 53.75%;
  height: 10.93%;
}
.p3_c_a {
  top: 64.81%;
}
.p3_c_b {
  top: 79.17%;
}
.p3_c_a.is-watched,
.p3_c_b.is-watched {
  opacity: 0.55;
}
.p3_c_a.is-watched::after,
.p3_c_b.is-watched::after {
  display: none;
}

/* p4 人物 */
.p4_pic {
  left: 50%;
  top: 22.22%;
  margin-left: -38.255%; /* 76.51% / 2 */
  width: 76.51%; /* 1469px 总宽 */
  height: 48.15%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.people_1 {
  width: 19.01%;
  height: 100%;
} /* 365×520 */
.people_2 {
  width: 19.01%;
  height: 97.1%;
} /* 365×505 */
.people_3 {
  width: 19.48%;
  height: 97.69%;
} /* 374×508 */
.people_4 {
  width: 19.01%;
  height: 97.1%;
} /* 365×505 */
.people-link {
  display: block;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.people-link:hover,
.people-link:active {
  color: inherit;
  opacity: 0.88;
}
.people-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p4_wz {
  left: 50%;
  top: 67.59%;
  margin-left: -33.725%;
  width: 67.45%;
  height: 7.31%;
} /* 1295×79 */

.p4_btn_again {
  left: 12.24%;
  top: 78.24%;
  width: 30.63%;
  height: 10.93%;
} /* 235×845, 588×118 */
.p4_btn_share {
  left: 50%;
  top: 78.24%;
  width: 30.73%;
  height: 10.93%;
} /* 960×845, 590×118 */
