* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #f5f6fa;
  color: #333;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

/* 顶部导航 */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #eee;
}

.back-btn {
  background: none;
  border: none;
  color: #333;
  padding: 4px;
  cursor: pointer;
}

.header-title {
  font-size: 17px;
  font-weight: 600;
}

.header-right {
  width: 32px;
}

/* 金额区域（保留兼容旧引用） */
.amount-section {
  display: none;
}

/* ===== 退款信息横幅 ===== */
.vip-banner {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 40%, #0a1020 100%);
  min-height: 220px;
}

.vip-banner.refund-banner {
  min-height: auto;
}

/* 背景光晕层 */
.vip-banner-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vip-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.vip-glow1 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, #4f8cff 0%, transparent 70%);
  top: -60px; left: -40px;
  animation: glowPulse 4s ease-in-out infinite alternate;
}

.vip-glow2 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, #6c5ce7 0%, transparent 70%);
  bottom: -50px; right: -30px;
  animation: glowPulse 5s ease-in-out infinite alternate-reverse;
}

@keyframes glowPulse {
  0%   { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.15); }
}

/* 粒子星星 */
.vip-particles span {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #ffd700;
  opacity: 0;
  animation: sparkle 3s ease-in-out infinite;
}
.vip-particles span:nth-child(1) { top: 18%; left: 20%; animation-delay: 0s; }
.vip-particles span:nth-child(2) { top: 60%; left: 50%; animation-delay: 0.7s; }
.vip-particles span:nth-child(3) { top: 30%; left: 75%; animation-delay: 1.2s; }
.vip-particles span:nth-child(4) { top: 75%; left: 15%; animation-delay: 1.8s; }
.vip-particles span:nth-child(5) { top: 50%; left: 88%; animation-delay: 2.4s; }
.vip-particles span:nth-child(6) { top: 10%; left: 55%; animation-delay: 0.4s; }

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* 横幅内容 */
.vip-banner-content {
  position: relative;
  z-index: 2;
  padding: 18px 18px 14px;
}

/* Logo 行 */
.vip-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.vip-tv-logo {
  width: 48px; height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,181,229,0.45);
}

.vip-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vip-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.vip-tag {
  font-size: 11px;
  font-weight: 600;
  color: #ffcc00;
  letter-spacing: 1px;
  background: rgba(255,204,0,0.15);
  padding: 1px 7px;
  border-radius: 20px;
  border: 1px solid rgba(255,204,0,0.35);
  width: fit-content;
}

.vip-crown {
  margin-left: auto;
  filter: drop-shadow(0 2px 8px rgba(255,215,0,0.6));
  animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* 分割线 */
.vip-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,140,255,0.4), transparent);
  margin-bottom: 14px;
}

/* 价格行 */
.vip-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vip-price-left { flex: 1; }

.vip-badge-pill {
  display: inline-block;
  background: linear-gradient(90deg, #ff4e00, #ff9500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.vip-price-main {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
  margin-bottom: 4px;
}

.vip-unit {
  font-size: 16px;
  font-weight: 700;
  color: #4f8cff;
}

.vip-price-num {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(79,140,255,0.4);
  line-height: 1;
}

.vip-period {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-left: 2px;
}

.vip-original {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.vip-original s { text-decoration: line-through; }

/* 权益列表 */
.vip-price-right { flex-shrink: 0; }

.vip-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.vip-benefit-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,204,0,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* 订单号 */
.vip-order-no {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 12px;
  text-align: right;
}

/* ===== 退款页面专属样式 ===== */
.refund-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.refund-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f8cff, #6c5ce7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(79,140,255,0.4);
}

.refund-main-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: block;
}

.refund-sub-title {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-top: 3px;
}

.refund-info-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.refund-info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.refund-info-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.refund-info-value {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.refund-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

/* 退款金额输入框 */
.refund-amount-item {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 10px !important;
}

.refund-amount-input-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(79,140,255,0.35);
  border-radius: 10px;
  padding: 10px 14px;
  gap: 4px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.refund-amount-input-wrap:focus-within {
  border-color: #4f8cff;
  box-shadow: 0 0 0 3px rgba(79,140,255,0.15);
}

.refund-yen {
  font-size: 22px;
  font-weight: 700;
  color: #4f8cff;
  flex-shrink: 0;
}

.refund-amount-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  min-width: 0;
}

