.anti-code-mobile {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* 页面头部样式 */
.page-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #fff;
}

.back-btn {
  position: absolute;
  left: 16px;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  color: #181818;
  margin: 0;
}

/* 产品 Banner 区域样式 */
.product-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.product-swiper {
  width: 100%;
  height: auto;
  position: relative;
}

.swiper-slide {
  position: relative;
  width: 100%;
}

/* 图片容器：保持 390x168 比例 (约 2.32:1) */
.product-image {
  position: relative;
  width: 100%;
  padding-bottom: 51.289%; /* 168/390 * 100% */
  overflow: hidden;
  background: transparent;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 第一张 slide 的文字部分：absolute 定位在左侧 */
.swiper-slide-1 .logo-section {
  position: absolute;
  left: 24px;
  top: 16px;
  z-index: 2;
  color: #fff;
}

.ezviz-logo {
  width: 55px;
  margin-bottom: 25px;
}

.product-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 24px;
}

.product-subtitle {
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
}

/* Swiper 分页指示器样式 */
.product-pagination {
  position: absolute;
  top: 124px !important;
  z-index: 1;
  padding-right: 16px;
  text-align: end;
}

.product-pagination .swiper-pagination-bullet {
  height: 3px !important;
}

.product-pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  border-radius: 50%;
  transition: all 0.3s;
  margin: 0 3px;
}

.product-pagination .swiper-pagination-bullet-active {
  width: 20px;
  background: #fff;
  border-radius: 3px;
}

/* 查询操作区域样式 */
.query-section {
  padding: 32px 24px 64px 24px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  z-index: 1;
  position: absolute;
  top: 147px;
  width: 100%;
  height: calc(100% - 147px);
}

.scan-btn {
  width: 100%;
  padding: 10px 16px;
  background: #2666ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: opacity 0.3s;
}

.scan-btn:hover {
  opacity: 0.9;
}

.scan-btn .icon-qrcode {
  width: 20px;
  height: 20px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding-left: 12px;
  transition: border-color 0.3s;
}

.input-wrapper:focus-within {
  border-color: #2666ff;
}

.input-wrapper .icon-edit {
  width: 20px;
  height: 20px;
  margin-right: 12px;
}

.anti-code-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 0;
  font-size: 14px;
  line-height: 24px;
  color: #333;
  background: transparent;
}

.anti-code-input::placeholder {
  color: #cccccc;
}

.query-btn {
  padding: 11px 26px;
  height: calc(100% + 2px);
  background: #2666ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.3s;
  position: absolute;
  overflow: hidden;
  right: -1px;
  top: -1px;
  z-index: 1;
}

.query-btn:hover {
  opacity: 0.9;
}

/* 查询方法说明样式 */
.instructions {
  margin-top: 32px;
  padding-bottom: 24px;
  background: #fff;
}

.instructions-title {
  font-size: 14px;
  line-height: 24px;
  color: #181818;
  margin: 0 0 8px 0;
}

.instructions-list {
  margin: 0;
  padding-left: 20px;
  color: #666666;
  font-size: 14px;
  line-height: 22px;
  list-style: decimal;
}

/* 官方商城链接样式（仅国内版本显示） */
.mall-link {
  font-size: 14px;
  color: #999999;
  line-height: 1.8;
  margin-top: 24px;
}

.mall-link-text {
  color: #2666ff;
  text-decoration: none;
}

.mall-link-text:hover {
  text-decoration: underline;
}


/* 结果区域样式 */
.result-section {
  padding: 88px 20px 20px 20px;
  height: 100%;
  position: relative;
}

.result-content {
  max-width: 260px;
  margin: 0 auto;
}

.result-success,
.result-warning,
.result-error {
  text-align: center;
  padding: 20px;
}

.result-icon {
  width: 100%;
  height: 90px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-title {
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  color: #181818;
  margin: 24px 0 4px;
}

.result-desc {
  font-size: 12px;
  line-height: 20px;
  color: #666666;
  margin: 0;
}

.result-desc > div {
  font-size: 12px;
  line-height: 20px;
  color: #666666;
  margin: 0;
}

/* 英文版 EXCEED_QUERY_LIMIT 第三行特殊样式 */
.result-desc .result-desc-warning-note {
  font-size: 12px;
  line-height: 18px;
  color: #999999;
}

.result-desc-wrapper {
  margin-bottom: 16px;
  text-align: center;
}

.result-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
}

.result-footer .mall-link {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  text-align: center;
}

/* 扫码弹窗样式（全屏） */
.scan-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 10000;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* 动态视口高度，适配 iOS Safari */
  height: -webkit-fill-available; /* iOS Safari 全屏支持 */
  overflow: hidden;
}

/* 头部（absolute 定位在顶部） */
.scan-modal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #FFF;
}

.scan-modal-back {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.scan-modal-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #181818;
  margin: 0;
}

/* 底部功能按钮（absolute 定位，中下侧居中） */
.scan-modal-footer {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 0;
  background: transparent;
}

.scan-modal-action-btn {
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.9;
  transition: opacity 0.3s;
  overflow: hidden;
  position: relative;
}

.scan-modal-action-btn:hover {
  opacity: 1;
}

.scan-modal-action-btn.active {
  opacity: 1;
}

.scan-modal-action-btn svg {
  width: 30px;
  height: 30px;
}

/* 扫码区域（全屏） */
.qr-reader-fullscreen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  width: 100vw;
  height: 100%;
  height: 100vh;
  height: 100dvh; /* 动态视口高度，适配 iOS Safari */
  height: -webkit-fill-available; /* iOS Safari 全屏支持 */
  overflow: hidden;
}

/* html5-qrcode 视频流容器样式（确保在 iOS 上全屏） */
.qr-reader-fullscreen video,
.qr-reader-fullscreen canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover; /* 确保视频流填满容器 */
}

/* html5-qrcode 根容器样式 */
#qr-reader {
  width: 100% !important;
  height: 100% !important;
}

/* 扫描特效动画容器 */
.scan-effect-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  pointer-events: none;
  z-index: 10002;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 扫描特效图片 */
.scan-effect-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  position: absolute;
  left: 50%;
  top: 0;
  overflow: hidden;
  transform: translateX(-50%) translateY(-100%);
  animation: scanMove 4s ease-out infinite;
  will-change: transform;
  z-index: 9999;
}

/* 扫描动画：从上方移动到下方，到最底下重新从头开始 */
@keyframes scanMove {
  0% {
    transform: translateX(-50%) translateY(-100%);
  }
  100% {
    transform: translateX(-50%) translateY(50vh);
  }
}

/* 扫码弹窗过渡动画 */
.scan-modal-enter-active,
.scan-modal-leave-active {
  transition: opacity 0.3s;
}

.scan-modal-enter,
.scan-modal-leave-to {
  opacity: 0;
}