:root {
  --base: calc(100vw / 1080);
}
@media screen and (aspect-ratio>0.95) {
  :root {
    --base: calc(100vw / 2200);
  }
  .p3-1 {
    width: calc(var(--base) * 390) !important;
    left: calc(var(--base) * 600) !important;
    top: calc(var(--base) * 100) !important;
  }
  .result-img {
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
  }
  #result {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

* {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  outline: 0;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}
body,
html {
  height: 100%;
  overflow: hidden;
}
body {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
  margin: 0 auto;
  position: relative;
}
button {
  background: none;
  display: block;
  border: none;
  cursor: pointer;
}
img[back] {
  width: 100%;
  display: block;
  pointer-events: none;
}
img[ver] {
  height: 100%;
  display: block;
  pointer-events: none;
}
.progress {
  position: absolute;
  width: 14%;
  bottom: 5vh;
  left: 50%;
  transform: translate(-50%);
  color: #4c64fe;
  text-align: center;
}
.progress-bar {
  background: #8d9cf8;
  width: 100%;
  height: 10px;
  border-radius: 100px;
  overflow: hidden;
}
.bar {
  display: block;
  background: #4c64fe;
  height: 100%;
  border-radius: 100px;
  width: 0%;
  transition: all 0.1s;
}
.page {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.home {
  background-image: url("../img/p1/bg.jpg?v=4");
  background-size: 100% 100%;
}
.h-btn {
  position: absolute;
  width: calc(var(--base) * 332);
  left: calc(50% - calc(var(--base) * 332) / 2);
  bottom: 5vh;
  display: none;
}
.page2 {
  background-image: url("../img/p2/bg.jpg?v=4");
  background-size: 100% 100%;
}
.page2 > div,
.page2 button {
  width: calc(var(--base) * 617);
}
.p2-render {
  display: flex;
  flex-direction: column;
  gap: calc(var(--base) * 40);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.page3 {
  background-image: url("../img/map/bg.jpg?v=4");
  background-size: 100% 100%;
}
.p3-1 {
  position: absolute;
  width: calc(var(--base) * 500);
  left: calc(var(--base) * 140);
  top: calc(var(--base) * 100);
}
.map {
  position: absolute;
  width: 400%;
  z-index: 2;
}
.tag {
  position: absolute;
  height: 2%;
  /* 点位的动画，类似地图的标点动画 */
}
.tag::after{
  /* content: "";
  background-image: url(../img/map/3.png?v=4);
  width: calc(var(--base)* 64);
  height: calc(var(--base)* 64);
  background-size: 100% 100%;
  display: block;
  position: absolute;
  top: -100%;
  pointer-events: none;
  left: 50%;
  margin-left: calc(var(--base)* -32);
  animation: tag 2s ease-in-out infinite;
 animation-delay: calc(--s); */
}
.tag:nth-of-type(1) {
  top: 72.5%;
  left: 64%;
  width: 5.5%;
 --s: 0.2s;
}
.tag:nth-of-type(2) {
  top: 53.4%;
  left: 61.5%;
 --s: 0.8s;
  width: 5.5%;
}
.tag:nth-of-type(3) {
  top: 79.3%;
  left: 54%;
 --s: 1.3s;
  width: 6%;
}
.tag:nth-of-type(4) {
  top: 66%;
  left: 64%;
 --s: 0.1s;
  width: 5%;
}
.tag:nth-of-type(5) {
  top: 70.5%;
  left: 60%;
 --s: 1.7s;
  width: 5.5%;
}
.tag:nth-of-type(6) {
  top: 60%;
  left: 58%;
 --s: 0.5s;
  width: 6%;
}
.tag:nth-of-type(7) {
  top: 65.4%;
  left: 70.2%;
 --s: 1.9s;
  width: 10%;
}
.tag:nth-of-type(8) {
  top: 63.5%;
  left: 59%;
 --s: 0.3s;
  width: 5.5%;
}
.tag:nth-of-type(9) {
  top: 54.5%;
  left: 54.5%;
 --s: 1.1s;
  width: 6%;
}
.tag:nth-of-type(10) {
  top: 47%;
  left: 56.4%;
 --s: 0.6s;
  width: 5.5%;
}
.tag:nth-of-type(11) {
  top: 40.8%;
  left: 56%;
 --s: 1.4s;
  width: 6%;
}
.tag:nth-of-type(12) {
  top: 38.8%;
  left: 67.6%;
 --s: 0.9s;
  width: 6%;
}
.tag:nth-of-type(13) {
  top: 59%;
  left: 67%;
 --s: 0.4s;
  width: 6%;
}
.tag:nth-of-type(14) {
  top: 56.9%;
  left: 65.5%;
 --s: 1.6s;
  width: 9.3%;
}
.tag:nth-of-type(15) {
  top: 57.9%;
  left: 59%;
 --s: 0.7s;
  width: 6%;
}
.tag:nth-of-type(16) {
  top: 63%;
  left: 66.6%;
 --s: 1.2s;
  width: 6%;
}
@keyframes tag {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px); /* 向上移动 10px，可按需调整 */
    opacity: 0.4;
  }
  100% {
    transform: translateY(0);
  }
}
.wall {
  z-index: 4;
  overflow: auto;
}
.wall > div {
  position: relative;
}
.wall video {
  position: absolute;
  top: 43.5%;
  width: 94%;
  left: 3%;
  height: 15.2%;
  object-fit: scale-down;
}
.back-btn,
.back-btn-2 {
  position: absolute;
  z-index: 3;
  width: calc(var(--base) * 80);
  top: calc(var(--base) * 20);
  left: calc(var(--base) * 20);
}
.back-btn-2{
  position: fixed;
}
.page4 {
  background-image: url("../img/p4/bg.jpg?v=4");
  background-size: 100% 100%;
}
.p4-1 {
  width: 100%;
  margin-top: 5vh;
}
.p4-2 {
  position: absolute;
  bottom: 12%;
  right: 0;
}
.p4-2-ctx {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.ani {
  visibility: hidden;
}
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}
.fadeIn {
  animation-name: fadeIn;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
.fadeInRight {
  animation-name: fadeInRight;
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
.p4-2-1 {
  position: absolute;
  top: 24%;
  left: 36%;
  width: 66%;
}
.p4-2-2 {
  width: 16.3%;
  position: absolute;
  top: 63%;
  left: 67%;
  animation: flash 2s ease-in-out infinite;
}
@keyframes flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
.p4-2-3 {
  position: absolute;
  top: 12%;
  height: calc(var(--base) * 1275);
  left: 20%;
}
.p4-2-4 {
  width: calc(var(--base) * 267);
  position: absolute;
  top: 95%;
  left: 34%;
  animation: flash 2s ease-in-out infinite;
}
.p4-2-layer,
.p4-2-ctx,
.p5-1 {
  transition: opacity 0.5s ease-in-out;
}
.fade-out {
  opacity: 0;
  pointer-events: none;
}
.page5 {
  background-image: url("../img/p3/bg.jpg?v=4");
  background-size: 100% 100%;
}
.p5-1 {
  position: absolute;
  width: calc(var(--base) * 606);
  left: calc(var(--base) * 320);
  top: 16%;
}
.p5-1-text {
  position: absolute;
  width: calc(var(--base) * 322);
  top: 8%;
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}
.zoomIn {
  animation-name: zoomIn;
}
.page6 {
  background-image: url("../img/p6/bg.jpg?v=4");
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
}
.p6-1 {
  width: calc(var(--base) * 996);
  margin: 0 auto;
}
.topic {
  position: relative;
  flex: 1;
  overflow: hidden;
  width: calc(var(--base) * 941);
  background-image: url(../img/p6/2.png?v=4);
  margin: 0 auto;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.topic-ctx {
  position: absolute;
  width: 100%;
  height: 96.6%;
  top: 2%;
  padding: 3% 3% 5% 3%;
  overflow: hidden;
}
.topic-ctx > div {
  overflow: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.answer {
  display: flex;
}
.answer label {
  display: block;
  padding-left: 6%;
  position: relative;
}
.topic-ctx section:nth-child(1) label {
  padding-left: 1%;
  width: 84%;
}
.topic-ctx section:nth-child(2) label:nth-of-type(1){
  width: 24%;
}
.topic-ctx section:nth-child(2) label:nth-of-type(2){
  width: 20.3%; 
}
.topic-ctx section:nth-child(3) label:nth-of-type(1){
  width: 32%;
}
.topic-ctx section:nth-child(3) label:nth-of-type(2){
  width: 28.5%;
}
.topic-ctx section:nth-child(4) label:nth-of-type(1){
  width: 30%;
}
.topic-ctx section:nth-child(4) label:nth-of-type(2){
  width: 28%;
}
.topic-ctx section:nth-child(5) label:nth-of-type(1){
  width: 30%;
}
.topic-ctx section:nth-child(5) label:nth-of-type(2){
  width: 27.5%;
}
.topic-ctx section:nth-child(6) label:nth-of-type(1){
  width: 30%;
}
.topic-ctx section:nth-child(6) label:nth-of-type(2){
  width: 30%;
}
.topic-ctx > div > section:nth-child(1) > div.answer > label:nth-child(2) > i{
  top: 10%;
}
label img {
  width: 100%;
  display: block;
  pointer-events: none;
}
label i {
  display: block;
  width: var(--iw);
  position: absolute;
  left: -3%;
  top: -6%;
  display: none;
}
.answer input {
  display: none;
}
.answer input:checked + i {
  display: block;
}
/* 大于等于2 */
.topic-ctx section:nth-child(1) .answer {
  flex-direction: column;
}
.p6-2 {
  width: calc(var(--base) * 464);
  margin: 2vh auto;
}
.result-img {
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
}
#result {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.result-img button {
  position: absolute;
  left: 50%;
  width: calc(var(--base) * 518);
  transform: translate(-50%);
  bottom: 2%;
  pointer-events: none;
}
.ask {
  position: relative;
  width: 100%;
}
.ask::after {
  content: attr(data-ask);
  position: absolute;
  bottom: var(--b);
  left: var(--l);
  font-size: calc(var(--base) * 34);
}
@media screen and (aspect-ratio>0.95) {
  .p3-1 {
    width: calc(var(--base) * 390);
    left: calc(var(--base) * 600);
    top: calc(var(--base) * 100);
  }
  .result-img {
    backdrop-filter: blur(30px);
  }
  #result {
    object-fit: contain;
  }
  .home {
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
  }
}
.p3-2 {
  width: calc(var(--base) * 421);
  position: absolute;
  left: calc((100vw - 421 * var(--base)) / 2);
}
.clip{
  animation-name: clip;
}
@keyframes clip {
  0% {
    clip-path: inset(0 50%);
    opacity: 0;
   }
   100%{
    clip-path: inset(0 0%)
   }
}