/* ========================================
 * 古雅书韵主题 - 文人雅士风格
 * 
 * 传承古典，崇尚简约
 * 墨香书韵，文以载道
 * ===================================== */

/* 字体引入 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500;600&display=swap');

/* ================
 * 基础设置 
 * ============= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Serif SC', '宋体', '思源宋体', Georgia, serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1a1a1a;
  background: 
    /* 远山如黛 - 冷色调 */
    radial-gradient(ellipse at 15% 85%, rgba(180, 190, 200, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(160, 170, 185, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 70%, rgba(190, 195, 205, 0.06) 0%, transparent 40%),
    /* 白宣纸质感 - 纯净冷白 */
    linear-gradient(135deg, 
      #ffffff 0%, 
      #fefefe 25%, 
      #fdfdfd 50%, 
      #fcfcfc 75%, 
      #fbfbfb 100%);
  text-rendering: optimizeLegibility;
  transition: all 0.3s ease;
  position: relative;
}

/* 页面加载动画 - 如墨汁渗透宣纸 */
body {
  animation: inkSoak 1.2s ease-out;
}

@keyframes inkSoak {
  from {
    opacity: 0;
    filter: blur(2px);
  }
  to {
    opacity: 1;
    filter: blur(0px);
  }
}

/* 水墨渲染与宣纸纹理 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    /* 淡墨渲染 - 冷色调 */
    radial-gradient(ellipse 800px 400px at 8% 15%, rgba(60, 70, 85, 0.02) 0%, transparent 60%),
    radial-gradient(ellipse 600px 300px at 92% 85%, rgba(50, 60, 80, 0.025) 0%, transparent 55%),
    radial-gradient(ellipse 400px 600px at 70% 30%, rgba(70, 80, 95, 0.015) 0%, transparent 65%),
    radial-gradient(ellipse 300px 800px at 30% 70%, rgba(45, 55, 75, 0.022) 0%, transparent 58%),
    /* 宣纸纤维纹理 */
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      rgba(100, 100, 120, 0.004) 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      rgba(90, 95, 110, 0.003) 1px,
      transparent 3px
    );
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

/* ================
 * 文字与排版 - 水墨风格
 * ============= */
h1, h2, h3, h4, h5, h6 {
  font-family: '楷体', 'KaiTi', 'Noto Serif SC', serif;
  font-weight: normal;
  color: #2a2a2a;
  margin: 2em 0 1em 0;
  text-align: center;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* 标题水墨效果 - 丹青双色 */
h1::after, h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: 
    /* 丹红主调 */
    linear-gradient(90deg, 
      transparent 0%, 
      rgba(196, 74, 74, 0.3) 20%, 
      rgba(196, 74, 74, 0.8) 50%, 
      rgba(196, 74, 74, 0.3) 80%, 
      transparent 100%),
    /* 石青辅调 */
    linear-gradient(90deg, 
      transparent 0%, 
      rgba(70, 130, 140, 0.2) 30%, 
      rgba(70, 130, 140, 0.4) 50%, 
      rgba(70, 130, 140, 0.2) 70%, 
      transparent 100%);
  border-radius: 1px;
  filter: blur(0.3px);
}

h1 { font-size: 1.8em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.3em; }
h4 { font-size: 1.1em; }

p {
  margin: 1.5em 0;
  text-align: justify;
  text-indent: 2em;
}

/* ================
 * 链接样式 - 水墨丹青
 * ============= */
a {
  color: #3a3a3a;
  text-decoration: none;
  border-bottom: 1px dotted rgba(90, 95, 105, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

a:hover {
  color: #c44a4a;
  border-bottom-color: rgba(196, 74, 74, 0.6);
  transform: translateY(-1px);
  text-shadow: 0 0 3px rgba(196, 74, 74, 0.2);
}

/* 水墨渲染效果 - 丹青双色 */
a::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: 
    /* 丹红为主 */
    linear-gradient(90deg, 
      transparent, 
      rgba(196, 74, 74, 0.4) 15%, 
      rgba(196, 74, 74, 0.9) 45%, 
      rgba(196, 74, 74, 0.9) 55%,
      rgba(196, 74, 74, 0.4) 85%, 
      transparent),
    /* 石青点缀 */
    linear-gradient(90deg, 
      transparent, 
      rgba(70, 130, 140, 0.2) 25%, 
      rgba(70, 130, 140, 0.5) 50%, 
      rgba(70, 130, 140, 0.2) 75%, 
      transparent);
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: blur(0.4px);
}

a:hover::before {
  width: 100%;
}

/* ================
 * 页面布局 - 优化空间利用
 * ============= */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
}

/* ================
 * Hero区域 - 古雅简洁，完全居中
 * ============= */
.hero-section {
  background: 
    linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #fdfdfd 100%);
  text-align: center;
  padding: 60px 20px;
  border-bottom: none;
  position: relative;
  animation: heroFloat 0.8s ease-out 0.2s both;
}

/* Hero区域水墨边框 - 模拟毛笔勾勒 */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 3px;
  background: 
    /* 主笔触 */
    linear-gradient(90deg, 
      transparent 0%, 
      rgba(100, 100, 100, 0.2) 15%, 
      rgba(80, 80, 80, 0.4) 35%,
      rgba(60, 60, 60, 0.6) 50%, 
      rgba(80, 80, 80, 0.4) 65%,
      rgba(100, 100, 100, 0.2) 85%,
      transparent 100%),
    /* 晕染效果 */
    linear-gradient(90deg, 
      transparent 0%, 
      rgba(140, 140, 140, 0.1) 25%, 
      rgba(120, 120, 120, 0.2) 50%, 
      rgba(140, 140, 140, 0.1) 75%, 
      transparent 100%);
  border-radius: 1px;
  filter: blur(0.4px);
}

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

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px auto;
  overflow: hidden;
  border: 1px solid #ddd;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-family: '楷体', 'KaiTi', serif;
  font-size: 2.2em;
  font-weight: normal;
  color: #111;
  margin: 0 0 20px 0;
  letter-spacing: 0.3em;
  text-align: center;
}

