@charset "utf-8";

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

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

h3 {
    color: #BBBBBB;
}

html {
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-weight: 400;
    color: #AAAAAA;
}

.search-form,
.search-query {
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    background: none;
}

input:focus::-webkit-input-placeholder { color:transparent; }
input:focus:-moz-placeholder { color:transparent; }
input:focus::-moz-placeholder { color:transparent; }
input:focus:-ms-input-placeholder { color:transparent; }

.search-query::-webkit-input-placeholder {
    color: #AAAAAA;
    letter-spacing: 2px;
    font-size: 16px;
}

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

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

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

.daily-quote {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.daily-quote-inner {
    margin: 0 auto;
    max-width: min(920px, 100%);
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.4);
}

.daily-quote-from {
    display: inline;
    margin-left: 1.1em;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.32);
}

.daily-quote-from:empty {
    display: none;
}

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

.center-stack .site-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 5px auto;
    background: url("../images/avatar_night.webp") no-repeat center/cover;
}

.center-stack .site-logo a {
    width: 100%;
    display: block;
    width: 100%;
    height: 100%;
}

.search-stack {
    max-width: 560px;
    height: 42px;
}

.center-stack .search-stack {
    max-width: 560px;
    position: relative;
    width: calc(100% - 48px);
    min-width: 280px;
    margin: 0 auto;
}

.center-stack .search-stack form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0 14px 0 12px;
    box-sizing: border-box;
    margin: 8px auto 22px;
    position: relative;
    border: 1px solid #353535;
    background: #353535;
    border-radius: 21px;
}

.search-stack form .engine-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
    position: static;
    cursor: pointer;
    border-radius: 50%;
    color: #AAAAAA;
    object-fit: contain;
}

.search-stack form .engine-icon:hover {
    filter:alpha(Opacity=70);
    -moz-opacity:0.7;
    opacity: 0.7
}

input.search-query {
    color: #AAAAAA;
}

.center-stack .search-stack form .search-query {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 100%;
    text-overflow: ellipsis;
    display: block;
    line-height: 100%;
    text-indent: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
}

.center-stack .search-stack form .search-query:focus {
    background: transparent;
}

.center-stack .search-stack form:hover {
    background: rgb(27, 26, 26);
    box-shadow: 0 1px 6px 0 rgba(32, 33, 36, 0.28);
    border-color: rgb(27, 26, 26);
    border: 1px solid rgb(27, 26, 26);
    border-radius: 21px;
}

.engine-picker {
    position: absolute;
    top: 52px;
    left: 0;
    width: fit-content;
    max-width: 100%;
    background: rgb(31, 31, 31);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 5px 20px 0px #0e0e0e;
    transition: all 0.5s;
    display: none;
    z-index: 1001
}

.engine-picker-head {
    overflow: hidden;
    text-indent: 20px;
    margin-bottom: 10px;
    padding-right: 15px;
}

.engine-picker-title {
    float: left;
    margin: 0;
    font-size: 14px;
    color: #BBBBBB;
}

