/* 
 * Archive Page Styles - 独立命名空间版本
 * Version: 6.0
 * Prefix: arc- (archive)
 * 
.arc-page-title {
  position: absolute;
  top: -10px;
  left: 25px;
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  color: #1e40af;
  font-family: "KuaiKanShiJieTi", sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 8px;
}、易读
 * 所有类名添加 arc- 前缀,避免与 main.css 冲突
 */

/* ============================================
   1. CSS变量定义
   ============================================ */
/* 归一：不再本地重定义通用色；若需特种色仍可保留 arc- 前缀变量（可选择性重新添加）。 */
/* 浅色模式热力图色值（GitHub风格） */
:root {
  --arc-heatmap-empty: #ebedf0;
  --arc-heatmap-level-1: #9be9a8;
  --arc-heatmap-level-2: #40c463;
  --arc-heatmap-level-3: #30a14e;
  --arc-heatmap-level-4: #216e39;
}

/* 深色模式热力图色值 */
[data-theme="dark"] {
  --arc-heatmap-empty: #161b22;
  --arc-heatmap-level-1: #0e4429;
  --arc-heatmap-level-2: #006d32;
  --arc-heatmap-level-3: #26a641;
  --arc-heatmap-level-4: #39d353;
}

/* ============================================
   2. 页面容器
   ============================================ */
.arc-page {
  max-width: var(--container-width); /* 使用 CSS 变量: 1280px */
  margin: 0 auto 24px;
  background: var(--color-card-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--color-text);
}

/* ============================================
   3. Hero 标题区域
   ============================================ */
.arc-hero {
  position: relative;
  padding: 48px 0;
  min-height: 240px;
  background: url("../../../static/images/banner/archive.webp") center/cover
    no-repeat;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
  overflow: hidden;
}

[data-theme="dark"] .arc-hero {
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)),
    url("../../../static/images/banner/archive.webp") center/cover no-repeat;
}

.arc-hero .arc-hero-container,
.archive-hero .arc-hero-container {
  position: relative;
  z-index: 10 !important; /* 确保在 Hero 背景图和遮罩之上，覆盖 utilities.css */
  max-width: 100%;
  margin: 0 auto;
  padding: 0 26px;
}

.arc-hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  align-items: start;
}

/* 左侧内容 */
.arc-hero-content {
  position: relative; /* 为绝对定位标题提供定位上下文 */
  /* 为固定标题预留空间，保持与其他页面一致 */
  padding-top: 72px;
  padding-left: 0;
}

.arc-page-title {
  position: absolute;
  top: -10px;
  left: 25px;
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  font-family: "KuaiKanShiJieTi", sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.arc-page-title i {
  font-size: 2rem;
}

.arc-hero-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6),
    0 0 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .arc-hero-description {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(0, 0, 0, 0.5);
}

.arc-hero-description p {
  margin: 0 0 12px;
}

.arc-hero-description p:last-child {
  margin-bottom: 0;
}

/* Hero 内嵌热力图 */
.arc-hero-heatmap {
  margin-top: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.85); /* 浅色模式：半透明白色背景 */
  backdrop-filter: blur(10px); /* 毛玻璃效果 */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 深色模式的磨砂背景 */
[data-theme="dark"] .arc-hero-heatmap {
  background: rgba(30, 41, 59, 0.85); /* 深色模式：半透明深色背景 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.arc-heatmap-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--color-text);
  display: none;
}

/* 右侧统计卡片 */
.arc-stats-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  height: fit-content;
  width: 380px;
  flex-shrink: 0;
}

.arc-stats-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.arc-stats-header i {
  font-size: 1.25rem;
  color: var(--color-primary);
}

.arc-stats-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

/* 统计列表 */
.arc-stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arc-stat-item {
  display: flex;
  align-items: center;
  padding: 12px;
  min-height: 60px;
  background: rgba(59, 130, 246, 0.06);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.arc-stat-item:hover {
  background: rgba(59, 130, 246, 0.12);
  transform: translateX(4px);
}

.arc-stat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  margin-right: 12px;
  flex-shrink: 0;
}

