/* ============================================
   江南烟雨主题 - 主样式表
   作者: jfsv.cn
   描述: 青砖黛瓦，烟雨江南的古典美学
   ============================================ */

/* === 1. CSS 变量定义 === */
:root {
  /* 中国传统色 */
  --color-roof: #2F3A45;        /* 黛瓦灰 - 主背景 */
  --color-brick: #4A5C6A;       /* 青砖 - 次要背景 */
  --color-wall: #F5F5F0;        /* 粉墙 - 卡片背景 */
  --color-wall-dark: #E8EDE9;   /* 粉墙暗 */
  --color-accent: #C44536;      /* 梅红 - 强调色 */
  --color-bamboo: #5D7C66;      /* 竹叶青 - 辅助色 */
  --color-mist: #E8EEF2;        /* 烟雨灰 */
  --color-ink: #1A1A1A;         /* 墨色 - 文字 */
  --color-ink-light: #4A4A4A;   /* 淡墨 */
  
  /* 山水背景色 */
  --color-mountain-1: rgba(47,58,69,0.15);   /* 远山 */
  --color-mountain-2: rgba(47,58,69,0.25);   /* 中山 */
  --color-mountain-3: rgba(47,58,69,0.35);   /* 近山 */
  
  /* 间距 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(47,58,69,0.08);
  --shadow-md: 0 4px 16px rgba(47,58,69,0.12);
  --shadow-lg: 0 8px 24px rgba(47,58,69,0.16);
  
  /* 字体 */
  --font-body: "Lxgw WenKai", "Noto Serif SC", "Source Han Serif CN", Georgia, serif;
  --font-heading: "Lxgw WenKai", "Noto Sans SC", "Source Han Sans CN", sans-serif;
  --font-mono: "Fira Code", "JetBrains Mono", Consolas, monospace;
}

/* === 2. 全局重置与基础样式 === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.8;
  color: var(--color-ink);
  background: var(--color-wall);
  overflow-x: hidden;
  position: relative;
}

/* 宣纸纹理背景 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="400" height="400" filter="url(%23noise)" opacity="0.03"/></svg>');
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* === 3. 装饰层 === */
/* 江南山水背景 */
.landscape-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

.mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mountains::before,
.mountains::after,
.mountains {
  background-repeat: repeat-x;
  background-position: bottom;
}

/* 远山 */
.mountains::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--color-mountain-1), transparent);
  clip-path: polygon(
    0% 100%, 0% 60%, 8% 55%, 15% 65%, 23% 52%, 30% 58%,
    38% 50%, 45% 57%, 52% 48%, 60% 54%, 68% 47%, 75% 53%,
    83% 45%, 90% 51%, 100% 45%, 100% 100%
  );
}

/* 中山 */
.mountains::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to top, var(--color-mountain-2), transparent);
  clip-path: polygon(
    0% 100%, 0% 75%, 5% 68%, 12% 72%, 18% 65%, 25% 70%,
    32% 63%, 40% 68%, 47% 60%, 55% 66%, 62% 58%, 70% 64%,
    77% 57%, 85% 62%, 92% 56%, 100% 60%, 100% 100%
  );
}

/* 近山（通过竹林表现）*/
.bamboo-forest {
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 100px;
  height: 200px;
  background: linear-gradient(to top, var(--color-bamboo), transparent);
  opacity: 0.3;
  animation: sway 6s ease-in-out infinite;
}

/* 雨滴容器 */
.rain {
  position: fixed;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.rain-drop {
  position: absolute;
  width: 1px;
  height: 25px;
  background: linear-gradient(to bottom, rgba(186,216,232,0.6), rgba(186,216,232,0));
  animation: rainFall 1.5s linear infinite;
}

/* 烟雾层 */
.mist {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
}

.mist-layer {
  position: absolute;
  width: 150%;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(232,238,242,0.4), transparent 70%);
  animation: mistFloat 20s ease-in-out infinite;
}