.engine-picker ul {
    padding: 0;
    height: auto;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.engine-picker ul::before {
    content: '';
    width: 0px;
    height: 0px;
    position: absolute;
    top: -15px;
    left: 20px;
    border-top: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #777;
    border-left: 8px solid transparent;

}

.engine-picker-list::after {
    content: '';
    width: 70px;
    height: 18px;
    position: absolute;
    top: -17px;
    left: 1px;
}

.engine-picker-list li {
    float: none;
    width: 32px;
    height: 32px;
    min-width: 0;
    padding: 4px;
    margin: 0;
    line-height: 0;
    text-align: center;
    font-size: 0;
    background: transparent;
    cursor: pointer;
    list-style: none;
    position: static;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.engine-picker-list li img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    margin: 0;
    display: block;
    background: transparent;
}

.quick-links {
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.quick-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    width: 100%;
    list-style: none;
}

.quick-link-item {
    width: auto;
    min-width: 6.5rem;
    max-width: 100%;
    flex: 0 1 auto;
    height: 30px;
    margin: 0;
    left: 0;
    float: none;
    -webkit-tap-highlight-color: transparent;
    background: rgb(58, 56, 56);
    font-size: 13px;
    color: #AAAAAA;
    text-overflow:ellipsis;
    overflow: hidden;
    white-space: nowrap;
    line-height: 30px;
    text-align: center;
    text-indent: 24px;
    cursor: pointer;
    position: relative;
    border-radius: 15px;
}

.quick-link-item:active {
    background: rgb(45, 44, 44);
    box-shadow: 0 1px 20px 0 rgba(0, 0, 0, .1);
}

.quick-link-item i {
    position: absolute;
    display: block;
    width: 30px;
    height: 30px;
    left: 0;
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transform: scale(0.65);
}

.sidebar-open {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    position: absolute;
    right: 10px;
    top: 5px;
    z-index: 2000;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.sidebar-open i {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    margin: 0;
    background: #bbb;
    flex-shrink: 0;
}

.sidebar-open i::before,
.sidebar-open i::after {
    content: '';
    height: 2px;
    background: #bbb;
    position: absolute;
}

.sidebar-open i::before {
    width: 16px;
    top: -7px;
    right: 0;
}

.sidebar-open i::after {
    width: 16px;
    bottom: -7px;
    left: 0;
}

.sidebar:not(.closed) ~ .sidebar-open,
.sidebar-open.sidebar-open--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

.sidebar {
    width: 357px;
    padding:0px 10px;
    position: fixed;
    top: 0;
    right: 0px;
    bottom: 0;
    z-index: 2100;
    background: #1a1a1a;
    transform: translate3d(0, 0, 0);
    transition: transform 0.42s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
}

.sidebar.closed {
    transform: translate3d(100%, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .sidebar {
        transition-duration: 0.01ms;
    }
}

.tab-nav {
    overflow: hidden;
    height: 5%;
}

.tab-nav a {
    display: block;
    float: left;
    width: 60px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
    color: rgb(170, 163, 163);

}

.tab-nav a.current {
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
}

.sidebar-tabs {
    position: relative;
    width: 357px;
    height: 95%;
    overflow: hidden;
}

.sidebar-tabs-inner {
    height: 100%;
}

.sidebar-tab-panel {
    height: 100%;
    width: 357px;
    display: none;
    overflow: hidden;
    overflow-y: auto;
}

.sidebar-links ul {
    height: 100%;
    float: left;
    margin-bottom: 20px;

}

.sidebar-links ul li {
    float: left;
    margin: 5px;
    width: 100px;
    height: 30px;
    text-align: left;
    line-height: 30px;
}

.sidebar-links ul li a {
    width: 100%;
    border-radius: 5px;
    transition: 0.4s all linear;
    height: 100%;
    display: block;
    color: #BBBBBB;
    font-weight: 500;
    background: #252525;
    text-align: left;
    font-size: 12px;
}

.sidebar-links ul li a i {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    margin-left: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    transition: 0.4s all linear;
}

.sidebar-links ul li:hover a {
    color: #e8e8e8;
    background: #303030;
    box-shadow: none;
}

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


@media (max-width: 720px) {
    .center-stack {
        top: 0px;
    }
    .center-stack .site-logo {
        width: 100px;
        height: 100px;
    }
    .sidebar {
        width: 227px;
    }
    .sidebar-tabs {
        width: 227px;
    }
    .sidebar-tab-panel {
        width: 227px;
    }
    .sidebar ul {
        width: 220px;
    }
    .center-stack .search-stack ul li {
        width: 23%;
        font-size: 12px;
        max-width: 116px;
    }
    .center-stack .search-stack .quick-links-list {
        margin-left: 0 !important;
        justify-content: center;
    }
}
@media (max-width: 698px) {
    .center-stack .search-stack ul li {
        width: 18.5%;
    }
}
@media (max-width: 609px) {
    .center-stack .search-stack ul li {
        width: 22% !important;
    }
    .center-stack .search-stack .quick-links-list {
        margin-left: 0 !important;
    }
}
@media (max-width: 455px) {
    .center-stack .search-stack ul li {
        width: 31% !important;
    }
    .center-stack .search-stack .quick-links-list {
        margin-left: 0 !important;
    }
}
@media (max-width: 400px) {
    .center-stack .search-stack .quick-links-list {
        margin-left: auto !important;
        margin-right: auto !important;
        width: fit-content;
    }
    .center-stack .search-stack ul li {
        width: 42px !important;
        margin: 10px;
        height: 42px !important;
        border-radius: 21px;
    }
    .quick-link-item i {
        width: 42px !important; 
        height: 42px !important;
    }
    .center-stack .search-stack ul li {
        margin: 5px !important;
    }
    div#txtq{
        display: none !important;
    }
}

@media screen and (orientation:portrait) {
    @media (max-width: 550px) {
        .center-stack .search-stack .quick-links-list {
            margin-left: auto !important;
            margin-right: auto !important;
            width: fit-content;
        }
        .center-stack .search-stack ul li {
            width: 42px !important;
            margin: 10px;
            height: 42px !important;
            border-radius: 21px;
        }
        .quick-link-item i {
            width: 42px !important; 
            height: 42px !important;
        }
        .center-stack .search-stack ul li {
            margin: 5px !important;
        }
        div#txtq{
            display: none !important;
        }
    }
}

@media (max-height: 420px) {
    .center-stack {
        margin: 0;
        top: 0px;
    }
    .center-stack .search-stack form .search-query {
        text-indent: 0;
    }
    .center-stack .search-stack form:after {
        content: "";
        display: block;
        width: 30px;
        height: 30px;
        position: absolute;
        left: 10px;
        top: 10px;
        border-radius: 50%;
        overflow: hidden;
    }
    .center-stack .site-logo {
        display: none;
    }
    .home,
    .mywth,
    .sidebar-open {
        display: none;
    }
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 0px;
}

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

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

::-webkit-scrollbar-corner {
    background: #1a1a1a;
}
.mywth {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 12px;
    height: 20px;
    line-height: 20px;
    cursor: pointer;
    z-index: 1;
    height: 22px;
}
.mywth {
    color: #777;
    left: 10px;
    top: 20px;
    overflow: hidden;

}

.mywth.hidden {
    display: none;
}
.mywth {
    color: #bbb;
}