@charset "utf-8";

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

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

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: #000;
}

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

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

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

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

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

#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(0, 0, 0, 0.42);
}

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

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

.center-stack {
    width: 100%;
    transition: all 1s;
    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.webp") no-repeat center/cover;
}

.center-stack .site-logo a {
    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%;
    border: 1px solid #fbfbfb;
    background: #fbfbfb;
    border-radius: 21px;
    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;
    transition: all 0.3s;
}

.center-stack .search-stack form:hover {
    background: #fdfdfd;
    box-shadow: 0 1px 6px 0 rgba(253, 253, 253, 0.8);
    border-color: #fdfdfd;
}

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

.search-stack form .engine-icon:hover {
    opacity: 0.7;
}

.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;
}

.engine-picker {
    position: absolute;
    top: 52px;
    left: 0;
    width: fit-content;
    max-width: 100%;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 5px 20px 0 #d8d7d7;
    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: #999;
}

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

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

.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: #fdfdfd;
    font-size: 13px;
    color: #777;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    line-height: 30px;
    text-align: center;
    text-indent: 24px;
    cursor: pointer;
    position: relative;
    border-radius: 15px;
    transition: all 0.3s;
}

.quick-link-item:active {
    background: #fff;
    box-shadow: 0 1px 20px 0 rgba(0, 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: #555;
    flex-shrink: 0;
}

.sidebar-open i::before,
.sidebar-open i::after {
    content: '';
    height: 2px;
    background: #555;
    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: 0 10px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2100;
    background: #eaeaea;
    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: #999;
    transition: all 0.3s;
}

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

.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: all 0.4s linear;
    height: 100%;
    display: block;
    color: #333;
    font-weight: 500;
    background: #dcdcdc;
    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: all 0.4s linear;
}

.sidebar-links ul li:hover a {
    color: #111;
    background: #cfcfcf;
    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: #444;
    font-size: 18px;
    font-weight: bold;
}

.mywth {
    position: absolute;
    left: 10px;
    top: 20px;
    font-size: 12px;
    height: 22px;
    line-height: 20px;
    cursor: pointer;
    z-index: 1;
    color: #bbb;
    overflow: hidden;
}

.mywth.hidden {
    display: none;
}

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

::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 0;
}

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

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

::-webkit-scrollbar-corner {
    background: #e0e0e0;
}

@media (max-width: 720px) {
    .center-stack {
        top: 0;
    }
    .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: 0;
    }
    .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,
    .sidebar-open,
    .mywth {
        display: none;
    }
}
