/* 文章内容页容器 */
.post-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 5%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 2rem;
 }
/* 文章标题/元信息 */
.post-header {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 1rem;
 margin-bottom: 2rem;
}
.post-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}
.post-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #999;
}
.post-category {
  color: #3498db;
  font-weight: 600;
}
/* 文章正文 */
.post-content {
  color: #444;
  font-size: 1.05rem;
}
.post-content p {
  margin-bottom: 1.5rem;
}
.post-content h3 {
  color: #2c3e50;
  margin: 2rem 0 1rem;
}
.post-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}
/*markdown渲染效果配置*/
article {
  max-width: 820px;
  margin: 40px auto;
  padding: 0 20px;
  font-size: 16px;
  line-height: 2.5;
  color: #333;
}

article h1,
article h2,
article h3 {
  margin-top: 2em;
}
/* 代码块 */
article pre {
  background: #f6f8fa;
  padding: 16px;
  overflow-x: auto;
  border-radius: 6px;
  font-size: 14px;
}

/* 行内代码 */
article p code,
article li code {
  background: #f6f8fa;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.95em;
}

/* 代码块里的 code 不额外加背景 */
article pre code {
  background: none;
  padding: 0;
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: auto;
}

/* 表头 */
article thead th {
    background-color: #f8fafc;
    color: #111827;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
    padding: 0.75rem 0.8rem;
    text-align: left;
    white-space: nowrap;
}

/* 表体单元格 */
article tbody td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: top;
}

/* 斑马纹（提升可读性） */
article tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* 鼠标悬停高亮 */
article tbody tr:hover {
    background-color: #f1f5f9;
}

/* 表格中的代码 */
article table code {
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 0.15em 0.3em;
    border-radius: 4px;
    font-size: 0.9em;
}

/* 数字 / 复杂度等更适合右对齐（可选） */
article td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* 小屏幕横向滚动（防止挤爆） */
article table {
    display: block;
    overflow-x: auto;
}