@charset "UTF-8";

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fa;
    --bg-tertiary: #f0f1f4;
    
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-tertiary: #888888;
    
    --border-color: #e5e6eb;
    --border-hover: #d0d2d6;
    --border-focus: #0056b3;
    
    --accent-color: #0056b3;
    --accent-hover: #003d82;
    --focus-ring: rgba(0, 86, 179, 0.15);
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.04);
    --control-shadow: inset 0 1px 1px rgba(0,0,0,0.06);
    
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
    
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 1rem;
    --sp-4: 1.5rem;
    --sp-5: 2rem;
    --sp-6: 3rem;
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --max-width: 1200px;
    --header-height: 60px;
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2a2a2a;
    
    --text-primary: #e6e6e6;
    --text-secondary: #a3a3a3;
    --text-tertiary: #737373;
    
    --border-color: #2c2c2c;
    --border-hover: #3c3c3c;
    --border-focus: #5ab0ff;
    
    --accent-color: #5ab0ff;
    --accent-hover: #8cc8ff;
    --focus-ring: rgba(90, 176, 255, 0.15);
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --control-shadow: inset 0 1px 1px rgba(0,0,0,0.4);
}

html.theme-transition,
html.theme-transition *,
html.theme-transition *:before,
html.theme-transition *:after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-left: calc(100vw - 100%);
    overflow-x: hidden;
}

:focus:not(:focus-visible) {
    outline: none;
}
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

svg {
    vertical-align: middle;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--sp-3);
}

.site-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.site-branding a {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.site-branding {
    padding-left: 24px;
}

.site-logo img {
    height: 26px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.site-branding a:hover {
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.nav-toggle-input, .nav-toggle-label {
    display: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: var(--sp-4);
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-primary);
    text-decoration: none;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-tertiary);
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.search-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.8rem 0.35rem 28px;
    font-size: 0.85rem;
    color: var(--text-primary);
    width: 140px;
    transition: all 0.2s ease;
    box-shadow: var(--control-shadow);
}

.search-input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--bg-primary);
    width: 180px;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.theme-switch {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--sp-1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.theme-switch:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.site-main {
    padding: var(--sp-5) var(--sp-3);
}

.archive-breadcrumb {
    max-width: 800px;
    margin: 0 auto var(--sp-4);
    padding: 12px 18px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.archive-breadcrumb svg { flex-shrink: 0; }
.breadcrumb-home {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb-sep { color: var(--text-tertiary); font-size: 0.9rem; }
.archive-breadcrumb span:last-of-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    font-weight: 500;
}

.post {
    margin-bottom: var(--sp-4);
}

.post-title {
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: var(--sp-2);
}

.post-title a {
    color: var(--text-primary);
}

.post-title a:hover {
    text-decoration: none;
    color: var(--accent-color);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: var(--sp-4);
}

.post-meta li {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-meta a {
    color: var(--text-secondary);
}

.post-meta a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.post-content {
    font-size: 1.05rem;
    color: var(--text-primary);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-content p {
    margin-bottom: var(--sp-3);
}

.post-content h2, .post-content h3, .post-content h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin: var(--sp-5) 0 var(--sp-2) 0;
    line-height: 1.4;
}

.post-content h2 { font-size: 1.4rem; }
.post-content h3 { font-size: 1.2rem; }

.post-content img, .post-content video {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: var(--sp-3) 0;
    display: block;
    border: 1px solid var(--border-color);
}

.post-content blockquote {
    margin: var(--sp-4) 0;
    padding: 0 var(--sp-3);
    border-left: 3px solid var(--border-color);
    color: var(--text-secondary);
}

.post-content pre {
    background: var(--bg-secondary);
    padding: var(--sp-3);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: var(--sp-3);
    border: 1px solid var(--border-color);
}

.post-content pre::-webkit-scrollbar { height: 6px; }
.post-content pre::-webkit-scrollbar-track { background: transparent; }
.post-content pre::-webkit-scrollbar-thumb { background-color: var(--border-focus); border-radius: 3px; }

.post-content code {
    background: var(--bg-secondary);
    padding: 0.1em 0.3em;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--text-primary);
}

.post-content pre code {
    background: transparent;
    padding: 0;
    border: none;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--sp-4);
    display: block;
    overflow-x: auto;
}

.post-content th, .post-content td {
    border: 1px solid var(--border-color);
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.9rem;
}

.post-content th {
    font-weight: 700;
    text-align: left;
    background: var(--bg-secondary);
}

.post-footer-meta {
    margin-top: var(--sp-4);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border-color);
}

