/* ============================================================
   观己闲笺 · 站内样式
   风格：宣纸水墨 · 中式文人
   ============================================================ */
:root {
  --paper:      #f7f2e7;
  --paper-deep: #efe6d3;
  --ink:        #33302b;
  --ink-soft:   #6f675a;
  --cinnabar:   #a63d2f;
  --line:       #d9cdb2;
  --quote-bg:   #f3ecdc;
}

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

html { scroll-behavior: smooth; }

html { background-color: var(--paper); }

body {
  /* 底色由 html 承担，body 透明以便光晕伪元素透出 */
  background-color: transparent;
  color: var(--ink);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC",
               "STSong", "SimSun", "Georgia", serif;
  line-height: 1.9;
  letter-spacing: .03em;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

/* 背景光晕：固定于视口（fixed），滚动时背景恒定，
   避免画布背景传播导致内容区与底部空白出现色差分界 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 8%, rgba(166, 61, 47, .05), transparent 45%),
    radial-gradient(ellipse at 85% 92%, rgba(120, 100, 60, .06), transparent 50%);
}

.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 头部 ---------- */
.site-header {
  padding: 72px 0 40px;
  text-align: center;
  position: relative;
}

.seal {
  width: 46px;
  height: 46px;
  margin: 0 auto 22px;
  background: var(--cinnabar);
  color: var(--paper);
  font-size: 21px;
  font-weight: 700;
  line-height: 46px;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(166,61,47,.35);
  letter-spacing: 0;
}

.site-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: .35em;
  text-indent: .35em;
  color: var(--ink);
}

.site-sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: .5em;
  text-indent: .5em;
}

.site-nav {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 36px;
  font-size: 15px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
}

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

/* ---------- 主体 ---------- */
main { padding: 24px 0 60px; }

.lead {
  font-size: 17px;
  text-align: center;
  color: var(--ink);
  padding: 8px 0 4px;
  position: relative;
}

.lead::before,
.lead::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--line);
  margin: 18px auto;
}

.divider {
  text-align: center;
  color: var(--line);
  font-size: 14px;
  letter-spacing: 1em;
  text-indent: 1em;
  margin: 36px 0 8px;
}

/* ---------- 文章列表 ---------- */
.post-list { list-style: none; }

.post-item {
  padding: 22px 0;
  border-bottom: 1px dashed var(--line);
}

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

.post-date {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: .15em;
}

.post-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin: 6px 0 4px;
  transition: color .25s;
}

.post-title:hover { color: var(--cinnabar); }

.post-excerpt {
  font-size: 14px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 文章正文 ---------- */
.article { padding-top: 8px; }

.article h1 {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .15em;
}

.article .meta {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 14px 0 36px;
  letter-spacing: .1em;
}

.article .content p {
  margin-bottom: 1.4em;
  text-align: justify;
}

.article .content h2 {
  font-size: 21px;
  margin: 2em 0 .8em;
  padding-left: 12px;
  border-left: 3px solid var(--cinnabar);
  letter-spacing: .08em;
}

.article .content blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  background: var(--quote-bg);
  border-left: 3px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
  text-align: left;
}

.article .content .vertical {
  writing-mode: vertical-rl;
  float: right;
  margin: 0 0 18px 24px;
  font-size: 15px;
  color: var(--cinnabar);
  letter-spacing: .2em;
  line-height: 1.8;
  opacity: .85;
}

/* ---------- 关于页 ---------- */
.about-block {
  background: var(--paper-deep);
  border-radius: 8px;
  padding: 28px 30px;
  margin-bottom: 28px;
}

.about-block h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--cinnabar);
  letter-spacing: .1em;
}

.about-block p { font-size: 15px; color: var(--ink); margin-bottom: .8em; text-align: left; }

.about-block p:last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 40px;
  padding: 38px 0 44px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 12px;
  letter-spacing: .08em;
}

.footer-meta a {
  color: inherit;
  text-decoration: none;
  transition: color .25s;
}

.footer-meta a:hover { color: var(--cinnabar); }

.footer-meta .site-age {
  color: var(--ink-soft);
  opacity: .85;
}

/* ---------- 响应式 ---------- */
@media (max-width: 560px) {
  .site-header { padding-top: 48px; }
  .site-title { font-size: 30px; letter-spacing: .25em; text-indent: .25em; }
  .site-nav { gap: 24px; font-size: 14px; }
  .article .content .vertical { float: none; writing-mode: horizontal-tb; margin: 0 0 18px; }
}
