/* 常规样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", sans-serif;
}

body {
  background: linear-gradient(to bottom, #FDE3EE 0%, #FFE9F1 80%);
  min-height: 100vh;
  color: #666;
}

.container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* 禁止iOS输入框放大：至少16px */
input[type="text"],
input[type="tel"],
input[type="number"],
textarea {
  font-size: 16px;
}

/* 隐藏 */
.hidden {
  display: none !important;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

/* 封面相关 */
.cover-card {
  position: relative;
}
.cover-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.cover-btn {
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.button-image {
  width: 150%;
  height: auto;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* 小屏适配封面按钮 */
@media (max-width: 420px) {
  .button-image {
    width: 200px;
  }
}

/* 标题 */
.title {
  font-size: 20px;
  color: #FF6699;
  margin-bottom: 10px;
  font-weight: bold;
  text-align: center;
}
.subtitle {
  font-size: 16px;
  color: #333;
  margin-bottom: 16px;
  text-align: center;
}

/* 按钮 */
.btn, .btn-confirm, .btn-confirm1, .btn-confirm2 {
  background: #FF8BAC;
  color: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 4px;
}
.btn {
  padding: 10px 50px;
  font-size: 14px;
}
.btn-confirm,
.btn-confirm1,
.btn-confirm2 {
  padding: 12px 24px;
  font-size: 16px;
  width: 100%;
}
.btn-confirm2 {
  background: #4652f3; /* 修改为蓝色 */
}
.btn:hover,
.btn-confirm:hover,
.btn-confirm1:hover,
.btn-confirm2:hover {
  opacity: 0.9;
}

/* flex 行 */
.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

/* 选项 */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.option-btn {
  width: 100%;
  text-align: center;
  background: #fff;
  color: #FF6699;
  border: 1px solid #FF6699;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  font-weight: bold;
}
.option-btn:hover {
  background: #FF6699;
  color: #fff;
}
.option-btn.selected {
  background: #FF6699;
  color: #fff;
  border-color: #FF6699;
}

/* 支付方式按钮 */
.option-btn1 {
  width: 100%;
  text-align: left;
  background: #fff;
  color: #FF6699;
  border: 1px solid #FF6699;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}
.option-btn1:hover {
  background: #FF6699;
  color: #fff;
}
.option-btn1.selected {
  background: #FF6699;
  color: #fff;
  border-color: #FF6699;
}

/* 支付方式 */
.pay-options {
  width: 100%;
  text-align: left !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.pay-method-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
}
.pay-checked {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  pointer-events: none;
}

/* 输入框 */
label {
  font-size: 14px;
  color: #666;
  display: block;
  margin: 6px 0;
}
input[type="text"],
input[type="tel"] {
  width: 100%;
  height: 38px;
  line-height: 38px;
  padding: 0 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  margin-bottom: 10px;
}
input[type="duanxin"] {
  width: 100%;
  height: 38px;
  line-height: 38px;
  padding: 0 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  margin-bottom: 10px;
}
/* 问题Banner */
.step-banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.banner-image {
  width: 110%;
  border-radius: 8px;
  max-height: 150px;
  object-fit: cover;
}
.overlay {
  position: absolute;
  top: 40px;
  left: 25%;
  transform: translateX(-50%);
  width: 100%;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  text-align: center;
}
.step-indicator {
  font-size: 14px;
  color: #F00;
  margin-bottom: 4px;
}
.question-title {
  font-size: 16px;
  color: #000;
  font-weight: bold;
  text-align: center;
}

/* 倒计时 */
.discount-countdown {
  text-align: center;
  font-size: 14px;
  color: #c00;
  margin-bottom: 10px;
}
#countdown-timer {
  font-weight: bold;
  color: #f00;
}

/* 验证码单个输入框 */
.verify-input-wrap-single {
  margin-bottom: 16px;
}

/* 给验证码输入框额外的视觉加大，便于看得更清晰 */
.vcode-input {
  flex: 1;
  font-size: 18px; 
  border: 2px solid #FF6699;
  border-radius: 6px;
  padding: 8px;
  outline: none;
}

/* 验证码错误提示 */
.code-error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

/* 重新获取验证码 */
.resend-wrap {
  text-align: center;
  margin: 12px 0;
}
.btn-resend {
  background: #fff;
  color: #FF6699;
  border: 1px solid #FF6699;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
  margin-bottom: 10px;
}
.btn-resend:hover:not(:disabled) {
  background: #FF6699;
  color: #fff;
}
.btn-resend:disabled {
  cursor: not-allowed;
  opacity: 1;
}

/* 底部悬浮（信息页/验证码页） */
.bottom-fixed,
.bottom-fixed1 {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 10px;
  text-align: center;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

/* 返回按钮（如果需要的话） */
.back-button {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: inherit;
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px 10px;
  border-radius: 4px;
}
.back-icon {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}
.back-text {
  font-size: 16px;
  color: #333;
}

/* 产品卡片示例 */
.unique-container {
  width: 100%;
  max-width: 400px;
  padding: 1px;
  box-sizing: border-box;
}
.unique-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.unique-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.unique-image {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.unique-title-section {
  flex-grow: 1;
  margin-left: 12px;
}
.unique-title {
  font-size: 18px;
  font-weight: bold;
  color: #d81b60;
  margin: 0 0 4px;
}
.unique-subtitle {
  font-size: 14px;
  color: #757575;
  margin: 0;
}
.unique-price {
  font-size: 18px;
  font-weight: bold;
  color: #d81b60;
  white-space: nowrap;
}
.unique-details {
  background-color: #fff;
  padding: 12px;
  border-radius: 8px;
}
.unique-details-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}
.unique-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.unique-details-list li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}
.unique-details-list li span {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #f8bbd0;
  color: #fff;
  text-align: center;
  line-height: 28px;
  font-weight: bold;
  margin-right: 8px;
  font-family: "Arial", sans-serif;
}

/* 提示信息框 */
.msg-box {
  position: fixed;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  min-width: 200px;
  max-width: 80%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 9999;
  text-align: center;
}
.msg-close-btn {
  position: absolute;
  top: 4px;
  right: 8px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
}

/* 响应式整体调整 */
@media (max-width: 420px) {
  .container {
    padding: 16px 12px;
  }
  .card {
    padding: 16px;
  }
  .btn {
    padding: 15px 50px;
    font-size: 13px;
  }
  .btn-confirm,
  .btn-confirm1,
  .btn-confirm2 {
    padding: 10px 20px;
    font-size: 14px;
  }
}
input:focus {
  border-color: #FF6699;
  box-shadow: 0 0 5px rgba(255,102,153,0.5);
}

.form-title {
  font-size: 18px;
  color: #333;
  text-align: center;
  margin-bottom: 12px;
}

.pay-label {
  font-size: 15px;
  color: #333;
  font-weight: bold;
  margin: 12px 0 8px;
}

.error-text {
  color: red;
  font-size: 14px;
  margin-top: 6px;
  text-align: center;
}

.btn-resend, .btn-confirm2 {
  min-height: 44px;
}
.verify-input-wrap-single {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vcode-input {
  flex: 1;
}

.btn-resend {
  white-space: nowrap;
  flex-shrink: 0;
}
.pay-method-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
  background: #fff; /* 背景色隔离 */
  border-radius: 4px; /* 圆角美化 */
  padding: 2px; /* 微调间距 */
  box-sizing: content-box; /* 确保padding不影响尺寸 */
}
.payment-guarantee {
  font-size: 13px;
  color: #28a745;
  margin-top: 12px;
  text-align: center;
  background: #eafaf1;
  padding: 8px;
  border-radius: 6px;
}
.user-reviews {
  margin-top: 16px;
  padding: 10px;
  background: #FFF8E7;
  border-radius: 6px;
  font-size: 14px;
}
.reviews-title {
  color: #FF7E00;
  text-align: center;
  margin-bottom: 8px;
}
.review-item {
  padding: 6px 0;
  border-bottom: 1px dashed #FFD28C;
  color:#333;
}
.review-user {
  color: #FF7E00;
  font-weight: bold;
}
.expert-section {
  margin-top: 16px;
  padding: 12px;
  background: #F0F8FF;
  border-radius: 8px;
  overflow: hidden;
}

.expert-title {
  text-align: center;
  color: #333;
  margin-bottom: 10px;
}

.expert-scroll-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.expert-card {
  min-width: 140px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  scroll-snap-align: center;
}

.expert-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.expert-info {
  font-size: 13px;
  color: #333;
  text-align: center;
}

/* 隐藏滚动条（优化美观） */
.expert-scroll-container::-webkit-scrollbar {
  display: none;
}
.expert-scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
