::-webkit-scrollbar {
    width: 4px;
    height: 1px;
}


::-webkit-scrollbar-thumb {
    border-radius: 4px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: #ccc;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}


::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background: #000000;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #888888 !important;
    font-weight: normal !important;
}

input:-moz-placeholder,
textarea:-moz-placeholder {
    color: #888888 !important;
    font-weight: normal !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #888888 !important;
    font-weight: normal !important;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #888888 !important;
    font-weight: normal !important;
}

.disable {
    opacity: 0.5;
    pointer-events: none !important;

    * {
        pointer-events: none !important;
    }
}

.preview {
    position: relative;
    background-color: #161a1a;
    border: 1px solid #555a5a;
    width: 216px;
    height: 216px;
    margin-right: 20px;
    color: #a0a0a0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    .tips { 
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        overflow:hidden;
        > div {
            font-size: 12px;
        }
    }
}


@gap:10px;
.pano-con{
    background: #161A1A;
    height: 700px;
    position: relative;
    padding: 30px @gap;
    >ul{
      display: flex;
      flex-wrap: wrap;
      >li{
        position: relative;
        margin: @gap @gap @gap*4;
        width: 172px;
        height: 172px;
        border: 2px solid rgba(0, 0, 0,0);
        .ui-title{
            width: 100%;
            >span{
                width: 100%;
                font-size: 14px;
                color: rgba(255, 255, 255, 0.88);
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                overflow: hidden;
            }
        }
        .typeli,.oper{
            position: absolute;
            width: 32px;
            height: 32px;
            z-index: 11;
            top: 10px;
            left: 10px;
            background: rgba(0, 0, 0, 0.5);
          >i{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
          }
        }

        .oper{
            top: unset;
            left: unset;
            bottom: 10px;
            right: 10px;
            width: 62px;
            height: 32px;
            cursor: pointer;
            background: none;
          >ul{
            display: none;
            box-shadow: 0 0 6px rgba(255,255,255,0.4);
            background: #161A1A;
            position: absolute;
            bottom: 32px;
            left: 50%;
            transform: translateX(-50%);
            >li{
              line-height: 35px;
              height: 35px;
              text-align: center;
              min-width: 98px;
              &:hover{
                color: @color;
                background: #252828;
              }
            }
            
          }
          >i{
            position: absolute;
            top: 50%;
            right: 8px;
            left: unset;
            transform: translateY(-50%);
          }
          &::before{
            content: '';
            display: inline-block;
            width: 32px;
            position: absolute;
            right: 0;
            bottom: 0;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 50%;
          }
          &:hover{
             >ul{
              display: block;
             }
          }
        }
        
        
        .img{
            width: 100%;
            overflow: hidden;
            height: 100%;
            position: relative;
            >img{
                width: auto;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%,-50%);
                height: 100%;
            }
        }

      }
      .li-active{
        border-color:  @color;
        &::before {
            content: "";
            display: inline-block;
            background: rgba(0, 0, 0, 0.5);
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
        }
      }
      .li-uploading{
        &::before {
            content: "";
            display: inline-block;
            background: rgba(0, 0, 0, 0.5);
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            z-index: 9;
        }
        &::after{
            content: "\56fe\7247\5904\7406\4e2d...";
            display: inline-block;
            position: absolute;
            left: 50%;
            width: 100%;
            text-align: center;
            top: 50%;
            transform: translate(-50%,-50%);
            z-index: 10;
        }
      }
      .li-fail{
        &::before {
            content: "";
            display: inline-block;
            background: rgba(0, 0, 0, 0.5);
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            z-index: 9;
            top: 0;
        }
        &::after{
            content: "\751f\6210\5931\8d25";
            display: inline-block;
            position: absolute;
            left: 50%;
            width: 100%;
            text-align: center;
            z-index: 10;
            top: 50%;
            transform: translate(-50%,-50%);
        }
      }
    }
    .add-btn{
      position: absolute;
      bottom: 30px;
      right: 30px;
      .ui-button{
        padding: 0 15px;
        >i{
            margin-right: 4px;
        }
      }
    }
  }

  .pano-label {
    width: 100%;
    margin-top: 20px;
    >ul {
        display: flex;
        >li {
          width: 100px;
          height: 32px;
          line-height: 32px;
          padding: 0 5px;
          text-align: center;
          border-top: solid 1px #5d5d5d;
          border-right: solid 1px #5d5d5d;
          border-bottom: solid 1px #5d5d5d;
          overflow: hidden;
          text-overflow: ellipsis;
          &:first-child {
              border-left: solid 1px #5d5d5d;
          }
          &.active {
              background-color: @color;
          }
      }
    }
}

.ui-title-big{
    display: block;
    white-space: normal;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom:10px;
    color: #fff;
}

.ui-title{
    display: flex;
    justify-content: space-between;
    white-space: normal;
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
    margin-bottom:10px;
}

.ui-remark{
    display: block;
    white-space: normal;
    font-size: 12px;
    line-height: 1.5;
    color: #ababab;
}

.require{
    position: relative;
    &::before{
        content: '*';
        display: inline-block;
        color: #F56C6C;
        width: 10px;
        height: 10px;
        position: absolute;
        right: -15px;
        top: 0;
    }
}

.ui-hidden {
    display: none !important;
}

