/* 菜单栏文字调小 */
.blog-nav-link {
  font-size: 0.85em;
}
/* 图片点击弹窗放大样式 */
.img-popup-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-popup-mask img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 4px 32px #0008;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
/* 图片点击弹窗放大样式 */
.img-popup-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-popup-mask img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 4px 32px #0008;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
/* 博客正文内容间距优化 */
.blog-content p,
.blog-content ul,
.blog-content ol,
.blog-content pre,
.blog-content table,
.blog-content blockquote,
.blog-content img {
  margin-top: 2em;
  margin-bottom: 2em;
}
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  margin-top: 2em;
  margin-bottom: 1em;
}
body {
  margin: 0;
  padding: 0;
  font-size: 0.85em;
  line-height: 1.7;
}
.blog-layout {
  display: flex;
  align-items: flex-start;
}
.blog-nav {
  min-width: 220px;
  width: 300px;
  margin-right: 2em;
  border-right: 1px solid #eee;
  padding-right: 1em;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  background: #fafbfc;
  z-index: 10;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0,0,0,0.03);
  transition: width 0.2s;
}
.blog-nav.collapsed {
  width: 48px;
  min-width: 48px;
  padding-right: 0;
  border-right: none;
}
.blog-nav .collapse-btn {
  display: block;
  background: none;
  border: none;
  width: 100%;
  text-align: right;
  font-size: 0.85em;
  cursor: pointer;
  margin-bottom: 1em;
}
.blog-content {
  flex: 1;
  margin-left: 240px;
  max-width: 900px;
  transition: margin-left 0.2s;
  font-size: 0.85em;
}
.blog-nav.collapsed ~ .blog-content {
  margin-left: 60px;
}
@media (max-width: 700px) {
  .blog-nav {
    position: static;
    width: 100%;
    height: auto;
    box-shadow: none;
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }
  .blog-content {
    margin-left: 0;
  }
}
/* 让.wrapper更宽 */
.wrapper {
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
}

/* markdown表格美化 */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}
th, td {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  text-align: left;
}
th {
  background: #f6f8fa;
  font-weight: bold;
}

.fold-title {
  cursor: pointer;
  user-select: none;
  position: relative;
}
.fold-title::before {
  content: '☕';
  display: inline-block;
  margin-right: 6px;
  font-size: 0.9em;
  transition: transform 0.2s;
}
.fold-title.collapsed::before {
  transform: rotate(-90deg);
}
.fold-content {
  margin-left: 1em;
}
.fold-content.collapsed {
  display: none;
}

/* ...date... */
.post-date {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 16px;
  margin: 16px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.calendar-icon {
  margin-right: 8px;
  font-size: 1.1em;
}

.date-label {
  color: #64748b;
  font-weight: 500;
  margin-right: 6px;
}

.date-value {
  color: #0f172a;
  font-weight: 600;
}