.hero-subtitle {
  font-size: 1em;
  color: #666;
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-align: center;
  line-height: 1.6;
}

.hero-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: #999;
  margin: 30px auto 0;
}

/* ================
 * 导航栏 - 简洁传统
 * ============= */
.main-navigation {
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(254,254,254,0.95) 100%);
  backdrop-filter: blur(15px);
  padding: 20px 0;
  border-bottom: none;
  position: relative;
  transition: all 0.3s ease;
  animation: navSlideDown 0.6s ease-out 0.1s both;
}

/* 导航栏水墨阴影 - 丹青渲染 */
.main-navigation::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 5%;
  right: 5%;
  height: 25px;
  background: 
    /* 中心浓墨 */
    radial-gradient(ellipse 60% 40% at 50% 20%, rgba(60, 60, 70, 0.15) 0%, transparent 70%),
    /* 左侧石青晕染 */
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(70, 130, 140, 0.08) 0%, transparent 60%),
    /* 右侧丹红晕染 */
    radial-gradient(ellipse 35% 55% at 80% 25%, rgba(196, 74, 74, 0.06) 0%, transparent 65%),
    /* 整体墨色扩散 */
    radial-gradient(ellipse 90% 70% at center, rgba(90, 95, 105, 0.05) 0%, transparent 80%);
  filter: blur(4px);
  opacity: 0.8;
}

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

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title a {
  font-family: '楷体', 'KaiTi', serif;
  font-size: 1.2em;
  color: #333;
  border: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: #4a4a4a;
  font-size: 0.95em;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.nav-menu a:hover {
  color: #c44a4a;
  background: rgba(196, 74, 74, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(196, 74, 74, 0.15);
}

.nav-menu a.current {
  color: #c44a4a;
  background: 
    linear-gradient(135deg, rgba(196, 74, 74, 0.08) 0%, rgba(196, 74, 74, 0.12) 100%);
  font-weight: 500;
  position: relative;
}

/* 当前页面石青点缀 */
.nav-menu a.current::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: rgba(70, 130, 140, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(70, 130, 140, 0.4);
}

.search-form {
  width: 240px;
}

.search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(70, 130, 140, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 0.9em;
  color: #4a4a4a;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.search-input:focus {
  outline: none;
  border-color: rgba(196, 74, 74, 0.4);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(196, 74, 74, 0.1);
  transform: translateY(-1px);
}

.search-input::placeholder {
  color: rgba(70, 130, 140, 0.6);
}

.search-button {
  display: none;
}

/* ================
 * 面包屑导航
 * ============= */
.breadcrumb {
  background: 
    linear-gradient(135deg, #fafafa 0%, #f8f8f8 100%);
  padding: 15px 0;
  border-bottom: none;
  position: relative;
}

/* 面包屑水墨装饰 */
.breadcrumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(70, 130, 140, 0.2) 25%, 
    rgba(70, 130, 140, 0.4) 50%, 
    rgba(70, 130, 140, 0.2) 75%, 
    transparent 100%);
  filter: blur(0.3px);
}

.breadcrumb-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  list-style: none;
  display: flex;
  font-size: 0.9em;
  color: #555;
}

