/* ===== 古诗雅集 - 古典风格美化 ===== */
/* v6 - 搜索译文支持 */

/* 水墨风格背景 */
body {
  background: linear-gradient(135deg, #f5f0eb 0%, #e8e0d8 100%);
}

/* 首页诗词推荐卡片 - 唯美画卷风格 */
.poem-hero {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 40px;
  text-align: center;
  color: #2c1810;
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 背景图容器 */
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(245,240,235,0.10) 0%, rgba(232,224,216,0.15) 100%);
  pointer-events: none;
}

/* 唯美毛玻璃内容层 - 缥缈羽化 */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 56px 72px;
  width: auto;
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 252, 250, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: 0;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.06);
  /* 四边渐变羽化 - 只羽化边缘一小部分 */
  -webkit-mask-image: radial-gradient(ellipse farthest-side at center, rgba(0,0,0,1) 70%, rgba(0,0,0,0.5) 88%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse farthest-side at center, rgba(0,0,0,1) 70%, rgba(0,0,0,0.5) 88%, rgba(0,0,0,0) 100%);
}

/* 换诗动画 */
@keyframes poemFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content.poem-switching .poem-hero-inner {
  animation: poemFadeIn 0.4s ease-out;
}

/* 底部装饰线 - 更细致 */
.poem-hero .label::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.4), transparent);
  margin: 14px auto 0;
}

.poem-hero .label {
  font-size: 12px;
  letter-spacing: 10px;
  opacity: 0.6;
  margin-bottom: 16px;
  font-weight: 500;
  color: #3a2218;
  font-family: 'Noto Serif SC', 'KaiTi', 'STKaiti', serif;
}

.poem-hero .title {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 14px;
  font-family: 'Noto Serif SC', 'KaiTi', 'STKaiti', 'FangSong', serif;
  color: #1a0f0a;
  text-shadow: 0 1px 4px rgba(255,255,255,0.3);
}

.poem-hero .author {
  font-size: 14px;
  opacity: 0.65;
  margin-bottom: 20px;
  letter-spacing: 5px;
  font-weight: 500;
  color: #3a2218;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
}

.poem-hero .lines {
  font-size: 24px;
  line-height: 2.2;
  letter-spacing: 5px;
  font-family: 'Ma Shan Zheng', 'KaiTi', 'STKaiti', 'FangSong', serif;
  color: #1a0f0a;
  max-width: 560px;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(255,255,255,0.25);
}

/* 唯美按钮 - 轻透印章风格 */
.random-btn-wrap {
  text-align: center;
  margin: 24px 0 36px;
  position: relative;
  z-index: 5;
}

.ink-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 32px;
  background: rgba(255, 252, 250, 0.5);
  color: #4a3020;
  border: 1px solid rgba(139, 115, 85, 0.2);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.35s ease;
  letter-spacing: 4px;
  font-family: 'KaiTi', 'STKaiti', 'SimSun', serif;
  position: relative;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2px;
}

.ink-btn:hover {
  background: rgba(255, 252, 250, 0.7);
  border-color: rgba(139, 115, 85, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(74, 50, 40, 0.08);
}

/* 印章 */
.btn-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #c43a31;
  color: #fff6f0;
  font-size: 13px;
  font-family: 'KaiTi', 'STKaiti', serif;
  transform: rotate(5deg);
  box-shadow: 0 1px 3px rgba(196, 58, 49, 0.2);
  transition: all 0.35s;
  line-height: 1;
  border-radius: 1px;
}

.ink-btn:hover .btn-seal {
  transform: rotate(0deg) scale(1.05);
}

/* 主按钮文字 */
.btn-text {
  font-size: 14px;
  letter-spacing: 6px;
  position: relative;
}

/* 诗词卡片美化 - 古典书简风格 */
.post-list .post {
  background: linear-gradient(135deg, #fefcfb 0%, #fdf8f4 100%);
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 14px;
  box-shadow: 0 1px 6px rgba(44, 24, 16, 0.04);
  transition: all 0.35s ease;
  border: 1px solid rgba(139, 115, 85, 0.08);
  border-left: 3px solid transparent;
  position: relative;
}

.post-list .post::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 40px;
  background: linear-gradient(225deg, rgba(139, 115, 85, 0.04), transparent);
  pointer-events: none;
}

