/* 第一页特定样式 */
.container {
  position: relative;
  height: 100%;
  padding: var(--main-padding);
  padding-top: 60px;
  color: var(--main-text-color);
  font-size: var(--main-font-size);
}

.container:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background-color: var(--main-bg-color);
  z-index: -1;
}

.layout-header {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: var(--main-padding) 0;
  background-color: var(--main-layout-color);
  border-radius: var(--main-border-radius);
  box-shadow: var(--main-box-shadow);
}
.layout-header > div {
  max-width: 50%;
  text-align: center;
}

.layout-header .amount {
  font-size: 30px;
  color: var(--main-bg-color);
}

.layout-header .btn {
  max-width: 60%;
  background-color: var(--main-bg-color);
  color: #fff;
}

.layout-header .partner-section {
  display: flex;
  align-items: center;

  max-width: 80%;
  margin-top: 20px;
  box-shadow: 3px 4px 6px var(--main-box-shadow-color);
}

.partner-section .partner-item {
  position: relative;
  padding: 10px;
}

.partner-section .partner-item:not(:first-child):before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -10px;
  width: 1px;
  height: 20px;
  background-color: var(--main-box-shadow-color);
}

.partner-section .partner-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.benefits-section {
  padding-top: 40px;
}

.section-title {
  font-size: 18px;
  text-align: center;
  padding-bottom: 10px;
}

.benefits {
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 33.33%;
  padding: var(--main-padding) 5px;
  background-color: #fff;
  text-align: center;
  box-shadow: var(--main-box-shadow);
}
.benefit .fa {
  font-size: 30px;
  color: var(--main-bg-color);
}
.benefit-bold {
  font-weight: bold;
}
/* 第二页：登录注册页 - 新样式 */
#page2 {
  background-color: white;
  border-radius: 20px;
  padding: 30px 25px;
  color: #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  overflow-y: auto;
  max-height: 100%;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.page-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
}

.auth-tabs {
  display: flex;
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 30px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s;
}

.auth-tab.active {
  background-color: white;
  color: #2e7d32;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.form-input {
  width: 100%;
  min-height: 52px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  /* background-color: #f9f9f9; */
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: #2e7d32;
  outline: none;
}

.form-input.error {
  border-color: #e53935;
}

.error-message {
  color: #e53935;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
}

.forgot-password {
  color: #2e7d32;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.auth-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-bottom: 20px;
  transition: background-color 0.3s;
}

.auth-btn:hover {
  background-color: #1b5e20;
}

.auth-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.terms {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.terms input {
  margin-right: 10px;
  margin-top: 3px;
}

.terms label {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.terms a {
  color: #2e7d32;
  text-decoration: none;
}

.terms-error {
  color: #e53935;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.auth-footer {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.auth-footer a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

/* 忘记密码弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.code-input-group {
  display: flex;
  gap: 10px;
}

.code-input {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.send-code-btn {
  white-space: nowrap;
  padding: 15px 20px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.send-code-btn:hover {
  background-color: #1b5e20;
}

.send-code-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.step-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.step {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e0e0e0;
  margin: 0 5px;
  transition: background-color 0.3s;
}

.step.active {
  background-color: #2e7d32;
}

.forgot-step {
  display: none;
}

.forgot-step.active {
  display: block;
}

.success-message {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 60px;
  color: #2e7d32;
  margin-bottom: 15px;
}

.success-text {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.success-subtext {
  font-size: 14px;
  color: #666;
}

/* 第三页：个人信息页 - 新样式 */
#page3 {
  display: block;
}
.info-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--main-bg-color);
  text-align: center;
}

.form-group-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.form-input-content {
  position: relative;
}

#page2 .form-group .fa,
#page3 .form-group .fa {
  position: absolute;
  top: 50%;
  left: 10px;
  margin-top: -8px;
  font-size: 16px;
  color: #666;
}
#page2 .form-input,
#page3 .form-input {
  padding-left: 40px;
}

.location-group {
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

#page3 .location-group .form-input {
  padding-left: 15px;
}

#page3 .location-group .form-group:last-child {
  flex: auto;
}

.pin-code-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

#page3 .pin-code-group input {
  flex: 1;
  padding-left: 15px;
  text-align: center;
}

.pin-code-separator {
  color: #666;
  font-weight: bold;
}

.info-footer {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 25px;
}

.info-footer a {
  color: var(--main-bg-color);
  text-decoration: none;
}

.save-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background-color: var(--main-bg-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s;
}

.save-btn:hover {
  background-color: #1b5e20;
}

