/* =========================================
   1. 全局基础变量与重置
   ========================================= */
:root {
    --bg: #f7f2e4;
    --paper: #faf7ee;
    --ink: #2c2416;
    --ink-light: #6b5d4a;
    --muted: #9a8c76;
    --border: #d4c9a8;
    --border-light: #e6dfc8;
    --seal: #b9493b;
    --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-serif);
    line-height: 2;
}

a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--seal);
}

.wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. 头部排版
   ========================================= */
.head-layout {
    text-align: center;
    padding: 60px 20px 40px;
    background: var(--paper);
}

.site-branding {
    margin-bottom: 20px;
    font-size: 18px;
    letter-spacing: 4px;
}

.top-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 40px;
}

.top-links a {
    color: var(--muted);
}

.top-links a:hover {
    color: var(--seal);
}

.cat-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-box {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 34px;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--ink-light);
    border: 1px solid var(--border);
    background: var(--bg);
    transition: all 0.3s;
}

.cat-box:hover {
    border-color: var(--seal);
    color: var(--seal);
    background: var(--paper);
}

/* =========================================
   3. 列表排版
   ========================================= */
.section-title {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--ink);
    margin: 40px auto 30px;
    max-width: 780px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.section-title::before {
    content: "◆";
    font-size: 8px;
    color: var(--seal);
    margin-right: 12px;
}

.poem-item {
    padding: 24px 0;
    border-bottom: 1px dashed var(--border-light);
}

.poem-item:last-child {
    border-bottom: none;
}

.poem-item h2 {
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.poem-item .meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

.poem-item .excerpt {
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.8;
}

/* =========================================
   4. 内容页排版
   ========================================= */
.poem-header {
    text-align: center;
    margin-bottom: 50px;
}

.poem-header h1 {
    font-size: 24px;
    letter-spacing: 6px;
    font-weight: normal;
    margin-bottom: 12px;
    line-height: 1.6;
}

.poem-header .meta {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 2px;
}

.poem-text {
    font-size: 17px;
    line-height: 2.4;
    letter-spacing: 2px;
    padding: 0 10px;
}

.poem-tags {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* =========================================
   5. 底部排版
   ========================================= */
.footer-divider {
    margin: 60px 0 40px;
    border-top: 2px solid var(--border-light);
}

.footer-copy {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 2px;
    padding-bottom: 60px;
}

/* =========================================
   6. 面包屑与分页
   ========================================= */
.breadcrumb {
    padding: 40px 0 20px;
    text-align: center;
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--muted);
}

.pager {
    text-align: center;
    padding: 40px 0;
    font-size: 13px;
    color: var(--muted);
}

/* 首页最新列表容器 */
.latest-list {
    list-style: none;
}