﻿/* 弹窗遮罩 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-overlay.show {
  opacity: 1;
}

/* 弹窗容器 */
.modal-container {
  background: #ffffff;
  border-radius: 4px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.show .modal-container {
  transform: scale(1);
}

/* 弹窗头部 */
.modal-header {
  padding: 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  color: #333;
  font-weight: 500;
  margin: 0;
}

.modal-close {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 20px;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

/* 弹窗内容 */
.modal-body {
  padding: 10px 15px;
  padding-top: 0;
}

.modal-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffba00;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  margin-top: 5px;
  margin-right: 15px;
}

/* .modal-icon.error {
  background: #ff4d4f;
} */

.modal-icon.success {
  background: #52c41a;
}

.modal-message {
  flex: 1;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  padding-top: 4px;
}

/* 弹窗底部 */
.modal-footer {
  padding: 5px 15px 10px; 
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-btn {
  border-radius: 4px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 55px;
}

.modal-btn-primary {
    background: #4f5bda;
    border-color: #727ce1;
    color: #fff;
    height: 32px;
    line-height: 32px;
}

.modal-btn-primary:hover {
  background: #4a6ae8;
}

.modal-btn-primary:active {
  background: #3d5bd6;
}
.popup-submit{
    width: 100%;
    padding: 12px;
    background: #1A274A;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

/* 移动端简洁提示框 */
.mobile-toast {
  position: fixed;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  padding: 0 24px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  max-width: 80%;
  height: 36px;
  line-height: 36px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-toast.show {
  opacity: 1;
}

/* 移动端验证码错误弹窗专用样式 */
.captcha-error-modal .modal-container {
  max-width: 85%;
  width: 320px;
  border-radius: 16px;
  position: relative;
  top: -12%;
}

.captcha-error-modal .modal-header {
  padding: 20px 20px 0px;
  border-bottom: none;
  position: relative;
}

.captcha-error-modal .modal-title {
  font-size: 17px;
  text-align: center;
  width: 100%;
  color: #333;
  font-weight: 500;
}

.captcha-error-modal .modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  color: #999;
  font-size: 22px;
}

.captcha-error-modal .modal-body {
  padding: 2px 30px 30px;
  text-align: center;
}

.captcha-error-modal .modal-message {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.captcha-error-modal .modal-footer {
  padding: 0 30px 0px;
  justify-content: center;
  height: 48px;
  line-height: 48px;
  border-top: 0.5px solid #ece4e4;
}

.captcha-error-modal .modal-btn-error {
  background: transparent;
  border: none;
  color: #ee0a24;
  font-size: 16px;
  font-weight: 400;
  padding: 0;
  min-width: auto;
  height: auto;
  line-height: 1;
  cursor: pointer;
}

.captcha-error-modal .modal-btn-error:hover {
  color: #ff7875;
}

.captcha-error-modal .modal-btn-error:active {
  color: #d9363e;
}

/* Loading弹窗样式 */
.loading-overlay {
  position: fixed;
  top: -80px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.loading-overlay.show {
  opacity: 1;
}

.loading-container {
  background: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  padding: 25px 38px;
  width: 120px;
  height: 120px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s;
}

.loading-overlay.show .loading-container {
  transform: scale(1);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  color: #ffffff;
}