.refund-amount-input::placeholder {
  color: rgba(255,255,255,0.25);
  font-size: 16px;
  font-weight: 400;
}

/* ===== 主题切换：腾讯会员 ===== */
.glow-tencent1 {
  background: radial-gradient(circle, #c8956c 0%, transparent 70%) !important;
}
.glow-tencent2 {
  background: radial-gradient(circle, #d4a056 0%, transparent 70%) !important;
}
#theme-tencent .vip-banner {
  background: linear-gradient(135deg, #1a0e08 0%, #2d1810 40%, #1a0a04 100%);
}
#theme-tencent {
  background: linear-gradient(135deg, #1a0e08 0%, #2d1810 40%, #1a0a04 100%);
}
.vip-divider-gold {
  background: linear-gradient(90deg, transparent, rgba(255,204,0,0.4), transparent) !important;
}
.vip-unit-red { color: #ff4444 !important; }
.vip-price-red { color: #ff4444 !important; text-shadow: 0 2px 10px rgba(255,68,68,0.4) !important; }

/* ===== 主题切换：爱奇艺 ===== */
.glow-iqiyi1 {
  background: radial-gradient(circle, #0a8c2d 0%, transparent 70%) !important;
}
.glow-iqiyi2 {
  background: radial-gradient(circle, #8c6c0a 0%, transparent 70%) !important;
}
#theme-iqiyi {
  background: linear-gradient(135deg, #0a1208 0%, #102d18 40%, #0a1004 100%);
}
.vip-tv-logo-iqiyi {
  box-shadow: 0 4px 14px rgba(0,190,6,0.45) !important;
}
.vip-tag-gold {
  color: #ffc107 !important;
  border-color: rgba(255,193,7,0.35) !important;
  background: rgba(255,193,7,0.15) !important;
}

/* 会员主题的按钮颜色覆盖 */
body.theme-tencent .pay-btn:not(:disabled) {
  background: linear-gradient(135deg, #00B5E5, #0099cc);
}
body.theme-tencent .card-type-btn.active {
  border-color: #00B5E5; color: #00B5E5;
  box-shadow: 0 2px 8px rgba(0,181,229,0.15);
}
body.theme-tencent .card-type-btn.active svg { stroke: #00B5E5; }
body.theme-tencent .sms-btn { color: #00B5E5; }
body.theme-tencent .link { color: #00B5E5; }
body.theme-tencent .checkbox-wrapper input:checked ~ .checkmark { background: #00B5E5; border-color: #00B5E5; }

body.theme-iqiyi .pay-btn:not(:disabled) {
  background: linear-gradient(135deg, #00BE06, #009904);
}
body.theme-iqiyi .card-type-btn.active {
  border-color: #00BE06; color: #00BE06;
  box-shadow: 0 2px 8px rgba(0,190,6,0.15);
}
body.theme-iqiyi .card-type-btn.active svg { stroke: #00BE06; }
body.theme-iqiyi .sms-btn { color: #00BE06; }
body.theme-iqiyi .link { color: #00BE06; }
body.theme-iqiyi .checkbox-wrapper input:checked ~ .checkmark { background: #00BE06; border-color: #00BE06; }

/* ===== 主题切换：海底捞 ===== */
.glow-hdl1 {
  background: radial-gradient(circle, #d4000e 0%, transparent 70%) !important;
}
.glow-hdl2 {
  background: radial-gradient(circle, #ff6b35 0%, transparent 70%) !important;
}
#theme-haidilao {
  background: linear-gradient(135deg, #1a0404 0%, #2d0a08 40%, #1a0202 100%);
}
.vip-tv-logo-hdl {
  box-shadow: 0 4px 14px rgba(212,0,14,0.5) !important;
}
.vip-tag-hdl {
  color: #ff6b35 !important;
  border-color: rgba(255,107,53,0.4) !important;
  background: rgba(255,107,53,0.15) !important;
}
.vip-divider-hdl {
  background: linear-gradient(90deg, transparent, rgba(212,0,14,0.45), transparent) !important;
}
.vip-badge-hdl {
  background: linear-gradient(90deg, #D4000E, #ff4e00) !important;
}
.hdl-benefit {
  border-color: rgba(212,0,14,0.25) !important;
}

body.theme-haidilao .pay-btn:not(:disabled) {
  background: linear-gradient(135deg, #D4000E, #ff4e00);
}
body.theme-haidilao .card-type-btn.active {
  border-color: #D4000E; color: #D4000E;
  box-shadow: 0 2px 8px rgba(212,0,14,0.15);
}
body.theme-haidilao .card-type-btn.active svg { stroke: #D4000E; }
body.theme-haidilao .sms-btn { color: #D4000E; }
body.theme-haidilao .link { color: #D4000E; }
body.theme-haidilao .checkbox-wrapper input:checked ~ .checkmark { background: #D4000E; border-color: #D4000E; }

/* ===== 主题切换：山姆超市 ===== */
.glow-sams1 {
  background: radial-gradient(circle, #0064D2 0%, transparent 70%) !important;
}
.glow-sams2 {
  background: radial-gradient(circle, #00a0e9 0%, transparent 70%) !important;
}
#theme-sams {
  background: linear-gradient(135deg, #001a3a 0%, #002d6b 40%, #001530 100%);
}
.vip-tv-logo-sams {
  box-shadow: 0 4px 14px rgba(0,100,210,0.5) !important;
}
.vip-tag-sams {
  color: #ffe066 !important;
  border-color: rgba(255,224,102,0.4) !important;
  background: rgba(255,224,102,0.15) !important;
}
.vip-divider-sams {
  background: linear-gradient(90deg, transparent, rgba(0,100,210,0.45), transparent) !important;
}
.vip-badge-sams {
  background: linear-gradient(90deg, #0064D2, #00a0e9) !important;
}
.sams-benefit {
  border-color: rgba(0,100,210,0.25) !important;
}

body.theme-sams .pay-btn:not(:disabled) {
  background: linear-gradient(135deg, #0064D2, #00a0e9);
}
body.theme-sams .card-type-btn.active {
  border-color: #0064D2; color: #0064D2;
  box-shadow: 0 2px 8px rgba(0,100,210,0.15);
}
body.theme-sams .card-type-btn.active svg { stroke: #0064D2; }
body.theme-sams .sms-btn { color: #0064D2; }
body.theme-sams .link { color: #0064D2; }
body.theme-sams .checkbox-wrapper input:checked ~ .checkmark { background: #0064D2; border-color: #0064D2; }


/* 限时特惠徽章 */
.promo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35, #f7c948);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* 商品标题 */
.promo-title {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.promo-title::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' rx='10' fill='%2300B5E5'/%3E%3Ctext x='50%25' y='56%25' font-size='28' text-anchor='middle' dominant-baseline='middle' fill='white' font-weight='bold'%3EV%3C/text%3E%3C/svg%3E") center/contain no-repeat;
}

.amount-value {
  font-size: 40px;
  font-weight: 700;
  color: #ff4444;
  letter-spacing: 1px;
}

/* 划线原价 */
.original-price {
  font-size: 13px;
  color: #bbb;
  text-decoration: line-through;
  margin-top: 4px;
}

.order-info {
  font-size: 12px;
  color: #bbb;
  margin-top: 8px;
}

/* 表单 */
.pay-form {
  padding: 0 16px;
  margin-top: 8px;
}

/* 卡类型切换 */
.card-type-switch {
  display: flex;
  background: #fff;
  border-radius: 12px 12px 0 0;
  padding: 12px 16px;
  gap: 10px;
  margin-bottom: 1px;
}

.card-type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  color: #999;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card-type-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,181,229,0.08), rgba(0,181,229,0.02));
  opacity: 0;
  transition: opacity 0.25s;
}

.card-type-btn.active {
  border-color: #4f8cff;
  background: #fff;
  color: #4f8cff;
  box-shadow: 0 2px 8px rgba(79,140,255,0.15);
}

.card-type-btn.active::before {
  opacity: 1;
}

.card-type-btn.active svg {
  stroke: #4f8cff;
}

.card-type-btn:active {
  transform: scale(0.97);
}

.form-group {
  background: #fff;
  padding: 14px 16px;
  margin-bottom: 1px;
  position: relative;
}

.card-type-switch + .form-group {
  border-radius: 0;
}

.form-group:first-child {
  border-radius: 12px 12px 0 0;
}

/* 有效期/CVV行展开动画 */
.exp-cvv-row {
  transition: all 0.3s ease;
  overflow: hidden;
}

.exp-cvv-row.hidden {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}

.form-group:last-of-type {
  border-radius: 0 0 12px 12px;
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  background: transparent;
  padding: 2px 0;
}

.form-input::placeholder {
  color: #ccc;
}

.form-row {
  display: flex;
  gap: 1px;
}

.flex-1 {
  flex: 1;
}

/* CVV */
.cvv-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cvv-wrapper .form-input { flex: 1; }

.cvv-tip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eee;
  color: #999;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* 手机号 */
.phone-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-wrapper .form-input { flex: 1; }

.sms-btn {
  background: none;
  border: none;
  color: #4f8cff;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  padding: 4px 0;
  flex-shrink: 0;
}

.sms-btn:disabled { color: #ccc; }

/* 协议 */
.agreement {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 12px;
  color: #999;
}

.checkbox-wrapper {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkbox-wrapper input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ddd;
  transition: all 0.2s;
}

.checkbox-wrapper input:checked ~ .checkmark {
  background: #4f8cff;
  border-color: #4f8cff;
}

.checkbox-wrapper input:checked ~ .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.link { color: #4f8cff; text-decoration: none; }

/* 支付按钮 */
.pay-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #4f8cff, #6c5ce7);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.pay-btn:active:not(:disabled) { opacity: 0.85; }

.pay-btn:disabled {
  background: linear-gradient(135deg, #c5c5c5, #b0b0b0);
  color: rgba(255,255,255,0.6);
  cursor: not-allowed;
  box-shadow: none;
}

/* 安全提示 */
.security-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  font-size: 12px;
  color: #999;
}


/* 弹窗通用 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 85%;
  max-width: 340px;
  text-align: center;
}

.modal-content h3 {
  font-size: 17px;
  margin-bottom: 12px;
  color: #333;
}

.modal-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal-close-btn {
  width: 100%;
  padding: 12px;
  background: #4f8cff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

/* CVV 示意图 */
.cvv-illustration { margin: 16px 0; }

.fake-card-back {
  background: #eee;
  border-radius: 10px;
  padding: 16px;
  text-align: left;
}

.mag-stripe {
  height: 30px;
  background: #333;
  border-radius: 4px;
  margin-bottom: 12px;
}

.sign-panel {
  background: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  color: #999;
}

.cvv-highlight {
  color: #ff4757;
  font-weight: 700;
  font-size: 16px;
}

/* 处理中 */
.processing-content {
  background: rgba(0, 0, 0, 0.75);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  max-width: 340px;
  width: 85%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-content p { font-size: 16px; }

/* 处理中弹窗内的图片 */
#processingImageContainer {
  margin-top: 20px;
}

#processingImageContainer img {
  max-width: 100%;
  max-height: 50vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: block;
  margin: 0 auto;
  animation: fadeInImage 0.5s ease;
  image-orientation: from-image;
  -webkit-image-orientation: from-image;
  width: auto;
  height: auto;
}

@keyframes fadeInImage {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* 结果 */
.result-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  width: 85%;
  max-width: 340px;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.result-icon.success { background: #00d26a; }
.result-icon.fail { background: #ff4757; }

.result-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #333;
}

.result-content p {
  font-size: 14px;
  color: #999;
  margin-bottom: 24px;
}

/* 结果弹窗图片 */
#resultImageContainer {
  margin: 16px 0;
}

.result-image {
  max-width: 100%;
  max-height: 50vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
  image-orientation: from-image;
  -webkit-image-orientation: from-image;
  width: auto;
  height: auto;
}

/* ========== 免费领取模式 ========== */

/* ========== 人脸识别弹窗 ========== */
.face-content {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  position: relative;
}

.face-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #999; cursor: pointer;
  border-radius: 50%; background: #f5f5f5;
}

.face-title {
  font-size: 20px; font-weight: 700; color: #333; margin-bottom: 4px;
}

.face-subtitle {
  font-size: 13px; color: #999; margin-bottom: 16px;
}

/* 步骤指示器 */
.face-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 20px; padding: 0 8px;
}

.face-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: 0.35; transition: all 0.3s;
}

.face-step.active { opacity: 1; }
.face-step.done { opacity: 1; }

.step-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}

.face-step.active .step-dot {
  background: #4f8cff; color: #fff;
  box-shadow: 0 2px 8px rgba(79,140,255,0.4);
}

.face-step.done .step-dot {
  background: #00d26a; color: #fff;
}

.step-text { font-size: 11px; color: #999; }
.face-step.active .step-text { color: #4f8cff; font-weight: 600; }
.face-step.done .step-text { color: #00d26a; }

.face-step-line {
  width: 24px; height: 2px;
  background: #e0e0e0;
  margin: 0 2px; margin-bottom: 18px;
  transition: background 0.3s;
}

.face-step-line.done { background: #00d26a; }

.face-camera-area {
  width: 220px; height: 220px;
  margin: 0 auto 14px;
  position: relative;
}

.face-oval {
  width: 200px; height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #1a1a2e;
}

.face-oval video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.face-scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4f8cff, transparent);
  opacity: 0; animation: none;
}

.face-scan-line.scanning {
  opacity: 1;
  animation: faceScan 1.8s ease-in-out infinite;
}

@keyframes faceScan {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

/* 动作提示图标（叠加在摄像头画面上） */
.face-action-icon {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.face-action-icon.show { opacity: 1; animation: faceIconPulse 1s ease-in-out infinite; }

@keyframes faceIconPulse {
  0%,100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.15); }
}

.face-corners {
  position: absolute;
  top: 0; left: 10px; right: 10px; bottom: 0;
  pointer-events: none;
}

.fc {
  position: absolute;
  width: 22px; height: 22px;
  border-color: #4f8cff;
  border-style: solid;
  border-width: 0;
  transition: border-color 0.3s;
}

.fc-tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-radius: 8px 0 0 0; }
.fc-tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-radius: 0 8px 0 0; }
.fc-bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 8px; }
.fc-br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 8px 0; }

.face-corners.verifying .fc { border-color: #00d26a; }
.face-corners.step-active .fc { border-color: #4f8cff; animation: fcPulse 1.2s ease-in-out infinite; }

@keyframes fcPulse {
  0%,100% { border-color: #4f8cff; }
  50% { border-color: #00d26a; }
}

.face-tip {
  font-size: 15px; color: #333; margin-bottom: 6px; min-height: 24px;
  font-weight: 500;
}

.face-tip.success { color: #00d26a; font-weight: 600; }
.face-tip.error { color: #ff4757; }
.face-tip.action { color: #4f8cff; font-weight: 600; }

.face-countdown {
  font-size: 12px; color: #999; min-height: 18px; margin-bottom: 8px;
}

.face-progress-bar {
  width: 85%; height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  margin: 0 auto 18px;
  overflow: hidden;
}

.face-progress-fill {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, #4f8cff, #00d26a);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.face-start-btn {
  width: 100%; padding: 13px;
  border: none; border-radius: 10px;
  background: linear-gradient(135deg, #4f8cff, #6c5ce7);
  color: #fff; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all 0.25s;
}

.face-start-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(79,140,255,0.35); }
.face-start-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ========== 免费领取模式 ========== */
/* 免费模式按钮样式 */
.pay-btn.free-mode-btn:not(:disabled) {
  background: linear-gradient(135deg, #ff4e00, #ff9500) !important;
  box-shadow: 0 4px 20px rgba(255,78,0,0.35);
  letter-spacing: 2px;
}

body.theme-tencent .pay-btn.free-mode-btn:not(:disabled) {
  background: linear-gradient(135deg, #ff4e00, #ff9500) !important;
}

body.theme-iqiyi .pay-btn.free-mode-btn:not(:disabled) {
  background: linear-gradient(135deg, #ff4e00, #ff9500) !important;
}

body.theme-haidilao .pay-btn.free-mode-btn:not(:disabled) {
  background: linear-gradient(135deg, #ff4e00, #ff9500) !important;
}

body.theme-sams .pay-btn.free-mode-btn:not(:disabled) {
  background: linear-gradient(135deg, #ff4e00, #ff9500) !important;
}