html {
  /* 元素尺寸设定为750，px直接转化为rem在缩小100 */
  font-size: calc(100vw / 1920);
  background-color: #f9ebd8;
}
html {
  scroll-padding-top: calc(247 * (100vw / 750));
}
html.tabMode {
  scroll-padding-top: calc(127 * (100vw / 750));
}
/* main {
	height: calc(100vh - env(safe-area-inset-top) + 160rem);
	overflow-y: scroll;
} */

html,
body,
main,
header,
footer,
div,
p,
h6,
ul,
li,
ol,
img,
input,
button {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
ul,
li {
  /* 1. 去除默认列表标记（圆点/数字） */
  list-style: none;
  /* 2. 去除默认内边距（解决缩进问题，最关键） */
  padding-left: 0;
  /* 3. 去除默认外边距（统一布局间距） */
  margin-top: 0;
  margin-bottom: 0;
}
header {
  /* position: sticky; */
  display: block;
  /* z-index: 9; */
  top: 0;
  left: 0;
  width: 100%;
  /* height: 23.47vw; */
  /* height: 23.4vw; */
  /* 百宝湘app viewport不支持，做了特殊处理 env(safe-area-inset-top) */
  /* height: env(safe-area-inset-top); */
  /* height: calc(11.7vw + env(safe-area-inset-top)); */
  background: #fff;
}

input[type="button"] {
  border: none;
  background: transparent;
}

.back {
  position: absolute;
  display: block;
  bottom: 0;
  left: 0;
  padding: 4vw;
  width: 5.33vw;
  height: 5.33vw;
  background-size: 5.33vw 5.33vw;
  background-position: center;
  background-repeat: no-repeat;
  background-clip: content-box;
  box-sizing: content-box;
}

.back-white {
  background-image: url("../images/common/back-white.png");
}

.back-black {
  background-image: url("../images/common/back-black.png");
}

.share {
  position: absolute;
  display: block;
  bottom: 0;
  right: 0;
  padding: 4vw;
  width: 5.33vw;
  height: 5.33vw;
  background-size: 5.33vw 5.33vw;
  background-position: center;
  background-repeat: no-repeat;
  background-clip: content-box;
  box-sizing: content-box;
}

.share-white {
  background-image: url("../images/common/share-white.png");
}

.share-black {
  background-image: url("../images/common/share-black.png");
}

.header-title {
  position: absolute;
  bottom: 2.67vw;
  left: 0;
  right: 0;
  margin: auto;
  width: fit-content;
  height: 8vw;
  line-height: 8vw;
  text-align: center;
  font-size: 4.27vw;
  font-weight: bolder;
  color: #333;
}

.cover {
  position: fixed;
  display: none;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.5;
  overflow: hidden;
}

.modal-open {
  position: fixed;
  width: 100%;
}

.message {
  position: fixed;
  display: none;
  z-index: 20;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  padding: 2.67vw;
  width: fit-content;
  max-width: 80%;
  height: fit-content;
  line-height: 7.47vw;
  text-align: center;
  background: #000;
  opacity: 0.7;
  border-radius: 1.33vw;
  font-size: 3.73vw;
  color: #fff;
}

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
.unselectable {
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  user-select: none;
}

@keyframes heartbeat {
  0% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.1);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

footer {
  /* position: fixed; */
  /* bottom: 0;
  z-index: 10;
  font-family: SourceHanSansCN, SourceHanSansCN;
  font-weight: 400;
  font-size: 22rem; */
}

/* -------Toast 容器样式------- */
.toast-container {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Toast 样式 */
.toast {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 16px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition:
    opacity 0.3s,
    transform 0.3s;
  transform: translateY(20px);
  max-width: 80%;
  text-align: center;
  font-size: 14px;
}

/* Toast 显示状态 */
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* 不同类型 Toast 的样式 */
.toast.success {
  background-color: rgba(40, 167, 69, 0.8);
}

.toast.error {
  background-color: rgba(220, 53, 69, 0.8);
}

.toast.warning {
  background-color: rgba(255, 193, 7, 0.8);
}

.toast.info {
  background-color: rgba(0, 123, 255, 0.8);
}
/* -------Toast 容器样式------- */
.one-txt-cut,
.ellipsis {
  /* 这三句话缺一不可 */
  overflow: hidden;
  /* 文本强制不换行 */
  white-space: nowrap;
  /* 以省略号的形式显示多余的文本 */
  text-overflow: ellipsis;
}

.swiper-pagination-bullet-active {
  background: #e73d38 !important;
}
.swiper-pagination-bullet {
  background: #e73d38 !important;
}
.swiper-slide {
  text-align: center;
}
