@charset "utf-8";

* {
    padding: 0;
    margin: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

html {
    font-family: 'Noto Sans SC Sliced', PingFangSC-Light, Microsoft YaHei UI, Microsoft YaHei, helvetica, sans-serif;
    font-weight: 500;
}

form,
input,
button {
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    background: none;
}

input::-webkit-input-placeholder {
    color: #ccc;
    letter-spacing: 2px;
    font-size: 16px;
}

ul,
li {
    display: block;
    list-style: none;
}

a {
    text-decoration: none;
    color: #000;
}

#content {
    width: 100%;
    height: 100%;
}

.SerchDiv {
    width: 100%;
    transition: 1s all;
    margin: auto;
    min-width: 320px;
    height: 380px;
    position: absolute;
    left: 0;
    top: -100px;
    right: 0;
    bottom: 0;
}

.SerchDiv .SerchTitle {
    margin: 10px auto;
    color: white;
    text-align: center;
    font-size: 50px;
}


.SerchDiv .SerchForm {
    max-width: 680px;
    position: relative;
    width: calc(100% - 60px);
    min-width: 320px;
    margin: 0 auto;
}

.SerchDiv .SerchForm form {
    width: 100%;
    height: 50px;
    display: block;
    margin: 10px auto 30px;
    position: relative;
}

.SerchDiv .SerchForm form .Word {
    width: 100%;
    height: 100%;
    display: block;
    border: 1px solid #ddd;
    border-radius: 25px;
    line-height: 100%;
    font-size: 18px;
    text-indent: 50px;
    transition: 0.3s all;
}
.SerchDiv .SerchForm form .SerchLog {
        display: block;
        width: 30px;
        height: 30px;
        position: absolute;
        left: 13px;
        top: 10px;
        border-radius: 50%;
        overflow: hidden;
        cursor: pointer;
}

.SerchDiv .SerchLog-list{
    list-style: none;
    padding: 5px 0;
    width: 100px;
    position: absolute;
    left: 3%;
    top: 50px;
    margin: 0;
    line-height: 26px;
    font-size: 12px;
    border-radius: 2px;
    box-shadow: 0 1px 5px rgba(0,0,0,.2);
    background-color: #fff;
    display: none;
}

.SerchDiv .SerchLog-list>li{
    padding-left: 36px;
    background-position: 10px center;
    background-repeat: no-repeat;
    background-size: 16px auto;
}

.SerchDiv .SerchLog-list>li:hover{
    background-color: #ebf1f5;
    cursor: pointer;
}

.SerchDiv .SerchForm form .Word:focus {
    background: #fff;
    box-shadow: 0 0px 15px 0 rgba(32, 33, 36, 0.2);
    border-color: #fff
}

.baidu {background: url(../img/baidu.svg) no-repeat}
.bing {background: url(../img/bing.ico) no-repeat}
.google {background: url(../img/google.ico) no-repeat}

.SerchDiv .SerchForm form button {
    height: 40px;
    display: block;
    position: absolute;
    z-index: 10;
    right: 6px;
    top: 6px;
    cursor: pointer;
    font-size: 22px;
    line-height: 40px;
    border-radius: 50%;
    color: #777;
}

.SerchDiv .SerchForm #KeyWord{
    width: calc(100% - 70px);
    border: 15px solid #f1f1f1;
    border-radius: 10px;
    left:20px;
    position: absolute;z-index: 500; top:65px;
    background: #f1f1f1;
    line-height: 30px; font-style: 16px;overflow: hidden;
    display: none; 
}
.SerchDiv .SerchForm #KeyWord .li{
    cursor: pointer;
    color: #555;
}
.SerchDiv .SerchForm #KeyWord .li:hover{
    color: #29f;
}

#menu {
    width: 50px;
    height: 50px;
    transform: scale(0.8);
    position: absolute;
    right: 10px;
    top: 5px;
    z-index: 2000000;
    cursor: pointer;
    transition: 0.5s;
}

#menu i {
    position: absolute;
    left: 0;
    right: 0;
    margin: 24px auto;
    width: 30px;
    height: 2px;
    background: #777;
}

#menu i:before {
    content: '';
    width: 20px;
    height: 2px;
    top: -8px;
    background: #777;
    position: absolute;
    right: 0;
}

