<template>
  <div class="right-content">
    <p class="right-arrow">
      <i class="el-icon-arrow-right"></i>
    </p>
    <div class="control-panel">
      <ul class="tab-nav cl">
        <li class="video-chapter current">章节</li>
        <li class="video-jy">讲义</li>
      </ul>
      <div class="tab-content">
        <div class="tab-pane">
          <ul class="chapter-list">
            <li class="chapter-item">
              <h4>第一章 战略管理与竞争力</h4>
              <ul class="knob-list">
                <li class="knob-item current">
                  <div class="knob-progress"></div>
                  <i class="icon icon-pro" title="学习进度 5%"></i>
                  <a class="knob-name" href="">1.1 战略管理概述</a>
                  <i class="el-icon el-icon-tickets"></i>
                </li>
                <li class="knob-item">
                  <div class="knob-progress"></div>
                  <i class="icon icon-pro" title="学习进度 5%"></i>
                  <a class="knob-name" href="">战略管理第一章课后试题</a>
                  <i class="el-icon el-icon-menu"></i>
                </li>
              </ul>
            </li>
          </ul>
          <ul class="jiangyi-list">
            <li class="current">
              <img src="https://img1.ezijing.com/curriculum/ppt/958dbedd5201f69068d8fe61e907d4dc.jpg" alt="" />
            </li>
            <li>
              <img src="https://img1.ezijing.com/curriculum/ppt/d9bbc0df0179f47b4de7f833b592d869.jpg" alt="" />
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.right-content {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 200;
  width: 350px;
  background: #212121;
  border-left: 19px solid #1b1b1b;

  /* 箭头 */
  .right-arrow {
    position: absolute;
    top: 0;
    left: -19px;
    bottom: 0;
    width: 19px;
    height: 100%;
    font-size: 14px;
    color: #969696;
    cursor: pointer;
    i {
      position: absolute;
      top: 50%;
      left: 0;
      width: 19px;
      margin-top: -10px;
      text-align: center;
      color: #fff;
    }
  }
  .control-panel {
    position: relative;
    height: 100%;

    /* 选择项 */
    .tab-nav {
      margin: 0;
      padding: 15px 0;
      line-height: 1.6;
      border-bottom: 0;
      background-color: #232323;
      overflow: hidden;
      li {
        float: left;
        position: relative;
        width: 50%;
        padding: 0;
        font-size: 16px;
        line-height: 28px;
        color: #909090;
        text-align: center;
        list-style: none;
        cursor: pointer;
        &.current {
          color: #b49441;
        }
      }
      .video-jy {
        border-left: 1px solid #3f3f3f;
      }
    }
    .tab-content {
      .tab-pane {
        display: block;
        height: 100%;
        overflow: auto;
      }

      /* 章列表样式 */
      .chapter-list {
        margin: 0;
        padding: 0;
        line-height: 1.6;
        overflow: hidden;
        .chapter-item {
          h4 {
            padding: 10px 22px;
            margin: 0;
            color: #b0b0b0;
            background-color: #2f2f2f;
          }
        }
      }
    }

    /* 节列表样式 */
    .knob-list {
      margin: 0;
      padding: 0;
      line-height: 1.6;
      overflow: hidden;
      li {
        position: relative;
        &.current {
          background: #232323;
          a {
            color: #b49441;
          }
        }
        &:before {
          display: block;
          content: "";
          position: absolute;
          left: 13px;
          top: 16px;
          z-index: 10;
          width: 18px;
          height: 18px;
          background: #5b5b5b;
          border: 2px solid #5b5b5b;
          border-radius: 50%;
        }
        &:after {
          display: block;
          content: "";
          position: absolute;
          left: 22px;
          top: 0;
          z-index: 5;
          width: 1px;
          height: 100px;
          background: #616161;
        }
      }
      .knob-progress {
        position: absolute;
        top: 16px;
        left: 13px;
        z-index: 20;
        display: none\0;
      }
      .icon-pro {
        display: none;
        position: absolute;
        top: 16px;
        left: 23px;
        z-index: 15;
        width: 19px;
        height: 19px;
        border-radius: 9px;
        display: block\0;
      }
      .knob-name {
        display: block;
        padding: 15px 35px 15px 40px;
        font-size: 14px;
        color: #909090;
        text-decoration: none;
        cursor: pointer;
      }
    }
  }

  /* 章节后面小图标的样式 */
  .el-icon {
    display: inline-block;
    position: absolute;
    right: 13px;
    top: 19px;
  }

  /* 讲义列表样式 */
  .jiangyi-list {
    padding: 8px 16px;
    li {
      padding: 8px 16px;
      cursor: pointer;
      list-style: none;
      &.current {
        background: #888;
      }
      img {
        width: 100%;
      }
    }
  }
}

</style>