@charset "UTF-8";
/*
  @component form
  @display Form
  @chinese 表单
  @family data-entry
*/
:root {
  /*
    @desc bg-color
    @namespace state/base
    @semantic 表单背景色
  */
  --form-bg-color: var(--color-white);
  /*
    @desc label-size-small
    @namespace size/label
    @semantic 标签字号(小)
  */
  --form-label-small-font-size: var(--p-caption-font-size);
  /*
    @desc label-size-medium
    @namespace size/label
    @semantic 标签字号(中)
  */
  --form-label-medium-font-size: var(--p-caption-font-size);
  /*
    @desc label-size-large
    @semantic 标签字号(大)
    @namespace size/label
  */
  --form-label-large-font-size: var(--p-body-1-font-size);
  /*
    @desc label-small-margin-bottom
    @namespace size/label
    @semantic 标签底部间隙(小)
  */
  --form-label-small-margin-bottom: var(--s-zero);
  /*
    @desc label-medium-margin-bottom
    @namespace size/label
    @semantic 标签底部间隙(中)
  */
  --form-label-medium-margin-bottom: var(--s-1);
  /*
    @desc label-large-margin-bottom
    @namespace size/label
    @semantic 标签底部间隙(大)
  */
  --form-label-large-margin-bottom: var(--s-2);
  /*
    @desc small-preview-input-size
    @namespace size/preview-input
    @semantic 标签字号(小)
  */
  --form-preview-small-font-size: var(--p-body-1-font-size);
  /*
    @desc medium-preview-input-size
    @namespace size/preview-input
    @semantic 标签字号(中)
  */
  --form-preview-medium-font-size: var(--p-body-2-font-size);
  /*
    @desc large-preview-input-size
    @namespace size/preview-input
    @semantic 标签字号(大)
  */
  --form-preview-large-font-size: var(--p-subhead-font-size);
  /*
    @desc inset-small-label-size
    @namespace size/label
    @semantic 内嵌标签字号(小)
  */
  --form-label-inset-small-font-size: var(--p-body-1-font-size);
  /*
    @desc inset-medium-label-size
    @namespace size/label
    @semantic 内嵌标签字号(中)
  */
  --form-label-inset-medium-font-size: var(--p-body-2-font-size);
  /*
    @desc inset-large-label-size
    @namespace size/label
    @semantic 内嵌标签字号(大)
  */
  --form-label-inset-large-font-size: var(--p-subhead-font-size);
  /*
    @desc inset-label-margin-right
    @namespace size/label
    @semantic 内嵌标签右边距
  */
  --form-label-inset-margin-right: var(--s-3);
  /*
    @desc label-color
    @namespace state/label
    @semantic 标签颜色
  */
  --form-label-color: var(--color-text1-4);
  /*
    @desc small-help-font-size
    @namespace size/help
    @semantic 辅助文案字号(小)
  */
  --form-help-small-font-size: var(--p-caption-font-size);
  /*
    @desc medium-help-font-size
    @namespace size/help
    @semantic 辅助文案字号(中)
  */
  --form-help-medium-font-size: var(--p-caption-font-size);
  /*
    @desc large-help-font-size
    @namespace size/help
    @semantic 辅助文案字号(大)
  */
  --form-help-large-font-size: var(--p-body-1-font-size);
  /*
    @desc help-color
    @namespace state/help
    @semantic 辅助文案颜色
  */
  --form-help-color: var(--color-text1-2);
  /*
    @desc error-color
    @namespace state/help
    @semantic 错误态提示颜色
  */
  --form-error-color: var(--color-error-3);
  /*
    @desc border-color
    @namespace state/base
    @semantic 边框颜色
  */
  --form-border-color: var(--color-line1-3);
  /*
    @desc inset-required-font-size
    @namespace size/required
    @semantic 内嵌星号字号
  */
  --form-required-inset-font-size: var(--s-1);
  /*
    @desc required-font-size
    @namespace size/required
    @semantic 星号字号
  */
  --form-required-font-size: var(--s-2);
  /*
    @desc required-color
    @namespace state/base
    @semantic 星号颜色
  */
  --form-required-color: var(--color-error-3);
  /*
    @desc padding(l,r)
    @namespace size/bounding
    @semantic 左右内边距
  */
  --form-item-padding-lr: var(--s-4);
  /*
    @desc padding(t,b)
    @namespace size/bounding
    @semantic 上下内边距
  */
  --form-item-padding-tb: var(--s-2);
  /*
    @desc inset-padding(t,b)
    @namespace size/bounding
    @semantic 上下内边距
  */
  --form-item-inset-padding-tb: var(--s-4); }