.ui-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-button {
    height: 34px;
    line-height: 1;
    border-radius: 17px;
    border: 1px solid @color;
    background-color: transparent;
    text-align: center;
    letter-spacing: 1px;
    font-size: 12px;
    outline: none;
    white-space: nowrap;
    cursor: pointer;

    &.submit {
        color: #fff;
        background-color: @color;
    }

    &.cancel {
        color: @color;
        background-color: transparent;
    }

    &.block {
        width: 100%;
    }

    &.link {
        display: inline-block;
        text-decoration: none;
        height: 34px;
        line-height: 36px;
    }
    &.danger {
        background-color: #c80303;
        border-color: #c80303;
        color: #fff;
    }
}

.ui-input {
    outline: none;
    border: 1px solid #555A5A;
    background-color: #161A1A;
    padding: 0 10px;
    color: #fff;
    letter-spacing: 1px;
    border-radius: 2px;
    height: 32px;
    width: 100%;
    font-size: 12px;
}

.ui-textarea{
    height: 180px;
    padding-top: 10px;
    resize: none;
}

.ui-warning {
    position: relative;

    .ui-input {
        animation: warn-flash 0.6s linear;
        animation-direction: alternate;
        animation-iteration-count: infinite;
        border-color: #a7a7a7 !important;
    }

    .ui-warning-label {
        transform: scale(1, 1);
        opacity: 1;
    }
}

.ui-warning-label {
    position: fixed;
    pointer-events: none;
    transform: scale(0, 1);
    right: 241px;
    width: 300px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #fff;
    z-index: 10000;
    margin-top: 0px;
    color: @color !important;
    font-size: 14px;
    box-shadow: -1px 2px 8px 0px rgba(0, 0, 0, 0.25);
    transition: opacity 0.3s, transform 0.2s;
    transform-origin: right;

    &::after {
        content: '';
        display: block;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 7px 0 6px 10px;
        border-color: transparent transparent transparent #ffffff;
        position: absolute;
        right: -10px;
        top: 9px;
    }
}

.ui-message {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 999;
    background: #fff;
    width: 500px;
    color: #000;
    text-align: center;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border-radius: 9px;
    box-shadow: 0 0px 35px rgba(0, 0, 0, 0.3);
    &.dark{
        background: #252828;
        .ui-message-header {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);;
            span {
                color: #fff;
        
                &:last-child {
                    color: rgba(255, 255, 255, 0.5);
                }
            }
        }
    }
}

.ui-message-header {
    width: 100%;
    border-bottom: 1px solid #e3e3e3;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    display: flex;
    justify-content: space-between;

    span {
        margin-left: 14px;

        &:last-child {
            width: 40px;
            cursor: pointer;
        }
    }
}

.ui-message-footer {
    margin: 18px 0;

    .ui-button {
        width: 120px;
        margin: 0 18px;
        font-size: 14px;
        height: 40px;
        border-radius: 20px;
    }
}

.ui-message-main {
    .ui-message-icon {
        height: 108px;
        margin: 18px 0;
        background-image: url(~@/assets/images/icons/icon-ask.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        &.ok{
            background-image: url(~@/assets/images/icons/icon-ok.png);
        }
    }

    .ui-message-title {
        font-size: 18px;
        font-weight: bold;
    }

    .ui-message-content {
        font-size: 14px;
        margin: 20px;
        margin-bottom: 30px;
    }
}

.animated.speed {
    -webkit-animation-duration: .2s;
    animation-duration: .2s
}

@keyframes warn-flash {
    0% {
        background-color: rgba(2, 200, 174, 0);
    }

    100% {
        background-color: rgba(2, 200, 174, 1);
    }
}

@keyframes bouncedelay {

    0%,
    80%,
    100% {
        transform: scale(0.0);
    }

    40% {
        transform: scale(1.0);
    }
}

@keyframes spinner {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

[show-mode="mobile"],
[edit-mode="mobile"] {
    .ui-button.cancel {
        color: #fff;
        border: 1px solid #ccc;
        background-color: transparent;
    }

    .ui-message {
        width: 8rem;

        .ui-message-header {
            display: none;
        }

        .ui-message-title {
            font-size: .4rem;
            font-weight: 600;
            margin-bottom: 0;
            color: #595959;
        }

        .ui-message-content {
            font-size: .3rem;
            font-weight: 400;
            color: #595959;
            margin: 0.5rem;
            margin-top: 0.2rem;
        }

        .ui-message-footer {
            margin-bottom: 0;
            white-space: nowrap;
            a.link,
            button {
                //float: right;
                width: 50%;
                height: 1.4rem;
                letter-spacing: 1px;
                margin: 0;
                border-radius: 0;
                font-size: .4rem;
                border: none;

                &:last-child {
                    background-color: fade(@color,40%);
                }

                &:first-child:last-child {
                    width: 100%;
                    background-color: @color;
                }
            }
            a.link{
                line-height: 1.4rem;
            }
        }
    }

    @media (orientation: landscape) {
        .ui-message {
            width: 7rem;
            .ui-message-icon {
                height: 80px;
            }
            .ui-message-content {
                font-size: .25rem;
                font-weight: 400;
            }
            .ui-message-footer {
                button {
                    height: 1rem;
                    font-size: 0.3rem;
                }
                a.link{
                    height: 1rem;
                    line-height: 1rem;
                }
            }
        }
    }
}