.breadcrumb-list a {
  color: #4a4a4a;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
}

.breadcrumb-list a:hover {
  color: #c44a4a;
  transform: translateY(-1px);
}

.breadcrumb-item {
  transition: all 0.3s ease;
}

.breadcrumb-item:last-child {
  color: #c44a4a;
  font-weight: 500;
}

.breadcrumb-item::after {
  content: '›';
  margin: 0 10px;
  color: rgba(70, 130, 140, 0.6);
  font-weight: normal;
}

.breadcrumb-item:last-child::after {
  display: none;
}

/* ================
 * 文章列表 - 传统书页风格
 * ============= */
.posts-grid {
  padding: 40px 0;
}

.post-card {
  margin-bottom: 50px;
  padding: 40px 35px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: cardSlideIn 0.6s ease-out both;
  position: relative;
  box-shadow: 
    0 1px 10px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* 文章卡片纸张边缘 - 极简水墨 */
.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 1px;
  background: 
    /* 极淡石青边框 */
    linear-gradient(0deg, 
      transparent 0%, 
      rgba(70, 130, 140, 0.015) 50%,
      transparent 100%),
    linear-gradient(90deg, 
      transparent 0%, 
      rgba(70, 130, 140, 0.015) 50%,
      transparent 100%);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

/* 丹红印章 - 模拟朱砂印泥 */
.post-card::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 5px;
  height: 5px;
  background: 
    radial-gradient(circle, 
      #c44a4a 0%, 
      #b33e3e 40%, 
      #a23636 70%, 
      rgba(162, 54, 54, 0.8) 100%);
  border-radius: 50%;
  box-shadow: 
    /* 主要印迹 */
    0 0 3px rgba(196, 74, 74, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    /* 墨汁飞溅效果 */
    -8px 3px 0 -3px rgba(196, 74, 74, 0.3),
    6px -4px 0 -3px rgba(196, 74, 74, 0.25),
    -12px -6px 0 -4px rgba(196, 74, 74, 0.15),
    10px 8px 0 -4px rgba(196, 74, 74, 0.2);
  /* 模拟印泥渗透 */
  filter: blur(0.2px);
}

.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.2s; }
.post-card:nth-child(4) { animation-delay: 0.3s; }
.post-card:nth-child(5) { animation-delay: 0.4s; }

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.post-card:hover::after {
  transform: scale(1.1);
  box-shadow: 
    /* 增强的印迹 */
    0 0 6px rgba(196, 74, 74, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    /* 增强的飞溅效果 */
    -8px 3px 0 -3px rgba(196, 74, 74, 0.5),
    6px -4px 0 -3px rgba(196, 74, 74, 0.45),
    -12px -6px 0 -4px rgba(196, 74, 74, 0.3),
    10px 8px 0 -4px rgba(196, 74, 74, 0.4),
    /* 水墨扩散 */
    0 0 15px rgba(196, 74, 74, 0.2);
}

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

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.post-card.has-image {
  display: block;
}

.post-image {
  margin-bottom: 20px;
  text-align: center;
}

.post-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e8e8e8;
}

.post-title {
  font-family: '楷体', 'KaiTi', serif;
  font-size: 1.4em;
  font-weight: normal;
  margin: 0 0 15px 0;
  text-align: center;
}

