/*
 * Bdlist dark theme
 * 全部样式本地化，不引用任何外部资源
 */

html[data-theme="dark"] {
    color-scheme: dark;
    --bd-blue: #8ab4ff;
    --bd-blue-hover: #a9c8ff;
    --bd-text: #e7e9ee;
    --bd-text-2: #b8bfc9;
    --bd-muted: #8a929c;
    --bd-line: #35393f;
    --bd-line-light: #262a2f;
    --bd-bg: #121316;
    --bd-card: #1b1d21;
    --bd-soft: #24272c;
    --bd-soft-2: #202328;
    --bd-body-text: #d7dbe1;
    --bd-pre-bg: #0f1115;
    --bd-pre-text: #e6e8ee;
    --bd-code-text: #ff9db2;
    --bd-sep: #4a4f57;
}

html[data-theme="dark"] .site-header {
    border-bottom-color: var(--bd-line);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .site-search:focus-within {
    box-shadow: 0 0 0 3px rgba(138, 180, 255, .16);
}

html[data-theme="dark"] .friend-link:hover {
    border-color: rgba(138, 180, 255, .35);
}

html[data-theme="dark"] .entry-cat a,
html[data-theme="dark"] .nav-link.is-active,
html[data-theme="dark"] .rank-no.is-top,
html[data-theme="dark"] .single-foot a:hover {
    background: rgba(138, 180, 255, .14);
}

html[data-theme="dark"] .post-content a,
html[data-theme="dark"] .comment-content a {
    border-bottom-color: rgba(138, 180, 255, .35);
}

html[data-theme="dark"] .page-navigator a:hover {
    border-color: var(--bd-blue);
    color: var(--bd-blue);
}

html[data-theme="dark"] .comment-form input::placeholder,
html[data-theme="dark"] .comment-form textarea::placeholder {
    color: var(--bd-muted);
}

html[data-theme="dark"] .comment-form input:focus,
html[data-theme="dark"] .comment-form textarea:focus {
    border-color: var(--bd-blue);
    box-shadow: 0 0 0 3px rgba(138, 180, 255, .16);
}

html[data-theme="dark"] .post-content .protected input.text:focus {
    border-color: var(--bd-blue);
    box-shadow: 0 0 0 3px rgba(138, 180, 255, .16);
}

html[data-theme="dark"] .error-code {
    color: rgba(138, 180, 255, .18);
}

html[data-theme="dark"] ::selection {
    background: rgba(138, 180, 255, .26);
}

html[data-theme="dark"] .theme-status {
    background: rgba(27, 29, 33, .92);
    border-color: var(--bd-line);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}

html.theme-transition,
html.theme-transition body,
html.theme-transition body * {
    transition: background-color .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

html.theme-transition svg,
html.theme-transition svg * {
    transition: fill .28s ease, stroke .28s ease;
}

@media (max-width: 960px) {
    html[data-theme="dark"] .site-search {
        background: transparent;
    }

    html[data-theme="dark"] .site-search:hover,
    html[data-theme="dark"] .site-search:focus-within,
    html[data-theme="dark"] .site-search.is-open {
        background: #24272c;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}