/*
Theme Name: Classic Minimalist
Author: Blue & Gemini
Description: 一个追求极致速度和纯净阅读体验的零臃肿主题（双栏版）。
Version: 1.1
*/

/* --- 1. Reset & Base --- */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --link-color: #0066cc;
    --accent-color: #222222;
    --border-color: #eeeeee;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    line-height: 1.6;
    font-size: 17px; /* 稍微调小一点点以适应双栏 */
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link-color); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; margin: 20px 0; }

/* --- 2. Layout (关键修改部分) --- */

/* 1. 容器加宽，以容纳侧边栏 */
.container {
    max-width: 1100px; 
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. 核心双栏布局 (Flexbox) */
.site-content-wrapper {
    display: flex;             /* 开启弹性布局 */
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;                 /* 内容和侧边栏的间距 */
    margin-bottom: 60px;
    width: 100%;
}

/* 3. 左侧主内容区域 */
.site-main {
    flex: 1;                   /* 自动占满剩余空间 */
    min-width: 0;              /* 防止大图片撑破布局 */
}

/* 4. 右侧侧边栏区域 */
.widget-area {
    width: 300px;              /* 固定宽度 */
    flex-shrink: 0;            /* 禁止被挤压 */
    background-color: #fafafa; /* 淡灰色背景，区分区域 */
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
}

/* --- 3. Header --- */
.site-header { padding: 50px 0 30px; border-bottom: 1px solid #eee; margin-bottom: 40px; }
.site-title { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.site-title a { color: #000; text-decoration: none; }
.site-description { color: #666; font-size: 1rem; }
.main-navigation ul { list-style: none; padding: 0; margin-top: 15px; }
.main-navigation li { display: inline-block; margin-right: 20px; font-size: 0.95rem; }

/* --- 4. Posts --- */
.post { 
    margin-bottom: 50px; 
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-color); /* 增加分隔线 */
}
.post:last-child { border-bottom: none; }

.entry-header { margin-bottom: 20px; }
.entry-title { font-size: 1.8rem; line-height: 1.3; margin-bottom: 10px; }
.entry-title a { color: var(--accent-color); text-decoration: none; }
.entry-meta { font-size: 0.85rem; color: #888; }
.entry-content { margin-top: 20px; }

/* Typography inside posts */
.entry-content p { margin-bottom: 1.5em; }
.entry-content h2 { margin-top: 1.5em; margin-bottom: 0.5em; font-size: 1.5rem; }
.entry-content h3 { margin-top: 1.5em; margin-bottom: 0.5em; font-size: 1.25rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.5em; padding-left: 20px; }
.entry-content blockquote { border-left: 4px solid #eee; padding-left: 15px; color: #666; font-style: italic; margin: 20px 0; }
.entry-content pre { background: #f5f5f5; padding: 15px; overflow-x: auto; border-radius: 4px; font-size: 0.9em; }

/* --- 5. Sidebar Widgets Styling --- */
.widget { margin-bottom: 30px; }
.widget:last-child { margin-bottom: 0; }
.widget-title { 
    font-size: 1.1rem; 
    font-weight: bold; 
    margin-bottom: 15px; 
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    color: #000;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { 
    padding: 8px 0; 
    border-bottom: 1px solid #eee; 
}
.widget li:last-child { border-bottom: none; }

/* --- 6. Pagination & Footer --- */
.pagination { margin: 40px 0; display: flex; justify-content: space-between; }
.site-footer { border-top: 1px solid #eee; padding: 40px 0; margin-top: 0; font-size: 0.85rem; color: #999; text-align: center; }

/* --- 7. Utilities --- */
.screen-reader-text { display: none; }

/* --- 列表页：左图右文布局 --- */

/* 1. Flex 容器：让图片和文字并排 */
.list-layout-flex {
    display: flex;
    gap: 25px; /* 图片和文字之间的距离 */
    align-items: flex-start; /* 顶部对齐 */
}

/* 2. 左侧图片区域 */
.list-thumbnail {
    width: 220px; /* 图片固定宽度 */
    flex-shrink: 0; /* 关键：防止图片被文字挤扁 */
}

.list-thumbnail img {
    width: 100%;       /* 填满容器 */
    height: 140px;     /* 固定高度，保证整齐 */
    object-fit: cover; /* 关键：裁剪图片，防止变形 */
    border-radius: 4px;/*稍微圆角好看点*/
    margin: 0;         /* 覆盖掉全局的 margin */
}

/* 3. 右侧摘要区域 */
.list-excerpt {
    flex: 1; /* 自动占据剩余空间 */
    min-width: 0; /* 防止长字符串撑破布局 */
}
/* --- 评论区样式 (Comments) --- */

.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    margin-bottom: 30px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 30px;
    position: relative;
}

/* 头像与作者 */
.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 0.95rem;
}

.comment-author img {
    border-radius: 50%;
    margin: 0 15px 0 0; /* 头像右边距 */
    width: 40px;
    height: 40px;
}

.fn { font-style: normal; }

/* 评论元数据 (日期) */
.comment-metadata {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}
.comment-metadata a { color: #999; }

/* 评论内容 */
.comment-content p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* 回复按钮 */
.reply { font-size: 0.85rem; }

/* --- 评论表单 (Form) --- */
.comment-respond { margin-top: 50px; }
.comment-reply-title { font-size: 1.2rem; margin-bottom: 20px; display: block; }

.comment-form p { margin-bottom: 15px; }

.comment-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #666;
}

/* 输入框美化 */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: inherit;
    font-size: 1rem;
}

.comment-form textarea { height: 120px; }

/* 提交按钮 */
.form-submit .submit {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.form-submit .submit:hover { background-color: #000; }

/* 隐藏不需要的提示 */
.form-allowed-tags { display: none; }

/* 4. 手机端适配：屏幕小的时候变回上下排列 */
@media (max-width: 600px) {
    .list-layout-flex {
        flex-direction: column; /* 改为垂直排列 */
    }
    .list-thumbnail {
        width: 100%; /* 图片占满全宽 */
        margin-bottom: 15px;
    }
    .list-thumbnail img {
        height: auto; /* 高度自适应 */
    }
}


/* --- 8. Responsive (手机端适配) --- */
@media (max-width: 800px) {
    .site-content-wrapper {
        flex-direction: column; /* 手机上改为上下排列 */
    }
    .widget-area {
        width: 100%; /* 侧边栏占满宽度 */
        margin-top: 40px;
    }
}