.mist-layer:nth-child(1) { top: 10%; }
.mist-layer:nth-child(2) { top: 40%; }
.mist-layer:nth-child(3) { top: 70%; }

/* === 4. 布局容器 === */
.site-wrapper {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

/* === 5. 头部导航 === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,245,240,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-wall-dark);
  padding: var(--spacing-sm) 0;
}

/* 飞檐装饰 */
.site-header::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 20px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" preserveAspectRatio="none"><path d="M0,15 Q50,5 100,12 L100,20 L0,20 Z" fill="%234A5C6A"/></svg>') repeat-x;
  background-size: 150px 20px;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

.site-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  font-weight: 700;
  color: var(--color-roof);
  text-decoration: none;
  letter-spacing: 0.05em;
  position: relative;
}

.site-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40%;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--color-ink-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--color-accent);
  background: rgba(196,69,54,0.08);
}

.nav-link.active {
  color: var(--color-accent);
  font-weight: 600;
}

/* === 6. 主内容区 === */
.site-main {
  flex: 1;
  padding: var(--spacing-xl) 0;
}

/* 文章列表 */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  list-style: none;
}

/* 文章卡片 */
.post-card {
  background: var(--color-wall);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  border: 1px solid var(--color-wall-dark);
}

/* 窗棂纹样装饰 */
.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="30" cy="30" r="28" fill="none" stroke="%234A5C6A" stroke-width="0.5"/><line x1="30" y1="2" x2="30" y2="58" stroke="%234A5C6A" stroke-width="0.5"/><line x1="2" y1="30" x2="58" y2="30" stroke="%234A5C6A" stroke-width="0.5"/><line x1="8" y1="8" x2="52" y2="52" stroke="%234A5C6A" stroke-width="0.5"/><line x1="52" y1="8" x2="8" y2="52" stroke="%234A5C6A" stroke-width="0.5"/></svg>') no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.post-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.post-content {
  padding: var(--spacing-md);
}

.post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 700;
  color: var(--color-roof);
  margin-bottom: var(--spacing-xs);
  line-height: 1.4;
}

.post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.post-excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-ink-light);
  margin-bottom: var(--spacing-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  gap: var(--spacing-sm);
  font-size: 0.85rem;
  color: var(--color-bamboo);
  align-items: center;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* === 7. 按钮样式 === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 12px rgba(196,69,54,0.2);
}

.btn-primary:hover {
  background: #A83A2E;
  box-shadow: 0 6px 20px rgba(196,69,54,0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-bamboo);
  color: white;
}

.btn-secondary:hover {
  background: #4A6558;
  transform: translateY(-2px);
}

/* === 8. 页脚 === */
.site-footer {
  background: var(--color-roof);
  color: var(--color-mist);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

/* 石桥栏杆装饰 */
.site-footer::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 30px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 30" preserveAspectRatio="none"><path d="M0,25 Q50,5 100,15 T200,25 L200,30 L0,30 Z" fill="%232F3A45"/><rect x="10" y="5" width="8" height="20" fill="%234A5C6A" rx="2"/><rect x="60" y="5" width="8" height="20" fill="%234A5C6A" rx="2"/><rect x="110" y="5" width="8" height="20" fill="%234A5C6A" rx="2"/><rect x="160" y="5" width="8" height="20" fill="%234A5C6A" rx="2"/></svg>') repeat-x;
  background-size: 200px 30px;
}

.footer-content {
  text-align: center;
}

.footer-poetry {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  opacity: 0.9;
  letter-spacing: 0.1em;
  font-style: italic;
}

