* {
  margin: 0;
  padding: 0;
  outline: 0;
  -webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
  -webkit-appearance: none;
  font-family: 'SourceHanSansCN';
}

html {
  font-size: calc(100vw / 7.5) !important;
}

body {
  font-size: 16px !important;
  -webkit-text-size-adjust: 100% !important;
  position: relative;
}

[v-cloak] {
  display: none;
}
#app {
  width: 100vw;
  height: 100vh;
  /* overflow: hidden; */
}
:root {
  /* --maxWidth: 1200px; */
}
a{text-decoration:none;color: inherit;}
a:hover,a:visited{text-decoration:none}
.ffsb {display: flex;justify-content: space-between; align-items: baseline;}
.ffsc {display: flex;justify-content: flex-start; align-items: center;}
.ffec {display: flex;justify-content: flex-end; align-items: center;}
.fsbc {display: flex; justify-content: space-between;align-items: center;}
.fsbb {display: flex; justify-content: space-between;align-items: baseline;}
.fsbs {display: flex; justify-content: space-between;align-items: start;}
.fsbe {display: flex; justify-content: space-between;align-items: end;}
.fsac {display: flex;justify-content: space-around;align-items: center;}
.fcb {display: flex;justify-content: center; align-items: baseline;}
.fcc {display: flex;justify-content: center; align-items: center;}
.fcs {display: flex;justify-content: center;align-items: start;}
.fce {display: flex;justify-content: center;align-items: end;}
.fcfe {display: flex;justify-content: center;align-items: flex-end;}
.column {flex-direction: column;}
.wrap {flex-wrap: wrap;}
/* 单行省略 */
.line-1 {
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis; 
}
/* 多行省略 */
.line-2 {
  display: block;
  overflow:hidden; 
  text-overflow:ellipsis;
  display:-webkit-box; 
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2; 
}
/* 多行省略 */
.line-n {
  display: block;
  overflow:hidden; 
  text-overflow:ellipsis;
  display:-webkit-box; 
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3; 
}
.navigationbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  background-color: #fff;
  font-weight: 600;
  font-size: 18px;
  color: #333333;
  z-index: 99;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  box-sizing: border-box;
}
.navigationbar-img {
  width: 20px;
  height: 20px;
}
.navigationbar-title {
  flex: 1;
  text-align: center;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.nav-left, .nav-right {
  min-width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-left {
  justify-content: flex-start;
}
.nav-right {
  justify-content: flex-end;
}
.tabbar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  padding-bottom: env(safe-area-inset-bottom);
  background-color: #fff;

}
.tabbar-item {
  width: 80px;
  height: auto;
  padding: 12px 0 8px 0;
  text-align: center;
  font-weight: 400;
  font-size: 12px;
  color: #7F7F7F;
  line-height: 20px;
}
.tabbar-img {
  width: 25px;
  height: 25px;
}
.tabbar-on {
  color: #002A79;
}

.container {
  background-color: #F2F4F8;
  min-height: 100vh;
  padding-bottom: 150px;
}
.nomore {
  width: 100%;
  margin-top: 20px;
  text-align: center;
  font-weight: 400;
  font-size: 12px;
  color: #C0C4CC;
}
.default-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.limited-offer-img {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 47px;
  height: 26px;
}
/*智能客服图标*/
.float-icon {
  width: 50px;
  height: 50px;
}
/* 客服窗口容器 - 默认隐藏 */
.service-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 95%; /* 占据屏幕下方95%区域 */
  background-color: #fff;
  z-index: 98;
  display: none;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
/* 悬浮按钮 */
.float-button {
  right: 15px;
  bottom: 100px;
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 99;
  transition: all 0.3s ease;
  cursor: move;
  touch-action: none;
  user-select: none;
}

.float-button:active {
  transform: scale(0.95);
  background-color: #246bde;
}


/*手机端智能客服弹窗*/
/* 未读消息数量显示样式 - 与fule.html完全一致 */
.unread-badge-h5 {
  position: absolute;
  left: 30px;
  top: -8px;
  min-width: 18px;
  height: 18px;
  background-color: #ff4d4f;
  color: white;
  border-radius: 50%; /* 修改为圆形 */
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 聊天窗口样式 - 全屏显示 */
.chat-wrapper-h5 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff !important;
  border-radius: 0;
  overflow: hidden;
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
  opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1),
  visibility 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: none;
  opacity: 1;
  transform-origin: center;
  will-change: transform, opacity;
  cursor: default;

  /* Safari安全区域处理 */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);

  /* 防止Safari显示蓝色背景 */
  -webkit-overflow-scrolling: touch;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.chat-wrapper-h5.hidden {
  transform: scale(0.8);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.chat-wrapper-h5.dragging {
  transition: none;
  user-select: none;
}

.chat-container-h5 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  background: white;
  box-shadow: none;
}

