.customer-sign-page {
  min-height: 100vh;
  background: #f5f5f5;
  position: relative;
  padding-bottom: 100px;

  .header-bg {
    background: linear-gradient(to bottom, #03605c, #18ae4f);
    width: 100%;
    top: 0;
    position: absolute;
    z-index: 0;
  }

  .form-container {
    position: relative;
    z-index: 10;
    padding: 20px 16px;
    margin-top: 20px;

    .form-section {
      background: #ffffff;
      border-radius: 12px;
      margin-bottom: 16px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

      .section-title {
        padding: 16px 16px 8px;
        font-size: 16px;
        font-weight: bold;
        color: #333;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 8px;
      }

      .nut-form-item {
        padding: 12px 16px;
        border-bottom: 1px solid #f8f8f8;

        &:last-child {
          border-bottom: none;
        }

        .nut-form-item__label {
          font-size: 14px;
          color: #333;
          font-weight: 500;
          min-width: 80px;
        }

        .nut-form-item__body {
          flex: 1;
        }

        .nut-input {
          font-size: 14px;
          color: #333;
          
          &::placeholder {
            color: #999;
          }
        }

        .nut-textarea {
          font-size: 14px;
          color: #333;
          
          &::placeholder {
            color: #999;
          }
        }

        .picker-cell {
          padding: 0;
          background: transparent;
          border: none;

          .nut-cell__title {
            font-size: 14px;
            color: #333;
          }

          .nut-cell__value {
            color: #999;
          }
        }

        .nut-switch {
          transform: scale(0.8);
        }
      }
    }
  }

  .fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    z-index: 100;

    .submit-btn {
      width: 100%;
      height: 48px;
      background: #52c41a;
      color: #ffffff;
      font-size: 16px;
      font-weight: bold;
      border-radius: 24px;
      border: none;
      box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);

      &.nut-button--loading {
        background: #52c41a;
        opacity: 0.8;
      }
    }
  }
}

// 适配安全区域
@supports (bottom: env(safe-area-inset-bottom)) {
  .customer-sign-page .fixed-bottom {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

// 表单验证错误样式
.nut-form-item--error {
  .nut-form-item__label {
    color: #ff4d4f !important;
  }
  
  .nut-input {
    border-color: #ff4d4f !important;
  }
}

// 选择器样式优化
.nut-picker {
  .nut-picker__toolbar {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
  }

  .nut-picker__confirm {
    color: #52c41a;
  }

  .nut-picker__cancel {
    color: #999;
  }
}

// 日期选择器样式
.nut-date-picker {
  .nut-picker__toolbar {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
  }

  .nut-picker__confirm {
    color: #52c41a;
  }

  .nut-picker__cancel {
    color: #999;
  }
}

// Toast样式
.nut-toast {
  .nut-toast__text {
    font-size: 14px;
  }
}

// 开关组件样式
.nut-switch {
  &.nut-switch--active {
    background: #52c41a;
  }
}

// 响应式适配
@media (max-width: 375px) {
  .customer-sign-page {
    .form-container {
      padding: 16px 12px;

      .form-section {
        .nut-form-item {
          padding: 10px 12px;

          .nut-form-item__label {
            min-width: 70px;
            font-size: 13px;
          }

          .nut-input,
          .nut-textarea {
            font-size: 13px;
          }
        }
      }
    }
  }
}