.footer-info {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-info a {
  color: var(--color-mist);
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.footer-info a:hover {
  opacity: 1;
}

/* === 9. 动画定义 === */
@keyframes rainFall {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

@keyframes mistFloat {
  0%, 100% {
    transform: translateX(-25%);
  }
  50% {
    transform: translateX(0%);
  }
}

@keyframes sway {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

/* === 10. 响应式设计 === */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }
  
  .nav-menu {
    display: none; /* 移动端简化，可后续添加汉堡菜单 */
  }
  
  .post-list {
    grid-template-columns: 1fr;
  }
  
  .landscape-bg {
    height: 200px;
  }
  
  .rain {
    display: none; /* 移动端关闭雨滴以提升性能 */
  }
}

/* === 11. 无障碍支持 === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .rain,
  .mist {
    display: none;
  }
}

/* === 12. 深色模式支持 === */
@media (prefers-color-scheme: dark) {
  :root {
    --color-wall: #1A1A1A;
    --color-wall-dark: #2A2A2A;
    --color-ink: #E8EDE9;
    --color-ink-light: #B0B0B0;
    --color-roof: #0F1419;
    --color-mist: #E8EEF2;
  }
  
  .site-header {
    background: rgba(26,26,26,0.95);
  }
  
  .post-card {
    background: #2A2A2A;
    border-color: #3A3A3A;
  }
}

/* === 13. 首页大标题 === */
.hero {
  text-align: center;
  padding: var(--spacing-xl) 0 calc(var(--spacing-xl) + 1rem);
  position: relative;
}

.hero::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: var(--spacing-md) auto 0;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  font-weight: 700;
  color: var(--color-roof);
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-indent: 0.18em;
}

.hero-subtitle {
  margin-top: var(--spacing-sm);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  color: var(--color-ink-light);
  letter-spacing: 0.12em;
}

/* === 14. 通用页面标题 === */
.page-head {
  text-align: center;
  padding: var(--spacing-lg) 0 var(--spacing-xl);
  border-bottom: 1px dashed var(--color-wall-dark);
  margin-bottom: var(--spacing-xl);
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  color: var(--color-roof);
  letter-spacing: 0.12em;
}

.page-desc {
  margin-top: var(--spacing-xs);
  font-size: 0.95rem;
  color: var(--color-ink-light);
  letter-spacing: 0.06em;
}

/* === 15. 文章详情 === */
.article {
  max-width: 760px;
  margin: 0 auto;
}

.article-header {
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-wall-dark);
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-roof);
  letter-spacing: 0.04em;
  margin-bottom: var(--spacing-sm);
}

.article-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--spacing-sm);
}

.article-cat,
.article-tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-cat {
  background: rgba(196, 69, 54, 0.1);
  color: var(--color-accent);
}

.article-tag {
  background: rgba(93, 124, 102, 0.12);
  color: var(--color-bamboo);
}

.article-cat:hover {
  background: var(--color-accent);
  color: #fff;
}

.article-tag:hover {
  background: var(--color-bamboo);
  color: #fff;
}

/* 正文排版 */
.article-body {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--color-ink);
  word-wrap: break-word;
}

.article-body > * + * {
  margin-top: 1.15em;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-heading);
  color: var(--color-roof);
  line-height: 1.5;
  margin-top: 2em;
  margin-bottom: 0.75em;
  letter-spacing: 0.02em;
  position: relative;
}

.article-body h2 {
  font-size: 1.45rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--color-accent);
}

.article-body h3 {
  font-size: 1.2rem;
  color: var(--color-brick);
}

.article-body h4 {
  font-size: 1.05rem;
}

.article-body p {
  margin-bottom: 1.15em;
}

.article-body a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 69, 54, 0.35);
  transition: all 0.25s ease;
}

.article-body a:hover {
  border-bottom-color: var(--color-accent);
  background: rgba(196, 69, 54, 0.06);
}

.article-body strong {
  color: var(--color-roof);
  font-weight: 700;
}

.article-body ul,
.article-body ol {
  padding-left: 1.6em;
  margin-bottom: 1.15em;
}

.article-body li {
  margin-bottom: 0.4em;
}

.article-body li::marker {
  color: var(--color-bamboo);
}

.article-body blockquote {
  margin: 1.6em 0;
  padding: 1rem 1.25rem;
  background: rgba(232, 237, 233, 0.55);
  border-left: 3px solid var(--color-bamboo);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-ink-light);
  font-style: italic;
}