/* 第四页：上传身份证页 - 增加上传功能和校验 */
/* #page4 {
  display: block;
}

.upload-container {
  position: relative;
  margin-bottom: 20px;
}

.upload-area {
  border: 1px dashed var(--main-box-shadow-color);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.preview-item {
  display: none;
}
.preview-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed var(--main-box-shadow-color);
  border-radius: 8px;
}

.preview-image {
  max-width: 100%;
  max-height: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.remove-btn {
  font-size: 24px;
  cursor: pointer;
}

.upload-status {
  margin-top: 10px;
}

.upload-status.success {
  color: #a5d6a7;
}

.upload-status.error {
  color: #ef9a9a;
} */
#page4 {
  /* display: flex;
  flex-direction: column;
  justify-content: center; */
  /* width: 100%;
  height: 100%;
  overflow-y: auto; */
}

.upload-container {
  position: relative;
  margin-bottom: 20px;
}

.upload-area {
  border: 2px dashed var(--main-bg-color);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.upload-area.has-image {
  padding: 20px;
  border-style: solid;
}

.upload-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.upload-area p {
  margin-bottom: 15px;
}

.upload-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--main-bg-color);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.preview-container {
  display: none;
  text-align: center;
  margin-top: 10px;
}

.preview-image {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.remove-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #d32f2f;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.upload-status {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.upload-status.success {
  color: var(--main-bg-color);
}

.upload-status.error {
  color: #ef9a9a;
}
/* 第五页：审核页 */
#page5,
#page5-1 {
  width: 100%;
}
.review-container {
  text-align: center;
}

.spinner {
  width: 80px;
  height: 80px;
  border: 5px solid #e8d43b;
  border-top: 5px solid #ddd;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}
.review-container .timer {
  font-size: 24px;
  color: var(--main-bg-color);
  font-weight: bold;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.success-amount {
  font-size: 32px;
  font-weight: bold;
  color: var(--main-bg-color);
  margin: 20px 0;
}

.check-done {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.check-des-list {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: var(--main-padding);
}
.check-des-item {
  position: relative;
  flex: 1;
  text-align: center;
}
.check-des-item:not(:first-child):before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 20px;
  margin-top: -10px;
  background-color: var(--main-box-shadow-color);
}
.check-des-icon {
  font-size: 28px;
}
/* 第六页：提现页 - 新样式 */
#page6 {
  padding-top: 100px;
}

.withdraw-header {
  height: 200px;
  background: var(--main-bg-color);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--main-padding);
  z-index: -1;
  border-radius: 0 0 16% 16%;
}

.withdraw-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.withdraw-user .thank-check-icon {
  width: 60px;
  height: 60px;
  background-color: #fff;
}

.withdraw-user .user-info {
  color: #fff;
}

.withdraw-user .user-info .welcome-back {
  font-size: 14px;
}
.withdraw-user .user-info .user-name {
  font-size: 16px;
  font-weight: bold;
}
.withdraw-content-bg {
  background: #fff;
  padding: var(--main-padding);
  border-radius: var(--main-border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.withdraw-content {
  padding: var(--main-padding);
  color: #fff;
  background-color: var(--main-bg-color);
  box-shadow: var(--main-box-shadow);
  border-radius: var(--main-border-radius);
}

.amount-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.withdraw-amount-info .withdraw-amount-label {
  font-size: 16px;
}

.withdraw-amount-info .withdraw-amount-value {
  font-size: 26px;
}

.date-content {
  display: flex;
  align-items: center;
  gap: var(--main-padding);
}

.date-content-item .date-content-item-label {
  font-size: 14px;
}

.date-content-item .date-content-item-value {
  font-size: 14px;
}

.period-selector {
  margin: 25px 0;
}

.period-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 15px;
}

.period-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.period-option {
  flex: 1;
  min-width: 80px;
  padding: 12px 8px;
  text-align: center;
  background-color: #f5f5f5;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.period-option.active {
  background-color: #2e7d32;
  color: white;
}

.amount-section {
  margin: 25px 0;
}

.amount-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 15px;
}

.amount-display {
  font-size: 32px;
  font-weight: 700;
  color: #2e7d32;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid #f5f5f5;
  background: transparent;
  width: 100%;
  outline: none;
  border-radius: 8px;
  padding: 5px;
}

.amount-range {
  width: 100%;
  margin: 20px 0;
  -webkit-appearance: none;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  outline: none;
}

.amount-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: #2e7d32;
  border-radius: 50%;
  cursor: pointer;
}

.amount-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.amount-label {
  font-size: 14px;
  color: #666;
}