/* 古风搜索按钮 - 印章风格 */
.search-btn { padding: 0 !important; }
.search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: rgba(196, 58, 49, 0.12);
  color: #c43a31;
  font-family: 'Ma Shan Zheng', 'KaiTi', serif;
  font-size: 18px;
  border-radius: 2px;
  transform: rotate(3deg);
  transition: all 0.35s ease;
  letter-spacing: 0;
}
.search-btn:hover .search-icon {
  transform: rotate(0deg) scale(1.1);
  background: rgba(196, 58, 49, 0.2);
}

.post-list .post:hover {
  box-shadow: 0 4px 20px rgba(44, 24, 16, 0.06);
  border-left-color: #8b7355;
  border-color: rgba(139, 115, 85, 0.15);
  transform: translateX(3px);
}

.post-list .post .post-title {
  font-size: 20px;
  color: #1a0f0a;
  font-weight: 600;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
  letter-spacing: 2px;
  transition: color 0.3s;
}

.post-list .post:hover .post-title {
  color: #4a3228;
}

.post-list .post .post-except {
  color: #5a4a3a;
  font-size: 14px;
  line-height: 1.9;
  margin-top: 8px;
  font-family: 'KaiTi', 'STKaiti', serif;
}

.post-list .post .post-date {
  color: #b0a090;
  font-size: 12px;
  margin-top: 10px;
  letter-spacing: 1px;
}

