#footer {
    padding: 1.2em 0 !important;
    line-height: 1.5;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    margin-top: 10px;
}

.footer-branding {
    font-size: 13px;
    opacity: 0.8;
}

.go-badge {
    background: var(--bg-accent);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 4px;
    display: inline-block;
    vertical-align: middle;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.sticky-badge {
    background: linear-gradient(135deg, #ff7675, #d63031);
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(214, 48, 49, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-badge i {
    font-size: 10px;
    margin-right: 4px;
}


/* banner 未启用时，搜索框不需要顶部间距 */
#search {
    margin-top: 0;
}

/* 消除 body padding-top 导致 sticky header 吸顶后的顶部空隙 */
body {
    padding-top: 0;
}

/* 夜间模式 markdown 渲染适配 */
[data-theme='dark'] pre,
[data-theme='dark'] code {
    background: #1e2433;
    border-color: #2d3748;
}

[data-theme='dark'] code {
    color: #f87171;
}

[data-theme='dark'] pre code {
    color: #e2e8f0;
}

[data-theme='dark'] pre {
    border-color: #374151;
}

[data-theme='dark'] blockquote {
    background: #1e2d3d;
    color: var(--text-secondary);
    border-left-color: var(--primary-color);
}

[data-theme='dark'] table th {
    background: #1f2937;
    color: var(--text-primary);
}

[data-theme='dark'] table td,
[data-theme='dark'] table th {
    border-bottom-color: #374151;
}

[data-theme='dark'] table tbody tr:hover {
    background: #2d3748;
}

/* 夜间模式悬浮按钮适配 */
[data-theme='dark'] {
    --card-bg: #1f2937;
}

/* 防止滚动条出现/消失导致页面整体左右抖动 */
html {
    overflow-y: scroll;
}