.tags {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.post-separator {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: var(--sp-5) 0;
}

.post-near {
    list-style: none;
    margin: var(--sp-4) auto;
    max-width: 800px;
    padding: var(--sp-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.post-near li {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.post-near li strong {
    font-weight: 500;
    color: var(--text-tertiary);
    margin-right: var(--sp-2);
    min-width: 50px;
}

.page-navigator {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-5);
    list-style: none;
    font-size: 0.9rem;
    padding: 0;
}

.page-navigator li {
    display: inline-block;
}

.page-navigator a, .page-navigator span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 var(--sp-2);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    text-decoration: none;
}

.page-navigator a:hover {
    color: var(--text-primary);
    border-color: var(--border-focus);
    background: var(--bg-primary);
}

.page-navigator .current a, .page-navigator .current span {
    color: #fff;
    background: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.comments-area {
    margin-top: var(--sp-4);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.comments-wrapper {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.comments-header {
    padding: var(--sp-3) var(--sp-4);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.comments-body {
    padding: var(--sp-4);
}

.comment-list {
    list-style: none;
}

.comments-body > .comment-list > li {
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-4);
    border-bottom: 1px dashed var(--border-color);
}

.comments-body > .comment-list > li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-children {
    margin-top: var(--sp-3);
}

.comment-children .comment-list > li {
    margin-top: var(--sp-3);
    margin-left: var(--sp-4);
    margin-bottom: 0;
    padding-bottom: 0;
    padding-left: var(--sp-3);
    border-bottom: none;
    border-left: 2px solid var(--border-color);
}

.comment-inner {
    display: flex;
    gap: var(--sp-3);
}

.comment-author-avatar {
    flex-shrink: 0;
}

.comment-author-avatar img.avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: block;
}

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-bottom: var(--sp-1);
}

.comment-author {
    font-style: normal;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.comment-author a {
    color: var(--text-primary);
}

.comment-time, .comment-time a {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.comment-reply {
    margin-left: auto;
}

.comment-reply a {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 500;
}

.comment-content {
    color: var(--text-primary);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.comment-content p {
    margin-bottom: var(--sp-2);
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.respond {
    padding: var(--sp-4);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.respond-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--sp-3);
    color: var(--text-primary);
}

.cancel-comment-reply {
    float: right;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: var(--sp-3);
}

.form-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    box-shadow: var(--control-shadow);
}

.form-input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-submit:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-submit:active {
    transform: scale(0.96);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.site-footer {
    padding: var(--sp-5) 0;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-top: var(--sp-4);
    border-top: 1px solid var(--border-color);
}

.site-footer a {
    color: var(--text-tertiary);
}

.site-footer a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .search-input, .form-input {
        font-size: 16px;
    }
    
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        color: var(--text-primary);
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--sp-3);
        border-bottom: 1px solid var(--border-color);
        gap: var(--sp-3);
        z-index: 99;
    }
    
    .nav-toggle-input:checked ~ .nav-menu {
        display: flex;
    }
    
    .search-form, .search-input, .search-input:focus {
        width: 100%;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .comments-header {
        padding: var(--sp-2) var(--sp-3);
    }
    
    .comments-body, .respond {
        padding: var(--sp-3);
    }
    
    .comment-children .comment-list > li {
        margin-left: 0;
        padding-left: var(--sp-2);
        margin-bottom: 16px;
    }
}

/* ==================== 首页卡片列表 ==================== */
.post {
    max-width: 800px;
    margin: 0 auto;
}
.site-main .post {
    background: #ffffff;
    border: 1px solid #e0e2e8;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}
[data-theme="dark"] .site-main .post {
    background: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.site-main .post:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}
[data-theme="dark"] .site-main .post:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.post-separator { display: none; }
.site-main .post-meta {
    border-top: 1px solid #eef0f4;
    padding-top: 12px;
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 0.8rem;
}
[data-theme="dark"] .site-main .post-meta { border-top-color: #2d2d2d; }
.post-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* ==================== 侧边栏布局 ==================== */
.site-layout {
    display: flex;
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--sp-4);
    margin-top: var(--sp-4);
    align-items: flex-start;
}
.site-main {
    flex: 1;
    min-width: 0;
    padding: 0;
}
.sidebar-col {
    width: 300px;
    flex-shrink: 0;
}
.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e0e2e8;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .sidebar-widget {
    background: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.sidebar-about {
    text-align: center;
    padding: 28px 22px 22px;
}
.sidebar-about-logo {
    display: inline-block;
    margin-bottom: 14px;
}
.sidebar-about-logo img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.sidebar-about-logo:hover img {
    transform: scale(1.08);
}
[data-theme="dark"] .sidebar-about-logo img { border-color: #2d2d2d; }
.sidebar-about-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.sidebar-about-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.sidebar-about-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef0f4;
}
[data-theme="dark"] .sidebar-about-stats { border-top-color: #2d2d2d; }
.sidebar-about-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sidebar-about-stat .stat-num {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.2;
}
.sidebar-about-stat .stat-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.sidebar-widget-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef0f4;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-widget-title svg {
    color: var(--accent-color);
    flex-shrink: 0;
}
[data-theme="dark"] .sidebar-widget-title { border-bottom-color: #2d2d2d; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eef0f4;
    font-size: 0.88rem;
}
[data-theme="dark"] .sidebar-cat-item { border-bottom-color: #2d2d2d; }
.sidebar-cat-item:last-child { border-bottom: none; }
.sidebar-cat-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.sidebar-cat-link:hover { color: var(--accent-color); }
.sidebar-cat-count {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: #f0f1f4;
    border-radius: 10px;
    padding: 2px 8px;
    min-width: 22px;
    text-align: center;
}
[data-theme="dark"] .sidebar-cat-count { background: #2a2a2a; }
.sidebar-comment-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed #eef0f4;
}
[data-theme="dark"] .sidebar-comment-item { border-bottom-color: #2d2d2d; }
.sidebar-comment-item:last-child { border-bottom: none; }
.sidebar-comment-avatar { flex-shrink: 0; }
.sidebar-comment-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e0e2e8;
    background: #fff;
    display: block;
}
[data-theme="dark"] .sidebar-comment-avatar img {
    border-color: #333;
    background: #1a1a1a;
}
.sidebar-comment-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-comment-author {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.3;
}
.sidebar-comment-author:hover { text-decoration: underline; }
.sidebar-comment-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-comment-date {
    color: #aaa;
    font-size: 11px;
}
.sidebar-comment-content {
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-decoration: none;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 友情链接 ==================== */
.sidebar-links-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-link-item {
    list-style: none;
    border-bottom: 1px dashed #eef0f4;
}
[data-theme="dark"] .sidebar-link-item { border-bottom-color: #2d2d2d; }
.sidebar-link-item:last-child { border-bottom: none; }
.sidebar-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}
.sidebar-link-card:hover {
    background-color: var(--bg-secondary);
    text-decoration: none;
}
.sidebar-link-logo {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-link-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.sidebar-link-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    background: var(--bg-tertiary);
}
.sidebar-link-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-link-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-link-card:hover .sidebar-link-name {
    color: var(--accent-color);
}
.sidebar-link-desc {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 响应式 ==================== */

/* 手机首页专用：About 卡片放到文章列表上方 */
.mobile-home-about { display: none; }

@media (max-width: 1024px) {
    .site-layout { flex-direction: column; }
    .sidebar-col { width: 100%; order: 2; }
    .site-main { order: 1; }
}
@media (max-width: 768px) {
    .site-layout { padding: 0 var(--sp-2); gap: 16px; }
    .sidebar-widget { padding: 16px 18px; margin-bottom: 16px; }

    /* 仅手机 + 首页：about 从侧边栏挪到文章上方 */
    body.home-page .mobile-home-about { display: block; margin-bottom: 16px; }
    body.home-page .sidebar-about-widget { display: none; }
}
