/* 单元格基础样式 */
.tdesign-cell {
  position: relative;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  padding: var(--td-cell-vertical-padding, 32rpx) var(--td-cell-horizontal-padding, 32rpx);
  line-height: var(--td-cell-line-height, 48rpx);
  height: var(--td-cell-height, auto);
  background-color: var(--td-cell-bg-color, #fff);
}

/* 边框处理 */
.tdesign-cell--bordered::after {
  position: absolute;
  box-sizing: border-box;
  content: ' ';
  pointer-events: none;
  right: 0;
  left: 0;
  bottom: 0;
  border-bottom: var(--td-cell-border-width, 1px) solid var(--td-cell-border-color, #e7e7e7);
  transform: scaleY(.5);
  transform-origin: bottom;
  left: var(--td-cell-border-left-space, 32rpx);
  right: var(--td-cell-border-right-space, 0);
}

/* 描述文本 */
.tdesign-cell__description {
  font-size: var(--td-cell-description-font-size, 28rpx);
  line-height: var(--td-cell-description-line-height, 44rpx);
  color: var(--td-cell-description-color, rgba(0,0,0,.6));
}

.tdesign-cell__description-text {
  margin-top: calc(var(--td-spacer, 16rpx) / 2);
}

/* 备注文本 */
.tdesign-cell__note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--td-cell-note-color, rgba(0,0,0,.4));
  font-size: var(--td-cell-note-font-size, 32rpx);
}

.tdesign-cell__title {
  margin-right: var(--td-spacer-2, 32rpx);
}

.tdesign-cell__note,
.tdesign-cell__title {
  flex: 1 1 auto;
}

.tdesign-cell__note:empty,
.tdesign-cell__title:empty {
  display: none;
}

.tdesign-cell__title-text {
  display: flex;
  font-size: var(--td-cell-title-font-size, 32rpx);
  color: var(--td-cell-title-color, rgba(0,0,0,.9));
  font-weight: 400;
}

/* 左侧和右侧区域 */
.tdesign-cell__left,
.tdesign-cell__right {
  align-self: stretch;
}

.tdesign-cell__left:not(:empty) {
  margin-right: var(--td-spacer-1, 24rpx);
}

.tdesign-cell__left-icon {
  color: var(--td-cell-left-icon-color, #0052d9);
  font-size: var(--td-cell-left-icon-font-size, 48rpx);
}

.tdesign-cell__left-image {
  height: var(--td-cell-image-height, 96rpx);
  width: var(--td-cell-image-width, 96rpx);
}

.tdesign-cell__note:not(:empty) + .tdesign-cell__right {
  margin-left: calc(var(--td-spacer, 16rpx) / 2);
}

.tdesign-cell__right {
  display: flex;
}

.tdesign-cell__right-icon {
  color: var(--td-cell-right-icon-color, rgba(0,0,0,.4));
  font-size: var(--td-cell-right-icon-font-size, 48rpx);
}

.tdesign-cell__right--middle {
  align-items: center;
}

.tdesign-cell__right--top {
  align-items: flex-start;
}

.tdesign-cell__right--bottom {
  align-items: flex-end;
}

/* 悬停状态 */
.tdesign-cell--hover-active {
  background-color: var(--td-cell-hover-color, #f3f3f3);
}

/* 必填标记 */
.tdesign-cell--required {
  font-size: var(--td-cell-required-font-size, 32rpx);
  color: var(--td-cell-required-color, #d54941);
}