.post-title a {
  color: #2a2a2a;
  border: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #c44a4a;
}

.post-meta {
  text-align: center;
  font-size: 0.85em;
  color: rgba(70, 130, 140, 0.8);
  margin-bottom: 20px;
}

.post-meta-item {
  display: inline;
  margin: 0 10px;
}

.meta-label {
  color: rgba(70, 130, 140, 0.7);
}

.post-excerpt {
  color: #444;
  line-height: 1.8;
  margin: 20px 0;
}

.post-tags {
  text-align: center;
  margin: 20px 0;
}

.post-tags a {
  color: #666;
  font-size: 0.85em;
  margin: 0 5px;
  border: none;
  padding: 2px 6px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.post-tags a:hover {
  color: #c44a4a;
  background: rgba(196, 74, 74, 0.05);
}

.read-more {
  text-align: center;
  margin-top: 20px;
}

.read-more-link {
  color: #4a4a4a;
  font-size: 0.9em;
  border: none;
  transition: color 0.3s ease;
}

.read-more-link:hover {
  color: #c44a4a;
}

/* ================
 * 归档标题
 * ============= */
.archive-header {
  text-align: center;
  padding: 30px 0;
  margin-bottom: 30px;
  border-bottom: 1px dotted #ddd;
}

.archive-title {
  font-family: '楷体', 'KaiTi', serif;
  font-size: 1.3em;
  font-weight: normal;
  color: #333;
  margin: 0;
}

/* ================
 * 侧边栏 - 水墨雅致
 * ============= */
.sidebar {
  padding: 40px 0;
  animation: sidebarSlideIn 0.8s ease-out 0.3s both;
  position: relative;
}

/* 侧边栏水墨装饰 - 垂直丹青笔触 */
.sidebar::before {
  content: '';
  position: absolute;
  top: 30px;
  left: -15px;
  width: 3px;
  height: 65%;
  background: 
    /* 墨色主笔触 */
    linear-gradient(180deg,
      transparent 0%,
      rgba(80, 85, 95, 0.15) 12%,
      rgba(60, 65, 75, 0.3) 25%,
      rgba(45, 50, 60, 0.5) 40%,
      rgba(50, 55, 65, 0.6) 50%,
      rgba(45, 50, 60, 0.5) 60%,
      rgba(60, 65, 75, 0.3) 75%,
      rgba(80, 85, 95, 0.15) 88%,
      transparent 100%),
    /* 石青晕染 */
    linear-gradient(180deg,
      transparent 0%,
      rgba(70, 130, 140, 0.08) 20%,
      rgba(70, 130, 140, 0.15) 50%,
      rgba(70, 130, 140, 0.08) 80%,
      transparent 100%);
  border-radius: 1px;
  filter: blur(0.3px);
}

@keyframes sidebarSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ================
 * 移动端侧边栏控制
 * ============= */
/* 移动端侧边栏控制按钮 - 默认完全隐藏 */
.sidebar-toggle {
  display: none !important;
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 54px;
  height: 54px;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 252, 252, 0.95) 100%);
  border: none;
  color: #4a4a4a;
  cursor: pointer;
  z-index: 200;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(15px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 水墨边框效果 */
.sidebar-toggle::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: 
    linear-gradient(135deg, 
      rgba(180, 180, 180, 0.3) 0%, 
      rgba(120, 120, 120, 0.2) 50%,
      rgba(180, 180, 180, 0.3) 100%);
  z-index: -1;
}

/* 丹红点缀 */
.sidebar-toggle::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 3px;
  height: 3px;
  background: #c44a4a;
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(196, 74, 74, 0.4);
}

.sidebar-toggle:hover {
  color: #2a2a2a;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(254, 254, 254, 0.98) 100%);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sidebar-toggle:hover::after {
  box-shadow: 0 0 6px rgba(196, 74, 74, 0.6);
}

