/*
 * WP Digital Garden Core Stylesheet v1.5.0
 * 紧凑三栏间距、首屏顶格、美化卡片微光系统
 */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.2s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header { view-transition-name: main-header; }
.sidebar-left { view-transition-name: sidebar-left; }
.sidebar-right { view-transition-name: sidebar-right; }
.content-wrapper { view-transition-name: article-content; }

:root {
  --bg-primary: #f8fafc;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-solid: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #e2e8f0;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-hairline: rgba(226, 232, 240, 0.8);
  
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-light: rgba(2, 132, 199, 0.08);
  --accent-border: rgba(2, 132, 199, 0.22);
  --accent-glow: rgba(2, 132, 199, 0.09);
  
  --code-bg: #0f172a;
  --code-header-bg: #1e293b;
  --code-text: #f8fafc;
  
  /* 系统级高质量字体栈 (0KB 网络延迟，瞬间渲染) */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-wenkai: "LXGW WenKai Screen", "LXGW WenKai", "霞鹜文楷", "Kaiti SC", "STKaiti", "KaiTi", "SimKai", "Newsreader", "Charter", serif;
  --font-serif: Georgia, Cambria, "Songti SC", "SimSun", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --font-kai: "Kaiti SC", "STKaiti", "KaiTi", "SimKai", "Baskerville", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  /* 默认字族: 现代黑体 */
  --font-body: var(--font-sans);
  
  /* 黄金三栏尺寸比例 */
  --sidebar-w: 240px;
  --toc-w: 240px;
  --content-w: 800px;
  --header-h: 58px;
}

[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-surface: rgba(13, 20, 36, 0.88);
  --bg-surface-solid: #0d1424;
  --bg-card: #131c31;
  --bg-subtle: #1a253c;
  --bg-hover: #22304d;
  
  --text-primary: #f3f4f6;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hairline: rgba(255, 255, 255, 0.05);
  
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-light: rgba(56, 189, 248, 0.12);
  --accent-border: rgba(56, 189, 248, 0.3);
  --accent-glow: rgba(56, 189, 248, 0.14);
  
  --code-bg: #0b0f19;
  --code-header-bg: #111827;
  --code-text: #e2e8f0;
}

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

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.22); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.5); }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.85;
  font-size: 15px;
  text-wrap: pretty;
  word-break: break-word;
  font-feature-settings: "chws" 1, "palt" 1;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s, color 0.2s;
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-container {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.reading-progress-bar {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2.5px;
  background: var(--accent);
  width: 0%;
  transition: width 0.08s linear;
  z-index: 60;
  box-shadow: 0 0 10px var(--accent);
}

.header-left { display: flex; align-items: center; gap: 1rem; }
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.site-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 1.05rem;
}
.header-search { position: relative; max-width: 280px; width: 100%; }
.search-input {
  width: 100%;
  padding: 0.4rem 0.75rem 0.4rem 2rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  color: var(--text-primary);
  font-size: 0.825rem;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-input:focus {
  border-color: var(--accent);
  background: var(--bg-surface-solid);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
  pointer-events: none;
}
.header-actions { display: flex; align-items: center; gap: 0.65rem; }
.theme-toggle, .mobile-toggle {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}
.theme-toggle:hover, .mobile-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-hover);
}
.mobile-toggle { display: none; }

/* ==========================================
   三栏骨架：收紧过大间距 (1282px 紧凑黄金比例)
========================================== */
.layout-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  position: relative;
}

/* 左侧栏 (240px) */
.sidebar-left {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-surface-solid);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  height: calc(100vh - var(--header-h));
  position: sticky;
  top: var(--header-h);
  overflow-y: auto;
  font-size: 13.5px;
}
.sidebar-search-box { margin-bottom: 0.85rem; }
.sidebar-search-input {
  width: 100%;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
}
.sidebar-search-input:focus { border-color: var(--accent); }

/* 分段切换标签 (大纲 vs 最新) */
.sidebar-tabs {
  display: flex;
  background: var(--bg-subtle);
  border-radius: 6px;
  padding: 2px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}