.article-body blockquote > *:last-child {
  margin-bottom: 0;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: rgba(74, 92, 106, 0.1);
  border-radius: 4px;
  color: #A83A2E;
}

.article-body pre {
  padding: 1rem 1.15rem;
  background: var(--color-roof);
  border-radius: var(--radius-md);
  overflow-x: auto;
  line-height: 1.7;
  box-shadow: var(--shadow-md);
}

.article-body pre code {
  background: none;
  color: #E8EEF2;
  padding: 0;
  font-size: 0.88rem;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: block;
  margin: 1.5em auto;
}

.article-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-wall-dark), transparent);
  margin: 2.5em 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  padding: 0.65em 0.85em;
  border: 1px solid var(--color-wall-dark);
  text-align: left;
}

.article-body th {
  background: rgba(74, 92, 106, 0.08);
  color: var(--color-roof);
  font-weight: 600;
}

.article-body tr:nth-child(even) td {
  background: rgba(245, 245, 240, 0.6);
}

/* 上下篇导航 */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px dashed var(--color-wall-dark);
}

.article-nav-prev,
.article-nav-next {
  max-width: 48%;
  font-size: 0.9rem;
  color: var(--color-ink-light);
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.article-nav-next {
  text-align: right;
  margin-left: auto;
}

.article-nav-prev:hover,
.article-nav-next:hover {
  color: var(--color-accent);
  background: rgba(196, 69, 54, 0.06);
}

.article-comment {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px dashed var(--color-wall-dark);
}

/* === 16. 分类 / 标签列表 === */
.term-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--spacing-md);
  list-style: none;
}

.term-card a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--spacing-md);
  background: var(--color-wall);
  border: 1px solid var(--color-wall-dark);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  height: 100%;
}

.term-card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.term-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-roof);
}

.term-count {
  font-size: 0.8rem;
  color: var(--color-bamboo);
}

.term-desc {
  font-size: 0.85rem;
  color: var(--color-ink-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === 17. 归档 === */
.archive-year {
  margin-bottom: var(--spacing-xl);
}

.archive-year-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-roof);
  letter-spacing: 0.1em;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  margin-bottom: var(--spacing-md);
}

.archive-month {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-sm);
  border-left: 1px dashed var(--color-wall-dark);
}

.archive-month-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-bamboo);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.archive-list {
  list-style: none;
}

.archive-list li {
  display: flex;
  gap: var(--spacing-sm);
  align-items: baseline;
  padding: 0.35rem 0;
  transition: padding-left 0.25s ease;
}

.archive-list li:hover {
  padding-left: 0.35rem;
}

.archive-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-ink-light);
  flex-shrink: 0;
}

.archive-list a {
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.25s ease;
}

.archive-list a:hover {
  color: var(--color-accent);
}

/* === 18. 分页 === */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

/* === 19. 置顶标 === */
.post-pinned {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  margin-right: 0.4rem;
  border-radius: 4px;
  background: var(--color-accent);
  color: #fff;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

/* === 20. 空状态 === */
.empty-tip {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--color-ink-light);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

/* === 21. 错误页 === */
.error-page {
  text-align: center;
  padding: clamp(3rem, 10vh, 6rem) var(--spacing-sm);
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 3rem + 8vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-wall-dark);
  letter-spacing: 0.1em;
}

.error-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
  color: var(--color-roof);
  margin: var(--spacing-md) 0 var(--spacing-sm);
  letter-spacing: 0.1em;
}

.error-desc {
  color: var(--color-ink-light);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-lg);
}

@media (max-width: 768px) {
  .article-body {
    font-size: 1rem;
    line-height: 1.9;
  }

  .article-nav {
    flex-direction: column;
  }

  .article-nav-prev,
  .article-nav-next {
    max-width: 100%;
    text-align: left;
  }

  .hero-title {
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }
}
