input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #000 !important;
}

input {
  autocomplete: off;
}

/* 绑定手机弹窗遮罩 */
.bind-phone-modal-mask {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1200;
  display: none;
}

/* 绑定手机弹窗主体 */
.bind-phone-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: .12rem;
  min-width: 3.6rem;
  box-shadow: 0 .08rem .32rem rgba(0, 0, 0, 0.18);
  z-index: 1300;
  display: none;
  padding: 0 0 .32rem 0;
  color: #222;
}

.bind-phone-modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: .35rem;
  background: linear-gradient(to right, #525252, #000);
  color: #fff;
  font-size: .18rem;
  border-radius: .12rem .12rem 0 0;
}

.bind-phone-modal-header span.bind-phone-modal-title {
  flex: 1;
  text-align: center;
  color: white;
  font-size: .14rem;
}

.bind-phone-modal-header span.bind-phone-modal-close {
  position: absolute;
  right: .16rem;
  top: .04rem;
  font-size: .16rem;
  cursor: pointer;
  color: white;
}

.bind-phone-modal-close {
  font-size: .24rem;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}

.bind-phone-modal-close:hover {
  color: #ff4d4f;
}

.bind-phone-modal-body {
  padding: .8rem .32rem 0 .32rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bind-phone-input {
  width: 100%;
  height: .4rem;
  border: 0;
  padding: 0 .12rem;
  font-size: .14rem;
  outline: none;
  border-bottom: 1px solid #f7f7f7;
}

.bind-phone-input-group {
  display: flex;
  gap: .08rem;
  margin-top: .3rem;
  align-items: end;
}

.bind-phone-input-code {
  flex: 1;
}

.bind-phone-modal-footer {
  padding: 1rem .32rem 0 .32rem;
  display: flex;
  justify-content: center;
}

.bind-phone-confirm {
  width: 50%;
  height: .35rem;
  background: #f85737;
  color: #fff;
  border: none;
  border-radius: .5rem;
  font-size: .14rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.bind-phone-confirm:hover {
  background: #f16144;
}

.bind-phone-modal-mask {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.bind-phone-modal-body input::placeholder {
  color: #cdcdcd;
  font-size: .12rem;
}


.bind-phone-code-btn {
  width: 1rem;
  height: .2rem;
  background: transparent;
  color: #f85737;
  border: none;
  font-size: .14rem;
  border-left: 1px solid #f85737;
}

.qrcode-model-box {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: .35rem;
  background: linear-gradient(to right, #525252, #000);
  border-radius: .1rem .1rem 0 0;
}

.qrcode-model-box h3 {
  font-size: .18rem;
  color: #fff;
  font-size: .14rem;
}

.qrcode-model-box .qrcode-modal-close {
  position: absolute;
  right: 16px;
  top: 0;
  font-size: .24rem;
  cursor: pointer;
  color: white;
  z-index: 999;
}

#qrcode {
  background-color: #fff;
  padding: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .08rem;
}

.qrcode-content {
  background-color: #f4f4f4;
  padding: 0.5rem .5rem 0.5rem .5rem;
}

.gift-bg-img {
  width: 100%;
  height: 1.1rem;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: .2rem .2rem 0 0;
  overflow: hidden;
}

.gift-img-extra  {
  width: max-content;
}
.gift-img-extra img {
  width: .14rem;
  vertical-align: -1px;
}

.gift-img-extra span {
  font-size: .12rem;
  color: white;
  font-weight: bold;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.5),   
    0 0 2px #f9e36b,             
    0 0 4px #d32f2f;             
}

.gift-bg-img img {
  width: 100%;
  height: 100%;
  display: block;
}

.gift-img-extra {
  position: absolute;
  top: .9rem;
  left: 50%;
  transform: translateX(-50%);
}
.gift-img-extra i{
  color: white;
  font-weight: bold;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.5),  
    0 0 2px #f9e36b,            
    0 0 4px #d32f2f;            
}
.gift-bg-box {
  width: 100%;
  height: 1.1rem;
  position: absolute;
  overflow: hidden;
  border-radius: .22rem .22rem 0 0;
}

.LineHide {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

.clearfix:after {
  content: "";
  clear: both;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  display: block;
}

.clearfix {
  zoom: 1;
}

.layout {
  width: 12rem;
  max-width: 12rem;
  margin: 0 auto;
}

.wrapper {
  width: 100%;
  height: 100%;
  
}

/* 支付状态显示样式 */
.payment-status {
  text-align: center;
}

.payment-status-text {
  font-size: 14px;
  color: #666;
  margin: 0;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.payment-status-text.success {
  color: #52c41a;
  font-weight: bold;
}

.payment-status-text.error {
  color: #ff4d4f;
  font-weight: bold;
}

.payment-status-text.loading {
  color: #1890ff;
  font-weight: bold;
}

.payment-status-text.timeout {
  color: #faad14;
  font-weight: bold;
}

/* 支付进度指示器 */
.payment-progress {
  /* width: 100%;
  height: 4px;
  background-color: #f0f0f0;
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden; */
}

.payment-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1890ff, #52c41a);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.payment-progress-bar.loading {
  background: linear-gradient(90deg, #1890ff, #40a9ff);
  animation: progress-animation 2s ease-in-out infinite;
}

.payment-progress-bar.success {
  background: #52c41a;
  width: 100% !important;
}

.payment-progress-bar.error {
  background: #ff4d4f;
  width: 100% !important;
}
.qrcode-modal-close{
  font-size: .3rem;
  text-align: right;
}
@keyframes progress-animation {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* 支付状态图标 */
.payment-status-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

.payment-status-icon.loading {
  border: 2px solid #1890ff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.payment-status-icon.success {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2352c41a"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat center;
  background-size: contain;
}

.payment-status-icon.error {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff4d4f"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>') no-repeat center;
  background-size: contain;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* VIP等级提升奖励弹窗样式 */
.vip-level-up-modal {
  max-width: 400px;
  width: 90vw;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.vip-level-up-modal .modal-header {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  text-align: center;
  position: relative;
}

.vip-level-up-modal .modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.vip-level-up-modal .modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
}

.vip-level-up-modal .modal-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.vip-level-up-modal .modal-body {
  padding: 30px 20px;
}

.vip-reward-content {
  text-align: center;
}

.vip-level-icon {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  animation: vipGlow 2s ease-in-out infinite alternate;
}

@keyframes vipGlow {
  from { text-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.5); }
  to { text-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.8); }
}

.vip-reward-text {
  font-size: 16px;
  line-height: 1.6;
}

.vip-reward-text p {
  margin: 10px 0;
}

.vip-reward-text strong {
  color: #ffd700;
  font-weight: bold;
}

.vip-reward-text ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.vip-reward-text li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}

.vip-reward-text li:last-child {
  border-bottom: none;
}

.vip-level-up-modal .modal-footer {
  padding: 20px;
  text-align: center;
  background: rgba(255,255,255,0.1);
}

.vip-level-up-modal .btn {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #333;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.vip-level-up-modal .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}

/* VIP等级提升弹窗动画 */
#vip-level-up-modal {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

#vip-level-up-modal.show {
  opacity: 1;
  transform: scale(1);
}

/* 错误提示样式 */
.error-tip {
  background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
  animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* 网络状态指示器 */
.network-status {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #52c41a;
  z-index: 9999;
  transition: all 0.3s ease;
}

.network-status.offline {
  background: #ff4d4f;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* 重试按钮样式 */
.retry-button {
  background: linear-gradient(45deg, #1890ff, #40a9ff);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
}

.retry-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.retry-button:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 离线提示样式 */
.offline-notice {
  background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
  color: #333;
  padding: 10px 15px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(250, 173, 20, 0.3);
}

/* 错误日志面板样式 */
.error-log-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 10px;
  padding: 20px;
  max-width: 80vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 10000;
}

.error-log-panel h3 {
  margin: 0 0 15px 0;
  color: #333;
  border-bottom: 2px solid #ff4d4f;
  padding-bottom: 10px;
}

.error-log-item {
  background: #f5f5f5;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border-left: 4px solid #ff4d4f;
}

.error-log-time {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.error-log-type {
  font-weight: bold;
  color: #ff4d4f;
}

.error-log-details {
  font-size: 13px;
  color: #333;
  margin-top: 5px;
}

/* 支付宝二维码弹窗样式 */
.alipay-qrcode-modal-mask {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alipay-qrcode-modal {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  min-width: 320px;
  max-width: 90vw;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.alipay-qrcode-modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.alipay-qrcode-modal-close:hover {
  background: #e6e6e6;
  color: #333;
}

.alipay-qrcode-modal h3 {
  text-align: center;
  margin: 0 0 20px 0;
  color: #1677FF;
  font-size: 18px;
  font-weight: bold;
}

.alipay-qrcode-content {
  text-align: center;
}

#alipay-qrcode {
  margin: 0 auto;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  display: inline-block;
}

.alipay-payment-tip {
  margin-top: 15px;
}

.alipay-payment-tip p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* 支付宝环境检测提示样式 */
.alipay-env-notice {
  background: linear-gradient(135deg, #1677FF, #4096FF);
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.3);
}

.alipay-env-notice.miniprogram {
  background: linear-gradient(135deg, #722ED1, #9254DE);
}

.alipay-env-notice.h5 {
  background: linear-gradient(135deg, #13C2C2, #36CFC9);
}

/* 其他环境检测提示样式 */
.wechat-env-notice {
  background: linear-gradient(135deg, #07C160, #1AAD19);
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(7, 193, 96, 0.3);
}

.mobile-env-notice {
  background: linear-gradient(135deg, #722ED1, #9254DE);
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(114, 46, 209, 0.3);
}

.pc-env-notice {
  background: linear-gradient(135deg, #13C2C2, #36CFC9);
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(19, 194, 194, 0.3);
}