@charset "utf-8";




/*@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: #fff;
}

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

#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;
}
div#word li:hover {
    cursor: pointer;
    color: cornflowerblue;
}
.con .shlogo {
    position: relative;
    width: 480px;
    height: 120px;
    margin: 20px auto 0;
    background: url(icon/logo.svg) no-repeat center/cover;
}

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

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

.con .sou form {
    width: 100%;
    /*border: 1px solid #ddd;*/
    height: 50px;
    display: block;
    margin: 10px auto 30px;
    position: relative;
}

.con .sou form .wd {
    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;
}
.con .sou form .lg {
        display: block;
        width: 30px;
        height: 30px;
        position: absolute;
        left: 13px;
        top: 10px;
       /* background: url(icon/lg.svg) no-repeat center/cover;*/
        border-radius: 50%;
        overflow: hidden;
        cursor: pointer;
}


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

.con .sou form button {
    width: 40px;
    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;
}

.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;
    z-index: 1000;
    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;
    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: 20;
    height: 22px;
}

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

.list ul li.title svg.icon {
    width: 20px;
    height: 20px;
}

@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;
        top: 20px;
        overflow: hidden;

    }

    .mywth.hidden {
        display: none;
    }
}

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

    .con .shlogo {
        display: none;
    }

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

/* 夜间样式统一放到文件末尾的 html[data-theme="dark"] 段，
   原来这里用 prefers-color-scheme 判断系统，和手动按钮会打架，已移除 */
::-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;
}

/* ============================================================
   首页搜索：搜索引擎切换 + 工具箱入口
   ------------------------------------------------------------
   搜索框左侧原来的「点一下换引擎」图标改成「图标 + 小箭头」，
   点开是一排引擎按钮；选中的图标有彩色，划过变灰做点击反馈。
   ============================================================ */

.con .sou form .eng {
    position: absolute;
    left: 6px;
    top: 6px;
    z-index: 30;
}

/* 原来的表单按钮规则是「绝对定位 + 40x40」，会把引擎按钮一起带走，
   所以这里必须用更长的选择器把 position/宽高都还原成普通按钮 */
.con .sou form .eng .eng-btn {
    position: static;
    right: auto;
    top: auto;
    display: flex;
    align-items: center;
    gap: 3px;
    width: auto;
    height: 38px;
    line-height: normal;
    padding: 0 5px 0 6px;
    border-radius: 19px;
    color: inherit;
    cursor: pointer;
    transition: background 0.18s;
}

.eng-btn:hover {
    background: #f2f5fb;
}

.eng-ico {
    width: 22px;
    height: 22px;
    overflow: visible;
    display: block;
    flex: 0 0 auto;
    transition: filter 0.18s, opacity 0.18s;
}

/* 小箭头：默认朝下，展开后翻转朝上 */
.eng-caret {
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #8c96a8;
    transition: transform 0.22s, border-color 0.18s;
}

/* 划过时图标变灰：默认彩色 → hover 灰 → 选中保持彩色 */
.eng-btn:hover .eng-ico {
    filter: grayscale(1);
    opacity: 0.5;
}

.eng-btn:hover .eng-caret {
    border-top-color: #5b6472;
}

form.eng-open .eng-caret {
    transform: rotate(180deg);
}

/* 下拉面板：和搜索框同宽，挂在正下方 */
.eng-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 56px;
    z-index: 600;
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    padding: 7px;
    background: #fff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    box-shadow: 0 14px 38px rgba(20, 30, 50, 0.14), 0 2px 6px rgba(20, 30, 50, 0.05);
}

form.eng-open .eng-list {
    display: flex;
    animation: engIn 0.16s ease;
}

@keyframes engIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

.con .sou form .eng-list .eng-item {
    /* 表单里原有的 button 规则是绝对定位，这里显式还原成普通按钮 */
    position: static;
    right: auto;
    top: auto;
    width: auto;
    flex: 1 1 0;
    min-width: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 46px;
    padding: 0 8px;
    border-radius: 11px;
    background: none;
    cursor: pointer;
    color: #3d4759;
    font-size: 13.5px;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.con .sou form .eng-list .eng-item svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    transition: filter 0.18s, opacity 0.18s;
}

.con .sou form .eng-list .eng-item:hover {
    background: #f4f6fb;
}

.con .sou form .eng-list .eng-item:hover svg {
    filter: grayscale(1);
    opacity: 0.5;
}

