body * {
  box-sizing: border-box;
  flex-shrink: 0;
}
body {
  font-family: PingFangSC-Regular, Roboto, Helvetica Neue, Helvetica, Tahoma,
    Arial, PingFang SC-Light, Microsoft YaHei;
  margin: 0;
}
input {
  background-color: transparent;
  border: 0;
}
button {
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  outline: none;
  background-color: transparent;
}

button:active {
  opacity: 0.6;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.justify-start {
  display: flex;
  justify-content: flex-start;
}
.justify-center {
  display: flex;
  justify-content: center;
}

.justify-end {
  display: flex;
  justify-content: flex-end;
}
.justify-evenly {
  display: flex;
  justify-content: space-evenly;
}
.justify-around {
  display: flex;
  justify-content: space-around;
}
.justify-between {
  display: flex;
  justify-content: space-between;
}
.align-start {
  display: flex;
  align-items: flex-start;
}
.align-center {
  display: flex;
  align-items: center;
}
.align-end {
  display: flex;
  align-items: flex-end;
}

.contact-btn {
  position: relative;
  cursor: pointer;
}

.qr-popup {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 4rem;
  margin-top: 0.267rem;
  padding: 0.267rem;
  background: #fff;
  border-radius: 0.213rem;
  box-shadow: 0 0.133rem 0.4rem rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  z-index: 100;
}

.contact-btn:hover .qr-popup {
  opacity: 1;
  visibility: visible;
}

/* 视频示例 hover 浮层 */
.image-wrapper_1-0,
.image-wrapper_5-0,
.image-wrapper_6-0,
.image-wrapper_7-0,
.image-wrapper_8-0,
.image-wrapper_9-0 {
  position: relative;
}

.video-popup {
  position: absolute;
  top: calc(100% + 0.5rem);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 9rem;
  height: calc(9rem * 16 / 9);    /* 9:16 */
  border-radius: 0.3rem;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 100;
  pointer-events: auto;
  background: #000;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
}

.video-popup.popup-above {
  top: auto;
  bottom: calc(100% + 0.5rem);
}

.video-popup.show {
  opacity: 1;
  visibility: visible;
}

.video-popup video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
