/*
 * Bdlist - 百度列表风格 Typecho 主题
 * 全部样式本地化，不引用任何外部字体、图标或 CDN 资源
 */

:root {
    --bd-blue: #2440b3;
    --bd-blue-hover: #315efb;
    --bd-text: #1f2329;
    --bd-text-2: #4e5969;
    --bd-muted: #86909c;
    --bd-line: #e5e6eb;
    --bd-line-light: #f2f3f5;
    --bd-bg: #f5f6f7;
    --bd-card: #fff;
    --bd-soft: #f2f3f5;
    --bd-soft-2: #f7f8fa;
    --bd-body-text: #252a31;
    --bd-pre-bg: #1f2430;
    --bd-pre-text: #e6e8ee;
    --bd-code-text: #c7254e;
    --bd-sep: #c9cdd4;
    --bd-radius: 12px;
    --bd-container: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bd-bg);
    color: var(--bd-text);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--bd-blue);
    text-decoration: none;
    transition: color .18s ease;
}

a:hover {
    color: var(--bd-blue-hover);
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
textarea {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: var(--bd-container);
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

::selection {
    background: rgba(36, 64, 179, .16);
}

:focus-visible {
    outline: 2px solid var(--bd-blue);
    outline-offset: 2px;
}

/* ------------------
 * Header
 * ------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bd-card);
    border-bottom: 1px solid var(--bd-line);
    box-shadow: 0 1px 2px rgba(31, 35, 41, .04);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.brand-name {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .5px;
    color: var(--bd-blue);
    white-space: nowrap;
}

.brand:hover .brand-name {
    color: var(--bd-blue-hover);
}

.brand-logo {
    display: block;
    max-height: 38px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    padding: 7px 12px;
    border-radius: 8px;
    color: var(--bd-text-2);
    font-size: 15px;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--bd-line-light);
    color: var(--bd-blue);
    text-decoration: none;
}

.nav-link.is-active {
    background: rgba(36, 64, 179, .08);
    color: var(--bd-blue);
    font-weight: 600;
}

.nav-link.nav-child {
    font-size: 14px;
}

.nav-link.nav-child:not(.is-active) {
    color: var(--bd-muted);
}

.site-search {
    display: flex;
    align-items: center;
    flex: none;
    width: 236px;
    height: 40px;
    padding: 0 4px 0 16px;
    background: var(--bd-soft);
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.site-search:focus-within {
    background: var(--bd-card);
    border-color: var(--bd-blue);
    box-shadow: 0 0 0 3px rgba(36, 64, 179, .1);
}

.site-search input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    outline: 0;
    font-size: 14px;
    color: var(--bd-text);
}

.site-search input::placeholder {
    color: var(--bd-muted);
}

.site-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--bd-blue);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

.site-search button:hover {
    background: var(--bd-blue-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    flex: none;
    gap: 8px;
}

.theme-toggle {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--bd-line-light);
    color: var(--bd-text-2);
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.has-js .theme-toggle {
    display: inline-flex;
}

.theme-toggle:hover {
    background: var(--bd-line);
    color: var(--bd-blue);
}

.theme-toggle::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--bd-text);
    color: var(--bd-bg);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.theme-toggle:hover::after,
.theme-toggle:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

.theme-status {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid var(--bd-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--bd-text-2);
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 4px 16px rgba(31, 35, 41, .08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease, background-color .28s ease, color .28s ease, border-color .28s ease;
}

.theme-status.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

html.theme-transition .theme-status {
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease, background-color .28s ease, color .28s ease, border-color .28s ease;
}

.theme-status-dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bd-blue);
}

/* ------------------
 * Layout
 * ------------------ */
#body {
    padding: 24px 0 40px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.main-col {
    min-width: 0;
}

.side-col {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ------------------
 * Feed / entries
 * ------------------ */
.feed-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px;
    background: var(--bd-card);
    border: 1px solid var(--bd-line-light);
    border-radius: var(--bd-radius);
}

.feed-kicker {
    margin: 0 0 4px;
    color: var(--bd-muted);
    font-size: 12px;
    letter-spacing: .12em;
}

.feed-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
    color: var(--bd-text);
    overflow-wrap: anywhere;
}

.feed-desc {
    margin: 8px 0 0;
    color: var(--bd-muted);
    font-size: 14px;
}

.feed-count {
    flex: none;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--bd-line-light);
    color: var(--bd-muted);
    font-size: 13px;
}