.arc-stat-icon i {
  font-size: 1rem;
  color: var(--color-primary);
}

.arc-stat-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arc-stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.arc-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  transition: all 0.3s ease;
}

/* ============================================
   4. 章节标题
   ============================================ */
.arc-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 8px;
  padding-bottom: 0;
  border-bottom: none;
  color: var(--color-text);
}

/* 章节分割线 - 灰色样式 */
.arc-section-divider {
  height: 2px;
  background: var(--color-border);
  border: none;
  margin: 0 0 30px;
  border-radius: 0;
}

/* ============================================
   5. 热力图样式
   ============================================ */
.arc-heatmap-container {
  overflow-x: auto; /* 允许横向滚动 */
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}

/* 月份标签行 */
.arc-heatmap-months {
  display: grid;
  grid-template-columns: repeat(
    53,
    minmax(11px, 12px)
  ); /* 与热力图网格列数一致 */
  gap: 3px; /* 与热力图网格间距一致 */
  width: calc(100% - 38px); /* 减去星期标签宽度 */
  margin-left: 38px;
  margin-bottom: 6px;
  height: 14px; /* 固定高度 */
}

.arc-month-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-align: left;
  white-space: nowrap;
  overflow: visible; /* 允许文字溢出到右侧空白列 */
  /* grid-column 由 PHP 动态设置 */
}

/* 热力图包装器 */
.arc-heatmap-wrapper {
  display: flex;
  gap: 12px; /* 增加星期标签和网格间距 */
  align-items: flex-start;
}

/* 星期标签 */
.arc-heatmap-weekdays {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 从上到下排列 */
  gap: 3px; /* 与热力图网格间距一致 */
  height: calc(7 * 11px + 6 * 3px); /* 7行 × 11px + 6间距 × 3px = 95px */
  width: 26px;
  padding-top: 0;
}

.arc-weekday-label {
  height: 11px; /* 每个标签对应1行 */
  line-height: 11px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.65rem; /* 稍微小一点以适应单行 */
  font-weight: 500;
  color: var(--color-text-light);
  text-align: right;
  padding-right: 4px;
}

/* 热力图网格 */
.arc-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(
    53,
    minmax(11px, 12px)
  ); /* GitHub风格：固定列宽 */
  grid-template-rows: repeat(7, 11px); /* GitHub风格：固定行高 */
  grid-auto-flow: column; /* 关键：按列填充，从上到下填满一列后再填下一列 */
  gap: 3px; /* GitHub风格间距 */
  flex: 1;
  justify-content: start; /* 左对齐 */
}

.arc-heatmap-cell {
  width: 11px; /* GitHub风格：固定尺寸 */
  height: 11px;
  min-width: 11px;
  min-height: 10px;
  border-radius: 2px;
  background: var(--arc-heatmap-empty);
  cursor: default;
  transition: all 0.1s ease;
}

.arc-heatmap-cell:hover {
  outline: 1px solid rgba(27, 31, 35, 0.06);
  outline-offset: -1px;
}

/* 热力等级 - GitHub 风格四级 */
.arc-heat-level-0 {
  background: var(--arc-heatmap-empty);
}

.arc-heat-level-1 {
  background: var(--arc-heatmap-level-1);
}

.arc-heat-level-2 {
  background: var(--arc-heatmap-level-2);
}

.arc-heat-level-3 {
  background: var(--arc-heatmap-level-3);
}

.arc-heat-level-4 {
  background: var(--arc-heatmap-level-4);
}

/* 热力图图例 */
.arc-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--color-text-light);
  justify-content: flex-end;
  /* 与上方网格对齐到右边缘 */
  align-self: stretch;
}

.arc-legend-text {
  margin: 0 4px;
  font-size: 0.6875rem;
}

.arc-legend-item {
  display: flex;
  align-items: center;
  gap: 2px;
}

.arc-legend-cell {
  width: var(--cell-size, 10px);
  height: var(--cell-size, 10px);
  border-radius: 2px;
}

/* ============================================
   6. 年度归档
   ============================================ */
.arc-years {
  padding: 30px 26px;
  border-bottom: 1px solid var(--color-border);
}

