﻿/* ----

# KStart
# By: Dreamer-Paul
# Last Update: 2020.6.6

一个简洁不失细节的起始页

本代码为奇趣保罗原创，是鱼布斯啊&YanJi参与维护

---- */

#cssversion:before{content:"CssV:103"}

:root{
    --shadow: 0 0 5em rgba(0, 0, 0, .1);
    --shadow-thin: 0 0 1em rgba(0, 0, 0, .3);
    --shadow-thick: 0 0 5em rgba(0, 0, 0, .2);

    --font-color: #666;
    --font-shadow: 0 0 5px #fff, 0 2px 5px #fff;
}

html, body{
    height: 100%;
}

body{
    display: flex;
    flex-direction: column;
}
body.dark{
    --font-color: #fff;
    --font-shadow: 0 0 5px #000, 0 2px 5px #000;
}

.iconfont{
    font: inherit;
}

h3{
    font-weight: lighter;
}

article h3{ margin-top: 2em }
article h3:first-child{ margin-top: 0 }

article img{ border-radius: 1em }

header{
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    position: fixed;
    justify-content: flex-end;
}

header .action-btn{
    padding: 1em;
    cursor: pointer;
    padding-bottom: 0;
}
header .action-btn:hover .fa{
    transform: scale(1.2);
}

header .action-btn.updated:not(.active){
    display: none;
}

header .action-btn.updated.active .fa{
    animation: shiny .5s alternate infinite;
}

@keyframes shiny {
    from { opacity: 0 }
    to { opacity: 1 }
}

header .fa{
    font-size: 1.5em;
    transition: transform .3s;
    color: var(--font-color);
}

main{
    width: 100%;
    margin: auto;
    padding: 4em 1.5em;
    max-width: 60em;
}

.input-box{
    display: flex;
    position: relative;
    padding: .5em 1em;
    border-radius: 3em;
    background: #fff;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, .2);
    box-shadow: var(--shadow);
    transition: box-shadow .3s;
}
.input-box:hover{
    box-shadow: var(--shadow-thick);
}

.input-box input{
    flex: 1 1 auto;
    max-width: 100%;
    border-radius: 0;
    border: none;
    margin: 0 1em;
}

.navi-items{
    display: grid;
    grid-gap: 2em;
    text-align: center;
    grid-template-columns: repeat(auto-fill, minmax(5em, 1fr));
}

@media screen and (max-width: 768px){
    .navi-items{
        grid-gap: 1.5em;
        grid-template-columns: repeat(auto-fill, minmax(4em, 1fr));
    }
}

.navi-items .item{
    color: inherit;
    display: block;
}

.navi-search{
    /* margin-bottom: 5em; */
}

.search-select{
    cursor: pointer;
}

.search-select .iconfont{
    font-size: 1.5em;
    line-height: 2.5rem;
}

.search-selector{
    top: 3em;
    opacity: 0;
    padding: .75em 0;
    overflow: hidden;
    visibility: hidden;
    position: absolute;
    background: #fff;
    border-radius: 1em;
    box-shadow: var(--shadow);
    transform: scale(1, 0);
    transform-origin: top center;
    transition: opacity .3s, transform .3s, visibility .3s;
}

.search-selector.active{
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.search-selector .item{
    cursor: pointer;
    padding: .5em 1em;
    transition: color .3s, background .3s;
}
.search-selector .item:hover{
    color: #fff;
    background: #3498db;
}

.navi-icon{
    color: #fff;
    background: #666;

    width: 5rem;
    height: 5rem;
    font-size: 1.75em;
    line-height: 5rem;

    margin: auto;
    overflow: hidden;
    border-radius: 2em;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .85);
    transition: box-shadow .3s;
}

.navi-icon i{
    display: inline-block;
    transition: transform .3s;
}
.navi-icon:hover i{
    transform: scale(1.3);
}

.navi-icon img{ vertical-align: top }

.navi-title{
    color: #666;
    color: var(--font-color);
    text-shadow: var(--font-shadow);
    padding: 0 .5em;
    font-size: .875em;
    margin-top: .75em;
}

@media screen and (max-width: 768px){
    .navi-icon{
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1.3em;
        line-height: 3.75rem;
    }
}

.navi-background{
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: -1;
    position: fixed;
    transition: opacity .5s;
}
.navi-background.active{
    opacity: 1;
}

footer{
    left: 0;
    right: 0;
    bottom: 0;
    color: #999;
    color: var(--font-color);
    text-shadow: 0 0 5px grey;
    padding: 1em 0;
    position: fixed;
    font-size: .875em;
    text-align: center/*此处删除后底部链接恢复点击，天气链接无法点击;
    z-index:-1*/
}

footer a{
    color: inherit;
}

@media screen and (max-width: 600px){
    footer{
        position: static;
    }
    #set-site{height:30px!important}
}

