/* ========================================
   默认主题样式 - 响应式博客
   ======================================== */

/* 重置与基础 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg: #ffffff;
    --bg-gray: #f9fafb;
    --bg-hover: #f3f4f6;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --max-width: 1200px;
    --content-width: 800px;
}

html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-gray);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* 容器 */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.content-wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 头部导航 ========== */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.9);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-logo:hover { color: var(--primary); }
.site-logo .logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-nav a {
    padding: 8px 16px;
    color: var(--text-light);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}
.site-nav a:hover, .site-nav a.active {
    color: var(--primary);
    background: var(--bg-hover);
}
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.search-form {
    position: relative;
    display: flex;
}
.search-form input {
    width: 200px;
    padding: 8px 14px 8px 36px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    background: var(--bg-gray);
    transition: all 0.2s;
}
.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    width: 240px;
}
.search-form button {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    font-size: 14px;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
    padding: 4px 8px;
}
.search-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 4px 8px;
    align-items: center;
    justify-content: center;
}
.search-toggle:hover {
    color: var(--primary);
}
/* 手机端下拉搜索框 */
.mobile-search {
    display: none;
    padding: 0 16px;
    background: var(--bg);
    border-top: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, border-top 0.3s ease;
}
.mobile-search.open {
    max-height: 80px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}
.mobile-search form {
    display: flex;
    gap: 8px;
}
.mobile-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-gray);
    transition: all 0.2s;
}
.mobile-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}
.mobile-search button {
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mobile-search button:hover {
    background: var(--primary-dark);
}

/* ========== Hero 区域 ========== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}
.hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== 主内容布局 ========== */
.main-layout {
    max-width: var(--max-width);
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* ========== 文章卡片 ========== */
.post-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
    display: flex;
}
.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
/* 封面图链接容器（桌面端固定宽度在左侧） */
.post-card > a:first-child {
    width: 240px;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
}
.post-card-cover {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.4s;
}
.post-card > a:first-child:hover .post-card-cover {
    transform: scale(1.05);
}
.post-card-body {
    padding: 24px;
    flex: 1;
    min-width: 0;
}
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-lighter);
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.post-card-meta .category {
    color: var(--primary);
    font-weight: 500;
}
.post-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--primary); }
.post-card-summary {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.read-more {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
}
.read-more:hover { color: var(--primary-dark); }
.post-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-lighter);
}
.post-stats span { display: flex; align-items: center; gap: 4px; }

/* 置顶标记 */
.post-top-badge {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: 500;
}

/* ========== 文章详情 ========== */
.post-detail {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 24px;
}
.post-detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}
.post-detail-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}
.post-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-lighter);
    flex-wrap: wrap;
}
.post-detail-meta span { display: flex; align-items: center; gap: 4px; }
.post-detail-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: var(--radius);
}
.post-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
}
.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
    margin: 28px 0 14px;
    font-weight: 700;
    line-height: 1.4;
}
.post-content h1 { font-size: 28px; }
.post-content h2 { font-size: 24px; padding-bottom: 8px; border-bottom: 2px solid var(--border-light); }
.post-content h3 { font-size: 20px; }
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 16px 0; padding-left: 28px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-gray);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-light);
}
.post-content code {
    background: var(--bg-gray);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-family: "Consolas", "Monaco", monospace;
    color: #e11d48;
}
.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}
.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}
.post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.post-content th, .post-content td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}
.post-content th { background: var(--bg-gray); font-weight: 600; }
.post-content hr {
    border: none;
    border-top: 2px solid var(--border-light);
    margin: 30px 0;
}

/* 文章标签 */
.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.post-tags .label { color: var(--text-lighter); font-size: 14px; }
.post-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-gray);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.2s;
}
.post-tags a:hover {
    background: var(--primary);
    color: #fff;
}

/* 文章导航 */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.post-nav a {
    display: block;
    padding: 16px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}
.post-nav a:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.post-nav .nav-label { font-size: 12px; color: var(--text-lighter); margin-bottom: 4px; }
.post-nav .nav-title { font-weight: 600; color: var(--text); font-size: 14px; }
.post-nav .next { text-align: right; }

/* 相关文章 */
.related-posts {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 24px;
}
.related-posts h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.related-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.related-item {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}
.related-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-item img { width: 100%; height: 120px; object-fit: cover; border-radius: 0; }
.related-item .rel-info { padding: 12px; }
.related-item .rel-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-item .rel-date { font-size: 12px; color: var(--text-lighter); margin-top: 6px; }