/* 选中项：淡蓝底 + 品牌色文字，图标保持彩色（优先级写在 hover 之后） */
.con .sou form .eng-list .eng-item.is-on {
    background: #eef4ff;
    color: #1a6af0;
    font-weight: 600;
}

.con .sou form .eng-list .eng-item.is-on svg {
    filter: none;
    opacity: 1;
}

/* 面板展开时把下面的快捷入口淡出，避免从面板底下露出半截按钮 */
.con .sou form.eng-open ~ .quick {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

/* 输入框左侧让出「图标 + 箭头」的位置 */
.con .sou form .wd {
    text-indent: 62px;
    background: #fff;
    color: #222;
}

/* ---------------- 工具箱入口 ---------------- */
.con .sou .quick {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: -12px auto 26px;
}

.quick a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 13px;
    border-radius: 17px;
    font-size: 13px;
    color: #4b5768;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e6ecf6;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: 0.18s;
    white-space: nowrap;
}

.quick a:hover {
    color: #1a6af0;
    border-color: #c9dcff;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(26, 106, 240, 0.14);
}

/* 主入口：品牌蓝实心，视觉上明显重于右侧的次级链接 */
.quick a.quick-main {
    background: linear-gradient(135deg, #3d8bff, #1a6af0);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    padding: 0 15px;
    box-shadow: 0 8px 20px rgba(43, 127, 255, 0.28);
}

.quick a.quick-main:hover {
    color: #fff;
    box-shadow: 0 12px 26px rgba(43, 127, 255, 0.34);
}

.quick a.quick-main svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    opacity: 0.95;
}

.quick a.quick-main i {
    font-style: normal;
    font-size: 11.5px;
    font-weight: 400;
    opacity: 0.82;
    padding-left: 8px;
    margin-left: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.34);
}

.quick-arrow {
    font-style: normal;
    opacity: 0.85;
}

@media (max-width: 640px) {
    /* 手机上主按钮独占一行，下面几个入口排成整齐一排，避免最后孤零零掉一个下去 */
    .con .sou .quick {
        gap: 6px;
    }

    .quick a.quick-main {
        flex: 0 0 100%;
        justify-content: center;
        height: 36px;
    }

    .con .sou form .eng-list .eng-item {
        min-width: 78px;
        font-size: 12.5px;
        height: 42px;
    }

    .con .sou form .wd {
        text-indent: 58px;
    }

    .quick a {
        height: 32px;
        font-size: 12.5px;
        padding: 0 11px;
    }

    .quick a.quick-main i {
        display: none;
    }
}


/* 「已复制」提示：底部浮出一个胶囊，1 秒后随跳转消失（需要复制的引擎才会用到） */
.vm-toast {
    position: fixed;
    left: 50%;
    bottom: 44px;
    z-index: 9999;
    max-width: 86vw;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(24, 30, 42, 0.92);
    color: #fff;
    font-size: 13.5px;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 12px 30px rgba(10, 16, 28, 0.28);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.vm-toast.vm-open {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* 夜间模式下胶囊反过来，避免和纯黑背景糊在一起 */
html[data-theme="dark"] .vm-toast {
    background: rgba(245, 247, 252, 0.94);
    color: #1a2230;
}


/* ============================================================
   底部功能链接（设为主页 / 手机版 / 关于 / 自定义）
   ------------------------------------------------------------
   内容来自后台友情链接分组1，这里只管排版；点开后的弹窗见
   .vm-modal 一段。
   ============================================================ */

.bottomButton {
    font-size: 13px;
    line-height: 1.9;
    letter-spacing: 0.2px;
}

.bottomButton a {
    display: inline-block;
    padding: 0 7px;
    color: #8b93a2;
    transition: color 0.15s;
}

.bottomButton a:hover {
    color: #1a6af0;
}

.bottomCopyright {
    font-size: 12px;
    line-height: 1.85;
    color: #a4abb8;
}

.bottomCopyright a {
    color: inherit;
}

/* ============================================================
   通用弹窗：设为主页 / 手机版二维码 / 自定义
   ============================================================ */

body.vm-lock {
    overflow: hidden;
}

.vm-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
}

.vm-modal.vm-open {
    display: block;
}

.vm-mask {
    position: absolute;
    inset: 0;
    background: rgba(14, 19, 28, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.vm-box {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92vw, 380px);
    padding: 22px 22px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 22, 36, 0.28);
    transform: translate(-50%, -50%);
    animation: vmIn 0.18s ease;
}

@keyframes vmIn {
    from { opacity: 0; transform: translate(-50%, -46%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

.vm-x {
    position: absolute;
    right: 9px;
    top: 7px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #98a1b0;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: 0.15s;
}

.vm-x:hover {
    background: #f2f5fa;
    color: #5b6474;
}

.vm-box h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #1c2430;
}

.vm-p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.75;
    color: #5f6a7b;
}

.vm-tip {
    display: flex;
    align-items: baseline;
    gap: 9px;
    padding: 9px 12px;
    margin-bottom: 8px;
    background: #f6f8fc;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #5f6a7b;
}

.vm-tip b {
    flex: 0 0 auto;
    color: #1c2430;
}

.vm-tip i {
    font-style: normal;
    color: #1a6af0;
}

.vm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    margin-top: 6px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #3d8bff, #1a6af0);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: 0.18s;
}

.vm-btn:hover {
    box-shadow: 0 8px 20px rgba(43, 127, 255, 0.3);
}

.vm-btn.done {
    background: #e9f7ef;
    color: #1a9a55;
    box-shadow: none;
}

.vm-btn.ghost {
    background: #f1f4fa;
    color: #33404f;
}

.vm-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid #eef1f6;
}