.sidebar-toggle.active {
  background: 
    linear-gradient(135deg, rgba(196, 74, 74, 0.95) 0%, rgba(180, 60, 60, 0.9) 100%);
  color: rgba(255, 255, 255, 0.95);
  transform: rotate(90deg) scale(0.95);
  box-shadow: 
    0 8px 25px rgba(196, 74, 74, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.sidebar-toggle.active::before {
  background: 
    linear-gradient(135deg, 
      rgba(196, 74, 74, 0.4) 0%, 
      rgba(180, 60, 60, 0.3) 100%);
}

.sidebar-toggle.active::after {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* 移动端侧边栏遮罩 - 默认完全隐藏 */
.sidebar-overlay {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  backdrop-filter: blur(3px);
}

/* 移动端侧边栏样式 - 水墨丹青，默认完全隐藏 */
.sidebar-mobile {
  display: none !important;
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: 
    linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #fdfdfd 100%);
  z-index: 999;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-left: none;
  padding: 20px;
  position: relative;
  box-shadow: 
    -8px 0 40px rgba(0, 0, 0, 0.15),
    inset 1px 0 0 rgba(255, 255, 255, 0.8);
}

/* 移动端侧边栏水墨装饰 */
.sidebar-mobile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(120, 120, 120, 0.2) 20%,
    rgba(80, 80, 80, 0.4) 50%,
    rgba(120, 120, 120, 0.2) 80%,
    transparent 100%);
}

.sidebar-mobile.active {
  right: 0;
}

.sidebar-mobile .sidebar-header {
  text-align: center;
  padding: 20px 0 30px 0;
  border-bottom: 1px dotted #ddd;
  margin-bottom: 20px;
}

.sidebar-mobile .sidebar-title {
  font-family: '楷体', 'KaiTi', serif;
  font-size: 1.2em;
  color: #333;
  margin-bottom: 15px;
}

.sidebar-mobile .sidebar-close {
  display: inline-block;
  color: #4a4a4a;
  border: none;
  padding: 8px 18px;
  font-size: 0.9em;
  cursor: pointer;
  background: 
    linear-gradient(135deg, rgba(248, 248, 248, 0.9) 0%, rgba(245, 245, 245, 0.8) 100%);
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 关闭按钮水墨边框 */
.sidebar-mobile .sidebar-close::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 20px;
  background: 
    linear-gradient(135deg, 
      rgba(150, 150, 150, 0.2) 0%, 
      rgba(120, 120, 120, 0.1) 100%);
  z-index: -1;
}

.sidebar-mobile .sidebar-close:hover {
  color: #c44a4a;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 252, 252, 0.9) 100%);
  transform: translateY(-1px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.widget {
  margin-bottom: 40px;
  padding: 30px 25px;
  background: 
    linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  border: none;
  border-radius: 0;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 2px 15px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Widget水墨边框 */
.widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid transparent;
  background: 
    linear-gradient(135deg, 
      rgba(150, 150, 150, 0.2) 0%, 
      rgba(120, 120, 120, 0.1) 50%,
      rgba(150, 150, 150, 0.2) 100%) 
    border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0.3;
}

/* 丹红小点装饰 */
.widget::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 3px;
  height: 3px;
  background: #c44a4a;
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(196, 74, 74, 0.3);
}

.widget:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 5px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.widget:hover::after {
  box-shadow: 0 0 5px rgba(196, 74, 74, 0.5);
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-family: '楷体', 'KaiTi', serif;
  font-size: 1.1em;
  font-weight: normal;
  color: #333;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

/* 水墨分割线 - 丹青雅韵 */
.widget-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: 
    /* 丹红韵味 */
    linear-gradient(90deg, 
      transparent 0%, 
      rgba(196, 74, 74, 0.4) 15%, 
      rgba(196, 74, 74, 0.9) 50%, 
      rgba(196, 74, 74, 0.4) 85%, 
      transparent 100%),
    /* 石青点缀 */
    linear-gradient(90deg, 
      transparent 0%, 
      rgba(70, 130, 140, 0.2) 25%, 
      rgba(70, 130, 140, 0.5) 50%, 
      rgba(70, 130, 140, 0.2) 75%, 
      transparent 100%);
  margin: 15px auto 0;
  border-radius: 1px;
  filter: blur(0.2px);
}

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

.widget-list li {
  padding: 8px 0;
  border-bottom: 1px dotted #f0f0f0;
  font-size: 0.9em;
}

.widget-list li:last-child {
  border-bottom: none;
}

.widget-list a {
  color: #555;
  border: none;
  transition: all 0.3s ease;
}

.widget-list a:hover {
  color: #c44a4a;
  transform: translateX(3px);
}

.post-date,
.post-count {
  float: right;
  color: rgba(70, 130, 140, 0.7);
  font-size: 0.8em;
}

.comment-author {
  color: rgba(70, 130, 140, 0.6);
  font-size: 0.8em;
  margin-top: 3px;
}

/* 标签云 - 丹青点缀 */
.tag-cloud {
  text-align: center;
  line-height: 2;
}

.tag-item {
  color: #666;
  font-size: 0.85em;
  margin: 0 8px 5px 0;
  border: none;
  padding: 2px 6px;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-block;
}

.tag-item:hover {
  color: #c44a4a;
  background: rgba(196, 74, 74, 0.06);
  transform: translateY(-1px);
}

/* 站点统计 */
.site-stats {
  text-align: center;
  line-height: 2;
}

.stat-item {
  display: block;
  margin: 10px 0;
  font-size: 0.9em;
}

.stat-label {
  color: #555;
  margin-right: 10px;
}

.stat-value {
  color: #c44a4a;
  font-weight: 500;
}

/* ================
 * 分页导航 - 丹青雅韵
 * ============= */
.pagination {
  text-align: center;
  margin: 50px 0;
  font-size: 0.9em;
}

.pagination a,
.pagination span {
  color: #4a4a4a;
  margin: 0 6px;
  padding: 8px 12px;
  border: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.pagination a:hover {
  color: #c44a4a;
  background: rgba(196, 74, 74, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(196, 74, 74, 0.15);
}

.pagination .current {
  color: #c44a4a;
  font-weight: 500;
  background: 
    linear-gradient(135deg, rgba(196, 74, 74, 0.08) 0%, rgba(196, 74, 74, 0.12) 100%);
  position: relative;
}

/* 当前页石青点缀 */
.pagination .current::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 1px;
  background: rgba(70, 130, 140, 0.8);
  border-radius: 1px;
}

/* ================
 * 页脚 - 水墨丹青，完全居中
 * ============= */
.site-footer {
  background: 
    linear-gradient(135deg, #fafafa 0%, #f7f7f7 50%, #f4f4f4 100%);
  text-align: center;
  padding: 50px 20px;
  margin-top: 80px;
  border-top: none;
  position: relative;
  font-size: 0.85em;
  color: #4a4a4a;
}

/* 页脚水墨装饰 - 收卷之笔 */
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: 
    /* 收笔效果 */
    linear-gradient(90deg, 
      transparent 0%, 
      rgba(110, 110, 110, 0.15) 18%, 
      rgba(90, 90, 90, 0.3) 35%,
      rgba(70, 70, 70, 0.5) 50%, 
      rgba(90, 90, 90, 0.3) 65%,
      rgba(110, 110, 110, 0.15) 82%,
      transparent 100%);
  border-radius: 1px;
  filter: blur(0.5px);
}

/* 页脚印章落款 */
.site-footer::after {
  content: '';
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: 
    radial-gradient(circle, 
      #c44a4a 0%, 
      #b33e3e 30%, 
      #a23636 60%, 
      rgba(162, 54, 54, 0.7) 100%);
  border-radius: 50%;
  box-shadow: 
    /* 主印 */
    0 0 4px rgba(196, 74, 74, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    /* 印泥扩散 */
    -15px 8px 0 -4px rgba(196, 74, 74, 0.25),
    12px -6px 0 -4px rgba(196, 74, 74, 0.2),
    -18px -10px 0 -5px rgba(196, 74, 74, 0.15),
    20px 12px 0 -5px rgba(196, 74, 74, 0.18),
    /* 落款韵味 */
    0 0 20px rgba(196, 74, 74, 0.1);
  filter: blur(0.2px);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.copyright {
  text-align: center;
}

.copyright p {
  margin: 8px 0;
  line-height: 1.6;
  text-align: center;
  text-indent: 0;
}

.copyright a {
  color: #666;
  border: none;
}

.copyright a:hover {
  color: #333;
}

/* ================
 * 返回顶部
 * ============= */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #ddd;
  color: #666;
  text-align: center;
  line-height: 38px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
}

.back-to-top:hover {
  color: #333;
  border-color: #999;
}

/* ================
 * 无内容提示
 * ============= */
.no-posts {
  text-align: center;
  padding: 60px 0;
  color: #666;
}

.no-posts-content {
  text-align: center;
}

.no-posts-title {
  font-family: '楷体', 'KaiTi', serif;
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #555;
}

.no-posts-desc {
  font-size: 0.9em;
  color: #888;
}

/* ================
 * 响应式设计
 * ============= */
@media (max-width: 1280px) {
  .main-content {
    max-width: 1000px;
    padding: 0 25px;
    gap: 60px;
  }
  
  .nav-container {
    max-width: 1000px;
    padding: 0 25px;
  }
  
  .breadcrumb-list {
    max-width: 1000px;
    padding: 0 25px;
  }
}

@media (max-width: 1024px) {
  .main-content {
    max-width: 800px;
    grid-template-columns: 1fr 280px;
    gap: 50px;
    padding: 0 20px;
  }
  
  .nav-container {
    max-width: 800px;
    padding: 0 20px;
  }
  
  .breadcrumb-list {
    max-width: 800px;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
    max-width: 100%;
  }
  
  /* 移动端隐藏原侧边栏 */
  .sidebar {
    display: none;
  }
  
  /* 显示侧边栏控制按钮 */
  .sidebar-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  /* 显示移动端侧边栏元素 */
  .sidebar-overlay {
    display: none !important;
  }
  
  .sidebar-overlay.active {
    display: block !important;
  }
  
  .sidebar-mobile {
    display: block !important;
  }
  
  .hero-section {
    padding: 40px 15px;
  }
  
  .hero-title {
    font-size: 1.8em;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100%;
  }
  
  .breadcrumb-list {
    padding: 0 15px;
    max-width: 100%;
  }
  
  .nav-menu {
    gap: 20px;
  }
  
  .search-form {
    width: 100%;
    max-width: 250px;
  }
  
  .post-card.has-image .post-image {
    margin-bottom: 15px;
  }
  
  .post-meta {
    line-height: 1.6;
  }
  
  .post-meta-item {
    display: block;
    margin: 5px 0;
  }
  
  .back-to-top {
    right: 20px;
    bottom: 20px;
    width: 35px;
    height: 35px;
    line-height: 33px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5em;
    letter-spacing: 0.2em;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .posts-grid {
    padding: 20px 0;
  }
  
  .post-card {
    margin-bottom: 30px;
  }
  
  .site-footer {
    padding: 30px 15px;
  }
  
  .sidebar-toggle {
    right: 15px;
    bottom: 70px;
    width: 45px;
    height: 45px;
    font-size: 0.8em;
  }
  
  .sidebar-mobile {
    width: 280px;
    right: -300px;
  }
}

/* ================
 * 细节优化
 * ============= */

/* 文字选择 - 古雅色调 */
::selection {
  background: rgba(61, 90, 115, 0.15);
  color: #1a2332;
}

/* 页面加载时的优雅过渡 */
html {
  scroll-behavior: smooth;
}

/* 为内容添加优雅的过渡效果 */
.site-footer {
  animation: footerSlideUp 0.8s ease-out 0.6s both;
}

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

/* 滚动条 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #ddd;
}

::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

/* 代码 */
code {
  background: #f8f8f8;
  padding: 2px 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #666;
}

pre {
  background: #f8f8f8;
  padding: 15px;
  overflow-x: auto;
  margin: 20px 0;
  border-left: 3px solid #ddd;
}

pre code {
  background: none;
  padding: 0;
}

/* 引用 */
blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  border-left: 3px solid #ddd;
  background: #f9f9f9;
  font-style: italic;
  color: #666;
}

/* 表格 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9em;
}

table th,
table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

table th {
  background: #f8f8f8;
  font-weight: 500;
  color: #555;
}

/* 表单 */
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  border: 1px solid #ddd;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.9em;
  width: 100%;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #999;
}

button,
.btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 8px 16px;
  color: #666;
  cursor: pointer;
  font-family: inherit;
}

button:hover,
.btn:hover {
  background: #eee;
  color: #333;
}
