/* === 博客园极简主题 === */
/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 明亮主题变量 */
    --bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #2c6fbb;
    --border-color: #e1e4e8;
    --secondary-text: #666666;
    --code-bg: #f6f8fa;
    --header-bg: #f8f9fa;
}

/* 暗色主题 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #eaeaea;
        --accent-color: #4a90e2;
        --border-color: #404040;
        --secondary-text: #aaaaaa;
        --code-bg: #2d2d2d;
        --header-bg: #252525;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

/* 头部样式 */
#header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

#blogTitle {
    text-align: center;
}

#blogTitle h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#blogTitle h2 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--secondary-text);
}

#navigator {
    margin-top: 1rem;
}

#navList {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

#navList li {
    margin: 0;
}

#navList a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#navList a:hover {
    color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.05);
}

/* 主体布局 */
#main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* 文章列表样式 */
.day {
    background: var(--bg-color);
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.postTitle {
    margin-bottom: 1rem;
}

.postTitle a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.postTitle a:hover {
    color: var(--accent-color);
}

.postDesc {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.postCon {
    margin: 1.5rem 0;
}

.c_b_p_desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-text);
}

/* 侧边栏样式 */
#sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-block {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-block h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

#profile_block {
    text-align: center;
}

#profile_block a {
    text-decoration: none;
    color: var(--accent-color);
}

/* 代码块样式 */
.cnblogs_code {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.cnblogs_code pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

/* 评论样式 */
.feedback_area_title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.feedbackItem {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* 底部样式 */
#footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #main {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 2rem;
    }
    
    #navList {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .day {
        padding: 1.5rem;
    }
    
    .postTitle a {
        font-size: 1.3rem;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-text);
}