.close-btn-h5 {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  font-size: 16px;
  color: #666;
}

.close-btn-img-h5{
  width: 38px;
  height: 38px;
}

.chat-iframe-container-h5 {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  /* 确保flex子元素可以缩小 */
  background-color: #ffffff !important;
  overflow: hidden;
}

.chat-iframe-h5 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  pointer-events: none;
  background-color: #ffffff !important;
  overflow: hidden;
  /* Safari优化 */
  -webkit-overflow-scrolling: touch;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);

  /* 确保iframe完全填充 */
  max-width: 100%;
  max-height: 100%;
}

.chat-iframe-h5.active {
  pointer-events: auto;
}

/* Safari专用样式 - 防止蓝色背景和滚动问题 */
@supports (-webkit-appearance: none) {

  html,
  body {
    background-color: #ffffff !important;
    -webkit-overflow-scrolling: touch;
    /* 使用动态视口高度解决地址栏遮挡问题 */
    height: 100dvh !important;
    max-height: 100dvh !important;
  }

  .chat-wrapper-h5 {
    background-color: #ffffff !important;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    /* 确保聊天容器使用动态视口高度 */
    height: 100dvh !important;
    max-height: 100dvh !important;
  }

  .chat-iframe-h5 {
    background-color: #ffffff !important;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    /* iframe也使用动态视口高度 */
    height: 100dvh !important;
    max-height: 100dvh !important;
  }

  /* 当聊天窗口打开时，强制禁用父页面滚动 */
  body.chat-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: auto !important;
  }

  html.chat-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: auto !important;
  }
}

/* 添加未读消息数量显示样式 */
.unread-badge-h5 {
  position: absolute;
  left: 30px;
  top: -8px;
  min-width: 18px;
  width: 18px; /* 改为固定宽度，与高度相同 */
  height: 18px;
  background-color: #ff4d4f;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  box-sizing: border-box; /* 确保边框和内边距不影响尺寸 */
}

/* Safari专用样式 - 防止蓝色背景和滚动问题 */
@supports (-webkit-appearance: none) {

  html,
  body {
    background-color: #ffffff !important;
    -webkit-overflow-scrolling: touch;
    /* 使用动态视口高度解决地址栏遮挡问题 */
    height: 100dvh !important;
    max-height: 100dvh !important;
  }

  .chat-wrapper-h5 {
    /* 确保聊天容器使用动态视口高度 */
    height: 100dvh !important;
    max-height: 100dvh !important;
  }

  .chat-iframe-h5 {
    /* iframe也使用动态视口高度 */
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
}

@media screen and (min-width: 0px) and (max-width: 768px) {}

@media screen and (min-width: 769px) and (max-width: 959px) {}

@media screen and (min-width: 960px) and (max-width: 1399px) {}

@media screen and (min-width: 1400px) and (max-width: 1900px) {}

@media screen and (min-width: 1901px) and (max-width: 5000px) {}