@charset "utf-8";

/*
作者:D.Young
主页：https://yyv.me/
github：https://github.com/5iux/sou
日期：2019-07-11
版权所有，请勿删除
*/


/*@import url(//fonts.loli.net/earlyaccess/notosansscsliced.css);*/

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

html,
body {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background:url("https://bing.xmix.one?random") no-repeat center/cover;
}

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

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

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

.con .shlogo {
    position: relative;
    width: 480px;
    height: 120px;
    margin: 20px auto;
    background: url(icon/logo.svg) no-repeat center/cover;
}

.con .shlogo a {
    width: 100%;
    display: block;
    width: 100%;
    height: 100%;
}

.con .sou {
    --color-search-bg: rgba(255, 255, 255, 0.18);
    --color-search-text: #333;
    --color-search-placeholder: #999;
    --color-accent: #4a7cff;
    --search-bar-height: 52px;
    --search-bar-font-size: 15px;
    --search-engine-icon-size: 22px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-pill: 999px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 680px;
    position: relative;
    width: calc(100% - 60px);
    min-width: 320px;
    margin: 0 auto;
}

.search-section {
    position: relative;
    width: 100%;
    margin: 10px auto 30px;
}

.search-bar {
    display: flex;
    align-items: center;
    height: var(--search-bar-height);
    background: var(--color-search-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(74, 124, 255, 0.35);
    transform: translateY(-1px);
}

.search-engine-trigger {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 14px 0 18px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    color: #666;
    cursor: pointer;
}

.search-engine-icon {
    width: var(--search-engine-icon-size);
    height: var(--search-engine-icon-size);
    border-radius: 50%;
    object-fit: contain;
}

.search-chevron {
    opacity: 0.5;
}

.search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 12px 0 14px;
    border: none;
    background: transparent;
    color: var(--color-search-text);
    font-size: var(--search-bar-font-size);
    outline: none;
}

.search-input::placeholder {
    color: var(--color-search-placeholder);
}

.search-submit {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    margin-right: 4px;
    border-radius: 50%;
    color: #777;
    cursor: pointer;
    font-size: 22px;
    line-height: 46px;
}

.search-submit:hover {
    color: #fff;
    background: linear-gradient(135deg, #4a7cff, #8b5cf6);
}

.search-engines-panel {
    --engine-cols: 1;
    --engine-cell: 48px;
    --engine-gap: 10px;
    --engine-pad-x: 28px;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 800;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(var(--engine-cols), var(--engine-cell));
    justify-content: center;
    gap: 8px var(--engine-gap);
    padding: 10px 14px;
    width: max-content;
    max-width: min(calc(100vw - 24px), calc(var(--engine-cols) * var(--engine-cell) + (var(--engine-cols) - 1) * var(--engine-gap) + var(--engine-pad-x)));
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
    animation: panelIn 0.2s ease;
}

.search-engines-panel.hidden {
    display: none;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.search-engine-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: var(--engine-cell, 48px);
    padding: 2px 0;
    border-radius: var(--radius-sm);
    transition: transform var(--transition), background var(--transition);
    color: #444;
    font-size: 0.65rem;
    line-height: 1.2;
    cursor: pointer;
}

.search-engine-chip span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.search-engine-chip:hover {
    transform: scale(1.08);
    background: rgba(0, 0, 0, 0.04);
}

.search-engine-chip.active {
    color: var(--color-accent);
    font-weight: 600;
}

.search-engine-chip img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.con .sou #word{
    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; 
}
.con .sou #word .li{
    cursor: pointer;
    color: #555;
}
.con .sou #word .li:hover{
    color: #29f;
}

.foot {
    position: absolute;
    bottom: 10px;
    text-align: center;
    width: 100%;
    color: #999;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
}

.home {
    width: 50px;
    height: 50px;
    position: absolute;
    right: 70px;
    top: 10px;
    z-index: 200;
    cursor: pointer;
}

.home a {
    font-size: 20px;
    color: #999;
    line-height: 50px;
    display: block;
    text-align: center;
}

#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: 380px;
    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: 337px;
    padding: 0 20px;
    height: 100%;
    overflow: hidden;
    overflow-y: auto;
    position: absolute;
    right: 0px;
    z-index: 2000;
    /*background: #222d46;*/
    background: rgb(41 53 80 / 0.6);
    transition: 0.3s all linear;
}

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

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

.list ul li {
    float: left;
    margin: 5px;
    width: 100px;
    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;
    /*border-bottom: 1px dashed #dedede;*/
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}


.mywth {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 12px;
    height: 20px;
    line-height: 20px;
    cursor: pointer;
    z-index: 100000;
    height: 22px;
}

svg.icon {
    display: none;
    width: 14px;
    height: 14px;
    margin: 0 5px 0 8px;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

.site-icon {
    width: 16px;
    height: 16px;
    margin: 0 5px 0 8px;
    vertical-align: -3px;
    border-radius: 3px;
    object-fit: contain;
}

.site-icon-fallback {
    opacity: 0.55;
}

.list ul li.title svg.icon {
    display: none;
}

.category-icon {
    width: 20px;
    height: 20px;
    margin: 0 6px 0 8px;
    vertical-align: -4px;
    object-fit: contain;
}

.suggest-icon {
    display: inline-block;
    width: 15px;
    opacity: 0.5;
    text-align: center;
}

.link-admin-mask {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .38);
    backdrop-filter: blur(5px);
}

.link-admin-panel {
    width: min(340px, calc(100vw - 36px));
    padding: 18px;
    border-radius: 18px;
    color: #1f2937;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.link-admin-panel h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

.link-admin-panel label {
    display: block;
    margin: 10px 0;
    font-size: 13px;
    color: #4b5563;
}

.link-admin-panel input {
    box-sizing: border-box;
    width: 100%;
    height: 38px;
    margin-top: 6px;
    padding: 0 11px;
    border: 1px solid #d7dde7;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}

.link-admin-panel input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
}

.link-admin-tip {
    margin: 8px 0 14px;
    color: #6b7280;
    font-size: 12px;
}

.link-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.link-admin-actions button {
    height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.link-admin-cancel {
    color: #4b5563;
    background: #eef2f7;
}

.link-admin-save {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

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

    .con .shlogo {
        width: 320px;
        height: 100px;
    }

    .con .sou form .wd:focus {
        background: #f1f1f1;
        box-shadow: none;
        border-color: #ccc
    }

    .con .sou form button {
        border-radius: 25px;
    }
    .con .sou #word{max-height: 150px;}

    #menu.on {
        right: 270px;
    }

    .list {
        width: 227px;
    }

    .list ul {
        width: 220px;
    }

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

    .home,
    #menu {
        top: 5px;
    }

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

    .mywth.hidden {
        display: none;
    }
}

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

    .con .shlogo {
        display: none;
    }

    .home,
    #menu,
    .mywth,
    .foot {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #162035;
    }

    .mywth {
        color: #bbb;
    }

    .con .sou form .wd:focus {
        background: #293550;
        border: 1px solid #162035;
    }

    .con .sou form .wd {
        border: 1px solid #293550;
        color: #bbb;
    }
    .con .sou #word {
        border: 15px solid #293550;
        background: #293550;
    }
    .con .sou #word .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;
}