/* 文章页优化 - 古卷风格 */
.post-main {
  background: linear-gradient(180deg, #fefcfb 0%, #fdf8f4 100%);
  border-radius: 6px;
  padding: 40px 44px;
  box-shadow: 0 1px 6px rgba(44, 24, 16, 0.04);
  border: 1px solid rgba(139, 115, 85, 0.08);
}

.post-main .post-main-title {
  font-size: 30px;
  color: #1a0f0a;
  text-align: center;
  letter-spacing: 6px;
  font-family: 'Noto Serif SC', 'KaiTi', 'FangSong', serif;
  font-weight: 700;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(139, 115, 85, 0.12);
  margin-bottom: 24px;
}

.post-md {
  font-size: 16px;
  line-height: 2;
  color: #2c1810;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
}

.post-md p {
  text-align: center;
  font-family: 'Ma Shan Zheng', 'KaiTi', 'STKaiti', serif;
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 2.2;
  margin: 10px 0;
  color: #1a0f0a;
}

.post-md h2 {
  font-size: 20px;
  color: #3a2218;
  border-bottom: 1px solid rgba(139, 115, 85, 0.15);
  padding-bottom: 8px;
  margin-top: 36px;
  margin-bottom: 12px;
  text-align: left;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
  font-weight: 600;
}

.post-md h2 + p {
  text-align: left;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 2;
  color: #4a3a2a;
}


/* 导航栏美化 - 古雅 */
.header {
  background: linear-gradient(135deg, #fefcfb 0%, #fdf8f4 100%);
  border-radius: 6px;
  padding: 14px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 6px rgba(44, 24, 16, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(139, 115, 85, 0.08);
}

.header .logo {
  font-size: 22px;
  font-weight: 700;
  color: #1a0f0a !important;
  letter-spacing: 4px;
  text-decoration: none;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
  transition: opacity 0.3s;
}

.header .logo:hover {
  opacity: 0.7;
}

.header .nav {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header .nav li a {
  padding: 6px 14px;
  font-size: 14px;
  color: #6a5a4a;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
  letter-spacing: 1px;
}

.header .nav li a:hover {
  background: rgba(139, 115, 85, 0.08);
  color: #2c1810;
}

.header .nav li a.current {
  color: #2c1810;
  font-weight: 600;
}

/* 页脚美化 */
.footer {
  text-align: center;
  padding: 32px 24px 20px;
  color: #b0a090;
  font-size: 13px;
  letter-spacing: 1px;
  border-top: 1px solid rgba(139, 115, 85, 0.06);
  margin-top: 8px;
}

.footer a {
  color: #8b7355;
  text-decoration: none;
}

.footer a:hover {
  color: #4a3228;
}

/* 分页美化 - 水墨 */
.paginator {
  text-align: center;
  margin: 36px 0 20px;
}

.paginator .page-number,
.paginator .extend {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 3px;
  background: rgba(255, 252, 250, 0.6);
  border-radius: 4px;
  color: #6a5a4a;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
  border: 1px solid rgba(139, 115, 85, 0.08);
}

.paginator .page-number.current {
  background: rgba(74, 50, 40, 0.9);
  color: #f5f0eb;
  border-color: transparent;
}

.paginator .page-number:hover,
.paginator .extend:hover {
  background: rgba(139, 115, 85, 0.08);
  color: #2c1810;
  border-color: rgba(139, 115, 85, 0.15);
}

/* 404页面 */
.poem-404 {
  text-align: center;
  padding: 80px 20px;
}

.poem-404 h1 {
  font-size: 72px;
  color: #4a3228;
  margin-bottom: 10px;
  font-family: 'KaiTi', 'STKaiti', serif;
}

.poem-404 .poem-line {
  font-size: 20px;
  color: #8b7355;
  font-family: 'KaiTi', 'STKaiti', serif;
  letter-spacing: 3px;
  margin: 20px 0;
}

.poem-404 .back-home {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 28px;
  background: #4a3228;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s;
}

.poem-404 .back-home:hover {
  background: #2c1810;
}

/* 响应式 */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 12px;
  }
  .header .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .poem-hero {
    padding: 0;
    min-height: 300px;
  }
  .hero-content {
    padding: 36px 24px;
    max-width: 88%;
  }
  .poem-hero .title { font-size: 30px; letter-spacing: 8px; }
  .poem-hero .lines { font-size: 20px; letter-spacing: 4px; }
  .poem-hero .author { font-size: 15px; }
  .poem-hero .label { letter-spacing: 6px; font-size: 11px; }
  .poem-hero { min-height: 320px; }
  .back-to-top { bottom: 20px; right: 20px; }
}

/* 上一篇/下一篇导航 */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(139,115,85,0.1);
  border-bottom: 1px solid rgba(139,115,85,0.1);
}
.post-nav-prev, .post-nav-next {
  flex: 1;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.post-nav-prev { text-align: left; }
.post-nav-next { text-align: right; }
.post-nav-prev:hover, .post-nav-next:hover {
  background: rgba(139,115,85,0.06);
  border-color: rgba(139,115,85,0.12);
}
.post-nav-disabled {
  opacity: 0.35;
  cursor: default;
}
.post-nav-disabled:hover {
  background: transparent !important;
  border-color: transparent !important;
}
.post-nav-label {
  display: block;
  font-size: 12px;
  color: #8b7355;
  letter-spacing: 2px;
  margin-bottom: 4px;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
}
.post-nav-title {
  display: block;
  font-size: 15px;
  color: #2c1810;
  font-weight: 600;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
  letter-spacing: 1px;
  transition: color 0.3s;
}
.post-nav-prev:hover .post-nav-title { color: #4a3228; }
.post-nav-next:hover .post-nav-title { color: #4a3228; }
@media (max-width: 480px) {
  .post-nav { flex-direction: column; }
  .post-nav-next { text-align: left; }
}

/* 同主题推荐 */
.related-section {
  background: #fff;
  border-radius: 10px;
  padding: 24px 28px;
  margin-top: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.related-title {
  font-size: 16px;
  color: #4a3228;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 16px;
  text-align: center;
}
.related-item {
  display: block;
  padding: 10px 16px;
  margin-bottom: 6px;
  color: #666;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.related-item:hover {
  background: #f5f0eb;
  color: #4a3228;
  border-left-color: #8b7355;
}
.related-item .related-dot {
  color: #8b7355;
  margin-right: 8px;
}
.related-item .related-title-text {
  font-weight: 500;
  color: #2c1810;
}
.related-item .related-author {
  color: #999;
  font-size: 12px;
  margin-left: 8px;
}

/* ===== 翻译按钮 ===== */
.translate-btn {
  padding: 0 !important;
  font-size: 18px !important;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.translate-btn:hover {
  transform: scale(1.15);
}

/* 翻译下拉菜单 - 古典风格 */
.translate-menu {
  position: fixed;
  z-index: 99999;
  min-width: 160px;
  background: rgba(255,252,250,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139,115,85,0.15);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(44,24,16,0.1);
  padding: 8px 0;
  animation: menuFadeIn 0.2s ease-out;
}
@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.translate-menu-title {
  padding: 10px 18px 6px;
  font-size: 12px;
  color: #b0a090;
  letter-spacing: 3px;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
  border-bottom: 1px solid rgba(139,115,85,0.08);
  margin-bottom: 4px;
}
.translate-menu-item {
  padding: 8px 18px;
  font-size: 14px;
  color: #4a3a2a;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Serif SC', 'KaiTi', sans-serif;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.translate-menu-item:hover {
  background: rgba(139,115,85,0.08);
  color: #2c1810;
}
.translate-menu-item:active {
  background: rgba(139,115,85,0.15);
}
.translate-menu-restore {
  border-top: 1px solid rgba(139,115,85,0.08);
  margin-top: 4px;
  padding-top: 10px;
  color: #8b7355;
  font-style: italic;
}
.translate-menu-restore:hover {
  color: #4a3228;
}

/* 翻译状态指示 */
.translate-btn.active-lang {
  position: relative;
}
.translate-btn.active-lang::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: #c43a31;
  border-radius: 50%;
}

/* 翻译标记 - 给已翻译的元素添加装饰 */
[data-tl] .nav li a:not(.translate-btn) {
  transition: color 0.3s;
}
[data-tl] .header .logo {
  opacity: 0.9;
}

/* 已翻译内容的微提示 */
#translateStatus {
  font-family: 'Noto Serif SC', 'KaiTi', serif;
  letter-spacing: 1px;
}

/* 搜索弹窗 */
.search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.search-box {
  background: rgba(255,252,250,0.95);
  border-radius: 8px;
  padding: 20px 24px;
  width: 460px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid rgba(139,115,85,0.2);
  border-radius: 4px;
  background: #fff;
  color: #2c1810;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
  outline: none;
  box-sizing: border-box;
}

.search-box input:focus {
  border-color: rgba(139,115,85,0.4);
}

.search-results {
  margin-top: 12px;
  max-height: 320px;
  overflow-y: auto;
}

.search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 4px;
  color: #2c1810;
  text-decoration: none;
  transition: background 0.2s;
}

.search-item:hover {
  background: rgba(139,115,85,0.08);
}

.search-title {
  font-family: 'Noto Serif SC', 'KaiTi', serif;
  font-weight: 600;
  font-size: 15px;
}

.search-author {
  color: #8b7355;
  font-size: 13px;
  font-family: 'KaiTi', serif;
}

.search-empty {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 14px;
  font-family: 'KaiTi', serif;
}



/* 朗读按钮 */
/* 收藏按钮 */
.fav-btn {
  cursor: pointer; font-size: 16px; color: #ccc;
  transition: all 0.3s; user-select: none;
  display: inline-flex; align-items: center;
}
.fav-btn:hover { color: #e08070; transform: scale(1.15); }
.fav-btn.fav-active { color: #c43a31; }
.post-meta .fav-btn { margin-left: 12px; }
.post-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.post-meta-row .fav-btn { font-size: 18px; }

.read-aloud-wrap {
  text-align: center;
  margin: 16px 0 0;
}

.read-aloud-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  background: rgba(139,115,85,0.1);
  border: 1px solid rgba(139,115,85,0.2);
  border-radius: 20px;
  color: #5a3a2a;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
}

  .read-aloud-btn:hover {
    background: rgba(139,115,85,0.18);
    border-color: rgba(139,115,85,0.35);
  }

  .ra-icon {
    font-size: 16px;
  }

/* ===== 文章页美化 ===== */

/* 诗笺卡片 */
.poem-card {
  background: linear-gradient(135deg, #fdfaf7 0%, #f8f2ec 100%);
  border: 1px solid rgba(139,115,85,0.15);
  border-radius: 6px;
  padding: 40px 48px;
  margin: 20px 0 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(44,24,16,0.04);
  position: relative;
}

.poem-card::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid rgba(139,115,85,0.06);
  border-radius: 3px;
  pointer-events: none;
}

.poem-card p {
  text-align: center;
  font-family: 'Ma Shan Zheng', 'KaiTi', 'STKaiti', serif;
  font-size: 22px;
  line-height: 2.4;
  letter-spacing: 4px;
  color: #1a0f0a;
  margin: 4px 0;
}

/* 工具栏 */
.post-toolbar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pt-btn {
  padding: 7px 22px;
  background: rgba(139,115,85,0.08);
  border: 1px solid rgba(139,115,85,0.15);
  border-radius: 4px;
  color: #5a3a2a;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
  letter-spacing: 3px;
}

.pt-btn:hover { background: rgba(139,115,85,0.15); border-color: rgba(139,115,85,0.3); }
.pt-btn.active { background: rgba(74,50,40,0.85); color: #f5f0eb; border-color: transparent; }

/* 注音层 */
.pinyin-layer {
  background: rgba(255,252,250,0.95);
  border: 1px solid rgba(139,115,85,0.12);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 0 0 16px;
  text-align: center;
}

.pinyin-content { font-size: 20px; line-height: 2.8; font-family: 'KaiTi','STKaiti',serif; color: #2c1810; }
.pinyin-content ruby { ruby-align: center; }
.pinyin-content rt { font-size: 11px; color: #8b7355; letter-spacing: 0; font-family: 'Noto Serif SC',serif; }

/* 内容区 - 切换显示 */
.poem-sections { margin-top: 10px; }
.poem-sections h2 { font-size: 16px; color: #4a3020; font-family: 'Noto Serif SC','KaiTi',serif; font-weight: 600; letter-spacing: 4px; text-align: center; margin: 28px 0 12px; padding: 0; border: none; position: relative; }
.poem-sections h2::before, .poem-sections h2::after { content: '━━'; color: rgba(139,115,85,0.15); font-size: 12px; margin: 0 10px; letter-spacing: 2px; }
.poem-sections h2 + p, .poem-sections h2 + div { background: rgba(253,250,247,0.6); border: 1px solid rgba(139,115,85,0.06); border-radius: 4px; padding: 18px 24px; margin: 0 0 4px; text-align: left; font-family: 'Noto Serif SC','KaiTi',serif; font-size: 15px; line-height: 2; color: #3a2a1a; }
.poem-sections h2 + p p, .poem-sections h2 + div p { text-align: left; font-family: 'Noto Serif SC','KaiTi',serif; font-size: 15px; line-height: 2; color: #3a2a1a; margin: 0; }

/* 作者小传样式 */
.poem-sections h2:last-of-type { color: #6a5a4a; font-size: 14px; }
.poem-sections h2:last-of-type + p { background: rgba(139,115,85,0.04); border-color: rgba(139,115,85,0.08); text-align: center; font-size: 14px; }

/* 标签区 */
.post-meta:last-of-type {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(139,115,85,0.08);
  font-size: 13px;
  font-family: 'Noto Serif SC', 'KaiTi', serif;
}

.post-meta:last-of-type a {
  color: #8b7355;
  text-decoration: none;
  transition: color 0.2s;
}

.post-meta:last-of-type a:hover {
  color: #4a3228;
}

/* ===== 精致化美化 ===== */

/* ① 诗笺微动效 + 纸纹 */
.poem-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

.poem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(44,24,16,0.06);
}

/* ② 内容展开收起动画 */
.poem-sections {
  overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.5s ease;
}

.poem-sections[style*="display: block"],
.poem-sections[style*="display:block"] {
  animation: sectionFadeIn 0.4s ease-out;
}

@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ③ 注音层动画 */
.pinyin-layer {
  animation: pinyinFadeIn 0.35s ease-out;
}

@keyframes pinyinFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ④ 阅读进度条 */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b7355, #c4a882);
  z-index: 99999;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ⑤ 页面加载渐入 */
.paper {
  animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ⑥ 手机适配 */
@media (max-width: 480px) {
  .poem-card { padding: 28px 20px; }
  .poem-card p { font-size: 18px; letter-spacing: 3px; }
  .post-toolbar .pt-btn { padding: 6px 16px; font-size: 12px; }
  .poem-sections h2 + p, .poem-sections h2 + div { padding: 14px 16px; }
  .pinyin-layer { padding: 14px 16px; }
  .pinyin-content { font-size: 16px; line-height: 2.4; }
  .pinyin-content rt { font-size: 10px; }
}




