:root {
    --bg-primary: #faf8f5;
    --bg-secondary: #f5f2ed;
    --text-primary: #3d3229;
    --text-secondary: #6b5d4d;
    --text-muted: #9a8b7a;
    --border-color: #e5ded4;
    --accent: #8b7355;
}

body {
    font-family: "LXGW WenKai", serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.full-height {
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    text-align: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header .title a {
    color: var(--text-primary);
    letter-spacing: 0.15em;
}

.sidebar-header .title a:hover {
    color: var(--accent);
}

/* Bulma menu 样式覆盖 */
.menu-list a {
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 0.6em 0.75em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-list a:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.menu-list a.is-active {
    background-color: var(--accent);
    color: #fff;
}

.menu-list a.is-active .post-date {
    color: rgba(255,255,255,0.7);
}

.post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

/* 内容区 */
.content-area {
    padding: 2rem 3rem;
    background: var(--bg-primary);
}

.content-area .container {
    max-width: 800px;
}

/* 文章卡片 */
.post-detail.box {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.post-detail .title {
    color: var(--text-primary);
    font-weight: 400;
}

.post-detail .post-meta .tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.post-detail .post-meta .tag:hover {
    background: var(--border-color);
}

/* 文章内容 */
.post-content {
    line-height: 1.9;
    text-align: justify;
}

.post-content p {
    text-indent: 2em;
    margin-bottom: 1.25em;
}

.post-content h2,
.post-content h3 {
    font-weight: 400;
    color: var(--text-primary);
    margin-top: 2em;
}

.post-content pre {
    background: var(--bg-secondary);
    border-radius: 6px;
}

.post-content code {
    font-family: "JetBrains Mono", "Fira Code", monospace;
    background: var(--bg-secondary);
    color: var(--accent);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.post-content blockquote {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 1em 1.5em;
}

/* 欢迎页 */
.welcome-box {
    padding-top: 20vh;
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .content-area {
        padding: 1.5rem;
    }
}
