html, body {
  touch-action: manipulation;       /* 禁止手势缩放 */
  -ms-touch-action: manipulation;   /* IE 兼容 */
  overscroll-behavior: none;
}

* {
  -webkit-tap-highlight-color: transparent; /* 去除点击高亮 */
}

button, input, a {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  max-width: 480px;
  margin: 0 auto;
  font-size: 16px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: url("../img/bg.js") no-repeat center center fixed;
  background-size: cover;
  padding: 0;
}

/* 顶部栏 */
.top-bar {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}
.top-left {
  position: absolute;
  left: 30px;
  height: 30px;
}
.top-right {
  position: absolute;
  right: 30px;
  height: 30px;
  cursor: pointer;
}
.logo {
  height: 35px;
}

/* 轮播图 */
.main-carousel {
  position: relative;
  width: 85%;
  height: 350px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 12px;
}
.carousel-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.carousel-img.active {
  opacity: 1;
  z-index: 1;
}
/* 中图轮播图淡入+缩放动画 */
@keyframes fadeZoomIn {
  0% {
    opacity: 0;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 给 .carousel-img.active 添加动画效果 */
.carousel-img.active {
  opacity: 1;
  z-index: 1;
  animation: fadeZoomIn 1s ease;
}
/* 按钮组 */
.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -15px;
}
.btn {
  font-size: 19px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background 0.3s;
  background: linear-gradient(to right, #5caeff, #8cc7ff);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); 
  color: #fff;
}
.btn.full {
  width: min(80%, 340px); /* ✅ 最大不超宽，且适配小屏 */
  margin: 8px auto;
}
.half-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
  width: min(88%, 360px);
}
.btn.half {
  flex: 1;
  min-width: 150px;
  text-align: center;
}

/* 浮窗样式 */
.popup {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

/* ✅ 居中弹窗内容统一宽度 */
.popup-center .popup-content {
  position: relative;
  background: rgba(255, 255, 255, 0.60);  /* ✅ 白色 + 透明 */
  backdrop-filter: blur(6px);             /* ✅ 毛玻璃效果 */
  width: 70%;
  max-width: 300px;
  margin: 180px auto 0;
  padding: 20px 20px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
/* ✅ 访问网页版的浮窗也可以复用这段 */
.popup-full .popup-content {
  position: relative;
  background: #ffffff;
  width: 100%;
  height: 90%;
  margin: 5vh auto 0;
  padding: 20px 16px 60px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

/* 浮窗关闭按钮统一样式 */
.popup-close-btn {
  position: fixed;
  bottom: 20vh;
  left: 50%;
  transform: translateX(-50%);
  background: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  display: none;
}
/* 访问网页版浮窗 */
.web-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 16px;
  gap: 10px;
}

.web-link-row span.delay {
  width: 50px; /* ✅ 建议固定宽度 */
  text-align: center;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
  color: #ff8000;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}


.web-link-row span.line {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  padding: 4px 10px;
  border: 1px solid #4da6ff;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.2); /* 透明感背景 */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  color: #333;
}
.web-link-row .visit-btn {
  background-color: #4da6ff;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
}

/* APP下载浮窗 */
#appPopup .popup-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}
#appPopup .popup-content button {
  margin: 10px 0;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(to right, #5caeff, #8cc7ff);
  color: #fff;
  cursor: pointer;
}

/* 专属客服浮窗 */
#bizPopup .popup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
#bizPopup .popup-logo {
  width: 28px;
  height: 28px;
}
#bizPopup .popup-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}
#bizPopup .row {
  display: flex;
  align-items: center;
  margin: 12px 0;
}
#bizPopup .row label {
  width: 68px;
  text-align: right;
  margin-right: 10px;
  font-size: 15px;
}
#bizPopup .row input {
  flex: 1;                     /* 自动撑满可用空间 */
  min-width: 100px;            /* 最小宽度限制 */
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #f9f9f9;
}
#bizPopup .row button {
  margin-left: 8px;
  padding: 8px 12px;
  font-size: 14px;
  background: #ddd;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
#bizPopup .popup-footer {
  margin-top: 20px;
}
#bizPopup .popup-footer .btn {
  width: 100%;
  font-size: 16px;
  padding: 12px;
  margin-top: 12px;
  border-radius: 30px;
  background: linear-gradient(to right, #5caeff, #8cc7ff);
  border: none;
  color: #fff;
  cursor: pointer;
}
/* ✅ 在线客服遮罩层 */
.online-popup-mask {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

/* ✅ 浮窗内容宽100% 高90% 顶部留10% */
.online-popup-content {
  position: relative;
  width: 100%;
  height: 90%;
  margin-top: 10vh;
  background-color: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

/* ✅ 内部 iframe 铺满 */
#onlineIframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ✅ 独立关闭按钮右上角 */
.online-popup-close {
  display: none;
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 10001;
  width: 32px;
  height: 32px;
  background: #ff4d4f;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.btn {
  position: relative;
}

.badge.tag-style {
  position: absolute;
  top: -8px;
  right: 6px;  /* ✅ 从原来 -6px 改为正值，使其跟随按钮边缘 */
  background-color: #ff4d4f;
  color: #fff;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: bold;
  white-space: nowrap;
  background: linear-gradient(to right, #ff5e62, #ff9966);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  animation: pulseTag 1.6s infinite;
}
@keyframes pulseTag {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}



/* 小三角箭头 */
.badge.tag-style::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 14px; /* ✅ 原 25px 太靠内，右移一点更合理 */
  width: 0;
  height: 0;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #ff4d4f transparent transparent transparent;
}
@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carousel-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-img.active {
  opacity: 1;
  z-index: 1;
  animation: slideFadeIn 0.8s ease;
}
