@import (reference) "../style/themes/default.less";

@result-lg-pic-size: 400 * @pixelSize; /* 全局异常组件背景图片尺寸 */
@result-sm-pic-size: 200 * @pixelSize; /* 局部异常组件背景图片尺寸 */
@result-brief-min-margin: 192 * @pixelSize; /* 异常组件副标题最小水平间距 */

.am-page-result {
  display: flex;
  flex-direction: column;
  background: @color-fill-grey-inverse;
  background: var(--am-result-background, @color-fill-grey-inverse);
  height: 100vh;
  overflow: hidden;

  &-pic {
    width: @result-lg-pic-size;
    height: @result-lg-pic-size;
    margin: calc(50vh - @result-lg-pic-size) auto 0;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
  }

  &-title {
    margin: @size-5 auto 0;
    margin: var(--am-result-margin-vertical, @size-5) auto 0;
    max-width: calc(100vw - @size-12);
    max-width: calc(100vw - var(--am-result-title-h-spacing, @size-12));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: @font-size-title;
    font-size: var(--am-result-title-fontSize, @font-size-title);
    color: @color-text-title;
    color: var(--am-result-title-color, @color-text-title);
  }

  &-brief {
    margin: 0 auto;
    padding-top: @v-spacing-large;
    padding-top: var(--am-result-brief-margin-top, @v-spacing-large);
    font-size: @font-size-content;
    font-size: var(--am-result-brief-fontSize, @font-size-content);
    color: @color-text-subtitle;
    color: var(--am-result-brief-color, @color-text-subtitle);
    max-width: calc(100vw - @result-brief-min-margin);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-align: center;
  }

  &-button {
    text-align: center;
    margin: @size-5 auto 0;
    margin: var(--am-result-margin-vertical, @size-5) auto 0;

    &-right {
      margin-left: @h-spacing-large;
      margin-left: var(--am-result-button-margin-left, @h-spacing-large);
    }
  }
}

.am-local-page {
  height: 100%;
  padding-bottom: @size-5;
  padding-bottom: var(--am-result-margin-vertical, @size-5);

  .am-page-result-pic {
    width: @result-sm-pic-size;
    height: @result-sm-pic-size;
    margin: @size-5 auto 0;
    margin: var(--am-result-margin-vertical, @size-5) auto 0;
    background-size: contain;
  }

  .am-page-result-brief {
    font-size: @font-size-subtitle;
    font-size: var(--am-result-local-brief-fontSize, @font-size-subtitle);
  }
}

.page-empty {
  background-image: url("https://gw.alipayobjects.com/mdn/rms_997765/afts/img/A*wKJQR6FwnMgAAAAAAAAAAABkARQnAQ");
}

.page-error {
  background-image: url("https://gw.alipayobjects.com/mdn/rms_997765/afts/img/A*J-gFS7ezs-0AAAAAAAAAAABkARQnAQ");
}

.page-network {
  background-image: url("https://gw.alipayobjects.com/mdn/rms_997765/afts/img/A*QQl_SJ8PNjwAAAAAAAAAAABkARQnAQ");
}

.page-busy {
  background-image: url("https://gw.alipayobjects.com/mdn/rms_997765/afts/img/A*4z6jTpc3lnQAAAAAAAAAAABkARQnAQ");
}

.page-logoff {
  background-image: url("https://gw.alipayobjects.com/mdn/rms_997765/afts/img/A*NplJSrfoAYYAAAAAAAAAAABkARQnAQ");
}

.page-payment {
  background-image: url("https://gw.alipayobjects.com/mdn/rms_997765/afts/img/A*utEARL8Wu0EAAAAAAAAAAABkARQnAQ");
}

.page-redpacket {
  background-image: url("https://gw.alipayobjects.com/mdn/rms_997765/afts/img/A*A1-PRJsm9_cAAAAAAAAAAABkARQnAQ");
}
