/* ============================================================
   区块标题对齐修正  Section Title Alignment Fix
   解决220套扩展主题中 "我的相册""关于" 等区块标题
   装饰符号位置不一致的问题

   问题根因：
   1. HTML中的 .section-line / .divider 元素与主题 ::after 装饰同时显示
   2. 不同主题的 padding-bottom 值不一致 (1rem / 1.2rem / 1.5rem)
   3. 部分 <h2> 缺少 section-title class

   修正方案：
   1. 隐藏 .section-line（由 ::after 替代）
   2. 统一 padding-bottom 为 1.2rem
   3. 确保 ::after 定位一致
   ============================================================ */

/* ---- 1. 统一区块标题容器样式 ---- */
/* 确保 .section-header / .section-head / .ph-section-head 行为一致 */
[data-theme^="ext-"] .section-header,
[data-theme^="ext-"] .section-head,
[data-theme^="ext-"] .ph-section-head {
  text-align: center !important;
  margin-bottom: 48px !important;
  position: relative;
}

/* ---- 2. 隐藏原始装饰线，由主题 ::after 替代 ---- */
/* aphoto 模式下的 .section-line */
[data-theme^="ext-"] .section-line {
  display: none !important;
}

/* 光影集模式下的 .divider（仅当 .section-title 存在时） */
[data-theme^="ext-"] .section-head .divider,
[data-theme^="ext-"] .ph-section-head .divider {
  display: none !important;
}

/* ---- 3. 统一 .section-title 定位上下文 ---- */
[data-theme^="ext-"] .section-title {
  position: relative !important;
  display: block !important;
  text-align: center !important;
  padding-bottom: 1.2rem !important;
}

/* ---- 4. 统一 ::after 装饰定位 ---- */
[data-theme^="ext-"] .section-title::after {
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* ---- 5. 确保 .section-num / .kicker / .ph-num 统一居中 ---- */
[data-theme^="ext-"] .section-num,
[data-theme^="ext-"] .section-head .kicker,
[data-theme^="ext-"] .ph-section-head .ph-num {
  display: block !important;
  text-align: center !important;
}

/* ---- 6. 确保 .section-head 下的 h2 也有 section-title 效果 ---- */
/* 对于缺少 section-title class 的 h2，补齐基础样式 */
[data-theme^="ext-"] .section-head h2:not(.section-title),
[data-theme^="ext-"] .ph-section-head h2:not(.section-title) {
  position: relative;
  display: block;
  text-align: center;
  padding-bottom: 1.2rem;
}

/* ---- 7. 非扩展主题不受影响 ---- */
/* 以上所有规则仅作用于 [data-theme^="ext-"]，不影响原始主题 */
