/* elc-v413.css — 排版全量收口层（2026-10-26）
   结构改造：v412 的「32 容器白名单点名 justify」改为「默认全覆盖 + 排除清单」。
   依据：801 页全量爬测基线（el-ops/typo-fullcrawl/main/baseline-390.json）：
   zh 未覆盖段 793、ja 636（白名单外正文容器仍左对齐，右缘空缺复现于 /invite/ 等页）。
   本层只改对齐/断行，不动 v412 的 ❦ 装饰系统、不动字号行高版式。 */

/* ---------- 1) 默认规则：正文段落全覆盖 ---------- */
/* zh / ja：两端对齐（汉字间均分） */
body.v26-app:lang(zh) p, body.v26-app:lang(ja) p {
  text-align: justify; text-justify: inter-ideograph; text-wrap: pretty;
}
/* fa（RTL）：两端对齐 */
body.v26-app:lang(fa) p { text-align: justify; text-wrap: pretty; }
/* ko：短文两端对齐 + keep-all 防词内断行（长文在下方按容器回左，承 v412 裁定） */
body.v26-app:lang(ko) p { text-align: justify; word-break: keep-all; text-wrap: pretty; }
/* 拉丁系与亚美尼亚语：只加 pretty 断行优化，不改对齐（承 v412 裁定） */
body.v26-app:lang(en) p, body.v26-app:lang(es) p,
body.v26-app:lang(ru) p, body.v26-app:lang(hy) p { text-wrap: pretty; }

/* ---------- 2) ko 长文容器回左（承 v412 实测裁定：长文 justify 词距成河） ----------
   容器据基线签名实证：故事章节、日记长文体、指南长文段、编辑长文体。
   特异度 (0,3,3) 压过默认 (0,2,2)；排除清单在其后声明，同特异度时以位置靠后胜出。 */
html body.v26-app:lang(ko) :is(.elc396-chapter, .elc396-article-body, .v330-article-sections, .elc310-editorial-article, .elc396-editorial-article) p {
  text-align: left;
}

/* ---------- 3) 排除清单：text-align:inherit 复原各容器原设计对齐 ----------
   每项均有基线实证（改前 computed 为 center 的设计段）或结构性理由（导航/表单/价格/页脚/浮窗）。
   特异度 (0,3,3) 压过默认 (0,2,2)；inherit 顺父级既有设计（居中保居中、左对齐保左对齐）。 */
/* 3a 结构区：页眉/页脚/导航/表单/按钮内段落 */
html body.v26-app:lang(zh) :is(header, footer, nav, form, button) p,
html body.v26-app:lang(ja) :is(header, footer, nav, form, button) p,
html body.v26-app:lang(fa) :is(header, footer, nav, form, button) p,
html body.v26-app:lang(ko) :is(header, footer, nav, form, button) p { text-align: inherit; }
/* 3b 表格单元格内段落 */
html body.v26-app:lang(zh) td p, html body.v26-app:lang(ja) td p,
html body.v26-app:lang(fa) td p, html body.v26-app:lang(ko) td p { text-align: inherit; }
/* 3c 居中设计段 / CTA 带 / 价格块 / 展示条（基线 center 实证 + 简报点名）：
   .elc396-article-cta 文章尾 CTA（zh/ja 各 36+ 段 center 实证）
   .elc377-context-cta 侧栏预约带（218 段未覆盖，全站型） / .v27-cta 预约带
   .elc-p3-exit 退出展示条（· 分隔的设计行，justify 会拉坏间隔）
   .v27-price-card 价格卡（价格与数字块）+ .v27-pricing-intro / .v27-price-bottom 定价页居中头尾
   .v291-ritual 仪式卡（a 内居中小字） / .elc405-membership-hero 会员页头图段
   .elc376-guide-heading / .elc377-section-head / .elc396-editorial-intro 居中版块题头
   .elc310-article-heading / .elc310-article-hero / .elc310-article-cta / .elc310-service-end 文章模板居中头尾
   .nationwide-cta 全国带 / .text-center 工具类 / .destination-home .section-title 首页目的地题头 */
