:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --accent-color: #3447db;
  --accent-color-dark: #2a3bb8;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --border-color: #e9ecef;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 28px;
}

.promo-img {
  display: block;
  width: 100%;
  height: auto;
}

.fadein {
  animation: fadein 0.4s ease;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 表单卡片 */
.form-card {
  background: var(--bg-primary);
  margin: 0;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.form-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.secure-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(52, 71, 219, 0.08);
  border: 1px solid rgba(52, 71, 219, 0.15);
  color: var(--accent-color);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.field label .req {
  color: var(--danger-color);
}

.field input {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  background: var(--bg-secondary);
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.field input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(52, 71, 219, 0.15);
}

.field input::placeholder {
  color: #adb5bd;
}

.err-msg {
  color: var(--danger-color);
  font-size: 13px;
  min-height: 18px;
  margin: 4px 4px 8px;
}

.submit-btn {
  width: 100%;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
  box-shadow: 0 6px 20px rgba(52, 71, 219, 0.35);
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 71, 219, 0.4);
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
}

#page-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 20px;
}

.hidden {
  display: none !important;
}

.shake {
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

/* 成功弹层 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-card {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-emoji {
  font-size: 48px;
  margin-bottom: 12px;
}

.modal-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.modal-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-btn {
  margin-top: 24px;
  border: none;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 36px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(52, 71, 219, 0.3);
  transition: all 0.3s ease;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 71, 219, 0.4);
}

/* 响应式调整 */
@media (max-width: 576px) {
  .wrap {
    padding-bottom: 20px;
  }
  
  .form-card {
    padding: 20px;
    border-radius: 10px;
  }
  
  .field input {
    padding: 12px 14px;
    font-size: 14px;
  }
  
  .submit-btn {
    padding: 14px;
    font-size: 15px;
  }
  
  .modal-card {
    padding: 28px 24px;
    border-radius: 16px;
  }
  
  .modal-emoji {
    font-size: 42px;
  }
  
  .modal-card h3 {
    font-size: 18px;
  }
}
