/* 时思录 · 样式表
   暖纸色 + 衬线中文，疏朗有呼吸感。纯静态，无构建。 */

:root {
  --paper: #f7f2e6;        /* 暖纸色 */
  --paper-deep: #f1e9d6;   /* 稍深的纸色，用于分隔 */
  --ink: #2e2a23;          /* 墨色正文 */
  --muted: #8d7f68;        /*  muted 灰褐 */
  --accent: #a63f2a;       /* 朱砂红，点缀 */
  --line: #e2d7bd;         /* 分隔线 */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

/* ---------- 页眉 ---------- */
.site-header {
  text-align: center;
  padding: 3.2rem 1.25rem 1.6rem;
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #fdf9f0;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 7px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(166, 63, 42, 0.25);
}

.site-title {
  font-size: 2.9rem;
  font-weight: 700;
  letter-spacing: 0.55em;
  text-indent: 0.55em; /* 抵消 letter-spacing 造成的右偏 */
  line-height: 1.4;
}

.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--ink); }

.site-subtitle {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.site-nav {
  margin-top: 1.8rem;
  font-size: 1rem;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
}

.site-nav a {
  margin: 0 0.9rem;
  padding-bottom: 0.25rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--accent); }
.site-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- 正文容器 ---------- */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  flex: 1;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--muted);
  text-align: center;
  margin: 1.2rem 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- 随笔列表 ---------- */
.essay-list { margin-top: 0.5rem; }

.essay-item {
  display: block;
  padding: 1.4rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

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

.essay-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.essay-item:hover h3 { color: var(--accent); }

.essay-meta {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  margin-top: 0.35rem;
}

.essay-summary {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

.more { text-align: center; margin-top: 1.6rem; }
.more a {
  color: var(--muted);
  letter-spacing: 0.2em;
  font-size: 0.95rem;
}
.more a:hover { color: var(--accent); }

.empty { text-align: center; color: var(--muted); padding: 2rem 0; }

/* ---------- 随笔正文 ---------- */
.essay-head { text-align: center; margin: 1rem 0 2.2rem; }

.essay-head h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.essay-head .essay-meta { margin-top: 0.8rem; }

.essay-body { font-size: 1.06rem; text-align: justify; }
.essay-body p { margin-bottom: 1.4em; }

.ornament {
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  margin: 2.6rem 0 1.2rem;
  font-size: 0.9rem;
}

.essay-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.essay-nav a { color: var(--muted); max-width: 45%; }
.essay-nav a:hover { color: var(--accent); }
.essay-nav .next { text-align: right; margin-left: auto; }

.back { text-align: center; margin-top: 2.2rem; }
.back a { color: var(--muted); letter-spacing: 0.2em; font-size: 0.95rem; }
.back a:hover { color: var(--accent); }

/* ---------- 关于页 ---------- */
.about-body { font-size: 1.05rem; text-align: justify; }
.about-body p { margin-bottom: 1.4em; }
.about-body .sign {
  text-align: right;
  color: var(--muted);
  margin-top: 2rem;
}

/* ---------- 页脚 ---------- */
.site-footer {
  text-align: center;
  padding: 2.2rem 1rem 2.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.site-footer .foot-seal {
  display: inline-block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  background: var(--accent);
  color: #fdf9f0;
  font-size: 0.85rem;
  border-radius: 5px;
  margin-bottom: 0.8rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
  .site-header { padding: 2.4rem 1rem 1.2rem; }
  .site-title { font-size: 2.2rem; }
  .site-subtitle { font-size: 0.82rem; }
  .site-nav { font-size: 0.92rem; }
  .site-nav a { margin: 0 0.6rem; }
  .container { padding: 1rem 1.25rem 2.4rem; }
  .essay-head h2 { font-size: 1.5rem; }
  .essay-body { font-size: 1rem; }
  .essay-nav { font-size: 0.88rem; }
}