.mt-form-item-input--preview-small {
  font-size: var(--form-preview-small-font-size);
  line-height: 1.5; }

.mt-form-item-input--preview-medium {
  font-size: var(--form-preview-medium-font-size);
  line-height: 1.5; }

.mt-form-item-input--preview-large {
  font-size: var(--form-preview-large-font-size);
  line-height: 1.5; }

/*
  @component form
  @display Form
  @chinese 表单
  @family data-entry
*/
:root {
  /*
    @desc bg-color
    @namespace state/base
    @semantic 表单背景色
  */
  --form-bg-color: var(--color-white);
  /*
    @desc label-size-small
    @namespace size/label
    @semantic 标签字号(小)
  */
  --form-label-small-font-size: var(--p-caption-font-size);
  /*
    @desc label-size-medium
    @namespace size/label
    @semantic 标签字号(中)
  */
  --form-label-medium-font-size: var(--p-caption-font-size);
  /*
    @desc label-size-large
    @semantic 标签字号(大)
    @namespace size/label
  */
  --form-label-large-font-size: var(--p-body-1-font-size);
  /*
    @desc label-small-margin-bottom
    @namespace size/label
    @semantic 标签底部间隙(小)
  */
  --form-label-small-margin-bottom: var(--s-zero);
  /*
    @desc label-medium-margin-bottom
    @namespace size/label
    @semantic 标签底部间隙(中)
  */
  --form-label-medium-margin-bottom: var(--s-1);
  /*
    @desc label-large-margin-bottom
    @namespace size/label
    @semantic 标签底部间隙(大)
  */
  --form-label-large-margin-bottom: var(--s-2);
  /*
    @desc small-preview-input-size
    @namespace size/preview-input
    @semantic 标签字号(小)
  */
  --form-preview-small-font-size: var(--p-body-1-font-size);
  /*
    @desc medium-preview-input-size
    @namespace size/preview-input
    @semantic 标签字号(中)
  */
  --form-preview-medium-font-size: var(--p-body-2-font-size);
  /*
    @desc large-preview-input-size
    @namespace size/preview-input
    @semantic 标签字号(大)
  */
  --form-preview-large-font-size: var(--p-subhead-font-size);
  /*
    @desc inset-small-label-size
    @namespace size/label
    @semantic 内嵌标签字号(小)
  */
  --form-label-inset-small-font-size: var(--p-body-1-font-size);
  /*
    @desc inset-medium-label-size
    @namespace size/label
    @semantic 内嵌标签字号(中)
  */
  --form-label-inset-medium-font-size: var(--p-body-2-font-size);
  /*
    @desc inset-large-label-size
    @namespace size/label
    @semantic 内嵌标签字号(大)
  */
  --form-label-inset-large-font-size: var(--p-subhead-font-size);
  /*
    @desc inset-label-margin-right
    @namespace size/label
    @semantic 内嵌标签右边距
  */
  --form-label-inset-margin-right: var(--s-3);
  /*
    @desc label-color
    @namespace state/label
    @semantic 标签颜色
  */
  --form-label-color: var(--color-text1-4);
  /*
    @desc small-help-font-size
    @namespace size/help
    @semantic 辅助文案字号(小)
  */
  --form-help-small-font-size: var(--p-caption-font-size);
  /*
    @desc medium-help-font-size
    @namespace size/help
    @semantic 辅助文案字号(中)
  */
  --form-help-medium-font-size: var(--p-caption-font-size);
  /*
    @desc large-help-font-size
    @namespace size/help
    @semantic 辅助文案字号(大)
  */
  --form-help-large-font-size: var(--p-body-1-font-size);
  /*
    @desc help-color
    @namespace state/help
    @semantic 辅助文案颜色
  */
  --form-help-color: var(--color-text1-2);
  /*
    @desc error-color
    @namespace state/help
    @semantic 错误态提示颜色
  */
  --form-error-color: var(--color-error-3);
  /*
    @desc border-color
    @namespace state/base
    @semantic 边框颜色
  */
  --form-border-color: var(--color-line1-3);
  /*
    @desc inset-required-font-size
    @namespace size/required
    @semantic 内嵌星号字号
  */
  --form-required-inset-font-size: var(--s-1);
  /*
    @desc required-font-size
    @namespace size/required
    @semantic 星号字号
  */
  --form-required-font-size: var(--s-2);
  /*
    @desc required-color
    @namespace state/base
    @semantic 星号颜色
  */
  --form-required-color: var(--color-error-3);
  /*
    @desc padding(l,r)
    @namespace size/bounding
    @semantic 左右内边距
  */
  --form-item-padding-lr: var(--s-4);
  /*
    @desc padding(t,b)
    @namespace size/bounding
    @semantic 上下内边距
  */
  --form-item-padding-tb: var(--s-2);
  /*
    @desc inset-padding(t,b)
    @namespace size/bounding
    @semantic 上下内边距
  */
  --form-item-inset-padding-tb: var(--s-4); }