.payment-info {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  margin: 25px 0;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.payment-row:last-child {
  margin-bottom: 0;
}

.payment-label {
  font-size: 16px;
  color: #666;
}

.payment-value {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.interest-rate {
  color: #2e7d32;
  font-weight: 600;
}

.loan-save-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s;
}

.loan-save-btn:hover {
  background-color: #1b5e20;
}
/** 第七页*/
#page7 {
  background: linear-gradient(180deg, var(--main-bg-color) -52%, #fff 58%);
}

.card-head-tool {
  display: flex;
  align-items: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.card-head-tool .fa-icon-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--main-bg-color);
  border-radius: 4px;
  color: var(--main-bg-color);
}

.card-head-tool > span {
  flex: auto;
  text-align: center;
  padding-right: 28px;
}

.card-tip {
  font-size: 12px;
  color: #f00;
}

.card-step {
  display: none;
}

.card-step.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-list-title {
  font-size: 16px;
  font-weight: bold;
}

.card-info {
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: var(--main-padding);
}

.card-info-title {
  display: flex;
  font-size: 14px;
}

.card-info-title input {
  width: 20px;
  height: 20px;
}

.card-details {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-details .fa {
  font-size: 40px;
}

.card-number {
  font-size: 14px;
  color: #ddd;
}

.card-name {
  font-size: 16px;
  font-weight: bold;
}
.first-version-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: var(--main-padding);
}
.sub-card-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* 模态窗口表单样式优化 */
.modal-form .form-group {
  margin-bottom: 20px;
}

.modal-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.modal-form input {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  transition: border-color 0.3s;
}

.modal-form input:focus {
  border-color: #2e7d32;
  outline: none;
}

.modal-form input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

/* 第八页：感谢页 */
#page8 {
  display: block;
  width: 100%;
  padding-top: 100px;
  background-color: var(--main-bg-color);
}
#page8 .layout-header {
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
#page8 .layout-header div {
  max-width: 100%;
}
.thank-you {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: var(--main-padding);
  font-size: 14px;
  /* border-bottom: 1px dashed var(--main-box-shadow-color); */
}

.thank-you:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--main-padding);
  right: 0;
  width: calc(100% - 2 * var(--main-padding));
  height: 0;
  border-bottom: 1px dashed var(--main-box-shadow-color);
}

.thank-you:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 10px;
  height: 20px;
  background-color: var(--main-bg-color);
  border-top-right-radius: 100%;
}

.thank-detail:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 20px;
  background-color: var(--main-bg-color);
  border-bottom-right-radius: 100%;
}

.thank-check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background-color: #2ab34b4f;
  border-radius: 50%;
}

.thank-check-icon .fa {
  font-size: 60px;
  color: var(--main-bg-color);
}
.thank-title {
  font-size: 26px;
  font-weight: bold;
}

.thank-date {
  font-size: 16px;
  color: #ddd;
}

.thank-detail {
  position: relative;
  width: 100%;
  padding: var(--main-padding);
}
.thank-detail .form-label {
  display: flex;
  justify-content: flex-start;
}

.loan-type {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #eee;
  border-radius: 8px;
}

.loan-type .thank-check-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.loan-type .thank-check-icon .fa {
  font-size: 20px;
}

.loan-type-content {
  text-align: left;
}

.loan-type-content .loan-type-title {
  font-size: 14px;
  font-weight: bold;
}

.loan-amount {
  padding-top: 10px;
}

.loan-amount .loan-amount-title {
  font-size: 14px;
  color: #ddd;
}

.loan-amount .loan-amount-value {
  font-size: 26px;
  font-weight: bold;
  color: var(--main-bg-color);
}

.thanks-btn {
  background-color: #e8d43b;
  color: #333;
}

/* 新增审核详情页面 */
.loan-detail-container {
  display: flex;
  flex-direction: column;
  gap: var(--main-padding);
  padding: var(--main-padding);
  margin-top: var(--main-padding);
  border-radius: 20px;
  color: #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.loan-detail-container .card-info {
  background-color: #57dc77;
}

.loan-detail-container .card-info .card-type,
.loan-detail-container .card-info .loan-number {
  color: #666;
}

.loan-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loan-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.loan-detail-item .loan-detail-item-title {
  color: #666;
}
.loan-detail-item.loan-total {
  border-top: 1px solid var(--main-box-shadow-color);
}
.loan-detail-item.loan-total .loan-detail-item-content {
  font-size: 26px;
  color: var(--main-bg-color);
  font-weight: bold;
}