.sidebar-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.3rem 0;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.sidebar-tab-btn.active {
  background: var(--bg-card);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tree-menu { list-style: none; }
.tree-item { margin-bottom: 0.3rem; }
.tree-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.38rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.tree-group-header:hover { background: var(--bg-subtle); color: var(--text-primary); }
.tree-group-header .arrow { font-size: 0.65rem; color: var(--text-muted); transition: transform 0.18s; }
.tree-item.open > .tree-group-header .arrow { transform: rotate(90deg); }

.tree-sub-menu {
  list-style: none;
  padding-left: 0.75rem;
  margin-top: 0.2rem;
  margin-left: 0.85rem;
  border-left: 1px dashed var(--border-color);
  display: none;
}
.tree-item.open > .tree-sub-menu { display: block; }
.tree-sub-menu li { margin-bottom: 0.15rem; }
.tree-sub-menu li a {
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  font-size: 0.825rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  transition: all 0.12s;
}
.tree-sub-menu li a:hover { background: var(--bg-subtle); color: var(--text-primary); }
.tree-sub-menu li.active a {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 500;
  padding-left: 0.8rem;
}
.tree-sub-menu li.active a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  background: var(--accent);
  border-radius: 9999px;
}

.recent-update-list { list-style: none; }
.recent-update-list li { margin-bottom: 0.2rem; }
.recent-update-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  border-radius: 5px;
  font-size: 0.825rem;
  color: var(--text-secondary);
}
.recent-update-link:hover { background: var(--bg-subtle); color: var(--accent); }
.recent-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; margin-right: 0.5rem; }
.recent-date { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); flex-shrink: 0; }

