/* 表单公共样式 */

/* 表单整体样式 - 使用 :deep 穿透到 uView-plus 内部类 */
:deep(.u-form) {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 表单项样式优化 */
:deep(.u-form-item) {
  background: #fff !important;
  padding: 0 22px !important;
  border: none !important;
  position: relative !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

:deep(.u-form-item:last-child) {
  border-bottom: none !important;
}

:deep(.u-form-item__body) {
  padding: 15px 0 !important;
  border: none !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  align-items: flex-start !important;
}

:deep(.u-form-item__label) {
  font-size: 15px !important;
  color: #333 !important;
  font-weight: 400 !important;
  width: 90px !important;
  flex-shrink: 0 !important;
}

:deep(.u-form-item__content) {
  flex: 1 !important;
  display: flex !important;
  justify-content: flex-end !important;
}

/* 彻底移除 input 边框与背景（穿透到内部元素）*/
:deep(.u-input),
:deep(.u-input *),
input[type="text"],
input[type="number"] {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

:deep(.u-input input),
:deep(.u-input__content__field-wrapper__field),
:deep(.u-input__input) {
  font-size: 15px !important;
  color: #333 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-weight: 400 !important;
  width: 100% !important;
}

/* 禁用与只读状态 */
:deep(.u-input input:disabled),
:deep(.u-input__input:disabled) {
  color: #999 !important;
  -webkit-text-fill-color: #999 !important;
  background: transparent !important;
}

:deep(.u-input input[readonly]),
:deep(.u-input__input[readonly]) {
  color: #666 !important;
  font-weight: 400 !important;
  background: transparent !important;
}

/* 占位符样式 */
:deep(.u-input input::placeholder),
:deep(.u-input__input::placeholder) {
  color: #c0c4cc !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}
.account-detail {
  min-height: 100vh;
  background: #f5f5f5;
  padding-bottom: 5rem;
}
/* 产品信息区域 */
.product-section {
  background: #fff;
  margin-top: 10px;
  padding: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  width: 100%;
}

.section-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* 产品卡片样式 */
.product-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.tip-text {
  margin: 2px 20px;
}
.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.product-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.document-icon {
  width: 24px;
  height: 24px;
  background: #2979ff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-productCategory {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

/* 产品表单项样式 */
.product-form {
  margin: 0;
}

.product-form :deep(.u-form-item) {
  background: transparent;
  margin-bottom: 0;
  padding: 0;
}

.product-form :deep(.u-form-item__body) {
  padding: 12px 0;
  min-height: 48px;
}

.product-form :deep(.u-form-item__label) {
  font-size: 14px !important;
  color: #666 !important;
  width: 100px;
  font-weight: 400;
}

.product-form :deep(.u-input__content__field-wrapper__field),
.product-form :deep(.u-input__input) {
  font-size: 14px !important;
  color: #333 !important;
  text-align: right;
}

/* 产品表单最后一项去掉底边框 */
.product-form :deep(.u-form-item:last-child .u-form-item__body) {
  border-bottom: none;
}

/* 选择器弹窗样式 */
.picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
}

.picker-cancel {
  color: #666;
  font-size: 16px;
}

.picker-title {
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.picker-confirm {
  color: #007aff;
  font-size: 16px;
}

/* 树选择器弹窗样式 */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.confirmButton {
  color: #007aff;
  font-size: 16px;
}

.u-tree {
  height: 300px;
  padding: 16px;
}

/* 页面基础样式 */
.page-container {
  min-height: 100vh;
  background: #f5f5f5;
  padding-bottom: 5rem;
}

/* 响应式调整 */
@media (max-width: 375px) {
  :deep(.u-form-item__label) {
    width: 100px !important;
    font-size: 14px !important;
  }
  
  :deep(.u-input__content__field-wrapper__field),
  :deep(.u-input__input) {
    font-size: 14px !important;
  }
}