.entry-list {
    margin-top: 16px;
    padding: 2px 28px;
    background: var(--bd-card);
    border: 1px solid var(--bd-line-light);
    border-radius: var(--bd-radius);
}

.main-col > .entry-list:first-child,
.main-col > .empty-state:first-child {
    margin-top: 0;
}

.entry {
    padding: 22px 0;
    border-bottom: 1px solid var(--bd-line-light);
}

.entry:last-child {
    border-bottom: 0;
}

.entry-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
}

.entry-title a,
.entry-title a:visited {
    color: var(--bd-blue);
}

.entry-title a:hover {
    color: var(--bd-blue-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-excerpt {
    margin: 0 0 12px;
    color: var(--bd-text-2);
    font-size: 14.5px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--bd-muted);
    font-size: 13px;
}

.entry-cat a {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(36, 64, 179, .07);
    color: var(--bd-blue);
}

.entry-cat a:hover {
    background: rgba(36, 64, 179, .12);
    text-decoration: none;
}

.meta-sep {
    color: var(--bd-sep);
}

.entry-comments {
    color: var(--bd-muted);
}

.entry-comments:hover {
    color: var(--bd-blue);
    text-decoration: none;
}

/* ------------------
 * Sidebar
 * ------------------ */
.widget {
    padding: 18px 20px 14px;
    background: var(--bd-card);
    border: 1px solid var(--bd-line-light);
    border-radius: var(--bd-radius);
}

.widget-head {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bd-line-light);
}

.widget-title {
    position: relative;
    margin: 0;
    padding-left: 11px;
    color: var(--bd-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    border-radius: 2px;
    background: var(--bd-blue);
}

.widget-empty {
    margin: 6px 0;
    color: var(--bd-muted);
    font-size: 13px;
}

.rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--bd-line-light);
}

.rank-item:last-child {
    padding-bottom: 2px;
    border-bottom: 0;
}

.rank-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--bd-line-light);
    color: var(--bd-muted);
    font-size: 12px;
    font-weight: 600;
}

.rank-no.is-top {
    background: rgba(36, 64, 179, .1);
    color: var(--bd-blue);
}

.rank-link {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--bd-text-2);
    font-size: 14px;
    line-height: 1.5;
}

.rank-link:hover {
    color: var(--bd-blue);
    text-decoration: none;
}

.rank-comments {
    flex: none;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--bd-line-light);
    color: var(--bd-muted);
    font-size: 11px;
}

.guest-comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guest-comment {
    padding: 10px 0;
    border-bottom: 1px dashed var(--bd-line-light);
}

.guest-comment:last-child {
    padding-bottom: 2px;
    border-bottom: 0;
}

.guest-comment-link {
    display: block;
    color: var(--bd-text-2);
}

.guest-comment-link:hover {
    text-decoration: none;
}

.guest-name {
    display: block;
    margin-bottom: 3px;
    color: var(--bd-blue);
    font-size: 13px;
    font-weight: 600;
}

.guest-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    color: var(--bd-muted);
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.guest-comment-link:hover .guest-text {
    color: var(--bd-text-2);
}

.friend-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.friend-link {
    display: block;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--bd-soft-2);
    color: var(--bd-text-2);
}

.friend-link:hover {
    border-color: rgba(36, 64, 179, .25);
    background: var(--bd-card);
    text-decoration: none;
}

