/* ============================================
   蓝老师个人网站 — 定制视觉系统
   基调：暖灰 · 沉静 · 学院风
   ============================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #F7F5F1;
  --bg-card: #FFFFFF;
  --primary: #3D5A6D;
  --primary-light: #5A7A8D;
  --gold: #C4945A;
  --gold-light: #E8D5B8;
  --title-color: #2C3E4F;
  --text-color: #4A4A4A;
  --text-soft: #8A8A8A;
  --border-light: rgba(61, 90, 109, 0.1);
  --border-medium: rgba(61, 90, 109, 0.18);
  --shadow-card: 0 2px 12px rgba(44, 62, 79, 0.06);
  --shadow-card-hover: 0 6px 24px rgba(44, 62, 79, 0.10);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   1. 全局背景
   ============================================ */
body {
  background: var(--bg);
  color: var(--text-color);
}

/* ============================================
   2. 顶部 Hero 区域
   ============================================ */
.site-meta {
  padding: 60px 20px 40px;
  text-align: center;
  position: relative;
}

.site-meta::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto 0;
  border-radius: 1px;
}

.site-title {
  font-size: 28px;
  font-weight: 500;
  color: var(--title-color);
  letter-spacing: 4px;
  margin-bottom: 8px;
  font-family: "Noto Serif SC", serif;
}

.site-subtitle {
  font-size: 15px;
  color: var(--text-soft);
  font-style: italic;
  letter-spacing: 2px;
  font-weight: 400;
}

/* ============================================
   3. 导航栏
   ============================================ */
.header-inner {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--border-light) !important;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  color: var(--text-soft) !important;
  font-size: 14px;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition);
  transform: translateX(-50%);
  border-radius: 1px;
}

.site-nav a:hover {
  color: var(--primary) !important;
  background: rgba(61, 90, 109, 0.04);
}

.site-nav a:hover::after {
  width: 60%;
}

.site-nav a.current {
  color: var(--primary) !important;
}

.site-nav a.current::after {
  width: 60%;
}

/* ============================================
   4. 文章卡片（首页）
   ============================================ */
.post-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 36px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* 顶部装饰条 */
.post-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.post-block:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.post-block:hover::before {
  opacity: 1;
}

/* 分类标签 */
.post-meta .category-link {
  display: inline-block;
  font-size: 12px;
  color: var(--primary-light) !important;
  background: rgba(61, 90, 109, 0.06);
  padding: 2px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.post-meta .category-link:hover {
  background: rgba(61, 90, 109, 0.12);
  color: var(--primary) !important;
}

/* 文章标题 */
.posts-expand .post-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--title-color);
  margin-top: 12px;
  line-height: 1.4;
}

.posts-expand .post-title-link {
  border-bottom: none !important;
  display: inline-block;
}

.posts-expand .post-title-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 4px;
}

.posts-expand .post-title-link:hover::after {
  width: 100%;
}

/* 发表日期 */
.post-meta time {
  font-size: 13px;
  color: var(--text-soft);
}

/* 文章摘要 */
.post-body p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-color);
  margin: 16px 0;
}

/* "继续阅读" */


/* ============================================
   5. 文章详细页排版
   ============================================ */
.posts-expand .post-body {
  font-size: 16px;
  line-height: 2;
  color: var(--text-color);
}

.posts-expand .post-body h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--title-color);
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.posts-expand .post-body h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 1px;
}

.posts-expand .post-body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}

.posts-expand .post-body h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--title-color);
}

/* 引用块 */
.post-body blockquote {
  border-left: 4px solid var(--gold);
  background: rgba(196, 148, 90, 0.06);
  padding: 16px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-color);
}

.post-body blockquote p {
  margin: 8px 0;
}

/* 代码块 */
.post-body code {
  background: rgba(61, 90, 109, 0.06);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* 列表 */
.post-body ul,
.post-body ol {
  padding-left: 24px;
  margin: 16px 0;
}

.post-body li {
  margin: 6px 0;
}

.post-body ul li::marker {
  color: var(--gold);
}

/* 图片 */
.post-body img {
  border-radius: var(--radius-sm);
  margin: 24px auto;
  display: block;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* 分割线 */
.post-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  margin: 40px auto;
  width: 60%;
}

/* 表格 */
.post-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font-size: 14px;
}

.post-body th,
.post-body td {
  padding: 10px 16px;
  border: 1px solid var(--border-light);
}

.post-body th {
  background: rgba(61, 90, 109, 0.04);
  font-weight: 500;
  color: var(--title-color);
}

/* 强调 */
.post-body strong {
  color: var(--title-color);
  font-weight: 500;
}

/* ============================================
   6. 侧边栏
   ============================================ */
.sidebar {
  background: transparent !important;
  box-shadow: none !important;
}

.sidebar-inner {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px !important;
  border: 1px solid var(--border-light);
}

/* 侧边栏小标题 */
.sidebar .widget-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--title-color);
  letter-spacing: 1px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.sidebar .widget-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--gold);
  margin-top: 6px;
  border-radius: 1px;
}

/* 分类列表 */
.category-list-item {
  padding: 6px 0 !important;
  border-bottom: 1px solid var(--border-light) !important;
  transition: all var(--transition);
}

.category-list-item:hover {
  padding-left: 6px !important;
}

.category-list-link {
  color: var(--text-color) !important;
}

.category-list-count {
  color: var(--text-soft) !important;
}

/* ============================================
   7. 归档 / 分类 / 标签页面
   ============================================ */
.category-all-page .category-list-item {
  margin: 8px 0;
  padding: 12px 20px !important;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--gold);
  transition: all var(--transition);
}

.category-all-page .category-list-item:hover {
  transform: translateX(4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-card);
}

/* 标签云 */
.tag-cloud a {
  display: inline-block;
  padding: 4px 14px;
  margin: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  color: var(--text-color) !important;
  font-size: 13px !important;
  transition: all var(--transition);
}

.tag-cloud a:hover {
  color: var(--primary) !important;
  border-color: var(--primary-light);
  background: rgba(61, 90, 109, 0.04);
}

/* ============================================
   8. 关于页面
   ============================================ */
.page-about .post-body {
  max-width: 680px;
  margin: 0 auto;
}

/* ============================================
   9. 底部
   ============================================ */
.footer {
  border-top: 1px solid var(--border-light) !important;
  padding: 24px 0 !important;
  margin-top: 40px !important;
  color: var(--text-soft) !important;
  font-size: 13px;
}

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

.footer-complaint {
  margin-top: 8px;
  font-size: 12px;
}
.footer-complaint a {
  color: var(--text-soft) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-complaint a:hover {
  color: var(--gold) !important;
}

/* ============================================
   10. 微交互
   ============================================ */
/* 阅读进度条 */
.reading-progress-bar {
  background: var(--gold) !important;
}

/* 返回顶部 */
.back-to-top {
  color: var(--primary-light) !important;
}

/* 选中文字 */
::selection {
  background: rgba(196, 148, 90, 0.2);
  color: var(--title-color);
}

/* ============================================
   11. 响应式微调
   ============================================ */
@media (max-width: 768px) {
  .site-meta {
    padding: 40px 20px 30px;
  }

  .site-title {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .post-block {
    padding: 24px 20px;
  }

  .posts-expand .post-title {
    font-size: 18px;
  }
}