.arc-year-section {
  margin-bottom: 40px;
}

.arc-year-section:last-child {
  margin-bottom: 0;
}

.arc-year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.arc-year-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
}

.arc-year-count {
  font-size: 0.875rem;
  color: var(--color-text-light);
  padding: 4px 12px;
  background: var(--color-background-light);
  border-radius: 12px;
}

/* 月份网格 */
.arc-months-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
}

.arc-month-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 4px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--color-text-light);
  background: var(--color-card-background);
  transition: all 0.2s ease;
}

.arc-month-item:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.arc-month-item.arc-has-posts {
  background: var(--color-background-light);
  border-color: var(--color-primary);
  color: var(--color-text);
}

.arc-month-name {
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.arc-month-count {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ============================================
   7. 分类列表
   ============================================ */
.arc-categories {
  padding: 30px 26px;
  border-bottom: 1px solid var(--color-border);
}

.arc-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* 分类卡片 */
.arc-category-card {
  position: relative;
  display: block;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.arc-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* 背景层 */
.arc-category-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.arc-category-card:hover .arc-category-bg {
  transform: scale(1.05);
}

/* 渐变背景(无图片时使用) */
.arc-category-gradient {
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-end) 100%
  );
}

/* 遮罩层 */
.arc-category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  transition: background 0.3s ease;
}

.arc-category-card:hover .arc-category-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

/* 分类内容(默认显示) */
.arc-category-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.arc-category-card:hover .arc-category-content {
  opacity: 0;
  transform: translateY(-10px);
}

.arc-category-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  margin-bottom: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.arc-category-icon i {
  font-size: 24px;
  color: var(--color-text-inverse);
}

.arc-category-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-inverse);
  margin: 0 0 8px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.arc-category-count-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--color-text-inverse);
  font-weight: 500;
}

/* 悬浮信息(悬浮时显示) */
.arc-category-hover-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  z-index: 3;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.arc-category-card:hover .arc-category-hover-info {
  opacity: 1;
  transform: translateY(0);
}

.arc-category-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.arc-category-stats .arc-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--color-text-inverse);
  font-weight: 500;
}

.arc-category-stats .arc-stat-item i {
  font-size: 0.875rem;
}

.arc-category-description {
  color: var(--color-text-inverse);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   8. 标签列表
   ============================================ */
.arc-tags {
  padding: 30px 26px;
}

.arc-tags-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.5rem;
  line-height: 1.8;
}

.arc-tags-list a {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--color-text);
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

.arc-tags-list a:hover {
  color: var(--color-primary);
}

.arc-tag-hash {
  color: var(--color-primary);
  margin-right: 2px;
  font-weight: 600;
}

.arc-tags-list a .arc-count {
  position: absolute;
  top: -0.45em;
  right: -0.35em;
  font-size: 10px;
  line-height: 1;
  color: var(--color-text-light);
  font-weight: 600;
}

/* ============================================
   9. 空状态
   ============================================ */
.arc-empty-notice {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ============================================
   10. 响应式设计
   ============================================ */
@media (max-width: 768px) {
  .arc-page {
    border-radius: 0;
    margin-bottom: 0;
  }

  .arc-hero {
    padding: 32px 0;
  }

  .arc-hero-container {
    padding: 0 16px;
  }

  .arc-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .arc-page-title {
    font-size: 1.875rem;
  }

  .arc-stats-card {
    padding: 20px;
  }

  .arc-stats-list {
    gap: 10px;
  }

  .arc-stat-item {
    padding: 10px;
  }

  .arc-stat-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
  }

  .arc-stat-value {
    font-size: 1.125rem;
  }

  .arc-hero-heatmap {
    margin-top: 24px;
    padding-top: 20px;
  }

  .arc-years,
  .arc-categories,
  .arc-tags {
    padding: 20px 16px;
  }

  .arc-months-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }

  .arc-month-item {
    padding: 10px 2px;
  }

  .arc-month-name {
    font-size: 0.75rem;
  }

  .arc-section-title {
    font-size: 1.25rem;
  }

  .arc-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .arc-category-card {
    height: 180px;
  }

  .arc-category-icon {
    width: 48px;
    height: 48px;
  }

  .arc-category-icon i {
    font-size: 20px;
  }

  .arc-category-name {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .arc-page-title {
    font-size: 1.5rem;
  }

  .arc-hero-heatmap {
    margin-top: 20px;
    padding-top: 16px;
  }

  .arc-years,
  .arc-categories,
  .arc-tags {
    padding: 16px 12px;
  }

  .arc-months-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .arc-year-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .arc-categories-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .arc-category-card {
    height: 160px;
  }
}

