<template>
  <div class="word_form_skeleton_2">
    <div class="select-container">
      <div class="header">
        <text class="t-icon t-icon-jinghao"></text>
        <text class="title"></text>
      </div>
      <div class="content">
        <div class="content-row">
          <div class="scroll-view_H">
            <div v-for="(item, idx4) in 3" :key="idx4" class="content-col">
              <div class="enDesc"></div>
              <div class="labels"></div>
              <div class="accents-box">
                <div class="accents usAccents"></div>
              </div>
              <div class="accents-box">
                <div class="accents usAccents"></div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="word_meaning_skeleton_2">
    <div class="header">
      <text class="t-icon t-icon-jinghao"></text>
      <text class="title"></text>
    </div>
    <div class="g-container">
      <div v-for="(item, idx1) in 1" :key="idx1" class="interpretation-box">
        <div class="meaing-box">
          <text class="meaning"></text>
        </div>
        <div v-for="(itx, idx2) in 1" :key="idx2" class="lizi-box">
          <text class="show"></text>
          <div class="parent-box">
            <div class="content">
              <div :class="['left']">
                <div class="znDesc"></div>
                <div class="enDesc"></div>
              </div>
              <div class="right">
                <div class="img-content-loading"></div>
                <div :class="['img-content']">
                  <image mode="center" :class="['img']"></image>
                </div>
              </div>
            </div>
          </div>
          <div class="child-box">
            <div v-for="(child, idx3) in 4" :key="idx3" class="child">
              <div class="content">
                <div class="circle">{{ idx3 + 1 }}</div>
                <div :class="['content-box']">
                  <div class="all-content">
                    <div class="left">
                      <div class="desc-box">
                        <div class="enDesc"></div>
                        <div class="znDesc"></div>
                      </div>
                    </div>
                    <div class="right">
                      <div class="img-content-loading"></div>
                      <image class="img" mode="center"> </image>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="bottom-box">
            <text class="meaning"></text>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.word_form_skeleton_2 {
  padding-bottom: 2.67vh;
  border-bottom: 0.08vh dashed #d9d163;

  .select-box {
    max-width: 1440px;
    height: 5.33vh;
    border-radius: 1.67vh;
    border: 0.17vh solid #d9d163;
    background-color: #fffbc2;

    color: #000000bf;
    font-family: $font-special;
    font-size: 3vh;
    font-weight: 400;
    @include animation(animation-fff999, #fff999);
    .scroll-view_H {
      overflow: auto;
      white-space: nowrap;
      // width: 100%;
      // 隐藏滚动条

      .select-item {
        width: 320px;
        height: 5.33vh;
        text-align: center;
        line-height: 5.33vh;
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;

        &.active {
          background-color: #fff78c;
          border: 0.33vh solid #6a390659;
          border-radius: 1.67vh;
          animation: loading2 2s ease infinite;
        }
      }
    }
  }

  .select-container {
    width: 100%;
    height: 26.33vh;
    margin-top: 4vh;

    // padding-bottom: 32px;
    // border-bottom: 1px dashed #d9d163;
    .header {
      display: flex;
      align-items: center;

      .t-icon {
        width: 5.33vh;
        height: 5.33vh;
      }

      .title {
        font-family: $font-text;
        height: 5vh;
        background-color: #fffbc2;
        border-radius: 0.83vh;
        width: 403px;
        @include animation(animation-fff999, #fff999);
      }
    }

    .content {
      margin: 1.33vh 0 0 52px;
      box-sizing: border-box;
      height: 19.17vh;

      .content-row {
        display: flex;
        font-family: $font-text;
        font-size: 2.33vh;
        font-weight: 500;
        color: #000000a6;

        // height: 100%;
        .scroll-view_H {
          overflow: auto;
          white-space: nowrap;
          width: 100%;
        }

        .content-col {
          height: 100%;
          margin-right: 64px;
          display: inline-flex;
          flex-direction: column;
          justify-content: space-between;

          .enDesc {
            height: 4.33vh;
            font-size: 2.83vh;
            color: #000000bf;
            background-color: #fffbc2;

            border-radius: 0.83vh;
            @include animation(animation-fff999, #fff999);
          }

          .labels {
            height: 4.33vh;
            margin: 0.67vh 0;
            background-color: #fffbc2;

            border-radius: 0.83vh;
            @include animation(animation-fff999, #fff999);
          }

          .accents-box {
            display: flex;
            align-items: center;
            font-family: $font-text;
            font-size: 2vh;
            font-weight: 400;

            .accents {
              display: flex;
              align-items: center;
              margin-right: 20px;
              width: 112px;
              height: 3.17vh;
              background-color: #fffbc2;

              border-radius: 0.83vh;
              margin-bottom: 0.67vh;
              @include animation(animation-fff999, #fff999);
            }
          }
        }
      }
    }
  }
}

.word_meaning_skeleton_2 {
  padding-top: 4vh;

  .header {
    display: flex;
    align-items: center;

    .t-icon {
      width: 5.33vh;
      height: 5.33vh;
    }

    .title {
      width: 403px;
      height: 5vh;
      background-color: #fffbc2;

      border-radius: 0.83vh;
      @include animation(animation-fff999, #fff999);
    }
  }

  .g-container {
    .interpretation-box {
      margin-top: 1.33vh;

      .meaing-box {
        display: flex;
        flex-direction: column;
        font-family: $font-text;
        margin: 2.67vh 0 1.33vh 75px;

        .meaning {
          height: 4.5vh;
          width: 290px;
          border-radius: 0.83vh;
          font-size: 3vh;
          font-weight: 500;
          line-height: 4.5vh;
          position: relative;
          background-color: #fffbc2;
          @include animation(animation-fff999, #fff999);

          &::before {
            content: '';
            width: 12px;
            height: 4.5vh;
            box-sizing: border-box;
            border-radius: 0.33vh;
            border: 0.33vh solid #6a3906;
            background-color: #fff01f;
            position: absolute;
            left: -18px;
          }
        }
      }

      .lizi-box {
        .show {
          display: inline-block;
          height: 4vh;
          width: 280px;
          font-size: 2.67vh;
          font-weight: 400;
          line-height: 4vh;
          color: #ffa51f;
          margin-left: 88px;
          background-color: #fffbc2;

          border-radius: 0.83vh;
          @include animation(animation-fff999, #fff999);
        }

        .parent-box {
          width: 1352px;
          // height: 320px;
          border: 0.33vh solid #d9d163;
          background-color: #fffef2;
          border-radius: 3.33vh;
          overflow: hidden;
          margin-left: 78px;
          margin-top: 1.33vh;

          .content {
            display: flex;
            justify-content: space-between;
            height: 26.67vh;

            .left {
              padding: 8.33vh 32px 8.33vh 56px;
              box-sizing: border-box;
              flex: 1;

              &.left-not {
                padding: 6.67vh 32px 6.67vh 56px;
              }

              .enDesc,
              .znDesc {
                font-family: $font-text;
                font-size: 3.33vh;
                font-weight: 500;
                line-height: 5vh;
                background-color: #fffbc2;

                border-radius: 0.83vh;
                display: inline-block;
                width: 784px;
                height: 5vh;
                @include animation(animation-fff999, #fff999);
              }

              .znDesc {
                width: 120px;
              }
            }

            .right {
              // width: 480px;
              position: relative;

              .img-content-loading {
                position: absolute;
                width: 480px;
                height: 100%;
                top: 0;
                right: 0;
                background-color: #fffaba;
                @include animation(animation-fff999, #fff999);
              }

              .img-content {
                // width: 480px;
                height: 100%;

                // border-left: 2px solid #d9d163;
                .img {
                  width: 480px;
                  height: 100%;
                  object-fit: cover;
                  position: relative;
                  // border-radius: 0 40px 40px 0;
                  // border-left: 2px solid #d9d163;

                  box-sizing: border-box;

                  video {
                    width: 100%;
                    height: 100%;
                  }

                  .box {
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    top: 0;
                    left: 0;
                    z-index: 999;
                  }
                }
              }
            }
          }
        }

        .child-box {
          display: flex;
          flex-direction: column;
          align-items: flex-end;
          position: relative;

          &::before {
            content: '';
            width: 2px;
            height: 100%;
            position: absolute;
            top: 0;
            left: 116px;
            background-color: #d9d163;
          }

          .child {
            width: 1240px;
            background-color: #fffef2;
            margin-bottom: 1.33vh;
            position: relative;

            &:first-child {
              margin-top: 2.67vh;
            }

            &:last-child {
              &::before {
                content: '';
                width: 14px;
                height: 70%;
                position: absolute;
                top: calc(50% - 15px);
                left: -86px;
                background-color: #fffef2;
              }
            }

            .content {
              position: relative;

              .mainword {
                font-size: 3vh;
                line-height: 4.5vh;
                color: #ffa51f;
                margin: 2.67vh 0 1.33vh 80px;
                background-color: #fffaba;
              }

              .content-box {
                border-radius: 2.5vh;
                border: 0.17vh solid #d9d163;
                box-sizing: border-box;
                overflow: hidden;
                height: 13.17vh;

                .all-content {
                  display: flex;
                  position: relative;
                  justify-content: space-between;
                  height: 100%;

                  .left {
                    padding: 2.67vh 0 2.67vh 80px;
                    box-sizing: border-box;
                    font-family: $font-text;
                    font-weight: 500;

                    .desc-box {
                      display: flex;
                      flex-direction: column;

                      .enDesc {
                        font-size: 2.67vh;
                        word-spacing: 4px;
                        color: #000000a6;
                        line-height: 4vh;
                        display: inline-block;
                        width: 718px;
                        height: 4vh;
                        background-color: #fffbc2;

                        border-radius: 0.83vh;
                        margin-bottom: 0.67vh;
                        @include animation(animation-fff999, #fff999);
                      }

                      .znDesc {
                        line-height: 3.5vh;
                        font-size: 2.33vh;
                        font-weight: 400;
                        color: #00000073;
                        display: inline-block;
                        width: 200px;
                        height: 4vh;
                        background-color: #fffbc2;

                        border-radius: 0.83vh;
                        @include animation(animation-fff999, #fff999);
                      }
                    }
                  }

                  .right {
                    .img-content-loading {
                      position: absolute;
                      width: 240px;
                      height: 100%;
                      right: 0;
                      top: 0;
                      background-color: #fffaba;
                      @include animation(animation-fff999, #fff999);
                    }

                    .img {
                      object-fit: cover;
                      width: 240px;
                      height: 100%;

                      // border-radius: 0 30px 30px 0;
                      video {
                        width: 100%;
                        height: 100%;
                      }

                      .box {
                        position: absolute;
                        width: 100%;
                        height: 100%;
                        top: 0;
                        left: 0;
                        z-index: 999;
                      }
                    }
                  }
                }

                &.content-box2 {
                  padding-bottom: 2vh;

                  .all-content {
                    margin-left: 112px;
                    width: 1130px;
                    border: 0.17vh solid #d9d163;
                    border-right: none;
                    // padding: 25px 0 25px 8px;
                    border-radius: 2.5vh 0 0 2.5vh;
                    overflow: hidden;
                    box-sizing: border-box;

                    .left {
                      padding: 2.08vh 0 2.08vh 56px;
                    }

                    .right {
                      // .img {
                      //     border-radius: 0;
                      // }
                    }
                  }
                }
              }

              .circle {
                position: absolute;
                width: 80px;
                height: 6.67vh;
                border: 0.17vh solid #d9d163;
                border-radius: 50%;
                top: calc(50% - 40px);
                left: -40px;
                background-color: #fffef2;
                font-family: $font-special;
                font-size: 3.33vh;
                font-weight: 400;
                color: #d9d163;
                text-align: center;
                line-height: 6.67vh;

                &::before {
                  content: '';
                  // background-image: url('@/static/wordDetail/line3.png');
                  background-repeat: no-repeat;
                  position: absolute;
                  // background-size: 41.5px 22px;
                  // width: 41.5px;
                  // height: 22px;
                  // top: calc(50% - 20px);
                  // left: -40px;
                  background-size: 2vw 1vw;
                  width: 2vw;
                  height: 1vw;
                  top: calc(50% - 1vw);
                  left: -2vw;
                }
              }
            }
          }
        }
      }

      .bottom-box {
        width: 1440px;
        height: 13.67vh;
        padding: 2vh 48px;
        box-sizing: border-box;
        border-radius: 1.67vh;
        background-color: #fae9be;
        font-family: $font-text;
        font-size: 2.67vh;
        font-weight: 500;
        line-height: 4.83vh;
        margin: 4vh 0;
        @include animation(animation-fae0a0, #fae0a0);
      }
    }
  }
}
</style>