.vm-label {
    flex: 0 0 auto;
    width: 56px;
    font-size: 12.5px;
    color: #8b93a2;
}

.vm-engs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vm-engs button {
    height: 28px;
    padding: 0 11px;
    border: 1px solid #e6ebf4;
    border-radius: 14px;
    background: #fff;
    color: #4a5464;
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    transition: 0.15s;
}

.vm-engs button:hover {
    border-color: #c9dcff;
    color: #1a6af0;
}

.vm-engs button.is-on {
    background: #eef4ff;
    border-color: #c9dcff;
    color: #1a6af0;
    font-weight: 600;
}

/* 二维码弹窗 */
.vm-box-qr {
    width: min(92vw, 300px);
    text-align: center;
}

.vm-qr {
    position: relative;
    width: 208px;
    height: 208px;
    margin: 4px auto 10px;
}

/* 二维码中心的小圆标：白底圆 + 站点 favicon，盖住约 4% 面积 */
.vm-qr-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.vm-qr-logo img {
    width: 28px;
    height: 28px;
    display: block;
    border-radius: 7px;
}

/* 只约束二维码本身，别把中心的小图标也拉成整张 */
.vm-qr > canvas,
.vm-qr > img {
    display: block;
    width: 208px;
    height: 208px;
}

.vm-qr-fallback {
    display: block;
    padding: 20px 10px;
    font-size: 12px;
    word-break: break-all;
    color: #1a6af0;
}

.vm-qr-url {
    margin: 0 0 4px;
    font-size: 11.5px;
    color: #8b93a2;
    word-break: break-all;
}

.vm-qr-tip {
    margin: 0;
    font-size: 11.5px;
    color: #a4abb8;
}

/* 夜间（首页用 body 背景色切换） */
html[data-theme="dark"] .vm-box {
    background: #191f2b;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .vm-box h3 {
    color: #e8edf6;
}

html[data-theme="dark"] .vm-p {
    color: #98a3b5;
}

html[data-theme="dark"] .vm-tip {
    background: #222a38;
    color: #98a3b5;
}

html[data-theme="dark"] .vm-tip b {
    color: #dfe6f2;
}

html[data-theme="dark"] .vm-x:hover {
    background: #252d3d;
    color: #c7d1e0;
}

html[data-theme="dark"] .vm-row {
    border-top-color: #262e3c;
}

html[data-theme="dark"] .vm-engs button {
    background: #222a38;
    border-color: #303a4c;
    color: #b9c3d3;
}

html[data-theme="dark"] .vm-engs button.is-on {
    background: #1e3355;
    border-color: #2f5c9e;
    color: #7fb2ff;
}

html[data-theme="dark"] .vm-btn.ghost {
    background: #222a38;
    color: #c9d3e2;
}


/* ============================================================
   深色模式（首页导航）
   ------------------------------------------------------------
   由 <html data-theme="dark"> 控制：右上角 🌞/🌜 按钮、地址栏
   ?theme=dark 都能触发，选择记在 localStorage 的 tw_theme（和工具
   箱共用同一个键，两个站之间来回跳不会闪）。
   统一放在文件最后，靠顺序覆盖上面的浅色规则，避免再出现
   「黑底上还飘着白色搜索框 / 白色胶囊」的情况。
   ============================================================ */

