.post-content .thumb img {
    max-height: 50vh;
}

a:has(img) {
    border-bottom: unset !important;
}

.head-fixed #header {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
}

body {
    font:15px/1.2 -apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Source Han Sans SC,Noto Sans CJK SC,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif;
}

@media(prefers-color-scheme:dark) {
    code {
        filter: invert(1) hue-rotate(180deg);
    }

    .widget-list iframe {
        filter: invert(0.89) hue-rotate(180deg) grayscale(0.9) brightness(0.6);
    }

    .g-recaptcha {
        filter: brightness(0.7);
    }

    html {
        color-scheme: dark;
    }

    body {
        color: #ddd;
        background-color: #111;
    }

    a, .nav-menu ul a, .post-content .more a {
        color: #ccc;
    }

    #logo, .post-title a, .nav-menu a, #nav-swith, #search button {
        color: #bbb;
    }

    .menu-parent ul {
        background: rgba(17,17,17,.85);
    }

    .breadcrumbs, .post-meta, .comment-author {
        color: #aaa;
    }

    .comment-by-author, .whisper .comment-parent.comment-by-author, .comment-by-author>.comment-whisper, .comment-list li, table th {
        background: #444;
    }

    .author-icon {
        background: linear-gradient(135deg,transparent 30%,rgba(17,17,17,.8) 0) left,linear-gradient(-135deg,transparent 30%,rgba(17,17,17,.8) 0) right;
        background-size: 50% 100%;
        background-repeat: no-repeat;
    }

    pre {
        background: #222;
    }

    code {
        background: unset;
    }

    input, textarea, button {
        color: #ddd;
        background-color: #333;
    }

    .rewards a, .tags a, .comment-author a, .post-content a, .comment-content a {
        color: #459ccf;
        border-color: #bbb;
    }

    a:hover, .rewards a:hover, .tags a:hover, .comment-author a:hover, #footer .links a:hover, .icpnum:hover, .nav-menu a:hover, .page-navigator a:hover  {
        color:#eee !important;
    }

    .menu-parent ul:before {
        border-color: rgba(17,17,17,.85);
    }

    input, textarea, #header, #footer, #comments, table, .comment-list li, table th, table td{
        border-color: #222;
    }

    .head-fixed #header {
        background: rgba(0,0,0,.75);
    }
}