.friend-name {
    display: block;
    overflow: hidden;
    color: var(--bd-text-2);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-desc {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--bd-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------
 * Single page
 * ------------------ */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0 4px;
    color: var(--bd-muted);
    font-size: 13px;
}

.breadcrumb a {
    color: var(--bd-muted);
}

.breadcrumb a:hover {
    color: var(--bd-blue);
}

.breadcrumb-current {
    max-width: 60ch;
    overflow: hidden;
    color: var(--bd-text-2);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-sep {
    color: var(--bd-sep);
}

.single {
    padding: 28px 32px 32px;
    background: var(--bd-card);
    border: 1px solid var(--bd-line-light);
    border-radius: var(--bd-radius);
}

.single-head {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--bd-line-light);
}

.single-title {
    margin: 0 0 10px;
    color: var(--bd-text);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--bd-muted);
    font-size: 13px;
}

.single-meta a {
    color: var(--bd-muted);
}

.single-meta a:hover {
    color: var(--bd-blue);
}

.post-content {
    color: var(--bd-body-text);
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.post-content > :first-child {
    margin-top: 0;
}

.post-content > :last-child {
    margin-bottom: 0;
}

.post-content h2 {
    margin: 1.6em 0 .7em;
    padding-bottom: .35em;
    border-bottom: 1px solid var(--bd-line-light);
    font-size: 22px;
    line-height: 1.4;
}

.post-content h3 {
    margin: 1.4em 0 .6em;
    font-size: 18px;
    line-height: 1.4;
}

.post-content h4 {
    margin: 1.3em 0 .5em;
    font-size: 16px;
}

.post-content p {
    margin: 0 0 1.1em;
}

.post-content a {
    border-bottom: 1px solid rgba(36, 64, 179, .25);
}

.post-content a:hover {
    border-bottom-color: var(--bd-blue);
    text-decoration: none;
}

.post-content img {
    margin: 1em 0;
    border-radius: 8px;
}

.post-content blockquote {
    margin: 1.2em 0;
    padding: 12px 18px;
    border-left: 3px solid var(--bd-blue);
    border-radius: 0 8px 8px 0;
    background: var(--bd-soft-2);
    color: var(--bd-text-2);
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.1em;
    padding-left: 1.4em;
}

.post-content li {
    margin: .35em 0;
}

.post-content pre {
    padding: 16px 18px;
    overflow: auto;
    border-radius: 8px;
    background: var(--bd-pre-bg);
    color: var(--bd-pre-text);
    font-size: 13.5px;
    line-height: 1.6;
}

.post-content code {
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bd-soft);
    color: var(--bd-code-text);
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: .92em;
}

.post-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.post-content .protected {
    margin: 1.5em 0;
    padding: 20px 22px;
    border: 1px solid var(--bd-line);
    border-radius: 10px;
    background: var(--bd-soft-2);
}

.post-content .protected p {
    margin: 0 0 12px;
}

.post-content .protected p:last-child {
    margin-bottom: 0;
}

.post-content .protected input.text {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--bd-line);
    border-radius: 8px;
    background: var(--bd-card);
    color: var(--bd-text);
    font-size: 14px;
    outline: 0;
}

.post-content .protected input.text:focus {
    border-color: var(--bd-blue);
    box-shadow: 0 0 0 3px rgba(36, 64, 179, .1);
}

.post-content .protected button {
    height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--bd-blue);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.post-content .protected button:hover {
    background: var(--bd-blue-hover);
}

.post-content table {
    width: 100%;
    margin: 1.2em 0;
    border-collapse: collapse;
    font-size: 14px;
}

.post-content th,
.post-content td {
    padding: 8px 10px;
    border: 1px solid var(--bd-line);
    text-align: left;
}

.post-content th {
    background: var(--bd-soft-2);
}

.post-content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid var(--bd-line);
}

.single-foot {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--bd-line-light);
    color: var(--bd-muted);
    font-size: 13px;
}

.tag-label {
    margin-right: 8px;
}