.mt-form {
  background-color: var(--form-bg-color);
  --list-item-min-height: 0;
  --list-item-padding-lr: var(--form-item-padding-lr);
  --list-active-bg-color: var(--list-bg-color); }
  .mt-form-content {
    --list-bg-color: transparent;
    --list-border-color: var(--form-border-color);
    --list-divider-border-bottom-color: var(--form-border-color); }
  .mt-form-item {
    padding-right: 0;
    --select-drawer-small-padding-tb: 0;
    --select-drawer-medium-padding-tb: 0;
    --select-drawer-large-padding-tb: 0;
    --select-drawer-padding-lr: 0; }
    .mt-form-item > .mt-list-item-container {
      padding-top: var(--form-item-padding-tb);
      padding-right: 0;
      border-bottom-style: none;
      padding-bottom: 0; }
    .mt-form-item--inset > .mt-list-item-container {
      padding-top: var(--form-item-inset-padding-tb); }
    .mt-form-item-container {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: stretch;
      padding-bottom: var(--form-item-padding-tb); }
      .mt-form-item-container--inset {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        padding-bottom: var(--form-item-inset-padding-tb); }
    .mt-form-item-label {
      color: var(--form-label-color);
      line-height: 1.5; }
      .mt-form-item-label-container {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        word-break: break-all;
        white-space: pre-wrap; }
        .mt-form-item-label-container--inset {
          margin-right: var(--form-label-inset-margin-right);
          margin-bottom: 0; }
        .mt-form-item-label-container--right {
          justify-content: flex-end;
          text-align: end; }
        .mt-form-item-label-container--small {
          margin-bottom: var(--form-label-small-margin-bottom); }
        .mt-form-item-label-container--medium {
          margin-bottom: var(--form-label-medium-margin-bottom); }
        .mt-form-item-label-container--large {
          margin-bottom: var(--form-label-large-margin-bottom); }
      .mt-form-item-label--small {
        font-size: var(--form-label-small-font-size); }
      .mt-form-item-label--medium {
        font-size: var(--form-label-medium-font-size); }
      .mt-form-item-label--large {
        font-size: var(--form-label-large-font-size); }
      .mt-form-item-label--inset {
        line-height: 1.5; }
        .mt-form-item-label--inset--small {
          font-size: var(--form-label-inset-small-font-size); }
        .mt-form-item-label--inset--medium {
          font-size: var(--form-label-inset-medium-font-size); }
        .mt-form-item-label--inset--large {
          font-size: var(--form-label-inset-large-font-size); }
      .mt-form-item-label--error {
        color: var(--form-error-color); }
    .mt-form-item-input {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: stretch;
      flex-shrink: 1;
      flex-grow: 1;
      padding-right: var(--form-item-padding-lr);
      --input-padding-lr: 0;
      --input-normal-bg-color: transparent;
      --input-normal-border-color: transparent;
      --input-small-padding-tb: 0;
      --input-small-font-size: var(--form-label-inset-small-font-size);
      --input-medium-padding-tb: 0;
      --input-medium-font-size: var(--form-label-inset-medium-font-size);
      --input-large-padding-tb: 0;
      --input-large-font-size: var(--form-label-inset-large-font-size); }
      .mt-form-item-input .mt-selectdrawer {
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 0;
        line-height: 1.5; }
      .mt-form-item-input--right {
        flex-direction: row;
        justify-content: flex-end;
        text-align: right; }
    .mt-form-item-help {
      border-top: var(--line-1) var(--line-solid) var(--list-divider-border-bottom-color, var(--form-help-color));
      padding-right: var(--form-item-padding-lr);
      padding-left: 0.26666666666666666vw; }
      .mt-form-item-help--help {
        color: var(--form-help-color);
        background-color: var(--color-fill1-1); }
      .mt-form-item-help--error {
        border-top-color: var(--form-error-color);
        color: var(--form-error-color);
        background-color: rgba(235, 47, 47, 0.08); }
      .mt-form-item-help--right {
        flex-direction: row;
        justify-content: flex-end;
        text-align: right; }
      .mt-form-item-help-text {
        line-height: 2; }
        .mt-form-item-help-text--small {
          font-size: var(--form-help-small-font-size); }
        .mt-form-item-help-text--medium {
          font-size: var(--form-help-medium-font-size); }
        .mt-form-item-help-text--large {
          font-size: var(--form-help-large-font-size); }
    .mt-form-item-required {
      color: var(--form-required-color);
      font-size: var(--form-required-font-size); }
      .mt-form-item-required:before {
        font-size: var(--form-required-font-size);
        display: inline-block; }
      .mt-form-item-required--small {
        line-height: calc(var(--form-label-small-font-size) * 1.5); }
      .mt-form-item-required--medium {
        line-height: calc(var(--form-label-medium-font-size) * 1.5); }
      .mt-form-item-required--large {
        line-height: calc(var(--form-label-large-font-size) * 1.5); }
      .mt-form-item-required--inset {
        font-size: var(--form-required-inset-font-size);
        position: absolute;
        transform: translateX(-100%); }
        .mt-form-item-required--inset-small {
          line-height: calc(var(--form-label-inset-small-font-size) * 1.5); }
        .mt-form-item-required--inset-medium {
          line-height: calc(var(--form-label-inset-medium-font-size) * 1.5); }
        .mt-form-item-required--inset-large {
          line-height: calc(var(--form-label-inset-large-font-size) * 1.5); }