.sidebar-footer-hint {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================
   中间栏：紧贴侧栏 (padding 收紧至 24px，消除 100px 空白)
========================================== */
.main-content {
  width: var(--content-w);
  max-width: var(--content-w);
  flex-shrink: 0;
  padding: 1.75rem 1.75rem 4rem; /* 左右边距仅 28px，饱满贴合 */
}
.content-wrapper {
  width: 100%;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.breadcrumbs a:hover { color: var(--accent); }

/* 文章详情页头部 */
.post-header {
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}
.post-title {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.post-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.post-category-badge {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  border-radius: 9999px;
}
.growth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
}
.growth-seedling { background: #fef3c7; color: #92400e; }
.growth-budding { background: #e0f2fe; color: #075985; }
.growth-evergreen { background: #dcfce7; color: #166534; }
[data-theme="dark"] .growth-seedling { background: rgba(120, 53, 15, 0.3); color: #fde68a; }
[data-theme="dark"] .growth-budding { background: rgba(8, 47, 73, 0.3); color: #7dd3fc; }
[data-theme="dark"] .growth-evergreen { background: rgba(6, 78, 59, 0.3); color: #86efac; }
.meta-dot { color: var(--text-muted); opacity: 0.5; }

.lead-summary-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-left: 3.5px solid var(--accent);
  border-radius: 8px;
  padding: 0.9rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text-secondary);
}
.lead-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.lead-summary-header .label { display: flex; align-items: center; gap: 0.35rem; color: var(--accent); }
.lead-summary-header .time { color: var(--text-muted); font-weight: 400; font-family: var(--font-mono); }

/* ==========================================
   美化版：中栏高定微光悬停卡片流 (Refined Cards)
========================================== */
.article-cards-feed {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.refined-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.refined-post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow);
  transform: translateY(-2px);
}
.card-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}
.card-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.card-meta-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.card-dot { opacity: 0.5; }
.card-arrow {
  color: var(--text-muted);
  font-size: 0.825rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
  display: inline-block;
}
.refined-post-card:hover .card-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.refined-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.42;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
  transition: color 0.15s ease;
}
.refined-post-card:hover .refined-card-title {
  color: var(--accent);
}

.refined-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}
.card-tag {
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  transition: all 0.15s;
}
.refined-post-card:hover .card-tag {
  background: var(--accent-light);
  color: var(--accent);
}
.card-author-hint {
  margin-left: auto;
  color: var(--text-muted);
}

.empty-hint-card {
  padding: 2.5rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 10px;
}

/* 正文排版 */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
  letter-spacing: 0.012em;
}
.entry-content h2, .entry-content h3 { position: relative; scroll-margin-top: 80px; }
.entry-content h2 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}
.entry-content h3 {
  font-size: 1.22rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.heading-anchor {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  color: var(--text-muted);
  opacity: 0;
  font-size: 0.8em;
  cursor: pointer;
  transition: opacity 0.2s;
}
h2:hover .heading-anchor, h3:hover .heading-anchor { opacity: 0.7; }
.heading-anchor:hover { opacity: 1; color: var(--accent); }

.entry-content p { margin-bottom: 1.4rem; text-align: justify; }
.entry-content ul, .entry-content ol { margin-left: 1.5rem; margin-bottom: 1.4rem; }
.entry-content li { margin-bottom: 0.4rem; }

.entry-content blockquote {
  position: relative;
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.25rem 0.9rem 2.6rem;
  background: var(--bg-subtle);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  color: var(--text-secondary);
}
.entry-content blockquote::before {
  content: "“";
  position: absolute;
  top: 0.1rem;
  left: 0.75rem;
  font-size: 2.2rem;
  color: var(--accent);
  opacity: 0.45;
  font-family: Georgia, serif;
  line-height: 1;
}

.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  font-size: 0.9rem;
}
.entry-content th {
  background: var(--bg-subtle);
  padding: 0.65rem 0.95rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.entry-content td {
  padding: 0.65rem 0.95rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.entry-content tr:last-child td { border-bottom: none; }
.entry-content tr:nth-child(even) td { background: rgba(148, 163, 184, 0.03); }
.entry-content tr:hover td { background: var(--bg-subtle); }

.code-window {
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin: 1.5rem 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.code-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.95rem;
  background: var(--code-header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.code-window-dots { display: flex; gap: 5px; }
.code-dot { width: 9px; height: 9px; border-radius: 50%; }
.code-dot-red { background: #ff5f56; }
.code-dot-yellow { background: #ffbd2e; }
.code-dot-green { background: #27c93f; }
.code-window-lang { font-size: 0.7rem; font-family: var(--font-mono); color: #94a3b8; text-transform: uppercase; }

.entry-content pre {
  background: transparent;
  color: var(--code-text);
  padding: 1.15rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  position: relative;
}
.entry-content code {
  font-family: var(--font-mono);
  background: var(--bg-subtle);
  color: var(--accent);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.875em;
}
.entry-content pre code { background: transparent; color: inherit; padding: 0; }
.copy-code-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
}
.code-window:hover .copy-code-btn { opacity: 1; }

.entry-content img {
  cursor: zoom-in;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  transition: opacity 0.2s;
}
.entry-content img:hover { opacity: 0.96; }

.lightbox-dialog {
  border: none;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  backdrop-filter: blur(12px);
  outline: none;
  overflow: hidden;
}
.lightbox-dialog::backdrop { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(6px); }
.lightbox-img-wrapper { position: relative; display: flex; align-items: center; justify-content: center; }
.lightbox-img { max-width: 85vw; max-height: 85vh; object-fit: contain; }
.lightbox-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
}
.post-nav-card {
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: transform 0.15s, border-color 0.15s;
}
.post-nav-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.post-nav-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.25rem; }
.post-nav-title { font-weight: 600; font-size: 0.92rem; color: var(--text-primary); }

/* ==========================================
   右侧栏 (240px，紧密贴合中栏)
========================================== */
.sidebar-right {
  width: var(--toc-w);
  flex-shrink: 0;
  padding: 1.75rem 1rem;
  height: calc(100vh - var(--header-h));
  position: sticky;
  top: var(--header-h);
  overflow-y: auto;
  font-size: 13.5px;
}

.widget-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}
.widget-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  text-align: center;
}
.stat-item {
  background: var(--bg-subtle);
  padding: 0.65rem 0.4rem;
  border-radius: 6px;
}
.stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.featured-list { list-style: none; }
.featured-item {
  padding: 0.4rem 0;
  font-size: 0.84rem;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.featured-item:last-child { border-bottom: none; }
.featured-dot { color: var(--accent); font-size: 0.75rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
}
.tag-badge:hover { background: var(--accent-light); color: var(--accent); }

/* 详情页 TOC */
.toc-container { font-size: 0.85rem; }
.toc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.toc-title {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.toc-progress-badge {
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 0.08rem 0.38rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 9999px;
}
.toc-list {
  list-style: none;
  border-left: 2px solid var(--border-color);
  padding-left: 0.75rem;
}
.toc-item { margin-bottom: 0.45rem; line-height: 1.4; }
.toc-link { color: var(--text-secondary); display: block; font-size: 0.825rem; transition: all 0.12s; }
.toc-link:hover { color: var(--accent); }
.toc-link.active { color: var(--accent); font-weight: 600; }
.toc-sub { padding-left: 0.75rem; margin-top: 0.25rem; }

.toc-toolbox {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.toolbox-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s;
}
.toolbox-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--bg-hover); }
.last-updated-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.site-footer {
  background: var(--bg-surface-solid);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.drawer-overlay.active { opacity: 1; pointer-events: auto; }

@media (max-width: 1100px) { .sidebar-right { display: none; } }
@media (max-width: 768px) {
  .layout-container { display: block; }
  .sidebar-left {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 280px;
    height: calc(100vh - var(--header-h));
    z-index: 99;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
  }
  .sidebar-left.mobile-open { transform: translateX(0); }
  .mobile-toggle { display: flex; }
  .main-content { width: 100%; max-width: 100%; padding: 1.25rem 1rem 3rem; }
  .post-title { font-size: 1.6rem; }
  .post-nav { grid-template-columns: 1fr; }
}


/* ==========================================
   全站字体切换规则 (基于 data-font 属性)
========================================== */
html[data-font="serif"], body[data-font="serif"] {
  --font-body: var(--font-serif);
}
html[data-font="kai"], body[data-font="kai"] {
  --font-body: var(--font-kai);
}
html[data-font="sans"], body[data-font="sans"] {
  --font-body: var(--font-sans);
}


/* ==========================================
   v2.0.0 新增高级 UI 与排版微质感
========================================== */

/* 1. 顶部环境冷调微光晕 (Ambient Glow Mesh) */
.ambient-glow-mesh {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 380px;
  background: radial-gradient(ellipse at top, rgba(2, 132, 199, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .ambient-glow-mesh {
  background: radial-gradient(ellipse at top, rgba(56, 189, 248, 0.08), transparent 70%);
}

/* 2. 顶栏搜索框 ⌘K 键盘小徽标 */
.search-kbd-badge {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.search-kbd-badge kbd {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* 3. 长文首字下沉 (Drop Cap) 艺术排印 */
.entry-content.has-drop-cap > p:first-of-type::first-letter {
  float: left;
  font-size: 3.2em;
  line-height: 0.85;
  margin: 0.08em 0.15em 0 0;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-serif);
}

/* 4. 左侧分类彩色微指示灯 */
.tree-group-header .cat-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.45rem;
  flex-shrink: 0;
}
.tree-item:nth-child(1) .cat-dot { background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.4); }
.tree-item:nth-child(2) .cat-dot { background: #a855f7; box-shadow: 0 0 6px rgba(168, 85, 247, 0.4); }
.tree-item:nth-child(3) .cat-dot { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }
.tree-item:nth-child(4) .cat-dot { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }

/* 5. TOC 流动胶囊指示条 */
.toc-track-wrap {
  position: relative;
}
.toc-active-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5px;
  height: 20px;
  background: var(--accent);
  border-radius: 9999px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), height 0.2s ease;
  box-shadow: 0 0 8px var(--accent);
  opacity: 0;
}
.toc-active-marker.visible {
  opacity: 1;
}


/* ==========================================
   v2.1.0 五大高定排印字族与金石印章体系
========================================== */

/* 1. 字体栈扩展定义 */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-wenkai: "LXGW WenKai Screen", "LXGW WenKai", "霞鹜文楷", "Kaiti SC", "STKaiti", "KaiTi", "SimKai", "Newsreader", "Charter", serif;
  --font-serif: Georgia, Cambria, "Songti SC", "SimSun", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --font-fangsong: "STFangsong", "FangSong", "SimFang", "Source Han Serif SC", "Songti SC", serif;
  --font-kai: "Kaiti SC", "STKaiti", "KaiTi", "SimKai", "LXGW WenKai", "Baskerville", serif;
  
  --font-body: var(--font-sans);
  --font-heading: var(--font-sans);
}

/* 2. 字族切换规则 (基于 data-font 属性) */
html[data-font="sans"], body[data-font="sans"] {
  --font-body: var(--font-sans);
  --font-heading: var(--font-sans);
  letter-spacing: 0.01em;
}

html[data-font="serif"], body[data-font="serif"] {
  --font-body: var(--font-serif);
  --font-heading: var(--font-serif);
  letter-spacing: 0.02em;
}

html[data-font="fangsong"], body[data-font="fangsong"] {
  --font-body: var(--font-fangsong);
  --font-heading: var(--font-fangsong);
  letter-spacing: 0.025em;
}

html[data-font="kai"], body[data-font="kai"] {
  --font-body: var(--font-kai);
  --font-heading: var(--font-kai);
  letter-spacing: 0.025em;
}

/* 报刊社论：标题粗衬线宋体 + 正文现代无衬线黑体 */
html[data-font="editorial"], body[data-font="editorial"] {
  --font-body: var(--font-sans);
  --font-heading: var(--font-serif);
  letter-spacing: 0.012em;
}

/* 标题统一绑定 --font-heading */
h1, h2, h3, h4, h5, h6, .post-title, .refined-card-title {
  font-family: var(--font-heading);
}

/* 3. 站点徽标高定材质样式 (金石几何 / 朱砂方印 / 玄墨印) */
.site-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.site-logo-icon:hover {
  transform: scale(1.05);
}

/* 风格 A: 金石几何微标 */
.site-logo-icon.style-glyph {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 1.05rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* 风格 B: 朱砂方印 (白字红底，典雅金石感) */
.site-logo-icon.style-seal_red {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: #991b1b;
  border: 1.5px solid #7f1d1d;
  color: #ffffff !important;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(153, 27, 27, 0.35);
  letter-spacing: 0;
}
[data-theme="dark"] .site-logo-icon.style-seal_red {
  background: #b91c1c;
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* 风格 C: 玄墨方印 (水墨黑底，金石银边) */
.site-logo-icon.style-seal_dark {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #f8fafc !important;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}


html[data-font="wenkai"], body[data-font="wenkai"] {
  --font-body: var(--font-wenkai);
  --font-heading: var(--font-wenkai);
  letter-spacing: 0.025em;
  line-height: 1.88;
}


/* ==========================================
   v2.3.0 左侧大纲 4 种高定样式系统
========================================== */

/* ------------------------------------------
   样式 1: 极简导轨风 (.style-track，默认)
   经典细腻虚线导轨 + 左侧 3px 圆角胶囊条
------------------------------------------ */
.sidebar-left.style-track .tree-sub-menu {
  border-left: 1px dashed var(--border-color);
  margin-left: 0.75rem;
  padding-left: 0.5rem;
}
.sidebar-left.style-track .tree-sub-menu li.active {
  background: var(--accent-light);
  color: var(--accent);
}
.sidebar-left.style-track .tree-sub-menu li.active::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 9999px;
}

/* ------------------------------------------
   样式 2: 金石书卷风 (.style-scholar)
   去除虚线导轨，宣纸微水墨底色 + 右侧朱砂【• 阅】印记
------------------------------------------ */
.sidebar-left.style-scholar .tree-sub-menu {
  border-left: none;
  margin-left: 0.4rem;
  padding-left: 0.25rem;
}
.sidebar-left.style-scholar .tree-sub-menu li {
  padding: 0.42rem 0.65rem;
  letter-spacing: 0.02em;
}
.sidebar-left.style-scholar .tree-sub-menu li.active {
  background: rgba(153, 27, 27, 0.06);
  color: var(--text-primary);
  font-weight: 700;
  border-radius: 4px;
}
[data-theme="dark"] .sidebar-left.style-scholar .tree-sub-menu li.active {
  background: rgba(248, 113, 113, 0.1);
}
.sidebar-left.style-scholar .tree-sub-menu li.active::after {
  content: "• 阅";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  color: #991b1b;
  background: rgba(153, 27, 27, 0.12);
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  font-family: var(--font-serif);
}
[data-theme="dark"] .sidebar-left.style-scholar .tree-sub-menu li.active::after {
  color: #f87171;
  background: rgba(248, 113, 113, 0.2);
}

/* ------------------------------------------
   样式 3: 便当微卡片风 (.style-bento)
   独立微卡片模块 + 悬浮高亮内凸小胶囊
------------------------------------------ */
.sidebar-left.style-bento .tree-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 0.65rem;
  padding: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.sidebar-left.style-bento .tree-group-header {
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  font-weight: 600;
}
.sidebar-left.style-bento .tree-sub-menu {
  border-left: none;
  margin: 0.25rem 0;
  padding: 0 0.2rem;
}
.sidebar-left.style-bento .tree-sub-menu li {
  border-radius: 6px;
  margin-bottom: 0.15rem;
  padding: 0.38rem 0.6rem;
}
.sidebar-left.style-bento .tree-sub-menu li.active {
  background: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}
.sidebar-left.style-bento .tree-sub-menu li.active a {
  color: #ffffff !important;
  font-weight: 600;
}

/* ------------------------------------------
   样式 4: 纯净文本流 (.style-pure)
   瑞士极简无框，纯字符阶梯缩进，无背景色块干扰
------------------------------------------ */
.sidebar-left.style-pure .tree-item {
  margin-bottom: 0.5rem;
}
.sidebar-left.style-pure .tree-group-header {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.25rem 0;
}
.sidebar-left.style-pure .tree-group-header:hover {
  background: transparent;
  color: var(--text-primary);
}
.sidebar-left.style-pure .tree-sub-menu {
  border-left: none;
  margin-left: 0.75rem;
  padding-left: 0;
}
.sidebar-left.style-pure .tree-sub-menu li {
  padding: 0.28rem 0;
  border-radius: 0;
}
.sidebar-left.style-pure .tree-sub-menu li:hover {
  background: transparent;
}
.sidebar-left.style-pure .tree-sub-menu li:hover a {
  color: var(--accent);
}
.sidebar-left.style-pure .tree-sub-menu li.active {
  background: transparent !important;
  box-shadow: none !important;
}
.sidebar-left.style-pure .tree-sub-menu li.active a {
  color: var(--accent) !important;
  font-weight: 700;
}




/* ==========================================================================
   v2.5.0 四大静奢克制设计风格系统 (Refined Quiet-Luxury Styles)
   ========================================================================== */

/* --------------------------------------------------------------------------
   风格一：【新现代精研】 (Linear / Raycast 级极简冷调工匠风) - 默认
   深冷石墨灰阶、1px 发丝边框、纯阶梯排布大纲、8px 工业微圆角卡片、漫反射软阴影
   -------------------------------------------------------------------------- */
html[data-style="linear"] {
  --bg-main: #fafafa;
  --bg-card: #ffffff;
  --bg-subtle: #f4f4f5;
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --border-color: rgba(0, 0, 0, 0.07);
  --accent: #0284c7;
  --accent-light: rgba(2, 132, 199, 0.08);
  --accent-border: rgba(2, 132, 199, 0.2);
}
html[data-style="linear"][data-theme="dark"] {
  --bg-main: #090d14;
  --bg-card: #0e1420;
  --bg-subtle: #141c2c;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --border-color: rgba(255, 255, 255, 0.08);
  --accent: #38bdf8;
  --accent-light: rgba(56, 189, 248, 0.12);
  --accent-border: rgba(56, 189, 248, 0.3);
}
/* Linear 大纲精雕：发丝线与柔和雾化 */
html[data-style="linear"] .sidebar-left .tree-sub-menu {
  border-left: 1px solid var(--border-color);
  margin-left: 0.75rem;
  padding-left: 0.5rem;
}
html[data-style="linear"] .sidebar-left .tree-sub-menu li {
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  font-size: 0.85rem;
}
html[data-style="linear"] .sidebar-left .tree-sub-menu li:hover {
  background: var(--bg-subtle);
}
html[data-style="linear"] .sidebar-left .tree-sub-menu li.active {
  background: var(--accent-light);
  color: var(--accent) !important;
  font-weight: 600;
}
html[data-style="linear"] .sidebar-left .tree-sub-menu li.active::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5px;
  height: 15px;
  background: var(--accent);
  border-radius: 9999px;
}
html[data-style="linear"] .refined-post-card {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
html[data-style="linear"] .refined-post-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* --------------------------------------------------------------------------
   风格二：【当代人文静奢】 (Craft.do / 三联书店装帧温润风)
   温润纸白 (#f9f8f6)、沉静石墨炭黑、内敛小墨点指示、思源宋体/霞鹜文楷排印
   -------------------------------------------------------------------------- */
html[data-style="craft"] {
  --bg-main: #f9f8f6;
  --bg-card: #ffffff;
  --bg-subtle: #f1efe9;
  --text-primary: #292524;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --border-color: #e7e4dc;
  --accent: #44403c;
  --accent-light: rgba(68, 64, 60, 0.06);
  --accent-border: #d6d3d1;
  --font-body: var(--font-wenkai);
  --font-heading: var(--font-serif);
}
html[data-style="craft"][data-theme="dark"] {
  --bg-main: #141618;
  --bg-card: #1a1d1f;
  --bg-subtle: #222629;
  --text-primary: #e7e5e4;
  --text-secondary: #a8a29e;
  --text-muted: #78716c;
  --border-color: #2b3034;
  --accent: #d6d3d1;
  --accent-light: rgba(214, 211, 209, 0.1);
  --accent-border: #44403c;
}
/* Craft 大纲：无虚线，字距微展，低调内敛墨点 */
html[data-style="craft"] .sidebar-left .tree-sub-menu {
  border-left: none;
  margin-left: 0.4rem;
}
html[data-style="craft"] .sidebar-left .tree-sub-menu li {
  padding: 0.4rem 0.65rem;
  letter-spacing: 0.02em;
}
html[data-style="craft"] .sidebar-left .tree-sub-menu li.active {
  background: var(--accent-light);
  color: var(--text-primary) !important;
  font-weight: 700;
  border-radius: 4px;
}
html[data-style="craft"] .sidebar-left .tree-sub-menu li.active::before {
  content: "• ";
  color: var(--accent);
  font-weight: 900;
  margin-right: 0.2rem;
}
html[data-style="craft"] .refined-post-card {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(41, 37, 36, 0.02);
}

/* --------------------------------------------------------------------------
   风格三：【现代出版社论】 (Medium / Substack / 纽约客出版风)
   黑白分明强对比、大标题粗宋体 + 正文极简黑体、微型章节序号排阶
   -------------------------------------------------------------------------- */
html[data-style="editorial"] {
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --accent: #0f172a;
  --accent-light: #f1f5f9;
  --accent-border: #cbd5e1;
  --font-body: var(--font-sans);
  --font-heading: var(--font-serif);
}
html[data-style="editorial"][data-theme="dark"] {
  --bg-main: #0b0f15;
  --bg-card: #101620;
  --bg-subtle: #18202d;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-color: #1e293b;
  --accent: #f8fafc;
  --accent-light: rgba(248, 250, 252, 0.08);
  --accent-border: #334155;
}
/* 编撰大纲：章节纯排阶 */
html[data-style="editorial"] .sidebar-left .tree-group-header {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.88rem;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 0.35rem;
}
html[data-style="editorial"] .sidebar-left .tree-sub-menu {
  border-left: none;
  margin-left: 0.5rem;
}
html[data-style="editorial"] .sidebar-left .tree-sub-menu li {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
html[data-style="editorial"] .sidebar-left .tree-sub-menu li.active {
  background: var(--accent-light);
  color: var(--text-primary) !important;
  font-weight: 700;
}
html[data-style="editorial"] .refined-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   风格四：【极简无界禅意】 (Notion / Bear / iA Writer 纯留白流)
   彻底去除卡片外框与背景色块，纯靠优雅留白与字阶呼吸感组织内容
   -------------------------------------------------------------------------- */
html[data-style="zen"] {
  --bg-main: #ffffff;
  --bg-card: transparent;
  --bg-subtle: #f4f4f5;
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --border-color: #f4f4f5;
  --accent: #18181b;
  --accent-light: #f4f4f5;
  --accent-border: #e4e4e7;
}
html[data-style="zen"][data-theme="dark"] {
  --bg-main: #0c0e12;
  --bg-card: transparent;
  --bg-subtle: #161a22;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --border-color: #181d26;
  --accent: #f4f4f5;
  --accent-light: #161a22;
  --accent-border: #272f3d;
}
/* 禅意无框：卡片完全透明，仅保留内衬与留白分隔 */
html[data-style="zen"] .refined-post-card {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  border-radius: 0 !important;
  padding: 1.5rem 0 !important;
}
html[data-style="zen"] .refined-post-card:hover {
  transform: none !important;
  box-shadow: none !important;
}
html[data-style="zen"] .refined-post-card:hover .refined-card-title {
  color: #0284c7;
}
html[data-style="zen"] .sidebar-left {
  border-right: 1px solid var(--border-color);
}
html[data-style="zen"] .sidebar-left .tree-sub-menu {
  border-left: none;
  margin-left: 0.6rem;
}
html[data-style="zen"] .sidebar-left .tree-sub-menu li.active {
  background: transparent !important;
  color: #0284c7 !important;
  font-weight: 700;
}
