/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background-color: #fff;
  /* 确保背景色不会被Bootstrap覆盖 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Bootstrap样式重置 */
.container,
.container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 顶部导航栏 - 公共样式 */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #333;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 1.6rem;
}

.back-btn {
  text-decoration: none;
  color: #fff;
}

/* 中英文切换样式 */
.language-switch {
  display: flex;
  align-items: center;
  margin: 0 auto;
  color: #fff;
  font-size: 14px;
}

.lang-btn {
  background: transparent;
  color: #fff;
  text-decoration: none;
  padding: 0 8px;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lang-btn.active {
  color: #c7272f;
  font-weight: 500;
  text-decoration: none;
}

.lang-btn:hover {
  color: #c7272f;
}

.user-info {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.user-info span {
  margin-right: 2rem;
}

.logout-btn,
.login-btn,
.register-btn {
  text-decoration: none;
  color: #fff;
  margin-left: 1rem;
}

.hero {
  height: auto;
  width: 100%;
  position: relative;
}

.banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* 错误提示样式 */
.border-danger {
  border-color: #ff4d4f !important;
  background-color: #fff2f0;
}

.error-message {
  color: #ff4d4f;
  font-size: 1.2rem;
  margin: 0.2rem 0.5rem 0.5rem 1rem;
  display: block;
}

/* 通用a标签样式 */
a:active {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

/* 英文模式下重置字母间距 */
body.en [data-letter-spacing] {
  letter-spacing: normal;
}

/* 内容区域 */
.register-content {
  background-color: #fff;
  margin: -1.5rem auto;
  border-radius: 15px 15px 0 0;
  padding: 1rem;
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  min-height: calc(100vh);
}

/* 让step-content也能填充register-content的高度 */
.step-content {
  background-color: white;
  border-radius: 15px;
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

/* 让form-container能够自动扩展 */
.form-container {
  margin-bottom: 2rem;
}

.step-content {
  background-color: white;
  border-radius: 15px;
  padding: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
  padding-bottom: 2.5rem;
  text-align: center;
  font-weight: bold;
}

.required-note {
  font-size: 1.2rem;
  color: #ff4d4f;
  font-weight: normal;
}

/* 按钮样式 */
.next-step-btn,
.prev-step-btn,
.submit-payment-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  border: none;
  outline: none;
  box-shadow: none;
}

.next-step-btn,
.submit-payment-btn {
  width: 100%;
  margin-top: 1rem;
  background-color: #c92a29;
  color: white;
}

.next-step-btn:hover,
.submit-payment-btn:hover {
  background-color: #a61c1a;
  color: white;
}

.next-step-btn:active,
.submit-payment-btn:active {
  background-color: #a61c1a !important;
  color: white !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: #c92a29;
  color: white;
}

.next-step-btn:focus,
.next-step-btn:focus-visible,
.submit-payment-btn:focus,
.submit-payment-btn:focus-visible,
.prev-step-btn:focus,
.prev-step-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  color: white !important;
  background-color: #c92a29 !important;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 600px;
}

.form-actions button {
  flex: 1;
  border-radius: 6px;
  padding: 1rem;
}

/* 文本框样式 */

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 1.6rem;
  transition: border-color 0.3s;
  background-color: #f9f9f9;
  text-indent: 5px; /* 文本缩进为 0（如需整体偏移，这里统一设置） */
}

.form-group .form-control {
  height: 42px;
  padding: 0.7rem;
  border-radius: 6px;
  font-size: 1.3rem;
  line-height: 2;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  color: #333;
  font-weight: 500;
  font-size: 1.6rem;
}

.form-tip {
  display: block;
  margin: 0.2rem 0.5rem 0.5rem 1rem;
  font-size: 1.2rem;
  color: #52c41a;
  line-height: 1.4;
}

/* 必填项星号样式 */
.required-asterisk {
  color: #ee0a0a !important;
  margin-right: 3px;
}

/* 密码容器 */
.password-container {
  position: relative;
}

.password-container .form-control {
  padding-right: 40px;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn:hover {
  color: #3f3e3e;
}

.password-toggle-btn svg {
  transition: color 0.3s;
}

/* 限制layer弹窗最大宽度，兼容PC/H5 */
.layer-max-width {
  max-width: 800px !important; 
  margin: 0 auto !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .register-content {
    margin: 0rem auto 0rem;
    padding: 0.8rem;
    border-radius: 30px;
    width: 100%;
  }

  .step-content {
    padding: 0.8rem;
    border-radius: 12px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .form-actions {
    gap: 0.5rem;
  }

  .third-party-buttons {
    gap: 15px;
  }

  .third-party-btn {
    width: 32px;
    height: 32px;
  }
}

/* PC端样式 */
@media (min-width: 769px) {
  .register-content {
    margin: 0rem auto 0rem;
    border-radius: 15px;
    width: 100%;
  }

  .step-content {
    max-width: 460px;
    margin: 0 auto;
    margin-top: 6rem;
    border: 1px solid #d9d9d9;
    border-radius: 0px;
  }

  .form-container {
    padding: 0 40px;
  }

  .form-group {
    margin-bottom: 2rem;
  }

  .back-btn {
    display: none;
  }
}
