@layer design {
html,body {
  margin: 0;
  padding: 0;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* {
  box-sizing: border-box;
}
a {
  color: #7C5F27;
  text-decoration: none;
  transition: color .4s cubic-bezier(.25,1,.5,1),border-color .4s cubic-bezier(.25,1,.5,1);
}
a:hover {
  color: #0F1E3C;
}
/* 语言切换：只能写在这里，无法内联 */
body:is([data-lang="zh"],[data-lang="zh-Hant"]) .en {
  display: none;
}
body[data-lang="en"] .zh {
  display: none;
}
body:not([data-lang]) .en {
  display: none;
}
/* All translations follow the approved Chinese reading structure. */
.page-home #origin .an-section-title > br {
  display: none;
}
.page-home #origin .an-section-title + .an-body,
.page-home #what .an-section-title + .an-body {
  --an-reading-width: 100%;
}
/* Localized reflections share the existing timeline spacing and emphasis. */
.page-home #live [data-live-step="before-reflection"] {
  --an-live-step-gap: 40px;
}
.page-home #live [data-live-step="reflection"] {
  --an-live-body-color: var(--an-gold);
}
/* 轮播五张文案行数不同；固定正文块高度，否则 flex-end + overflow:hidden 会裁掉顶部眉标与金线 */
[data-hero-body] {
  min-height: 3.8em;
}
body[data-lang="zh"] [data-hero-body] [data-home-bind="heroBody"] {
  white-space: pre-line;
}
body:is([data-lang="en"],[data-lang="es"],[data-lang="pt-BR"],[data-lang="fr"],[data-lang="de"]) [data-hero-body] {
  min-height: 5.7em;
}
/* 页脚窄视口转单列（显式轨道不会自动回落） */
@media (max-width:1100px) {
  [data-g4] {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  [data-g6] {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:860px) {
  [data-g3] {
    grid-template-columns: 1fr !important;
  }
  [data-g2] {
    grid-template-columns: 1fr !important;
  }
  [data-g4] {
    grid-template-columns: 1fr !important;
  }
  [data-g6] {
    grid-template-columns: 1fr !important;
  }
}
/* Noto Sans SC 把 U+2019 等标点映射成全角；EN 模式让拉丁字体优先 */
body[data-lang="en"] .en {
  font-family: Barlow,'Noto Sans SC','PingFang SC',sans-serif;
}

}