.single-foot a {
    display: inline-block;
    margin: 0 8px 6px 0;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bd-soft);
    color: var(--bd-text-2);
    font-size: 12px;
}

.single-foot a:hover {
    background: rgba(36, 64, 179, .1);
    color: var(--bd-blue);
    text-decoration: none;
}

.post-near {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.post-near-item {
    min-width: 0;
    padding: 14px 18px;
    background: var(--bd-card);
    border: 1px solid var(--bd-line-light);
    border-radius: var(--bd-radius);
    color: var(--bd-muted);
    font-size: 13.5px;
}

.post-near-item a {
    color: var(--bd-text-2);
}

.post-near-item a:hover {
    color: var(--bd-blue);
}

/* ------------------
 * Comments
 * ------------------ */
.comments {
    margin-top: 16px;
    padding: 22px 28px 26px;
    background: var(--bd-card);
    border: 1px solid var(--bd-line-light);
    border-radius: var(--bd-radius);
}

.comments-head {
    margin-bottom: 4px;
}

.comments-title,
.respond-title {
    margin: 0 0 12px;
    color: var(--bd-text);
    font-size: 18px;
    font-weight: 600;
}

.comment-list,
.comment-list ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list ol {
    padding-left: 24px;
}

.comment-body {
    position: relative;
    padding: 16px 0;
    border-top: 1px solid var(--bd-line-light);
}

.comment-list > li.comment-body:first-child {
    border-top: 0;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bd-text);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

.comment-author .avatar {
    width: 32px;
    height: 32px;
    margin: 0;
    border: 1px solid var(--bd-line-light);
    border-radius: 50%;
}

.comment-author cite {
    font-style: normal;
}

.comment-meta {
    margin: 4px 0 8px;
    color: var(--bd-muted);
    font-size: 12px;
}

.comment-meta a {
    color: var(--bd-muted);
}

.comment-content {
    color: var(--bd-text-2);
    font-size: 14.5px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.comment-content p {
    margin: 0 0 .6em;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-content a {
    border-bottom: 1px solid rgba(36, 64, 179, .25);
}

.comment-reply {
    position: absolute;
    right: 0;
    top: 18px;
    font-size: 12px;
}

.comment-reply a {
    color: var(--bd-muted);
}

.comment-reply a:hover {
    color: var(--bd-blue);
}

.comment-by-author > .comment-author cite::after {
    content: "作者";
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--bd-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
}

.comments-pager {
    margin-top: 8px;
}

.respond {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--bd-line-light);
}

.respond-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cancel-comment-reply {
    color: var(--bd-muted);
    font-size: 12px;
}

.comment-form {
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 14px;
}

.form-field label {
    color: var(--bd-text-2);
    font-size: 13px;
}

.required {
    margin-left: 2px;
    color: #e5484d;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--bd-line);
    border-radius: 8px;
    background: var(--bd-card);
    color: var(--bd-text);
    font-size: 14px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--bd-blue);
    box-shadow: 0 0 0 3px rgba(36, 64, 179, .1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.7;
}

.form-submit {
    margin: 0;
}

.submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: var(--bd-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

.submit:hover {
    background: var(--bd-blue-hover);
}

.comment-logged {
    margin: 0 0 14px;
    color: var(--bd-muted);
    font-size: 13px;
}

.comments-closed {
    color: var(--bd-muted);
    font-size: 14px;
}

/* ------------------
 * Pagination
 * ------------------ */
.page-navigator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.page-navigator li {
    margin: 0;
}

.page-navigator a,
.page-navigator span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--bd-line);
    border-radius: 8px;
    background: var(--bd-card);
    color: var(--bd-text-2);
    font-size: 13px;
}

.page-navigator a:hover {
    border-color: var(--bd-blue);
    color: var(--bd-blue);
    text-decoration: none;
}

.page-navigator .current a,
.page-navigator .current span {
    border-color: var(--bd-blue);
    background: var(--bd-blue);
    color: #fff;
}

/* ------------------
 * Empty / 404
 * ------------------ */
.empty-state {
    margin-top: 16px;
    padding: 56px 24px;
    background: var(--bd-card);
    border: 1px solid var(--bd-line-light);
    border-radius: var(--bd-radius);
    color: var(--bd-muted);
    text-align: center;
}

.empty-state a {
    color: var(--bd-blue);
}

.not-found {
    padding: 64px 24px;
    text-align: center;
}

.error-code {
    margin: 0;
    color: rgba(36, 64, 179, .16);
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .06em;
}

.not-found .single-title {
    margin: 8px 0 10px;
    font-size: 24px;
}

.not-found-desc {
    margin: 0 0 22px;
    color: var(--bd-muted);
}

.not-found-search {
    display: flex;
    max-width: 420px;
    margin: 0 auto 20px;
}

.not-found-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--bd-line);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: var(--bd-card);
    color: var(--bd-text);
    font-size: 14px;
    outline: 0;
}

