/*
 * Theme Name: Linderud Minimal Optimized
 * Description: 极简主义、灰白背景、头部居中、适配移动端圆点列表
 * Author: Gemini
 * Version: 1.2
 */

/* --- 全局变量与配色 --- */
:root {
    --bg-color: #f9f9f9;     /* 灰白色背景 */
    --text-color: #222222;   /* 深色文字 */
    --link-color: #000000;   /* 链接颜色 */
    --meta-color: #777777;   /* 次要文字颜色 */
    --border-color: #eeeeee;
    --max-width: 750px;
}

/* --- 基础重置 --- */
* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0 20px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-bottom: 60px;
}

/* --- 头部居中布局 (Header) --- */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 0 40px 0;
}

.site-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    background: #fff;
    padding: 3px;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

.site-description {
    font-size: 0.95rem;
    color: var(--meta-color);
    margin: 8px 0 20px 0;
}

.site-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-nav a:hover {
    color: var(--link-color);
    border-bottom: 1px solid var(--text-color);
}

/* --- 文章列表 (Index/Archive) --- */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: var(--text-color);
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

/* PC端展示日期 */
.post-date {
    font-family: "SFMono-Regular", Consolas, monospace;
    color: var(--meta-color);
    font-size: 0.9rem;
    width: 130px;
    flex-shrink: 0;
}

/* 移动端展示圆点（默认隐藏） */
.post-dot {
    display: none;
    margin-right: 12px;
    color: var(--text-color);
}

.post-title {
    flex-grow: 1;
}

.post-title a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.post-title a:hover {
    border-bottom: 1px solid #ccc;
}

/* --- 文章内容页 (Post/Page) --- */
.post-content-header {
    margin-bottom: 30px;
}

.content {
    font-size: 1.05rem;
    color: #333;
}

.content h2, .content h3 {
    margin-top: 1.8em;
    color: #000;
}

.content p { margin-bottom: 1.5em; }

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
/* --- 文章内部区块样式 --- */

/* 引用 blockquote */
.content blockquote {
    margin: 2em 0;
    padding: 0.5em 1.5em;
    color: #555;
    border-left: 3px solid #333;
    background-color: rgba(0,0,0,0.02);
    font-style: italic;
}

/* 行内代码 */
.content code {
    font-family: "SFMono-Regular", Consolas, monospace;
    background: #eee;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* 代码块 */
.content pre {
    background: #222;
    color: #fff;
    padding: 1.5em;
    overflow-x: auto;
    border-radius: 4px;
    line-height: 1.5;
    margin: 2em 0;
}

.content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.85em;
}

/* 文章内链接 */
.content a {
    color: var(--link-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.content a:hover {
    opacity: 0.7;
}

/* --- 归档页面专用 --- */
.archive-year {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 40px 0 20px 0;
    font-family: monospace;
}

.archive-year sup {
    font-size: 0.8rem;
    color: var(--meta-color);
    margin-left: 4px;
    font-weight: normal;
}

/* 调整归档页列表的间距 */
.archives-container .post-item {
    margin-bottom: 8px;
}

/* --- 页脚微调 --- */
.site-footer {
    line-height: 1.8;
}


/* --- 分页样式 (Pagination) --- */
.pagination {
    margin-top: 60px;
}

.page-navigator {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    font-family: monospace;
}

.page-navigator li a, 
.page-navigator li span {
    padding: 4px 8px;
    text-decoration: none;
    color: var(--text-color);
}

/* 实现 [1] [2] 视觉效果 */
.page-navigator li a::before, 
.page-navigator li span::before { content: "["; }
.page-navigator li a::after, 
.page-navigator li span::after { content: "]"; }

.page-navigator li.current span {
    font-weight: bold;
    color: var(--link-color);
}

/* --- 页脚 (Footer) --- */
footer {
    margin-top: 100px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--meta-color);
}

footer a {
    color: var(--meta-color);
    text-decoration: underline;
}

/* --- 响应式适配 (小于 600px) --- */
@media (max-width: 600px) {
    .site-header {
        padding: 40px 0 30px 0;
    }

    .post-date {
        display: none; /* 隐藏日期 */
    }

    .post-dot {
        display: inline; /* 显示圆点 */
    }

    .post-item {
        margin-bottom: 14px;
    }

    .site-avatar img {
        width: 70px;
        height: 70px;
    }

    .page-navigator {
        justify-content: center;
    }
}