/*
  @component upload
  @display Upload
  @chinese 上传
  @family data-entry
*/
:root {
  /*
   @desc size
   @namespace card/size
   @semantic 卡片大小
   */
  --upload-card-size: 20.466666666666665vw;
  /*
   @desc icon-size
   @namespace card/size
   @semantic 图标大小
   */
  --upload-card-icon-size: var(--p-headline-icon-size);
  /*
   @desc font-size
   @namespace card/size
   @semantic 文字大小
   */
  --upload-card-font-size: var(--p-caption-font-size);
  /*
   @desc small-icon-size
   @namespace card/size
   @semantic 小图标大小
   */
  --upload-card-small-icon-size: var(--p-subhead-icon-size);
  /*
   @desc spacing
   @namespace card/size
   @semantic 内容间距
   */
  --upload-card-spacing: var(--box-medium-spacing);
  /*
   @desc remove-size
   @namespace card/size
   @semantic 删除按钮大小
   */
  --upload-card-remove-size: var(--s-4);
  /*
   @desc remove-icon-size
   @namespace card/size
   @semantic 删除按钮图标大小
   */
  --upload-card-remove-icon-size: var(--p-body-1-icon-size);
  /*
   @desc color
   @namespace card/color
   @semantic 默认颜色
   */
  --upload-card-color: var(--color-text1-1);
  /*
   @desc error-color
   @namespace card/color
   @semantic 错误颜色
   */
  --upload-card-error-color: var(--color-error-3);
  /*
   @desc size
   @namespace card/color
   @semantic 错误颜色
   */
  --upload-card-error-bg: var(--color-error-1); }