html[data-theme="dark"] {
    color: #e6ecf7;
    background: #0c1017;
}

html[data-theme="dark"] body {
    background: #0c1017;
    color: #e6ecf7;
}

/* 品牌 logo 在深底上整体提一点亮度，深蓝笔画不至于糊掉 */
html[data-theme="dark"] .con .shlogo {
    filter: brightness(1.18) saturate(1.06);
}

/* ---------- 搜索框 ---------- */
html[data-theme="dark"] .con .sou form .wd {
    background: #141a24;
    border-color: #232c3b;
    color: #e6ecf7;
}

html[data-theme="dark"] .con .sou form .wd:focus {
    background: #1a2230;
    border-color: #2b3a52;
    box-shadow: 0 0 0 3px rgba(75, 141, 255, 0.14), 0 8px 26px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .con .sou form .wd::placeholder {
    color: #616e83;
}

html[data-theme="dark"] input::-webkit-input-placeholder {
    color: #616e83;
}

/* 搜索按钮里的放大镜是 currentColor，跟着调亮 */
html[data-theme="dark"] .con .sou form button {
    color: #98a5ba;
}

/* ---------- 引擎下拉 ---------- */
/* GitHub 官方图标是近黑色（#181717），深底上等于隐形，翻成白色再看 */
html[data-theme="dark"] .eng-list .eng-item[data-eng="github"] svg,
html[data-theme="dark"] .eng-btn[data-eng="github"] .eng-ico {
    filter: invert(1);
}

html[data-theme="dark"] .eng-btn:hover {
    background: #1b2330;
}

html[data-theme="dark"] .eng-caret {
    border-top-color: #7c8798;
}

html[data-theme="dark"] .eng-btn:hover .eng-caret {
    border-top-color: #b6c1d2;
}

html[data-theme="dark"] .eng-list {
    background: #151c27;
    border-color: #232c3b;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .con .sou form .eng-list .eng-item {
    color: #b6c1d2;
}

html[data-theme="dark"] .con .sou form .eng-list .eng-item:hover {
    background: #1f2836;
}

html[data-theme="dark"] .con .sou form .eng-list .eng-item.is-on {
    background: rgba(75, 141, 255, 0.16);
    color: #82b0ff;
}

/* ---------- 搜索联想框 ---------- */
html[data-theme="dark"] .con .sou #word {
    border-color: #151c27;
    background: #151c27;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .con .sou #word .li {
    color: #b6c1d2;
}

html[data-theme="dark"] .con .sou #word .li:hover {
    color: #82b0ff;
}

/* ---------- 快捷入口胶囊 ---------- */
html[data-theme="dark"] .quick a {
    color: #b6c1d2;
    background: rgba(21, 28, 39, 0.86);
    border-color: #232c3b;
}

html[data-theme="dark"] .quick a:hover {
    color: #82b0ff;
    background: #1c2431;
    border-color: #2f3d55;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .quick a.quick-main {
    background: linear-gradient(135deg, #3d8bff, #1f6ae0);
    border-color: transparent;
    color: #fff;
}

/* ---------- 时钟 / 底部 ---------- */
html[data-theme="dark"] .showTime {
    color: #e6ecf7;
}

html[data-theme="dark"] .foot {
    color: #78849a;
}

html[data-theme="dark"] .bottomButton a {
    color: #7c8798;
}

html[data-theme="dark"] .bottomButton a:hover {
    color: #82b0ff;
}

html[data-theme="dark"] .bottomCopyright {
    color: #626f84;
}

/* ---------- 右上角菜单按钮 ---------- */
html[data-theme="dark"] #menu i,
html[data-theme="dark"] #menu i:before,
html[data-theme="dark"] #menu i:after {
    background: #98a5ba;
}

html[data-theme="dark"] #menu.on i,
html[data-theme="dark"] #menu.on i:before,
html[data-theme="dark"] #menu.on i:after {
    background: #fff;
}

/* ---------- 右侧快捷导航抽屉 ---------- */
html[data-theme="dark"] .list {
    background: #10161f;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .list ul li a {
    background: #1a2230;
    color: #c3cddd;
}

/* ---------- 滚动条 ---------- */
html[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #0c1017;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #29323f;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #38445a;
}

/* ---------- 提示胶囊 ---------- */
html[data-theme="dark"] .vm-toast {
    background: rgba(240, 244, 252, 0.94);
    color: #1a2230;
}