html body.v26-app:lang(zh) :is(.elc396-article-cta, .elc377-context-cta, .v27-cta, .elc-p3-exit, .v27-price-card, .v27-pricing-intro, .v27-price-bottom, .v291-ritual, .elc405-membership-hero, .elc376-guide-heading, .elc377-section-head, .elc396-editorial-intro, .elc310-article-heading, .elc310-article-hero, .elc310-article-cta, .elc310-service-end, .nationwide-cta, .text-center) p,
html body.v26-app:lang(ja) :is(.elc396-article-cta, .elc377-context-cta, .v27-cta, .elc-p3-exit, .v27-price-card, .v27-pricing-intro, .v27-price-bottom, .v291-ritual, .elc405-membership-hero, .elc376-guide-heading, .elc377-section-head, .elc396-editorial-intro, .elc310-article-heading, .elc310-article-hero, .elc310-article-cta, .elc310-service-end, .nationwide-cta, .text-center) p,
html body.v26-app:lang(fa) :is(.elc396-article-cta, .elc377-context-cta, .v27-cta, .elc-p3-exit, .v27-price-card, .v27-pricing-intro, .v27-price-bottom, .v291-ritual, .elc405-membership-hero, .elc376-guide-heading, .elc377-section-head, .elc396-editorial-intro, .elc310-article-heading, .elc310-article-hero, .elc310-article-cta, .elc310-service-end, .nationwide-cta, .text-center) p,
html body.v26-app:lang(ko) :is(.elc396-article-cta, .elc377-context-cta, .v27-cta, .elc-p3-exit, .v27-price-card, .v27-pricing-intro, .v27-price-bottom, .v291-ritual, .elc405-membership-hero, .elc376-guide-heading, .elc377-section-head, .elc396-editorial-intro, .elc310-article-heading, .elc310-article-hero, .elc310-article-cta, .elc310-service-end, .nationwide-cta, .text-center) p { text-align: inherit; }
html body.v26-app:lang(zh) .destination-home .section-title p,
html body.v26-app:lang(ja) .destination-home .section-title p,
html body.v26-app:lang(fa) .destination-home .section-title p,
html body.v26-app:lang(ko) .destination-home .section-title p { text-align: inherit; }
/* 3d 眉题小标本身（装饰标签，不参与正文对齐） */
html body.v26-app:lang(zh) p.eyebrow, html body.v26-app:lang(ja) p.eyebrow,
html body.v26-app:lang(fa) p.eyebrow, html body.v26-app:lang(ko) p.eyebrow { text-align: inherit; }
/* 3e 浮窗面板（固定咨询窗，独立于正文流） */
html body.v26-app:lang(zh) :is(.elcfa, .elcfa-panel) p,
html body.v26-app:lang(ja) :is(.elcfa, .elcfa-panel) p,
html body.v26-app:lang(fa) :is(.elcfa, .elcfa-panel) p,
html body.v26-app:lang(ko) :is(.elcfa, .elcfa-panel) p { text-align: inherit; }

/* ---------- 4) 标题 balance 扩围：main 内全部 h1/h2/h3 ----------
   （v412 只覆盖 9 组点名标题；本条扩至 main/.content 内标题。眉题与浮窗不在 main 内，不受影响。）
   例外：首页 hero h1（.v26-hero h1）点名排除——其断行现状即定版，balance 不得改动 hero 版式；
   以更高特异度回置 text-wrap: wrap（即 balance 前的原始换行行为），与本条同文件、零风险。 */
body.v26-app :is(main, .content) :is(h1, h2, h3) { text-wrap: balance; }
html body.v26-app .v26-hero h1 { text-wrap: wrap; }

/* ---------- 5) 花饰扩展（陛下 2026-10-26 00:27 令：花朵玫瑰系，与 ❦ 同金色体系） ----------
   纯 CSS 伪元素、零文案改动；克制为度——全页花饰仍以 ❦ 为主、花朵为辅。
   5a 故事/日记版块分隔 ❀ 变体：故事/期刊文章内章节之间隔以「细线—❀—细线」呈现
      （版式参数与 v412 版块分隔同款：双侧渐隐细线＋居中字形、金 rgba(212,169,93,.95)）；
      首页故事版块（.v26-stories）顶上分隔同改为 ❀（仅换字形，其余沿 v412 原规则）。 */
body.v26-app .elc396-article-body > .elc396-chapter + .elc396-chapter::before {
  content: "❀"; display: block; text-align: center; color: rgba(212,169,93,.95);
  font-size: 15px; line-height: 1; margin: 26px auto 20px;
  font-family: 'Cormorant Garamond', Georgia, 'Noto Serif SC', serif;
  background: linear-gradient(90deg, transparent, rgba(212,169,93,.55)) left center/calc(50% - 24px) 1px no-repeat,
              linear-gradient(270deg, transparent, rgba(212,169,93,.55)) right center/calc(50% - 24px) 1px no-repeat;
}
body.v26-app .v26-section.v26-stories::before { content: "❀"; }
/* 5b 故事/日记正文文末符 🌹 落款：.elc396-article-body（故事系列与期刊日记的正文容器）
      ::after 字形由 ❦ 升级为 🌹；细线背景与版式沿 v412 原规则，仅换字形。
      .v330-article-sections（服务/指南长文）不在此列，仍用 ❦。 */
body.v26-app .elc396-article-body::after { content: "🌹"; }
/* 5c 中文页二级标题 ✿ 变体：与 v412 的 ❦ 点缀按版块交替——偶数位版块的
      .v26-heading h2 与 .elc404-section-title h2 改呈 ✿，奇数位保持 ❦；
      同一 ::before 只换字形、不叠加，版块内绝不同时出现两种字形。
      特异度 (0,5,2)/(0,4,3) 压过 v412 的 (0,2,2)。 */
body.v26-app:lang(zh) .v26-section:nth-of-type(even) .v26-heading h2::before,
body.v26-app:lang(zh) main > section:nth-of-type(even) .elc404-section-title h2::before { content: "✿"; }