.not-found-search input:focus {
    border-color: var(--bd-blue);
}

.not-found-search button {
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: var(--bd-blue);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.not-found-search button:hover {
    background: var(--bd-blue-hover);
}

.back-home {
    display: inline-block;
    font-size: 14px;
}

/* ------------------
 * Footer
 * ------------------ */
.site-footer {
    padding: 24px 0;
    background: var(--bd-card);
    border-top: 1px solid var(--bd-line-light);
    color: var(--bd-muted);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.footer-copy {
    margin: 0;
}

.footer-copy a {
    color: var(--bd-text-2);
}

.footer-powered {
    font-size: 12px;
}

.footer-extra {
    color: var(--bd-muted);
    font-size: 12px;
}

/* ------------------
 * Responsive
 * ------------------ */
@media (max-width: 1100px) {
    .site-search {
        width: 200px;
    }

    .layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 960px) {
    .site-header {
        position: static;
    }

    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
        gap: 12px;
    }

    .brand {
        flex: 1;
    }

    .header-actions {
        order: 2;
        position: relative;
        width: auto;
        flex: none;
        margin-left: auto;
    }

    .site-search {
        position: absolute;
        top: 0;
        right: 48px;
        z-index: 10;
        justify-content: flex-end;
        width: 40px;
        padding: 0 3px 0 0;
        overflow: hidden;
        background: transparent;
        border-color: transparent;
        transition: width .24s ease, padding .24s ease, background-color .2s ease;
    }

    .site-search input {
        flex: 0 0 0;
        width: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity .15s ease, width .24s ease;
    }

    .site-search:hover,
    .site-search:focus-within,
    .site-search.is-open {
        width: calc(100vw - 92px);
        padding: 0 4px 0 12px;
        background: #f2f3f5;
        border-color: var(--bd-sep);
    }

    .site-search:hover input,
    .site-search:focus-within input,
    .site-search.is-open input {
        flex: 1 1 auto;
        width: auto;
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav {
        order: 3;
        width: 100%;
        flex: none;
        padding-bottom: 10px;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .side-col {
        position: static;
        order: 2;
    }

    .single {
        padding: 22px 20px 26px;
    }

    .entry-list {
        padding: 2px 20px;
    }

    .feed-head {
        padding: 16px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .comment-list ol {
        padding-left: 12px;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 14px;
    }

    .entry-title {
        font-size: 18px;
    }

    .feed-title {
        font-size: 20px;
    }

    .single-title {
        font-size: 22px;
    }

    .post-content {
        font-size: 15px;
    }

    .post-near {
        grid-template-columns: 1fr;
    }

    .rank-link {
        font-size: 13px;
    }

    .comments {
        padding: 18px 16px 22px;
    }
}

@media print {
    .site-header,
    .side-col,
    .site-footer,
    .post-near,
    .comments {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .post-content {
        color: #000;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .single {
        border: 0;
        padding: 0;
    }
}