.mt-upload {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: var(--s-3);
  grid-row-gap: var(--s-3); }
  .mt-upload-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--s-3); }
    .mt-upload-header--extra {
      flex-direction: column;
      justify-content: flex-start; }
  .mt-upload-label {
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    max-width: 66.66666666666667vw;
    color: var(--form-label-color);
    text-align: left;
    line-height: 1.5; }
    .mt-upload-label--small {
      font-size: var(--form-label-inset-small-font-size); }
    .mt-upload-label--medium {
      font-size: var(--form-label-inset-medium-font-size); }
    .mt-upload-label--large {
      font-size: var(--form-label-inset-large-font-size); }
  .mt-upload-extra {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center; }
  .mt-upload-counter {
    color: var(--color-text1-2);
    font-size: var(--p-body-1-font-size);
    line-height: 1.5;
    margin-right: var(--box-medium-spacing); }
  .mt-upload-extra-icon {
    color: var(--upload-card-color); }
  .mt-upload-label {
    padding-right: 0; }
  .mt-upload-item {
    border-width: var(--box-medium-border-width);
    border-style: var(--line-dashed);
    border-radius: var(--box-medium-border-radius);
    border-color: var(--upload-card-color);
    color: var(--upload-card-color);
    font-size: var(--upload-card-font-size); }
    .mt-upload-item--card {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      box-sizing: border-box;
      width: var(--upload-card-size);
      height: var(--upload-card-size);
      position: relative; }
    .mt-upload-item--error {
      color: var(--upload-card-error-color);
      border-style: var(--line-solid);
      border-color: var(--upload-card-error-color);
      background-color: var(--upload-card-error-bg); }
    .mt-upload-item--uploading, .mt-upload-item--done {
      border-style: none; }
    .mt-upload-item-icon {
      font-size: var(--upload-card-icon-size); }
      .mt-upload-item-icon--small {
        font-size: var(--upload-card-small-icon-size); }
    .mt-upload-item-preview {
      border-radius: var(--box-medium-border-radius);
      background-position: center;
      background-size: contain;
      background-repeat: no-repeat;
      width: 100%;
      height: 100%; }
    .mt-upload-item-progress {
      position: absolute;
      bottom: 0;
      left: 0;
      padding-top: 0;
      padding-bottom: 0;
      margin-bottom: 0;
      box-sizing: border-box; }
    .mt-upload-item-waiting {
      border: var(--box-medium-border-width) var(--line-solid) var(--upload-card-color);
      border-radius: var(--box-medium-border-radius);
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center; }
    .mt-upload-item-error {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 100%; }
    .mt-upload-item-remove {
      position: absolute;
      top: 0;
      right: 0;
      transform: translate(40%, -40%);
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      border-radius: 50%;
      width: var(--upload-card-remove-size);
      height: var(--upload-card-remove-size);
      text-align: center; }
      .mt-upload-item-remove-icon {
        height: var(--upload-card-remove-size);
        line-height: var(--upload-card-remove-size);
        font-size: var(--upload-card-remove-icon-size); }
