/*公共布局*/

a,
a:hover,
a:visited {
    text-decoration: none;
}

span {
    background-color: transparent;
}

li {
    list-style: none;
}

ul {
    padding: 0 10px;
    display: inline-block;
    width: 100%;
    margin: 0 auto;
    margin: 0!important;
}


/*媒体查询*/

@media (max-width: 768px) {
    /*小屏*/
    #main {
        background: url(../img/bg-xs.jpg) no-repeat;
        background-attachment: fixed;
        background-size: cover;
    }
    .search-box {
        margin: 0;
    }
    .inputDiv {
        margin: 30px 20px 0;
    }
}

@media (min-width: 768px) {
    /*大屏*/
    #main {
        background: url(../img/bg.jpg) no-repeat;
        background-attachment: fixed;
        background-size: cover;
    }
    .search-box {
        margin: 20px 70px 0 70px;
    }
    .inputDiv {
        margin: 30px 130px 0;
    }
}

#main {
    background-color: #fff;
    margin: 0;
}

#menu::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 10px;
    /*高宽分别对应横竖滚动条的尺寸*/
    height: 10px;
    scrollbar-arrow-color: red;
}

#menu::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.2);
    scrollbar-arrow-color: red;
}

#menu::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.1);
}


/*搜索盒子*/

#logo {
    margin: 0 auto;
}

#logo div {
    margin: 0 auto;
    width: 300px;
}

#img {
    animation: fade-in;
    animation-duration: 0.2s;
    -webkit-animation: fade-in 0.2s;
    width: 300px;
}


/*搜索提示词*/

#searchlist {
    width: 100%;
    position: absolute;
    z-index: 10001;
    background-color: rgba(245, 248, 252, 0.95);
    border: 1px solid rgba(217, 225, 236, 0.96);
    border-radius: 16px;
    margin-top: 10px;
    box-shadow: 0 16px 34px rgba(29, 41, 59, 0.14);
    backdrop-filter: blur(14px);
}

#searchlist ul {
    padding: 10px;
}

#searchlist ul li a {
    display: block;
    color: #5d6a7d;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
}

#searchlist ul li a:hover,
.activeli {
    color: #294567;
    background-color: rgba(228, 237, 250, 0.96);
}

#searchlist ul li a span {
    -webkit-tap-highlight-color: #00000000;
    list-style: none;
    cursor: pointer;
    box-sizing: border-box;
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    background: #dde7f3;
    margin-right: 10px;
    border-radius: 7px;
    color: #708198;
}


/*标签、导航选择器*/

.Select {
    margin: 20px auto 0;
    color: #3d587d;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    width: 50%;
    font-size: 15px;
}


/*搜索框*/

.inputDiv {
    padding: 0;
    z-index: 1000;
    animation: fade-in;
    animation-duration: 0.5s;
    -webkit-animation: fade-in 0.5s;
    position: relative;
    border-radius: 0px;
}

.inputDiv input,
.inputDiv button {
    border: none;
    outline: none;
    border-radius: 14px;
}

.inputDiv input {
    width: 100%;
    height: 46px;
    background: rgba(245, 248, 252, 0.94);
    color: #364457;
    padding-left: 16px;
    border: 1px solid rgba(218, 225, 235, 0.96);
    box-shadow: 0 12px 26px rgba(29, 41, 59, 0.08);
    transition: box-shadow 0.2s;
    -moz-transition: box-shadow 0.2s;
    /* Firefox */
    -webkit-transition: box-shadow 0.2s;
    /* Safari and Chrome */
    -o-transition: box-shadow 0.2s;
    /* Opera */
}

.inputDiv input:focus {
    box-shadow: 0px 0px 0px 2px rgba(224, 234, 248, 0.92), 0 14px 30px rgba(29, 41, 59, 0.12);
}

.inputDiv button {
    height: 26px;
    width: 26px;
    padding: 2px;
    position: absolute;
    top: 8px;
    right: 8px;
    background: #5374a7;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(83, 116, 167, 0.26);
}

.inputDiv button:before {
    content: "\f105";
    font-family: FontAwesome;
    color: #F9F0DA;
    font-size: 20px;
    font-weight: bold;
}


/*标签*/

.folder {
    animation: fade-in;
    animation-duration: 1s;
    -webkit-animation: fade-in 1s;
    width: 100%;
    margin-top: 10px;
    display: block;
}

.folder-item {
    margin-bottom: 10px;
}

.folder-item-box,
.folder-item-img {
    width: 50px;
    margin: 0 auto;
    border-radius: 38%;
    transition: all .2s ease;
}

.folder-item2 {
    margin-bottom: 20px;
}

.folder-item-box2,
.folder-item-img2 {
    width: 42px;
    margin: 0 auto;
    border-radius: 38%;
    transition: all .2s ease;
}

.folder-item-img:hover,
.folder-item-img2:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: rgba(33, 33, 33, 0.75) 0 14px 12px -7px!important;
}

.folder-item-box p {
    font-size: 12px;
    color: #6d7b8e;
    width: 100%;
    margin: 10px 0 0 0;
    text-align: center;
}


/*导航*/

.nav {
    animation: fade-in;
    animation-duration: 1s;
    -webkit-animation: fade-in 1s;
    width: 100%;
    margin-top: 10px;
    display: none;
}


/*侧边栏内容*/

.menu-section-title {
    margin: 0 calc(4% + 7px) 12px!important;
    font-weight: 700;
    color: var(--menu-item-text, #273142);
    font-size: 15px;
    letter-spacing: 0.02em;
    opacity: 0.96;
    padding: 0;
}

.menu ul + .menu-section-title {
    margin-top: 18px!important;
}

.menu-section-title::before {
    content: '▎';
    margin-right: 6px;
    color: #6d8ec2;
}

.menu ul a li {
    float: left;
}

.sidenav-btn {
    font-size: 14px;
    margin: 2% 4%;
    padding: 7px;
    border-radius: 12px;
    background-color: var(--menu-item-bg, rgba(246, 249, 253, 0.84));
    color: var(--menu-item-text, #273142);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
    text-align: center;
    text-decoration: none;
    width: 42%;
    transition: background-color 0.2s, transform 0.2s;
    /*标签延迟0.3s显示*/
}

.sidenav-btn:hover {
    background-color: var(--menu-item-hover-bg, rgba(224, 234, 248, 0.98));
    transform: translateY(-1px);
}

.sidenav-btn p {
    margin: 0;
    font-size: 10px;
    text-align: center;
    color: inherit;
    opacity: 0.6;
}

#tp-weather-widget .sw-container {
    z-index: 9;
    left: unset;
    right: 10px;
    top: unset;
    bottom: 10px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px;
}


/*动画*/

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    /*初始状态 透明度为0*/
    40% {
        opacity: 0;
    }
    /*过渡状态 透明度为0*/
    100% {
        opacity: 1;
    }
    /*结束状态 透明度为1*/
}

@-webkit-keyframes fade-in {
    /*针对webkit内核*/
    0% {
        opacity: 0;
    }
    40% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