window{
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: 1;
    display: flex;
    overflow: auto;
    position: fixed;
    padding: 2em 1em;
    pointer-events: none;
    background: rgba(0, 0, 0, .3);
    transition: opacity .3s;
}
window::-webkit-scrollbar{ width: 0 }

window.active{
    opacity: 1;
    pointer-events: auto;
}

.the-window{
    margin: auto;
    display: none;
    min-width: 15em;
    max-width: 40em;
    background: rgba(255, 255, 255,0.85);
    border-radius: 10px;
    box-shadow: var(--shadow-thick);
    overflow:hidden
}
.the-window.active{
    display: block;
    animation: fade-small-large .3s forwards;
    
}
.the-window.closed{
    animation: fade-large-small .3s forwards;
}

.the-window .window-head{
    padding: 1em 1.5em;
    background:white;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
}
.the-window .window-head button{
    top: 1rem;
    right: 1rem;
    position: absolute;

    border: none;
    color: #fff;
    padding: 0;
    width: 1.5em;
    cursor: pointer;
    font-size: 1.17em;
    border-radius: 1em;
    background: rgb(255, 86, 86);
}

.the-window .window-body{
    padding: 1.5em;
}


/* YanJi原创代码 */

*{user-select:none;cursor:default!important;-webkit-tap-highlight-color:transparent}
.navi-background{z-index:-2}
.navi-background-mask{transition:all .2s!important;z-index:-1;background:rgba(0,0,0,0.5);position:fixed;top:0;bottom:0;left:0;right:0;backdrop-filter:blur(5px);opacity:0}
.navi-loading-mask-finished{transition:all .5s!important;z-index:10;background:rgba(0,0,0,0.5);position:fixed;top:0;bottom:0;left:0;right:0;opacity:0;transform:scale(3)}
#time,#time2{transition:all .2s}
#time:active,#time2:active{transform:scale(0.9)}
.search-select{width:fit-content;height:40px}
.input-box.search-border{background: rgba(255,255,255,0.5);padding:3px;padding-left:10px;backdrop-filter:blur(5px);width:30%;min-width:300px;transition:all .2s;display:inline-flex;height:45px;max-width:700px;color:black;box-shadow:0 0 0 0 black!important}
.input-box.search-backg{background: rgba(0,0,0,0.5);backdrop-filter:blur(5px);padding:3px;padding-left:10px;width:30%;min-width:300px;transition:all .2s;display:inline-flex;height:45px;max-width:700px;color:white;box-shadow:0 0 0 0 black!important}
.input-box.search-border input::placeholder{color:#474747;transition:all .2s}
.input-box.search-backg input::placeholder{color:#d1d1d1;transition:all .2s}
.input-box.search-backg input:focus::placeholder{color:black}
.input-box.search-border input:focus::placeholder{color:white}
.input-box input{padding:0;text-align:center}
.input-box:hover{width:100%}
.input-box:focus-within{width:100%}
header .updated{display:block!important}
body{position: fixed;width: 100%;}
.fa{margin-top:30%}
#backselect option[0]{background:url('http://d.dhxa.com/bing.php')}
.ks-notice .content{user-select:text}
#navisites-section::-webkit-scrollbar{display:none}
window{backdrop-filter:blur(5px)}
.the-window{border-radius:10px}
.window-head h3{font-weight:bold;margin-right: 30px;}
.navi-icon{border-radius:7px;box-shadow:0 0 0 0}
.window-head button{color:red!important;background:white!important}
.navi-background{background:url() center center / cover no-repeat}
body{background:grey}
.menu-btm{position:fixed;bottom:5px;left:5px;border-radius:10px;padding:5px;background:rgba(255,255,255,0.5);transition:all .4s;overflow:hidden;width:35px;height:35px;white-space:nowrap}
.menu-btm-active{position:fixed;bottom:5px;left:5px;border-radius:10px;padding:5px;background:rgba(255,255,255,0.5);transition:all .4s;overflow:hidden;width:35px;height:35px;white-space:nowrap;border-radius:10px;padding:15px;background:rgba(255,255,255,1);width:200px;height:250px}
.menu-btm div,.menu-btm-active div{border-radius:5px;margin:3px;transition:all .2s;padding:5px}
.menu-btm div:hover,.menu-btm-active div:hover{background:#f1f1f1}
#he-plugin-simple{position:fixed!important;bottom:5px!important;right:5px!important;border-radius:10px!important;padding:5px;background:rgba(255,255,255,0.5);width:35px;height:35px;white-space:nowrap}
.s-sticker{padding:0!important}
.sync{text-align:center}
.sync svg{vertical-align:middle;opacity:0.5;fill:white}
.sync span{vertical-align:middle;opacity:0.5;font-size:0.8em}