#menu i:after {
    content: '';
    width: 20px;
    height: 2px;
    bottom: -8px;
    background: #777;
    position: absolute;
    left: 0;
}

#menu.on {
    right: 645px;
    background: #29f;
    border-radius: 25px;
    box-shadow: 0 6px 8px rgba(36, 159, 253, .3);
}

#menu.on i {
    width: 20px;
    background: #fff;
}

#menu.on i:before {
    top: -5px;
    transform: rotate(45deg);
    width: 14px;
    right: -1px;
    left: auto;
    background: #fff;
}

#menu.on i:after {
    bottom: -5px;
    transform: rotate(-45deg);
    width: 14px;
    right: -1px;
    left: auto;
    background: #fff;
}

.list {
    width: 600px;
    padding: 0 20px;
    height: 100%;
    overflow: hidden;
    overflow-y: auto;
    position: absolute;
    right: 0px;
    z-index: 2000;
    background: rgb(41 53 80 / 0.6);
    transition: 0.3s all linear;
}

.list.closed {
    right: -640px;
}

.list ul {
    width: 600px;
    float: left;
    padding: 0 0 20px;
    margin-bottom: 20px;
}

.list ul li {
    float: left;
    margin: 5px;
    width: 130px;
    height: 30px;
    text-align: left;
    line-height: 30px;
}

.list ul li a {
    width: 100%;
    border-radius: 5px;
    transition: 0.2s all linear;
    height: 100%;
    display: block;
    color: #fff;
    font-weight: 500;
    background: #293550;
    text-align: left;
    font-size: 12px;
}

.list ul li:hover a {
    color: #fff;
    background-color: #29f;
    background-image: linear-gradient(135deg, rgba(35, 153, 255) 0%, rgba(84, 175, 253) 100%);
    box-shadow: 0 3px 3px rgba(0, 40, 70, .3);
}

.list ul li.title {
    width: 100%;
    height: 40px;
    line-height: 40px;
    margin: 30px 0 0;
    text-align: left;
    text-indent: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

#show_time{
    font-size: 12px;
    color: white;
    width: 180px;
    position: absolute;
    top: 20px;
    left: 140px;
    z-index: 999;
}

.weather {
    position: absolute;
    left: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 999;
    width: 120px;
}

.list ul li img {
    width: 14px;
    height: 14px;
    margin: 0 5px 0 8px;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

@media (max-width: 640px) {
    .SerchDiv {
        top: 0px;
    }

    .SerchDiv .SerchTitle {
        width: 320px;
        height: 100px;
    }

    .SerchDiv .SerchForm form .Word:focus {
        background: #f1f1f1;
        box-shadow: none;
        border-color: #ccc
    }

    .SerchDiv .SerchForm form button {
        border-radius: 25px;
    }
    .SerchDiv .SerchForm #KeyWord{max-height: 150px;}

    #menu.on {
        right: 320px;
    }

    .list {
        width: 280px;
    }

    .list ul {
        width: 280px;
    }

    .SerchDiv .SerchForm ul li {
        width: 100px;
        font-size: 12px;
        text-indent: 30px;
    }

    .weather {
        color: #777;
        left: 10px;
    }

    .weather.hidden {
        display: none;
    }
}

@media (max-height: 420px) {
    .SerchDiv {
        margin: 0;
        top: 0px;
    }

    .SerchDiv .SerchTitle {
        display: none;
    }

    #menu,
    .weather,
    .foot {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {

    .weather {
        color: #bbb;
    }

    .SerchDiv .SerchForm form .Word:focus {
        background: #293550;
        border: 1px solid #162035;
    }

    .SerchDiv .SerchForm form .Word {
        border: 1px solid #293550;
        color: #bbb;
    }
    .SerchDiv .SerchForm #KeyWord {
        border: 15px solid #293550;
        background: #293550;
    }
    .SerchDiv .SerchForm #KeyWord .click_work {
        color: #89b;
    }
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #222d46;
    border-radius: 0px;
}

::-webkit-scrollbar-thumb {
    background: #293550;
    border-radius: 0px;
}

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

::-webkit-scrollbar-corner {
    background: #222d46;
}