/* ============================================
   11. 深色模式
   ============================================ */
[data-theme="dark"] .arc-page {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .arc-hero {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.15) 0%,
    rgba(37, 99, 235, 0.1) 100%
  );
}

[data-theme="dark"] .arc-hero-heatmap {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .arc-heatmap-cell:hover {
  outline-color: rgba(240, 246, 252, 0.1);
}

[data-theme="dark"] .arc-stats-card {
  background: var(--color-background-light) !important;
  border-color: var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .arc-stat-item {
  background: rgba(222, 184, 135, 0.08);
}

[data-theme="dark"] .arc-stat-item:hover {
  background: rgba(222, 184, 135, 0.15);
}

[data-theme="dark"] .arc-stat-icon {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .arc-stat-label {
  color: var(--color-text-muted);
}

[data-theme="dark"] .arc-month-item.arc-has-posts {
  background: var(--color-background-light);
}

[data-theme="dark"] .arc-category-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .arc-category-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .arc-category-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

[data-theme="dark"] .arc-category-card:hover .arc-category-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

[data-theme="dark"] .arc-tags-list a:hover {
  color: var(--color-primary);
}

[data-theme="dark"] .arc-tag-hash {
  color: var(--color-primary);
}

[data-theme="dark"] .arc-tags-list a .arc-count {
  color: var(--color-text-light);
}

/* 移动端 Hero 简化 - 只显示背景图和标题 */
@media (max-width: 768px) {
  /* 隐藏统计信息 */
  .archive-hero-stats,
  .archive-stats-cards {
    display: none;
  }

  /* 隐藏副标题 */
  .archive-hero-subtitle,
  .archive-hero-description {
    display: none;
  }

  /* 简化 Hero 区域 */
  .archive-hero {
    min-height: 180px;
    padding: 20px 0;
  }

  /* 标题居中 */
  .archive-hero .page-title,
  .archive-hero h1 {
    text-align: center;
    margin: 0 auto;
    padding: 0 16px;
  }

  .archive-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
  }
}

/* 移动端 Hero 简化 - 只显示背景图和标题（更新版） */
@media (max-width: 768px) {
  .archive-hero {
    min-height: 180px !important;
    padding: 20px 0 !important;
  }

  /* 隐藏所有次要内容 */
  .archive-hero-stats,
  .archive-stats-cards,
  .archive-hero-subtitle,
  .archive-hero-description,
  .archive-hero-meta {
    display: none !important;
  }

  /* 标题居中 */
  .archive-hero-content,
  .archive-hero .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 0 16px;
  }

  .archive-hero .page-title,
  .archive-hero h1 {
    margin: 0 auto;
    text-align: center;
    font-size: 1.5rem;
  }
}

/* 移动端 Hero 标题完美居中（增强版 - 垂直+水平） */
@media (max-width: 768px) {
  /* Hero 最外层 - Flexbox 垂直水平居中 */
  .about-hero,
  .vm-hero,
  .feeds-hero,
  .links-hero,
  .archive-hero,
  .posts-list-hero,
  .theme-info-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Hero 容器层 - 继续居中传递 */
  .hero-container,
  .vm-hero-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
  }

  /* Hero 内层 - 确保居中 */
  .hero-inner,
  .vm-hero-inner,
  .hero-grid {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
  }

  /* Hero 内容区 - 最终居中层 */
  .hero-content,
  .vm-hero-content,
  .about-hero-content,
  .hero-title,
  .hero-title-block {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
  }

  /* 标题本身 - 完美居中 */
  .page-title,
  .vm-page-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
}
