//主色
@mainColor: #404868;
//辅色
@auxColor: #40b0f6;
//字体
@white: #ffffff;
//背景色
@bgColor: #ffffff;
//浅色
@lightColor: #f1f1f1;
//深色
@darkColor: #bbbbbb;
// 菜单 字体颜色
@itemFontColor: #000000;
//日历标识色
@dayColor: #ffbb00;

body{font-size: 12px;line-height: 1.2;-webkit-user-select: none;}
*{padding: 0;margin: 0;box-sizing: border-box;}

/*-窗口视图-*/
.app-window{
    display: flex;width: 1280px;height: 860px;background-color: @lightColor;position: relative;
}

/*-主页-*/
.app-home{
    display: flex;flex: 1280;
    &>.left{
        width:220px;flex: 220;background-color: @mainColor;position: relative;
        .logo{
            height: 130px;text-align: center;font-size: 18px;color: @white;
            img{width: 80px;margin-top: 10px;}
            .logoTitle{}
        }
        .menus{
            border-top: 1px solid rgba(0,0,0,0.1);max-height: 620px;padding-bottom: 10px;overflow-y: scroll;
            .item{
                font-size: 14px;padding-left: 30px;height: 50px;line-height: 50px;color: @white;cursor: pointer;
                &.active,&:hover{padding-left: 26px;border-left: 4px solid @auxColor;background: linear-gradient(to right, rgba(0,0,0,.1), rgba(0,0,0,0));}
                &:active{background-color: rgba(255,255,255,0.05);}
            }
            .add{
                width: 90%;margin-left: 5%;height: 50px;line-height: 50px;color: rgba(255,255,255,.2);text-align: center;cursor: pointer;border: 1px dotted rgba(255,255,255,.2);
                &:after{content: '+';font-size: 30px;font-weight: bold;display: block;}
                &:hover{border-color: rgba(255,255,255,.4);color: rgba(255,255,255,.4);}
            }
        }
        .bottom{
            position: absolute;bottom: 10px;color: @white;width: 100%;padding-top: 10px;
            .date{
                width: 150px;margin: 0 auto;
                .day{font-size: 36px;width: 60px;line-height:60px;text-align: center;display: inline-block;vertical-align: middle;background: @dayColor;}
                .right{
                    display: inline-block;margin-left: 10px;vertical-align: middle;
                    .week{font-size: 18px;line-height: 30px;}
                    .lunar{font-size: 14px;}
                }
            }
            .copy{text-align: center;font-size: 12px;line-height: 28px;}
        }
    }
    &>.right{
        flex: 1060;position: relative;border-top:1px solid @darkColor;border-right:1px solid @darkColor;border-bottom:1px solid @darkColor;
        // 顶部功能条
        .topBar{
            height: 60px;background: @bgColor;
            // 搜索条
            .searchBar{
                position: relative;display: inline-block;width:320px;height: 40px;margin: 10px 10px 10px 50px;border-radius: 8px;background: @lightColor url(../img/search-icon.png) no-repeat 10px center;
                input{width: 280px;height: 40px;margin-left: 40px;padding-right: 50px;background: transparent;border: none;outline: none;}
                .clearSearch{position: absolute;right: 10px;top: 5px;width: 30px;height: 30px;line-height: 30px;border-radius: 15px;background: rgba(0,0,0,0.1);color: @white;text-align: center;font-size: 18px;cursor: pointer;}
            }
            // 窗口按钮
            .btnBox{
                float: right;
                .btn{font-size: 36px;color: @darkColor;width: 60px;height: 60px;display: inline-block;line-height: 60px;text-align: center;cursor: pointer;}
                .btnMin:hover{background: rgba(0,0,0,.1);}
                .btnClose:hover{color: @white;background: rgba(255,0,0,.6);}
            }
        }
        // 天气 Banner
        .weather{
            position: relative;padding-left: 40px;color: @white;width: 100%;height: 120px;background: url(../img/weather-bg.png) no-repeat center top;
            .location{
                font-size: 14px;float: right;background: url(../img/location-icon.png) no-repeat left center;padding: 10px 20px 10px 20px;
            }
            .weatherTime{color: @lightColor;position: absolute;right: 10px;bottom: 10px;font-size: 12px;}
            .cel{
                padding-top: 10px;
                .weatherIcon{
                    display: inline-block;vertical-align: bottom;
                    img{width: 72px;height: 72px;}
                }
                .degree{font-size: 48px;display: inline-block;vertical-align: bottom;}
                .weatherShort{font-size: 20px;padding-bottom: 8px;display: inline-block;vertical-align: bottom;}
            }
            .remind{font-size: 18px;padding-top: 5px;}
        }
        // 菜单应用列表
        .menu-list{
            position:absolute;top: 200px;bottom: 20px;left: 20px;right: 20px;background: @bgColor;white-space: 0;overflow-y: scroll;
            .item{
                width: 11.11%;padding: 1.5%;display: inline-block;cursor: pointer;vertical-align: top;
                &:active{background-color: rgba(0,0,0,0.2);}
                .icon{
                    width: 100%;
                    img{display: block;width: 100%;padding: 10px;}
                }
                .name{padding: 0 2px;color: @itemFontColor;font-size: 14px;line-height: 18px;max-height: 36px;text-align: center;word-break: break-word;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;}
            }
        }
    }
}

// 右键菜单
.rightClickMenu{
    position: absolute;min-width: 160px;background-color: rgba(255,255,255,1);border: 1px solid rgba(200,200,200,0.6);
    .menuItem:not(.line){
        line-height: 22px;font-size: 14px;color: rgba(0,0,0,0.6);cursor: pointer;position: relative;
        .title{
            padding: 5px 10px;
            &:hover{background-color: rgba(0,0,0,0.3);}
        }
        &:hover .childrenMenu{display: block;}
    }
    .menuItem.line{
        font-size: 0;border-top: 1px solid rgba(0,0,0,0.3);height: 0;margin: 5px;
    }
    &.childrenMenu{
       left: 100%;top:0;display: none;max-height: 150px;overflow-y: scroll;
    }
    // 边缘镜像
    &.imageX{
        transform: translateX(-100%);
        .childrenMenu{
           left: auto;right: 100%;top:0;display: none;
        }
    }
    &.imageY{
        transform: translateY(-100%);
        .childrenMenu{
           left: 100%;top: auto;bottom:0;display: none;
        }
    }
}

// 修改项目
.editItem{
    position: absolute;left: 0px;top:0px;right:0px;bottom:0px;background-color: rgba(0,0,0,.2);
    .content{
        position: absolute;width: 380px;left: 50%;top: 50%;background: @bgColor;padding: 20px;transform: translate3d(-50%,-50%,0) scale(1);
        .submit{padding-top: 20px;}
        button{width: 160px;}
    }
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/  
::-webkit-scrollbar{width: 8px;height: 8px;}
/*定义滚动条轨道 内阴影+圆角*/  
::-webkit-scrollbar-track{-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);border-radius: 6px;}
/*定义滑块 内阴影+圆角*/  
::-webkit-scrollbar-thumb{border-radius: 6px;-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.2);background: rgba(0,0,0,0.2);}