/* ========== 评论区 ========== */
.comments-section {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 24px;
}
.comments-section h3 {
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.comment-form { margin-bottom: 30px; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.comment-form textarea { min-height: 100px; resize: vertical; margin-bottom: 12px; }
.comment-form button {
    padding: 10px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.comment-form button:hover { background: var(--primary-dark); }

.comment-list { list-style: none; }
.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}
.comment-item:last-child { border-bottom: none; }
.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.comment-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}
.comment-author { font-weight: 600; color: var(--text); }
.comment-date { font-size: 12px; color: var(--text-lighter); }
.comment-content { color: var(--text-light); font-size: 15px; line-height: 1.7; padding-left: 52px; }
.comment-replies { margin-left: 52px; margin-top: 16px; }
.comment-replies .comment-item { padding: 14px 0; background: var(--bg-gray); padding: 14px; border-radius: var(--radius); margin-bottom: 10px; }
.comment-replies .comment-content { padding-left: 0; }

/* ========== 侧边栏 ========== */
.widget {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}
.widget-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.widget ul { list-style: none; }
.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.widget li:last-child { border-bottom: none; }
.widget li a { color: var(--text-light); display: flex; justify-content: space-between; align-items: center; }
.widget li a:hover { color: var(--primary); }
.widget li .count {
    background: var(--bg-gray);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-lighter);
}

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-gray);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.2s;
}
.tag-cloud a:hover { background: var(--primary); color: #fff; }

/* 搜索小工具 */
.widget-search form { display: flex; }
.widget-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
}
.widget-search input:focus { outline: none; border-color: var(--primary); }
.widget-search button {
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-light);
    background: var(--bg);
    transition: all 0.2s;
}
.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ========== 页面模板 ========== */
.page-detail {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px;
}
.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

/* ========== 归档/搜索/分类页 ========== */
.archive-header {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 24px;
    text-align: center;
}
.archive-header h1 { font-size: 26px; margin-bottom: 8px; }
.archive-header p { color: var(--text-light); font-size: 15px; }
.breadcrumb {
    font-size: 14px;
    color: var(--text-lighter);
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* ========== 404 页面 ========== */
.error-page {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.error-code {
    font-size: 120px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}
.error-page h2 { font-size: 24px; margin-bottom: 12px; }
.error-page p { color: var(--text-light); margin-bottom: 24px; }
.error-page .btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 500;
}
.error-page .btn:hover { background: var(--primary-dark); color: #fff; }

/* ========== 页脚 ========== */
.site-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 40px 20px 24px;
    margin-top: 40px;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 13px;
}
.footer-bottom a { color: #94a3b8; }

/* ========== 提示消息 ========== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ========== 回到顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 99;
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.back-to-top.show { display: flex; }

/* ========== 响应式 ========== */
@media (max-width: 968px) {
    .main-layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .related-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .search-toggle { display: flex; }
    .mobile-search { display: block; }
    .site-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
        z-index: 99;
    }
    .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .site-nav a { width: 100%; padding: 12px 16px; }
    .search-form { display: none; }
    .hero { padding: 40px 20px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .post-detail { padding: 24px 20px; }
    .post-detail-title { font-size: 24px; }
    .post-card { flex-direction: column; }
    .post-card > a:first-child { width: 100%; }
    .post-card-cover { max-height: 200px; min-height: auto; }
    .post-card-body { padding: 18px; }
    .post-card-title { font-size: 18px; }
    .comment-form .form-row { grid-template-columns: 1fr; }
    .post-nav { grid-template-columns: 1fr; }
    .related-list { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .page-detail { padding: 24px 20px; }
    .archive-header { padding: 24px 20px; }
    .archive-header h1 { font-size: 22px; }
    .error-code { font-size: 80px; }
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .header-inner { padding: 0 16px; }
    .site-logo { font-size: 18px; }
    .site-logo .logo-icon { width: 30px; height: 30px; font-size: 15px; }
    .container, .content-wrap { padding: 0 16px; }
    .main-layout { padding: 0 16px; margin: 20px auto; }
    .post-content { font-size: 15px; }
    .post-content h2 { font-size: 20px; }
    .post-content h3 { font-size: 18px; }
}

/* ========== SVG 矢量图标适配 ========== */
.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* 文章元信息图标对齐 */
.post-card-meta span,
.post-detail-meta span,
.post-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-card-meta span .icon,
.post-detail-meta span .icon,
.post-stats span .icon {
    opacity: 0.7;
}

/* 搜索按钮图标 */
.search-form button {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 相关文章占位图标 */
.related-item > div[style*="linear-gradient"] {
    display: flex;
    align-items: center;
    justify-content: center;
}
