@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:opsz,wght@14..32,300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;500;600;700;900&display=swap');

/* ========== 字体加载 ========== */
/* 品牌域名 thedead.wiki：Bodoni* 06 Fatface（900）；Book 备用于其它 Bodoni 场景 */
@font-face {
  font-family: "Bodoni 06";
  src: url("https://indestructibletype.com/fonts/Bodoni/Bodoni-06-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reusable memorial tabs row + pill button */
.memorial-tabs-row {
  --tab-btn-h: 2.05rem;
  display: grid;
  align-items: center;
  align-content: center;
  gap: 0.74rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #efede8;
  padding: var(--tab-btn-h) 0;
  background: transparent;
}
.memorial-tab-pill {
  width: 100%;
  min-height: var(--tab-btn-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7f4ed;
  border: 1px solid #ece5d7;
  padding: 0.34rem 0.3rem;
  border-radius: 999px;
  color: #71675a;
  font-size: 0.84rem;
  line-height: 1.1;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
}
.memorial-tab-pill:hover {
  color: #5a4522;
  background: linear-gradient(180deg, #fff7e5 0%, #efd8a8 100%);
  border-color: #c29f5f;
  box-shadow: 0 8px 16px rgba(154, 127, 78, 0.28);
  transform: translateY(-1px);
  filter: brightness(1.02);
}
.memorial-tab-pill.active,
.memorial-tab-pill.is-active {
  background: linear-gradient(180deg, #e7cf97 0%, #d8b978 100%);
  color: #2a2214;
  border: 1px solid #b4904f;
  box-shadow: 0 6px 14px rgba(154, 127, 78, 0.2);
  font-weight: 600;
}

@media (max-width: 768px) {
  .memorial-tabs-row {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 0.65rem;
    gap: 7px;
    -webkit-overflow-scrolling: touch;
  }
  .memorial-tab-pill {
    width: auto;
    min-height: var(--tab-btn-h);
    flex: 0 0 auto;
  }
}
@font-face {
  font-family: "Bodoni 06";
  src: url("https://indestructibletype.com/fonts/Bodoni/Bodoni-06-Fatface.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ========== 全局 CSS 变量 ========== */
:root {
  /* 字体家族 */
  --font-serif: 'Playfair Display', 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;
  /* 品牌字标 thedead.wiki：Bodoni* 06 Fatface + 既定分色（见 .domain / .nav-brand-text） */
  --font-brand-logo: "Bodoni 06", Georgia, "Times New Roman", serif;

  /* 颜色 */
  --color-text-primary: #2C2C2C; /* 主标题、重要文字 */
  --color-text-secondary: #4A4A4A; /* 正文 */
  --color-text-tertiary: #6B6B6B; /* 辅助文字、标签 */
  --color-text-muted: #8A8A8A; /* 时间戳、提示 */
  /* 与首页 thedead.wiki 中 wiki 字标同色；竖条、星号、链接点缀等统一引用 */
  --color-accent: #b29c72;
  --color-accent-light: #F9F7F2; /* 浅金色背景 */
  --color-border: #EFEDE8; /* 边框 */
  --color-bg-card: #FFFFFF; /* 卡片背景 */

  /* 字号（桌面端） */
  --font-size-hero: 2.5rem; /* 页面主标题 */
  --font-size-title: 1.8rem; /* 次要页面标题 */
  --font-size-section: 1.4rem; /* 区块标题 */
  --font-size-card-title: 1.1rem;
  --font-size-body: 1rem;
  /* 二级页内容层级（与关于项目页定稿对齐；桌面） */
  --subpage-l1-size: 20px;
  --subpage-l2-size: 18px;
  --subpage-l3-size: 16px;
  --font-size-body-secondary: 16px; /* 二级页栏框内正文 L3 */
  --font-size-subsection: 18px; /* 二级页栏框内小标题 L2 */
  --font-size-body-emphasis: 17.5px; /* 关于页宣言等特殊强调正文 */
  --font-size-small: 0.85rem;
  --font-size-tiny: 0.75rem;

  /* 站点既有 token（与上并列，供版式/主题沿用） */
  --bg: #f3f6ff;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --brand: #3b82f6;
  --line: #e6ebf3;
  --brand-soft: #dbeafe;
  /* 首页深色底上的浅色字：避免 #fff 刺眼，以 #eee 档为上限 */
  --home-text-main: #e8e8e8;
  --home-text-sub: #eeeeee;
  --home-text-muted: #c8c8c8;
  /* 首页标语 / 主展示衬线：与 --font-serif 同源 */
  --home-tagline-font: var(--font-serif);
  --home-tagline-font-weight: 400;
  --home-tagline-letter-spacing: 0.02em;
  --home-tagline-sub-font: var(--font-serif);
  --home-tagline-sub-font-weight: 300;
  --home-tagline-sub-letter-spacing: 0.1px;
  --home-tagline-sub-font-style: normal;
  /* 二级页顶栏：暖深墨 / 柔化蓝灰链，避免近 #000、纯冷黑 */
  --subpage-nav-ink: #2e2d2a;
  /* 紧凑顶栏内 thedead.：已定版 — 略浅、偏暖的石板灰，浅底上不那么「死黑」 */
  --subpage-nav-brand-main: #5a534a;
  /* 紧凑顶栏内 wiki：比主 accent 略深，浅蓝底上不跳 */
  --subpage-nav-brand-accent: #9a7f4e;
  --subpage-nav-link: #3a4759;
  --subpage-nav-link-hover: #2a3545;
  /* 首页/子页右上角：登录、语言、头像外圈统一高度 */
  --top-right-control-height: 32px;
  /* 顶栏圆钮内图形占比：仅地球仪 SVG（viewBox 内直径 16.5/24 ≈ 69%） */
  --top-right-inner-fill-ratio: 0.69;
  /* iavatar.png 自带透明边距，可视图形已接近外圈 69%；按原图尺寸放满，勿再乘 0.69 */
  --top-right-avatar-logo-size: 31px;
  /* 语言地球仪：外圈与图标（主页 / 二级页共用） */
  --site-locale-trigger-size: var(--top-right-control-height);
  /* Globe circle ≈ 69% of trigger (life-archive LifeArchiveLocaleMenu) */
  --site-locale-icon-size: calc(var(--site-locale-trigger-size) * var(--top-right-inner-fill-ratio) / (16.5 / 24));
  /* 首页顶栏：登录 / 注册 / 语言 / 头像 — 统一描边与淡底（PC + 手机） */
  --home-topbar-control-border: rgba(230, 235, 243, 0.28);
  --home-topbar-control-bg: rgba(248, 250, 252, 0.06);
  --home-topbar-control-fg: #c4c8d2;
  --home-topbar-control-fg-hover: #f2f5fa;
  --home-topbar-control-border-hover: rgba(238, 242, 250, 0.62);
  --home-topbar-control-bg-hover: rgba(248, 250, 252, 0.18);
  /* 顶栏 .container 与子页主内容区统一版心（勿在各页内联写死 1000 / 1280 等分散值） */
  --layout-max: 1080px;
  --layout-inset: 96%;
  --layout-width: min(var(--layout-max), var(--layout-inset));
  /* 二级页页头主标题正下方副标题/题记（L0.5） */
  --subpage-header-subtitle-size: 15px;
  /* 兼容旧名：一律指向规范栈 */
  --font-ui-sans: var(--font-sans);
  --font-serif-body: var(--font-sans);
}

@media (max-width: 860px) {
  :root {
    --subpage-header-subtitle-size: 13px;
    /* 二级页手机端：L0 页头主标题 / 栏框外 L1 / 栏框内 L2 / L3 正文 */
    --font-size-subpage-title: 22px;
    --font-size-subpage-hero-quote: 20px; /* 关于页等长引言 h1，较短标题略小 */
    --font-size-subpage-mobile-nav: 18px;
    --font-size-section: 19px;
    --font-size-subsection: 18px;
    --font-size-body-secondary: 18px;
    --subpage-l1-size: 19px;
    --subpage-l2-size: 18px;
    --subpage-l3-size: 18px;
    /* 主页 / 二级页手机顶栏：语言地球仪 + 头像外圆同径、间距同值（与桌面 32px 一致） */
    --mobile-topbar-circle-size: 32px;
    --mobile-topbar-circle-logo-size: var(--top-right-avatar-logo-size);
    --mobile-topbar-lang-avatar-gap: 19px;
    --site-locale-trigger-size: var(--mobile-topbar-circle-size);
    --site-locale-icon-size: calc(var(--site-locale-trigger-size) * var(--top-right-inner-fill-ratio) / (16.5 / 24));
  }
}

/* 移动端适配（首页 hero 等；二级页栏框 L1/L2/L3 以 max-width:860px token 为准） */
@media (max-width: 768px) {
  :root {
    --font-size-hero: clamp(18px, 4.8vw, 22px);
    --font-size-page-subtitle: 17px;
    --font-size-card-title: clamp(14px, 3.8vw, 17px);
  }
}

* { box-sizing: border-box; }

/* 页面主标题 */
.page-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-hero);
  font-weight: 600;
  color: var(--color-text-primary);
}

/* 区块标题 */
.section-title {
  font-family: var(--font-sans);
  font-size: var(--font-size-section);
  font-weight: 600;
  color: var(--color-text-primary);
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
  margin: 0 0 14px;
}

/* 正文 */
body,
p {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: 400;
  color: var(--color-text-secondary);
}

body {
  margin: 0;
  background: #f4f4f4;
}

/* 首页深色底：正文基色仍用首页 token，避免继承成浅灰 */
body.home {
  color: var(--home-text-main);
}

/* 辅助文字 / 标签 */
.helper-text,
.stat-label {
  font-family: var(--font-sans);
  font-size: var(--font-size-small);
  color: var(--color-text-tertiary);
}

/* 时间戳 / 元数据 */
.meta,
.timestamp {
  font-family: var(--font-sans);
  font-size: var(--font-size-tiny);
  color: var(--color-text-muted);
}

/* 数字 / 计数器：无衬线 + tabular-nums，与正文同族 */
.counter,
.tribute-number {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--color-accent);
}
body.subpage {
  background:
    radial-gradient(1320px 540px at 50% -180px, rgba(210, 229, 255, 0.62) 0%, rgba(210, 229, 255, 0) 72%),
    radial-gradient(980px 360px at 50% 120px, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(180deg, #fbfdff 0%, #f1f6fd 100%);
}
html.subpage-view body {
  background-color: #f4f8ff !important;
  background-image:
    radial-gradient(1320px 540px at 50% -180px, rgba(210, 229, 255, 0.62) 0%, rgba(210, 229, 255, 0) 72%),
    radial-gradient(980px 360px at 50% 120px, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(180deg, #fbfdff 0%, #f1f6fd 100%) !important;
}
/* Subpage text palette tuned for blue background */
/* 二级页顶区大域名：与紧凑顶栏 thedead. 同色（已定版 token，勿改为冷黑蓝） */
body.subpage .domain {
  color: var(--subpage-nav-brand-main);
}
body.subpage .tagline-cn { color: #556882; }
body.subpage .tagline-en,
body.subpage .tagline-sub { color: #6a7b93; }
body.subpage .header-inner { border-bottom-color: #cfd9ea; }
body.subpage .top-nav a { color: var(--subpage-nav-link); }
body.subpage .top-nav a:hover {
  color: var(--subpage-nav-link-hover);
  border-color: var(--subpage-nav-link-hover);
}
body.subpage .top-nav a.nav-brand-text:hover {
  color: var(--subpage-nav-brand-main);
  border-color: var(--subpage-nav-link-hover);
}
body.subpage .top-nav a.nav-brand-text:hover .domain-main {
  color: var(--subpage-nav-brand-main) !important;
}
body.subpage .top-nav a.nav-brand-text:hover .domain-accent {
  color: var(--subpage-nav-brand-accent) !important;
}
/* 二级页顶栏：当前栏目金色下划线（由 app.js 标记 .nav-subpage-link--active） */
body.subpage .top-nav a.nav-subpage-link--active,
.site-header--subpage-compact .nav-bar--subpage > a.nav-subpage-link--active,
.site-header--subpage-compact .nav-bar--subpage-fixed > a.nav-subpage-link--active {
  color: var(--subpage-nav-brand-accent);
  border-bottom-color: var(--subpage-nav-brand-accent);
  font-weight: 600;
}
body.subpage .top-nav a.nav-subpage-link--active:hover,
.site-header--subpage-compact .nav-bar--subpage > a.nav-subpage-link--active:hover,
.site-header--subpage-compact .nav-bar--subpage-fixed > a.nav-subpage-link--active:hover {
  color: var(--subpage-nav-brand-accent);
  border-bottom-color: var(--subpage-nav-brand-accent);
}
body.subpage .hero h1 {
  color: #2c2c2c;
  font-family: var(--font-serif);
}
body.subpage .hero p,
body.subpage .hero-desc,
body.subpage .page-subtitle,
body.subpage .page-note { color: #2c435f; }
body.subpage .page-intro { color: #2c435f; }
body.subpage .page-section h2,
body.subpage .page-card h3 {
  color: #2c435f;
  font-family: var(--font-serif);
}
body.subpage .page-section p,
body.subpage .page-card p,
body.subpage .page-list li { color: #2c435f; }
body.about-page.subpage .about-main .about-story p,
body.about-page.subpage .about-main .about-story .page-intro {
  color: #2c435f;
}
body.about-page.subpage .about-main .about-story strong {
  color: #2c435f;
  font-weight: 600;
}
body.subpage .hero,
body.subpage .card {
  background: transparent;
  border-color: rgba(214, 224, 239, 0.62);
  box-shadow: 0 10px 28px rgba(57, 84, 120, 0.08);
}
body.subpage .page-intro,
body.subpage .page-section p,
body.subpage .page-card p,
body.subpage .page-list li {
  color: #2c415d;
  line-height: 1.82;
}

/* English subpages：正文与导航为无衬线；主标题 / 区块标题为衬线。顶栏 thedead.wiki（.nav-brand-text）为品牌 Bodoni Fatface；页脚无衬线。 */
html[lang="en"].subpage-view body.subpage {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
}
html[lang="en"].subpage-view body.subpage .site-header .top-nav a:not(.nav-brand-text),
html[lang="en"].subpage-view body.subpage .lang-switch button {
  font-family: var(--font-sans);
}
html[lang="en"].subpage-view body.subpage footer.site-footer {
  font-family: var(--font-sans);
}
html[lang="en"].subpage-view body.subpage main h1,
html[lang="en"].subpage-view body.subpage .hero h1,
html[lang="en"].subpage-view body.subpage .page-header h1,
html[lang="en"].subpage-view body.subpage .subpage-hero h1,
html[lang="en"].subpage-view body.subpage .privacy-header h1,
html[lang="en"].subpage-view body.subpage .donate-header h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
}
html[lang="en"].subpage-view body.subpage main h2,
html[lang="en"].subpage-view body.subpage .page-section h2,
html[lang="en"].subpage-view body.subpage main .step-title {
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  font-size: calc(clamp(18px, 1.65vw, 24px) * 0.92);
}
html[lang="en"].subpage-view body.subpage main h3,
html[lang="en"].subpage-view body.subpage .page-card h3 {
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  font-size: calc(clamp(16px, 1.3vw, 20px) * 0.92);
}
html[lang="en"].subpage-view body.about-page.subpage .about-ref-title {
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  font-size: 20px;
}
html[lang="en"].subpage-view body.about-page.subpage .about-core-card h3 {
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  font-size: 18px !important;
}
html[lang="en"].subpage-view body.about-page.subpage .about-ref-epilogue h2 {
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  font-size: 20px !important;
}
html[lang="en"].subpage-view body.memorial-page .tribute-header {
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  font-size: calc(1.1rem * 0.92);
}

/* 避免「有/无纵向滚动条」时版心宽度变化导致二级顶栏在页面切换时横向跳动（纪念地图等全屏页尤为明显） */
html {
  scrollbar-gutter: stable;
}

/*
 * 手机端：隐藏页面纵向滚动条（仍可滚动）；桌面保留 scrollbar-gutter。
 * 注意：Chrome 121+（含多数安卓）若同时设置 scrollbar-width，会禁用 ::-webkit-scrollbar；
 * 而根滚动条上 scrollbar-width:none 在部分安卓机不生效 → 条还在。iOS 主要靠 webkit，故显得「苹果没了安卓还有」。
 * 策略：Blink/WebKit 只用伪元素；无 webkit 的引擎（如 Firefox）再用 scrollbar-width:none。
 */
@media (max-width: 860px) {
  html {
    scrollbar-gutter: auto;
    -ms-overflow-style: none;
  }
  body {
    -ms-overflow-style: none;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  ::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
  @supports not selector(::-webkit-scrollbar) {
    html,
    body {
      scrollbar-width: none;
    }
  }
}

.container {
  width: var(--layout-width);
  margin: 0 auto;
}

.site-header {
  background: transparent;
  border-bottom: 0;
  position: relative;
}
.top-brand {
  padding: 20px 0 10px;
  text-align: center;
  position: relative;
}
.domain {
  font-family: var(--font-brand-logo);
  font-size: clamp(28px, 5.2vw, 42px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #3b3b3b;
}
.domain .domain-main {
  color: inherit;
}
.domain .domain-accent {
  color: var(--color-accent);
  font-weight: 900;
}
body.about-page .domain {
  font-family: var(--font-brand-logo);
  font-weight: 900;
  letter-spacing: -0.2px;
}
body.about-page .domain .domain-main {
  color: var(--subpage-nav-ink) !important;
}
body.about-page .domain .domain-accent {
  color: var(--color-accent) !important;
  font-weight: 900;
}
body.about-page .tagline-cn,
body.about-page .tagline-en,
body.about-page .tagline-sub {
  font-family: var(--font-serif);
  letter-spacing: 0.1px;
}
.tagline-cn { margin-top: 6px; font-size: 24px; color: #6c6c6c; font-weight: 300; }
.tagline-en { margin-top: 6px; font-size: 18px; color: #8a8a8a; font-weight: 300; }
.tagline-sub { margin-top: 6px; font-size: 18px; color: #8a8a8a; font-weight: 300; }

.header-inner {
  display: block;
  padding: 10px 0 14px;
  border-bottom: 1.5px solid #cfd7e4;
  position: relative;
}

.brand { font-weight: 800; letter-spacing: 0.2px; }
.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* logo 与文字同为导航一员：单行 flex + 统一 gap，相邻项等间距 */
.top-nav.nav-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
  width: 100%;
  max-width: 100%;
}
.nav-bar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-bar__logo .nav-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}
.top-nav a {
  margin: 0 12px;
  text-decoration: none;
  color: #3d3d3d;
  font-size: 18px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.top-nav.nav-bar > a {
  margin: 0;
}
.top-nav.nav-bar .nav-bar__cluster > a {
  margin: 0;
}
.nav-brand-text {
  font-family: var(--font-brand-logo);
  font-weight: 900;
  letter-spacing: 0.02em;
}
.top-nav a:hover {
  color: #111;
  border-color: #111;
}
.top-nav.nav-bar .nav-bar__logo:hover {
  color: inherit;
  border-bottom-color: #111;
}
.lang-switch button {
  margin-left: 8px;
  padding: 6px 14px;
  border: 1px solid #bdb5aa;
  border-radius: 18px;
  background: #f2efe9;
  cursor: pointer;
  font-size: 13px;
}

/* Globe language picker (21 locales) */
.site-locale-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.site-locale-picker__trigger {
  margin: 0;
  padding: 0;
  width: var(--site-locale-trigger-size);
  height: var(--site-locale-trigger-size);
  min-width: var(--site-locale-trigger-size);
  min-height: var(--site-locale-trigger-size);
  flex-shrink: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(230, 235, 243, 0.28);
  background: rgba(248, 250, 252, 0.06);
  color: #c4c8d2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}
.site-locale-picker__trigger:hover,
.site-locale-picker.is-open .site-locale-picker__trigger {
  background: rgba(248, 250, 252, 0.18);
  color: #f2f5fa;
  border-color: rgba(238, 242, 250, 0.62);
}
.site-locale-picker__trigger:focus-visible {
  outline: 2px solid rgba(238, 242, 250, 0.38);
  outline-offset: 2px;
}
.site-locale-picker__icon {
  display: block;
  width: var(--site-locale-icon-size);
  height: var(--site-locale-icon-size);
}
.site-locale-picker__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1200;
  min-width: 168px;
  max-height: min(320px, 60vh);
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(230, 235, 243, 0.22);
  /* 首页深色菜单：实底不透底，避免统计大字等页面内容干扰选语言 */
  background-color: #121620;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-locale-picker__menu.site-locale-picker__menu--fixed,
.site-locale-picker__menu.site-locale-picker__menu--portaled {
  position: fixed;
  top: auto;
  z-index: 10150;
}
.site-locale-picker__option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background-color: #121620;
  color: #d8dee8;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
@media (max-width: 860px) {
  .site-locale-picker__option {
    font-size: 15px;
  }
}
.site-locale-picker__option:hover,
.site-locale-picker__option.is-active {
  background: #2a3344;
  color: #eef3fb;
}
.site-locale-picker__option.is-active {
  font-weight: 600;
}
html[dir="rtl"] .site-locale-picker__menu {
  right: auto;
  left: 0;
}
html[dir="rtl"] .site-locale-picker__option {
  text-align: right;
}
/* 二级页：语言下拉浅色系，实底不透底 */
body.subpage .site-locale-picker__menu {
  border: 1px solid rgba(186, 203, 226, 0.52);
  background-color: #f7fbff;
  box-shadow:
    0 2px 4px rgba(44, 67, 95, 0.06),
    0 8px 24px rgba(44, 67, 95, 0.1);
  scrollbar-color: rgba(148, 172, 206, 0.55) rgba(236, 244, 252, 0.65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.subpage .site-locale-picker__menu::-webkit-scrollbar {
  width: 6px;
}
body.subpage .site-locale-picker__menu::-webkit-scrollbar-track {
  background: rgba(236, 244, 252, 0.55);
  border-radius: 3px;
}
body.subpage .site-locale-picker__menu::-webkit-scrollbar-thumb {
  background: rgba(148, 172, 206, 0.48);
  border-radius: 3px;
}
body.subpage .site-locale-picker__option {
  color: var(--subpage-nav-link, #3a4759);
  background-color: #f7fbff;
}
body.subpage .site-locale-picker__option:hover,
body.subpage .site-locale-picker__option.is-active {
  background: #dce8f6;
  color: var(--subpage-nav-link-hover, #2a3545);
}
.site-auto-translate-pending .site-locale-picker__trigger {
  opacity: 0.72;
}

.header-right.top-right-tools {
  position: absolute;
  right: 0;
  top: 8px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.login-btn {
  text-decoration: none;
  color: #fff;
  background: #5a86ff;
  border-radius: 18px;
  padding: 5px 11px;
  font-size: 13px;
}
.top-right-tools .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.top-right-tools .site-locale-picker {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.header-right.top-right-tools .site-locale-picker__trigger {
  min-height: var(--site-locale-trigger-size);
  width: var(--site-locale-trigger-size);
  height: var(--site-locale-trigger-size);
}
.header-right.top-right-tools .site-locale-picker__icon {
  width: var(--site-locale-icon-size);
  height: var(--site-locale-icon-size);
}
@media (min-width: 861px) {
  /* 桌面：主页与二级页地球仪外圈/图标强制同尺寸（不依赖 DOM 挂载位置） */
  .home .site-locale-picker__trigger,
  body.subpage .site-locale-picker__trigger {
    width: var(--site-locale-trigger-size);
    height: var(--site-locale-trigger-size);
    min-width: var(--site-locale-trigger-size);
    min-height: var(--site-locale-trigger-size);
  }
  .home .site-locale-picker__icon,
  body.subpage .site-locale-picker__icon {
    width: var(--site-locale-icon-size);
    height: var(--site-locale-icon-size);
  }
  /* 首页 PC：只保留地球仪 + 头像（与手机一致），间距 16px */
  .home .header-right.top-right-tools .home-topbar-login,
  .home .header-right.top-right-tools .home-topbar-register,
  .home .home-topbar-login,
  .home .home-topbar-register {
    display: none !important;
  }
  .home .header-right.top-right-tools {
    gap: 16px;
  }
  /* 首页 PC：地球仪同色（覆盖全局 .login-btn 蓝底） */
  .home .header-right.top-right-tools .site-locale-picker__trigger {
    background: var(--home-topbar-control-bg);
    border: 1px solid var(--home-topbar-control-border);
    color: var(--home-topbar-control-fg);
    box-shadow: none;
  }
  .home .header-right.top-right-tools .site-locale-picker__trigger:hover,
  .home .header-right.top-right-tools .site-locale-picker.is-open .site-locale-picker__trigger {
    background: var(--home-topbar-control-bg-hover);
    border-color: var(--home-topbar-control-border-hover);
    color: var(--home-topbar-control-fg-hover);
  }
  .home .header-right.top-right-tools .site-locale-picker__icon {
    color: currentColor;
  }
}
.top-right-tools .lang-switch button {
  margin-left: 0;
  padding: 5px 11px;
}
.header-right.top-right-tools .login-btn,
.header-right.top-right-tools .lang-switch button {
  min-height: var(--top-right-control-height);
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.user-center {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}
a.user-center.user-center--locked {
  cursor: not-allowed;
  opacity: 0.72;
}
.home a.user-center.user-center--locked {
  opacity: 0.68;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e6e6e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.avatar--default-logo {
  background: transparent;
}
.avatar-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
/* 导航「用户中心」头像：外圈与右上角按钮同高 --top-right-control-height；圆内图按外圈比例缩放（32 圈 ≈31px 图，与曾用 28 圈 +27px 图 同比例） */
.user-center .avatar {
  overflow: hidden;
  flex-shrink: 0;
}
.header-right.top-right-tools .user-center .avatar {
  width: var(--top-right-control-height);
  height: var(--top-right-control-height);
}
.header-right.top-right-tools .user-center .avatar-logo {
  width: 31px;
  height: 31px;
  object-fit: contain;
  object-position: center;
}

main { padding: 26px 0; }

/*
 * Level-2 pages: use main.subpage-main / main.*-main (present in static HTML).
 * Do NOT rely only on html.subpage-view + body.subpage (added by JS) or rules won't match before JS or if scripts fail.
 */
main.subpage-main {
  /* Space below compact nav before first title; was 18px — a bit tight. */
  padding-top: 32px !important;
}
/*
 * 子页 <main class="container subpage-main …"> 与顶栏内 .container.header-inner 同宽。
 * 各页内联样式里常见的 max-width:1000px / 1280px 会窄于或宽于导航；此处用更高优先级统一对齐。
 */
main.container.subpage-main:not(.memorial-map-shell) {
  width: var(--layout-width);
  max-width: var(--layout-width);
  margin-left: auto;
  margin-right: auto;
}
main.subpage-main > .subpage-hero:first-child {
  margin-top: 0 !important;
}

/* 普通二级页：内容不足一屏时，让 footer 贴近视口底部（不影响地图/感谢页/登录页的专用布局） */
body.about-page.subpage:not(.memorial-map-page):not(.thanks-subpage):not(.auth-subpage) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body.about-page.subpage:not(.memorial-map-page):not(.thanks-subpage):not(.auth-subpage) > .site-header,
body.about-page.subpage:not(.memorial-map-page):not(.thanks-subpage):not(.auth-subpage) > .site-footer {
  flex-shrink: 0;
}
body.about-page.subpage:not(.memorial-map-page):not(.thanks-subpage):not(.auth-subpage) > main.subpage-main {
  flex: 1 1 auto;
  min-height: 0;
}

/* 纪念地图：全高主区夹在顶栏与页脚之间 */
body.about-page.memorial-map-page {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.about-page.memorial-map-page > main.memorial-map-shell {
  flex: 1 1 auto;
  min-height: 0;
  width: 100% !important;
  max-width: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 auto;
}
body.about-page.memorial-map-page > .site-footer {
  flex-shrink: 0;
}
@media (max-width: 860px) {
  html.subpage-view body.about-page.memorial-map-page,
  body.about-page.memorial-map-page {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  /* 手机端地图全屏沉浸：页脚收起，避免挤占地图高度 */
  body.about-page.memorial-map-page > .site-footer,
  body.about-page.memorial-map-page > footer.site-footer.subpage-footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.about-page.memorial-map-page > main.memorial-map-shell {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
}

/* Thanks donation: vertically center .thanks-card between header and footer */
body.about-page.thanks-subpage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body.about-page.thanks-subpage main.thanks-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-bottom: 40px !important;
  box-sizing: border-box;
}

/* Login / register（及同布局的 password-reset）：顶栏与页脚之间垂直居中卡片；内容过高时在 main 内滚动，避免撑开整页盖住页脚 */
body.about-page.auth-subpage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fdfcf8;
  background-image: none;
}
html.subpage-view body.about-page.auth-subpage {
  background-color: #fdfcf8 !important;
  background-image: none !important;
}
body.about-page.auth-subpage > .site-header {
  flex-shrink: 0;
}
body.about-page.auth-subpage > footer.site-footer {
  flex-shrink: 0;
}
body.about-page.auth-subpage > main.subpage-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* 与全站 --layout-width 一致，保证登录区与顶栏版心对齐 */
  width: var(--layout-width) !important;
  max-width: var(--layout-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 20px !important;
  padding-bottom: 28px !important;
  box-sizing: border-box;
}
body.about-page.auth-subpage > main.subpage-main .auth-card {
  margin-top: auto;
  margin-bottom: auto;
  flex-shrink: 0;
}

/* 登录/注册：两栏直接叠放，中间仅留 gap，无包裹层底色 */
body.about-page.auth-subpage > main.login-register-main,
body.about-page.auth-subpage > main.login-register-main .auth-page-stage,
body.about-page.auth-subpage > main.login-register-main .auth-page-stack {
  background: transparent !important;
}
body.about-page.auth-subpage > main.login-register-main .auth-page-stage {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 20px;
  box-sizing: border-box;
}
body.about-page.auth-subpage > main.login-register-main .auth-card {
  margin-top: 0;
  margin-bottom: 0;
  flex-shrink: 0;
  width: 100%;
}

/* PC：左文案区 + 右登录/注册卡（两列） */
@media (min-width: 861px) {
  body.about-page.auth-subpage > main.login-register-main {
    justify-content: center !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    overflow-y: hidden !important;
  }
  body.about-page.auth-subpage > main.login-register-main .auth-page-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px 40px;
    max-width: 960px;
    margin: 0 auto;
    max-height: var(--auth-stage-max-h, 100%);
    width: 100%;
  }
  body.about-page.auth-subpage > main.login-register-main .auth-brand-panel {
    min-width: 0;
    max-height: 100%;
    overflow: hidden;
  }
  body.about-page.auth-subpage > main.login-register-main .auth-panel {
    min-width: 0;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  body.about-page.auth-subpage > main.login-register-main .auth-card {
    max-width: 440px;
    max-height: 100%;
  }
}
@media (min-width: 861px) and (max-height: 920px) {
  body.about-page.auth-subpage > main.login-register-main {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  body.about-page.auth-subpage > main.login-register-main .auth-page-stage {
    gap: 16px 32px;
  }
}
@media (max-width: 860px) {
  body.about-page.auth-subpage > main.login-register-main .auth-page-stage {
    gap: 14px;
  }
}

/* 登录 / 注册 / 重置密码：提交按钮与 Tab — 与创建·编辑纪念页 CTA 描边胶囊一致 */
body.about-page.auth-subpage .btn-submit,
body.about-page.auth-subpage button.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 14px 36px;
  border-radius: 40px;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: #2c2c2c;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}
body.about-page.auth-subpage .btn-submit:hover:not(:disabled) {
  background: rgba(178, 156, 114, 0.14);
  border-color: #a47f4a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 36, 22, 0.1);
}
body.about-page.auth-subpage .btn-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}
body.about-page.auth-subpage .btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

body.about-page.auth-subpage .login-register-main .tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
  align-items: center;
  position: relative;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  width: 100%;
  gap: 0;
}
body.about-page.auth-subpage .login-register-main .tabs .tab-btn {
  justify-self: center;
  width: max-content;
  max-width: 100%;
}
body.about-page.auth-subpage .login-register-main #loginTab {
  grid-column: 1;
  grid-row: 1;
}
body.about-page.auth-subpage .login-register-main #registerTab {
  grid-column: 2;
  grid-row: 1;
}
body.about-page.auth-subpage .login-register-main .tab-logo {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  pointer-events: none;
}
body.about-page.auth-subpage .login-register-main .tab-btn {
  background: #fff;
  border: 1px solid #ddd6c8;
  border-radius: 999px;
  padding: 0 1.15rem;
  min-height: 36px;
  height: 36px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  color: #8a8478;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
}
body.about-page.auth-subpage .login-register-main .btn-submit,
body.about-page.auth-subpage .login-register-main button.btn-submit {
  min-height: 36px;
  height: 36px;
  padding: 0 28px;
  font-size: 0.94rem;
}
body.about-page.auth-subpage .login-register-main .tab-btn:hover {
  background: rgba(178, 156, 114, 0.08);
  border-color: #c4b49a;
  color: #5a5348;
}
body.about-page.auth-subpage .login-register-main .tab-btn.active {
  background: #a47f4a;
  border-color: #a47f4a;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(120, 90, 48, 0.22);
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  body.about-page.auth-subpage .btn-submit,
  body.about-page.auth-subpage .login-register-main .tab-btn {
    transition: border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
  }
  body.about-page.auth-subpage .btn-submit:hover:not(:disabled),
  body.about-page.auth-subpage .login-register-main .tab-btn:hover,
  body.about-page.auth-subpage .login-register-main .tab-btn.active {
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 860px) {
  body.about-page.auth-subpage .btn-submit,
  body.about-page.auth-subpage button.btn-submit {
    min-height: 44px;
    padding: 12px 24px;
    font-size: 0.9375rem;
  }
  body.about-page.auth-subpage .login-register-main .btn-submit,
  body.about-page.auth-subpage .login-register-main button.btn-submit,
  body.about-page.auth-subpage .login-register-main .tab-btn {
    min-height: 36px;
    height: 36px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 0.88rem;
  }
  body.about-page.auth-subpage .login-register-main .tab-btn {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Subpage primary titles */
main.subpage-main .page-header h1,
main.subpage-main .privacy-header h1,
main.subpage-main .disclaimer-header h1,
main.subpage-main .cookies-header h1,
main.subpage-main .copyright-header h1,
main.subpage-main > section.hero:first-child h1,
main.subpage-main > .subpage-hero h1,
main.subpage-main .thanks-card h1 {
  margin: 0 !important;
  font-family: var(--font-serif) !important;
  font-size: clamp(18px, 1.95vw, 25px) !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.35 !important;
  color: #2c2c2c !important;
}

/*
 * Subtitle under main h1 — 正文无衬线；15px、#6B6B6B、line-height 1.45（zh/en 同）。
 */
main.subpage-main .page-header p,
main.subpage-main > section.hero:first-child p,
main.subpage-main .thanks-card .subhead,
main.subpage-main .subpage-hero p {
  font-family: var(--font-sans) !important;
  font-size: var(--subpage-header-subtitle-size) !important;
  line-height: 1.45 !important;
  color: #6b6b6b !important;
  max-width: min(36rem, 92vw);
  margin: 12px auto 0;
}

main.subpage-main .privacy-header .privacy-meta,
main.subpage-main .privacy-main .privacy-meta,
main.subpage-main .disclaimer-header .disclaimer-meta,
main.subpage-main .disclaimer-main .disclaimer-meta,
main.subpage-main .cookies-header .cookies-meta,
main.subpage-main .cookies-main .cookies-meta,
main.subpage-main .copyright-header .copyright-meta,
main.subpage-main .about-ref-hero .about-ref-stats {
  font-family: var(--font-sans) !important;
  font-size: var(--subpage-header-subtitle-size) !important;
  line-height: 1.45 !important;
  color: #6b6b6b !important;
}

/* 版权声明页：副标题区与关于页 hero 统计行一致（渐变分隔线下方） */
main.subpage-main .copyright-header .copyright-meta {
  margin: 12px auto 0 !important;
  max-width: min(36rem, 92vw) !important;
  display: block !important;
  padding-top: 0 !important;
  border-top: none !important;
  letter-spacing: 0.2px !important;
}

/* Cookie / 隐私 / 免责声明：副标题区与版权声明页一致 */
main.subpage-main .cookies-header .cookies-meta,
main.subpage-main .cookies-main .cookies-meta,
main.subpage-main .privacy-header .privacy-meta,
main.subpage-main .privacy-main .privacy-meta,
main.subpage-main .disclaimer-header .disclaimer-meta,
main.subpage-main .disclaimer-main .disclaimer-meta {
  margin: 12px auto 0 !important;
  max-width: min(36rem, 92vw) !important;
  display: block !important;
  padding-top: 0 !important;
  border-top: none !important;
  letter-spacing: 0.2px !important;
}


/* 法律/政策类二级页（版权、隐私、免责、Cookies）— 与关于项目页定稿层级对齐 */

/* L0* 页头主标题 24px */
body.about-page main.subpage-main.copyright-main .copyright-header h1,
body.about-page main.subpage-main.privacy-main .privacy-header h1,
body.about-page main.subpage-main.disclaimer-main .disclaimer-header h1,
body.about-page main.subpage-main.cookies-main .cookies-header h1,
body.about-page main.subpage-main.onchain-main .page-header h1 {
  font-size: clamp(20px, 2.15vw, 24px) !important;
  letter-spacing: normal !important;
}

/* 记忆上链页 — 页头次标题（L0.5，与关于项目题记一致） */
main.onchain-main .page-header {
  text-align: center;
  margin-bottom: 36px;
}

main.onchain-main .page-header .onchain-page-subtitle,
main.onchain-main .page-header p.onchain-page-subtitle {
  font-family: var(--font-sans) !important;
  font-size: var(--subpage-header-subtitle-size) !important;
  line-height: 1.45 !important;
  color: #6b6b6b !important;
  letter-spacing: 0.2px !important;
  max-width: min(36rem, 92vw) !important;
  margin: 12px auto 0 !important;
}

html[lang="en"] main.onchain-main .page-header .onchain-page-subtitle,
html[lang="en"] main.onchain-main .page-header p.onchain-page-subtitle {
  max-width: none !important;
  white-space: nowrap !important;
}

/* L1 章节标题 + 短竖条（法律/政策类二级页，与关于项目 L1 对齐） */
main.subpage-main.copyright-main .section-title,
main.subpage-main.privacy-main .privacy-section h2,
main.subpage-main.disclaimer-main .disclaimer-section h2,
main.subpage-main.cookies-main .cookies-section h2 {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: none;
  position: relative;
  font-family: var(--font-serif);
  font-size: var(--subpage-l1-size);
  font-weight: 500;
  color: #2f2c25;
  line-height: 1.35;
}

main.subpage-main.copyright-main .section-title::before,
main.subpage-main.privacy-main .privacy-section h2::before,
main.subpage-main.disclaimer-main .disclaimer-section h2::before,
main.subpage-main.cookies-main .cookies-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.175em;
  width: 4px;
  height: 1em;
  background: var(--color-accent);
}

html[lang="en"].subpage-view body.subpage main.subpage-main.copyright-main .section-title,
html[lang="en"].subpage-view body.subpage main.subpage-main.privacy-main .privacy-section h2,
html[lang="en"].subpage-view body.subpage main.subpage-main.disclaimer-main .disclaimer-section h2,
html[lang="en"].subpage-view body.subpage main.subpage-main.cookies-main .cookies-section h2 {
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  font-size: var(--subpage-l1-size);
}

/* L2 小节标题 h3 */
main.subpage-main.privacy-main .privacy-section h3,
main.subpage-main.disclaimer-main .disclaimer-section h3,
main.subpage-main.cookies-main .cookies-section h3 {
  margin: 22px 0 10px;
  font-family: var(--font-serif);
  font-size: var(--subpage-l2-size);
  font-weight: 500;
  color: #2f2c25;
  line-height: 1.35;
}

html[lang="en"].subpage-view body.subpage main.subpage-main.privacy-main .privacy-section h3,
html[lang="en"].subpage-view body.subpage main.subpage-main.disclaimer-main .disclaimer-section h3,
html[lang="en"].subpage-view body.subpage main.subpage-main.cookies-main .cookies-section h3 {
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  font-size: var(--subpage-l2-size);
}

/* L3 正文 */
main.subpage-main.copyright-main .section-content,
main.subpage-main.copyright-main .section-content p,
main.subpage-main.copyright-main .section-content li,
main.subpage-main.privacy-main .privacy-section p,
main.subpage-main.privacy-main .privacy-section li,
main.subpage-main.disclaimer-main .disclaimer-section p,
main.subpage-main.disclaimer-main .disclaimer-section li,
main.subpage-main.cookies-main .cookies-section p,
main.subpage-main.cookies-main .cookies-section li {
  font-family: var(--font-sans);
  font-size: var(--subpage-l3-size);
  line-height: 1.66;
  color: #4a4a4a;
}

main.subpage-main.copyright-main .section-content p,
main.subpage-main.privacy-main .privacy-section p,
main.subpage-main.disclaimer-main .disclaimer-section p,
main.subpage-main.cookies-main .cookies-section p {
  margin: 0 0 12px;
}

main.subpage-main.privacy-main .privacy-section ul,
main.subpage-main.privacy-main .privacy-section ol,
main.subpage-main.disclaimer-main .disclaimer-section ul,
main.subpage-main.disclaimer-main .disclaimer-section ol,
main.subpage-main.cookies-main .cookies-section ul,
main.subpage-main.cookies-main .cookies-section ol {
  margin: 10px 0 16px 24px;
}

main.subpage-main.privacy-main .privacy-section li,
main.subpage-main.disclaimer-main .disclaimer-section li,
main.subpage-main.cookies-main .cookies-section li {
  margin: 8px 0;
}

main.subpage-main.privacy-main .privacy-section strong,
main.subpage-main.disclaimer-main .disclaimer-section strong,
main.subpage-main.cookies-main .cookies-section strong,
main.subpage-main.copyright-main .section-content strong {
  font-family: var(--font-serif);
  font-size: var(--subpage-l2-size);
  font-weight: 600;
  line-height: 1.35;
  color: #3c3c3c;
}

/* L4 强调框 / L5 备注 */
main.subpage-main.privacy-main .privacy-section .highlight,
main.subpage-main.disclaimer-main .disclaimer-section .highlight,
main.subpage-main.disclaimer-main .highlight,
main.subpage-main.cookies-main .cookies-section .highlight {
  font-size: var(--subpage-l3-size);
  line-height: 1.66;
}

main.subpage-main.privacy-main .privacy-section p.small-note,
main.subpage-main.disclaimer-main .disclaimer-section p.small-note {
  font-size: 13px;
  color: #7a7a7a;
  line-height: 1.65;
  margin: 28px 0 0;
}

main.subpage-main.cookies-main .cookies-section a {
  color: #9a7f4e;
  font-weight: 500;
  text-decoration: none;
}

main.subpage-main.cookies-main .cookies-section a:hover {
  color: #a47f4a;
}

/* 隐私 / 免责 / Cookie 章节卡片悬停浮起（与 about-legal-box 一致） */
main.subpage-main.privacy-main .privacy-section,
main.subpage-main.disclaimer-main .disclaimer-section,
main.subpage-main.cookies-main .cookies-section {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  transform-origin: center top;
}

main.subpage-main.privacy-main .privacy-section:hover,
main.subpage-main.privacy-main .privacy-section:focus-within,
main.subpage-main.disclaimer-main .disclaimer-section:hover,
main.subpage-main.disclaimer-main .disclaimer-section:focus-within,
main.subpage-main.cookies-main .cookies-section:hover,
main.subpage-main.cookies-main .cookies-section:focus-within {
  transform: translateY(-3px);
  border-color: #cdb88d;
  box-shadow: 0 14px 34px rgba(44, 36, 22, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  main.subpage-main.privacy-main .privacy-section,
  main.subpage-main.disclaimer-main .disclaimer-section,
  main.subpage-main.cookies-main .cookies-section {
    transition: none;
  }

  main.subpage-main.privacy-main .privacy-section:hover,
  main.subpage-main.privacy-main .privacy-section:focus-within,
  main.subpage-main.disclaimer-main .disclaimer-section:hover,
  main.subpage-main.disclaimer-main .disclaimer-section:focus-within,
  main.subpage-main.cookies-main .cookies-section:hover,
  main.subpage-main.cookies-main .cookies-section:focus-within {
    transform: none;
  }
}

/* 版权声明页：表格 — L5 15px（较正文 L3 略小一档） */
main.subpage-main.copyright-main .cert-table th,
main.subpage-main.copyright-main .cert-table td {
  font-size: 15px;
  line-height: 1.55;
}

main.subpage-main.copyright-main .cert-table th {
  font-weight: 600;
}

main.subpage-main.copyright-main .section-content code {
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
}

main.subpage-main.copyright-main .section {
  margin-bottom: 38px;
}

main.subpage-main.copyright-main .section:last-child {
  margin-bottom: 0;
}

/* 法律/政策页 L0.5 题记：与关于项目 about-ref-stats 一致（副标题 token +1px） */
main.subpage-main .copyright-header .copyright-meta,
main.subpage-main .privacy-header .privacy-meta,
main.subpage-main.privacy-main .privacy-meta,
main.subpage-main .disclaimer-header .disclaimer-meta,
main.subpage-main.disclaimer-main .disclaimer-meta,
main.subpage-main .cookies-header .cookies-meta,
main.subpage-main.cookies-main .cookies-meta,
main.onchain-main .page-header .onchain-page-subtitle,
main.onchain-main .page-header p.onchain-page-subtitle,
main.howto-main .page-header p,
main.memorial-main .page-header p {
  font-size: calc(var(--subpage-header-subtitle-size) + 1px) !important;
}

/* 如何创建纪念页 — 页头居中 + 与关于项目页定稿层级对齐 */
main.howto-main .page-header {
  text-align: center;
  margin-bottom: 36px;
}

body.about-page main.subpage-main.howto-main .page-header h1 {
  font-size: clamp(20px, 2.15vw, 24px) !important;
  letter-spacing: normal !important;
}

main.howto-main .page-header p {
  font-family: var(--font-sans) !important;
  font-size: var(--subpage-header-subtitle-size) !important;
  line-height: 1.5 !important;
  color: #6b6b6b !important;
  max-width: 600px !important;
  margin: 10px auto 0 !important;
}

main.howto-main .page-header p:first-of-type {
  white-space: nowrap !important;
  max-width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

main.howto-main .page-header p:last-of-type:not(:first-of-type) {
  white-space: normal !important;
  max-width: 600px !important;
  overflow-x: visible;
}

main.contact-main .page-header p.contact-page-subtitle {
  white-space: nowrap !important;
  max-width: none !important;
  overflow-x: visible;
}

main.howto-main .step-title {
  font-family: var(--font-serif);
  font-size: var(--subpage-l1-size) !important;
  font-weight: 500;
  line-height: 1.35;
  color: #2f2c25;
}

html[lang="en"].subpage-view body.subpage main.howto-main .step-title {
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  font-size: var(--subpage-l1-size) !important;
}

main.howto-main .step-content,
main.howto-main .step-content p,
main.howto-main .step-content li {
  font-family: var(--font-sans);
  font-size: var(--subpage-l3-size) !important;
  line-height: 1.66;
  color: #4a4a4a;
}

main.howto-main .step-content strong {
  font-family: var(--font-serif);
  font-size: var(--subpage-l2-size);
  color: #3c3c3c;
  font-weight: 600;
  line-height: 1.35;
}

/* 纪念详情页 — 页头主标题（桌面；手机见 @media max-width:860px token） */
@media (min-width: 861px) {
  body.about-page main.subpage-main.memorial-main .page-header h1 {
    font-size: clamp(20px, 2.15vw, 24px) !important;
    letter-spacing: normal !important;
  }
}

main.memorial-main .page-header {
  text-align: center;
  margin-bottom: 36px;
}

main.memorial-main .page-header p {
  font-family: var(--font-sans) !important;
  font-size: var(--subpage-header-subtitle-size) !important;
  line-height: 1.45 !important;
  color: #6b6b6b !important;
  letter-spacing: 0.2px;
  max-width: min(36rem, 92vw) !important;
  margin: 12px auto 0 !important;
}

main.memorial-main .page-header p:first-of-type:not(.memorial-page-hero__quote) {
  white-space: nowrap !important;
  max-width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

html[lang="en"] main.memorial-main .page-header p:first-of-type:not(.memorial-page-hero__quote) {
  white-space: normal !important;
  max-width: min(36rem, 92vw) !important;
  overflow-x: visible;
}

main.memorial-main .page-header p:last-of-type:not(:first-of-type) {
  white-space: normal !important;
  max-width: min(36rem, 92vw) !important;
  overflow-x: visible;
}

/* 纪念详情页（memorial.html）页头引言：与版心同宽；PC 单行展示 */
main.memorial-main .page-header.memorial-page-hero p.memorial-page-hero__quote {
  max-width: min(var(--layout-width), 100%) !important;
}

@media (min-width: 861px) {
  main.memorial-main .page-header.memorial-page-hero p.memorial-page-hero__quote {
    white-space: nowrap !important;
    overflow: visible !important;
  }
}

/* 创建/编辑纪念页：区块标题与表单层级 */
main.memorial-main .section-title {
  font-family: var(--font-serif);
  font-size: var(--subpage-l1-size) !important;
  font-weight: 500;
  line-height: 1.35;
  color: #2f2c25;
  margin-bottom: 14px;
}
main.memorial-main .section-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: #7a7a7a;
}
main.memorial-main label {
  font-size: var(--font-size-small);
}
main.memorial-main input,
main.memorial-main select,
main.memorial-main textarea {
  font-size: 15px;
}

/*
 * 二级页 .page-header 分隔线（统一视觉）
 * 关于页主标题下方、收束区上方，及隐私/免责等页头副标题下方均用此渐变线。
 */
main.subpage-main .page-header .memorial-header-divider,
main.subpage-main .page-header .page-header-divider,
main.subpage-main .about-ref-hero .memorial-header-divider,
main.subpage-main .about-ref-hero .page-header-divider,
main.subpage-main .copyright-header .page-header-divider,
main.subpage-main .cookies-header .page-header-divider,
main.subpage-main .privacy-header .page-header-divider,
main.subpage-main .disclaimer-header .page-header-divider,
main.subpage-main .about-ref-epilogue .page-header-divider,
main.subpage-main .about-ref-epilogue .about-ref-epilogue-line {
  width: min(560px, 82%);
  height: 1px;
  margin: 12px auto 10px;
  padding: 0;
  border: 0;
  background: linear-gradient(
    90deg,
    rgba(183, 110, 110, 0),
    rgba(183, 110, 110, 0.38),
    rgba(183, 110, 110, 0)
  );
}

body.about-page .about-ref-epilogue .page-header-divider,
body.about-page .about-ref-epilogue .about-ref-epilogue-line {
  margin: 14px auto 28px;
}

body.about-page a.about-legal-prohibition-more,
body.about-page a.about-legal-prohibition-more:hover,
body.about-page a.about-legal-prohibition-more:focus-visible {
  text-decoration: none !important;
}

main.contact-main .contact-card h3 {
  font-family: var(--font-serif);
  font-size: var(--subpage-l2-size);
  font-weight: 500;
  line-height: 1.35;
  color: #2f2c25;
}

main.contact-main .contact-card p,
main.contact-main .contact-link {
  font-size: var(--subpage-l3-size);
  line-height: 1.66;
  color: #4a4a4a;
}

/* Section headings — 区块次标题，明显小于页面 h1 */
main.contact-main .form-card h2,
main.faq-main .contact-box h3 {
  font-family: var(--font-serif);
  font-size: var(--subpage-l1-size) !important;
  line-height: 1.35;
  font-weight: 500;
}

main.donate-main .donation-card h3,
main.thanks-main .impact-box h3,
main.about-main .about-core-card h3 {
  font-family: var(--font-serif);
  font-size: var(--font-size-subsection) !important;
  line-height: 1.35;
  font-weight: 500;
}

/* 记忆上链 — 四特征卡（L2 / L3，与关于页 .about-core-card 一致） */
main.onchain-main .feature-card h3 {
  font-family: var(--font-serif) !important;
  font-size: var(--subpage-l2-size) !important;
  font-weight: 500;
  line-height: 1.35;
  color: #2f2c25;
  margin: 0 0 8px;
}

main.onchain-main .feature-card p {
  font-family: var(--font-sans) !important;
  font-size: var(--subpage-l3-size) !important;
  line-height: 1.66;
  color: #4a4a4a;
  margin: 0;
}

html[lang="en"] main.onchain-main .feature-card h3 {
  font-size: var(--subpage-l2-size) !important;
  letter-spacing: 0.02em;
}

/* 记忆上链 — 区块标题 h2（L1） */
main.onchain-main .platforms-section h2,
main.onchain-main .guide-section h2 {
  font-family: var(--font-serif) !important;
  font-size: var(--subpage-l1-size) !important;
  font-weight: 500;
  line-height: 1.35;
  color: #2f2c25;
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: none;
  position: relative;
}

main.onchain-main .guide-section h2 {
  margin-bottom: 20px;
}

main.onchain-main .platforms-section h2::before,
main.onchain-main .guide-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.175em;
  width: 4px;
  height: 1em;
  background: var(--color-accent);
}

html[lang="en"] main.onchain-main .platforms-section h2,
html[lang="en"] main.onchain-main .guide-section h2 {
  font-size: var(--subpage-l1-size) !important;
  letter-spacing: 0.02em;
}

main.onchain-main .platforms-section > p,
main.onchain-main .step-content p,
main.onchain-main .step-content ol,
main.onchain-main .step-content ul,
main.onchain-main .step-content li {
  font-family: var(--font-sans);
  font-size: var(--subpage-l3-size);
  line-height: 1.66;
  color: #4a4a4a;
}

main.onchain-main .step-content > h3,
main.onchain-main .step-content > h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--subpage-l2-size);
  line-height: 1.35;
  color: #2f2c25;
}

/* FAQ 折叠标题：L2 */
main.faq-main .faq-question,
main.faq-main .faq-question .faq-question-text {
  font-family: var(--font-serif);
  font-size: var(--subpage-l2-size) !important;
  line-height: 1.35;
  font-weight: 600;
  color: #2f2c25;
}

/* 次标题下正文：比区块标题再小一档 */
main.about-main .about-ref-body,
main.about-main .about-ref-body p,
main.about-main .about-core-card p,
main.donate-main .donation-card p,
main.contact-main .contact-card p,
main.subpage-main.useradmin-main .content-card {
  font-size: var(--font-size-body-secondary);
  line-height: 1.65;
  color: #4a4a4a;
}

/* FAQ 展开正文：L3 */
main.faq-main .faq-answer,
main.faq-main .faq-answer p,
main.faq-main .faq-answer li,
main.faq-main .faq-answer ol,
main.faq-main .faq-answer ul,
main.faq-main .faq-answer figcaption,
main.faq-main .faq-answer .faq-answer-summary,
main.faq-main .faq-answer .faq-answer-section-gap,
main.faq-main .faq-answer strong,
main.faq-main .faq-answer a,
main.faq-main .faq-answer code {
  font-size: var(--subpage-l3-size) !important;
  line-height: 1.66;
  color: #4a4a4a;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 860px) {
  main.faq-main .faq-answer,
  main.faq-main .faq-answer p,
  main.faq-main .faq-answer li,
  main.faq-main .faq-answer ol,
  main.faq-main .faq-answer ul,
  main.faq-main .faq-answer figcaption,
  main.faq-main .faq-answer .faq-answer-summary,
  main.faq-main .faq-answer .faq-answer-section-gap,
  main.faq-main .faq-answer strong,
  main.faq-main .faq-answer a,
  main.faq-main .faq-answer code {
    line-height: 1.62;
  }
}

main.subpage-main.useradmin-main .memorial-item,
main.subpage-main.useradmin-main .tribute-item,
main.subpage-main.useradmin-main .donation-item,
main.subpage-main.useradmin-main .successor-item,
main.subpage-main.useradmin-main .privacy-row,
main.subpage-main.useradmin-main .family-tree-preview {
  font-size: inherit;
  line-height: 1.6;
}

main.subpage-main.useradmin-main .card-title {
  font-size: var(--font-size-card-title);
  font-weight: 600;
  line-height: 1.35;
  color: #2f2c25;
}

main.subpage-main.useradmin-main .section-sub {
  font-size: var(--font-size-small);
  line-height: 1.55;
  color: #8a8a8a;
}

main.subpage-main.useradmin-main .memorial-item strong,
main.subpage-main.useradmin-main .tribute-item strong,
main.subpage-main.useradmin-main .donation-item strong,
main.subpage-main.useradmin-main .successor-item strong,
main.subpage-main.useradmin-main .privacy-row strong,
main.subpage-main.useradmin-main .account-action-row strong {
  font-size: var(--font-size-body);
  font-weight: 600;
  color: #2c2c2c;
}

html[lang="en"] main.contact-main .form-card h2,
html[lang="en"] main.faq-main .contact-box h3 {
  font-size: var(--subpage-l1-size) !important;
  letter-spacing: 0.02em;
}

html[lang="en"] main.donate-main .donation-card h3,
html[lang="en"] main.thanks-main .impact-box h3 {
  font-size: var(--subpage-l2-size) !important;
  letter-spacing: 0.02em;
}

/* Strip default h1 margins in title stacks */
main.subpage-main .page-header h1,
main.subpage-main .privacy-header h1,
main.subpage-main .disclaimer-header h1,
main.subpage-main .thanks-card h1 {
  margin: 0;
}

.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 24px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}
.hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
}
.hero p { margin: 0; color: var(--muted); }
.hero-home { background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%); }
.banner-center { text-align: center; }
.big-number {
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #6c6a65;
}
.legacy-line {
  font-size: clamp(12px, 1.4vw, 20px);
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  max-width: min(960px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(12px, 2.5vw);
  padding-right: max(12px, 2.5vw);
  box-sizing: border-box;
  overflow-wrap: break-word;
  opacity: 0.92;
}
html[lang="en"] .legacy-line {
  font-size: clamp(11px, 1.12vw, 15px);
  line-height: 1.22;
  max-width: min(920px, 100%);
  padding-left: max(14px, 3vw);
  padding-right: max(14px, 3vw);
  white-space: pre-line;
  display: block;
  overflow: visible;
}
@media (min-width: 1160px) {
  .legacy-line {
    white-space: nowrap;
    max-width: none;
    overflow-wrap: normal;
  }
  html[lang="en"] .legacy-line {
    max-width: none;
    white-space: pre-line;
    overflow-wrap: normal;
  }
}
.banner-center h1 {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2.4vw, 26px);
  margin: 2px 0 0;
}
.quote {
  margin-top: 8px !important;
  font-size: 15px;
  color: #4d4d4d !important;
}
.population-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}
.population-item {
  text-align: center;
}
.population-value {
  font-family: var(--font-sans);
  font-size: clamp(17px, 2.05vw, 26px);
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #202020;
  font-variant-numeric: tabular-nums;
}
.population-label {
  margin-top: 8px;
  font-size: clamp(14px, 1.45vw, 20px);
  font-weight: 500;
  color: #1b1b1b;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 10px;
}
.hero-desc { margin-top: 12px !important; line-height: 1.65; }
.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}
.hero-panel {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed #d6e4ff;
  padding: 12px 0;
}
.metric:last-child { border-bottom: 0; }
.metric strong { color: var(--brand); font-size: 20px; }
.metric span { color: var(--muted); font-size: 13px; margin-left: 12px; text-align: right; }

.card {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}
/* Reusable template for level-2 and level-3 content pages */
.subpage-main {
  padding-bottom: 8px;
}
.subpage-hero {
  margin-top: 14px;
}
.subpage-hero--decorated {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 -1px 0 rgba(124, 154, 204, 0.14) inset,
    0 8px 22px rgba(57, 84, 120, 0.06);
}
.subpage-hero--decorated::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(96, 141, 223, 0.42) 0%, rgba(144, 179, 241, 0.3) 40%, rgba(96, 141, 223, 0.36) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.95;
}
.subpage-hero--decorated::after {
  content: none;
}
.subpage-hero--decorated > * {
  position: relative;
  z-index: 1;
}
.page-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 8px;
}
.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.page-intro {
  margin: 10px 0 0;
  color: #263040;
  line-height: 1.8;
}
.page-section {
  margin-top: 18px;
}
.page-section h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: var(--font-size-section);
  color: #172236;
}
.page-section p {
  margin: 0;
  line-height: 1.75;
  color: #2f3d53;
  font-size: var(--font-size-body-secondary);
}
.page-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.page-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: var(--font-size-subsection);
  color: #1a2740;
}
.page-card p {
  margin: 0;
  line-height: 1.75;
  color: #30405a;
  font-size: var(--font-size-body-secondary);
}
.page-list {
  margin: 8px 0 0;
  padding-left: 1.2em;
}
.page-list li {
  margin: 7px 0;
  line-height: 1.65;
  color: #2f3d53;
}
.page-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
body.about-page .about-main .about-hero {
  margin-top: 6px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: transparent !important;
}
body.about-page .about-main .about-hero-headline {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
body.about-page .about-main .about-hero h1 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.12;
}
body.about-page .about-main .about-hero .page-subtitle {
  margin: 0;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  color: #3a4f6d;
}
body.about-page .about-main .about-story h2,
body.about-page .about-main .about-story h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  color: #2c435f;
}
body.about-page .about-main .about-story h3 {
  margin-top: 24px;
  font-size: clamp(17px, 1.35vw, 21px);
}
body.about-page .about-main .about-divider {
  height: 1px;
  margin: 18px 0 22px;
  background: linear-gradient(90deg, rgba(204, 218, 238, 0) 0%, rgba(204, 218, 238, 0.78) 22%, rgba(204, 218, 238, 0.78) 78%, rgba(204, 218, 238, 0) 100%);
}
body.about-page .about-main .about-grid {
  margin-top: 16px;
}
body.about-page .about-main > .card:last-of-type {
  margin-bottom: 14px;
}
body.about-page .about-main .about-story > h2 {
  margin: 0 0 10px;
  font-size: clamp(18px, 1.6vw, 24px);
}
body.about-page .about-main .about-story > h3 {
  margin: 20px 0 10px;
  font-size: clamp(17px, 1.35vw, 21px);
}
.about-number-list {
  margin: 10px 0 0;
  padding-left: 1.15em;
}
.about-number-list > li {
  margin: 0 0 14px;
}
body.about-page .about-number-list h4 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.2vw, 18px);
  color: #2c435f;
}
body.about-page .about-main .about-quote {
  margin: 10px 0 0;
  font-style: italic;
  color: rgba(44, 67, 95, 0.86);
}
body.about-page .about-main .page-list li::marker {
  color: #8fa4bf;
}
/* About page visual refresh: warm ivory + muted gold */
body.about-page.subpage {
  background: #fdfcf8;
}
html.subpage-view body.about-page.subpage {
  background-color: #fdfcf8 !important;
  background-image: none !important;
}
html.subpage-view body.about-page.subpage .subpage-footer {
  background: #f7f4ed;
  border-top: none;
}
html.subpage-view body.about-page.subpage .subpage-footer .footer-note,
html.subpage-view body.about-page.subpage .subpage-footer .footer-line--text,
html.subpage-view body.about-page.subpage .subpage-footer .footer-line--journey,
html.subpage-view body.about-page.subpage .subpage-footer .footer-line--bottom span,
html.subpage-view body.about-page.subpage .subpage-footer .footer-journey__lead,
html.subpage-view body.about-page.subpage .subpage-footer .footer-journey__link,
html.subpage-view body.about-page.subpage .subpage-footer .footer-journey__here {
  color: #5d584f;
}
html.subpage-view body.about-page.subpage .subpage-footer .footer-journey__here,
html.subpage-view body.about-page.subpage .subpage-footer .footer-journey__here > span:not(.footer-journey__here-mark) {
  color: color-mix(in srgb, #5d584f 90%, #ffffff 10%);
  font-weight: 700;
  opacity: 1;
}
html.subpage-view body.about-page.subpage .subpage-footer .footer-line--bottom a {
  color: #5d584f;
}
html.subpage-view body.about-page.subpage .subpage-footer .footer-line--bottom a:hover,
html.subpage-view body.about-page.subpage .subpage-footer .footer-line--bottom a:focus-visible,
html.subpage-view body.about-page.subpage .subpage-footer .footer-line--bottom a:active,
html.subpage-view body.about-page.subpage .subpage-footer .footer-journey__link:hover,
html.subpage-view body.about-page.subpage .subpage-footer .footer-journey__link:focus-visible {
  color: #a47f4a;
}
body.about-page.subpage .about-main .about-hero {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e6e4df;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(63, 55, 40, 0.07);
}
body.about-page.subpage .about-main .about-story {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #efede8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 12px 26px rgba(63, 55, 40, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.about-page.subpage .about-main .about-story > h2 {
  border-left: 4px solid var(--color-accent);
  padding-left: 14px;
}
body.about-page.subpage .about-main .about-story h2,
body.about-page.subpage .about-main .about-story h3,
body.about-page.subpage .about-main .about-story h4 {
  font-family: var(--font-serif);
  color: #2f2c25;
}
body.about-page.subpage .about-main .about-story p,
body.about-page.subpage .about-main .about-story .page-intro,
body.about-page.subpage .about-main .about-story .page-list li {
  color: #48433a;
}
body.about-page.subpage .about-main .about-divider {
  background: linear-gradient(
    90deg,
    rgba(178, 156, 114, 0) 0%,
    rgba(178, 156, 114, 0.85) 22%,
    rgba(178, 156, 114, 0.85) 78%,
    rgba(178, 156, 114, 0) 100%
  );
}
body.about-page.subpage .about-main .about-number-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-left: 0;
  margin-top: 14px;
}
body.about-page.subpage .about-main .about-number-list > li {
  list-style-position: inside;
  margin: 0;
  padding: 14px 14px 10px;
  border-radius: 12px;
  border: 1px solid #e8e3d8;
  background: #fffdfa;
}
body.about-page.subpage .about-main .about-number-list > li h4 {
  color: #4f4a42;
}
body.about-page.subpage .about-main .about-number-list .page-list {
  margin-top: 8px;
}
body.about-page.subpage .about-main .about-quote {
  color: #5a5142;
}
body.about-page.subpage .about-main .page-list li::marker {
  color: #a78549;
}
body.about-page .about-ref-main {
  max-width: 1080px;
  padding-top: 20px;
  padding-bottom: 18px;
}
body.about-page .about-ref-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px;
}
body.about-page .about-ref-quote {
  margin: 0;
  font-size: clamp(21px, 2.15vw, 25px);
  line-height: 1.35;
  font-weight: 500;
  font-family: var(--font-serif);
  color: #2c2c2c;
}
/* PC：hero 860px 装不下整句宣言（约 40 字 × 24–25px），笔记本两侧空、句末却被挤断行 */
@media (min-width: 861px) {
  body.about-page .about-ref-hero {
    max-width: min(var(--layout-max, 1080px), 100%);
  }
  body.about-page .about-ref-quote {
    max-width: none;
  }
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page .about-ref-quote {
    white-space: nowrap;
  }
}

/* 关于页 L0.5 — 题记（比全站副标题 token 大 1px） */
body.about-page .about-ref-stats,
main.subpage-main.about-main .about-ref-hero .about-ref-stats,
main.subpage-main.about-main .about-ref-hero .about-ref-stats * {
  font-size: calc(var(--subpage-header-subtitle-size) + 1px) !important;
}

body.about-page .about-manifesto-box .about-ref-body,
body.about-page .about-manifesto-box .about-ref-body p {
  font-family: "Noto Serif SC", "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 18.5px;
  letter-spacing: 0.02em;
  line-height: 1.72;
  color: #3d3931;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="en"].subpage-view body.about-page .about-manifesto-box .about-ref-body,
html[lang="en"].subpage-view body.about-page .about-manifesto-box .about-ref-body p {
  font-family: var(--font-sans) !important;
  font-size: 18.5px !important;
  line-height: 1.72;
  letter-spacing: normal;
  color: #4a4a4a;
}

body.about-page .about-ref-stats {
  margin: 12px auto 0;
  max-width: min(36rem, 92vw);
  padding-top: 0;
  border-top: none;
  color: #6b6b6b;
  font-family: var(--font-sans);
  line-height: 1.45;
  letter-spacing: 0.2px;
  display: block;
}

body.about-page .about-ref-stats * {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

body.about-page .about-ref-stats strong {
  color: var(--color-accent);
  font-weight: 600;
}
body.about-page .about-ref-section {
  margin-bottom: 38px;
}
body.about-page #ethics-principles {
  scroll-margin-top: 5.5rem;
}
body.about-page .about-ref-title {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: none;
  position: relative;
  font-family: var(--font-serif);
  font-size: 20px;
  color: #2f2c25;
  font-weight: 500;
  line-height: 1.35;
}

body.about-page .about-ref-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.175em;
  width: 4px;
  height: 1em;
  background: var(--color-accent);
}

body.about-page .about-legal-box:not(.about-manifesto-box) .about-ref-body {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.about-page .about-ref-body {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.about-page .about-manifesto-box .about-ref-body {
  color: #3d3931;
  line-height: 1.72;
}

body.about-page .about-ref-body p {
  margin: 0 0 12px;
}

body.about-page .about-legal-box:not(.about-manifesto-box) .about-ref-body,
body.about-page .about-legal-box:not(.about-manifesto-box) .about-ref-body p,
body.about-page .about-legal-box:not(.about-manifesto-box) .about-legal-list,
body.about-page .about-legal-box:not(.about-manifesto-box) .about-legal-list li {
  font-family: var(--font-sans);
  line-height: 1.66;
  color: #4a4a4a;
}

/* 关于页 — 栏框内同级：L2 小标题 / L3 正文（各板块统一，勿按 section id 单独设字号） */
body.about-page main.about-ref-main .about-core-card h3,
body.about-page main.about-ref-main .about-brand-list > li > a,
body.about-page main.about-ref-main .about-legal-box .about-ref-body strong {
  font-family: var(--font-serif);
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.35;
}

body.about-page main.about-ref-main .about-brand-list .about-brand-more {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.45;
}

body.about-page main.about-ref-main .about-core-card p,
body.about-page main.about-ref-main .about-brand-teaser,
body.about-page main.about-ref-main .about-legal-box:not(.about-manifesto-box) .about-ref-body,
body.about-page main.about-ref-main .about-legal-box:not(.about-manifesto-box) .about-ref-body p,
body.about-page main.about-ref-main .about-legal-box:not(.about-manifesto-box) .about-legal-list,
body.about-page main.about-ref-main .about-legal-box:not(.about-manifesto-box) .about-legal-list li {
  font-size: 16px !important;
  line-height: 1.62;
  color: #4a4a4a;
}

body.about-page main.about-ref-main .about-brand-teaser {
  font-family: var(--font-sans);
  color: #5c5348;
}

body.about-page .about-ref-body .about-ref-emphasis {
  font-weight: 500;
}

body.about-page .about-ref-epilogue h2 {
  margin: 0 0 14px;
  text-align: center;
}

body.about-page .about-ref-epilogue .about-ref-epilogue-brand {
  margin-top: 22px;
}

body.about-page .about-ref-epilogue .about-ref-epilogue-brand strong {
  font-weight: 600;
}

body.about-page .about-legal-box:has(> .about-ref-body) {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  transform-origin: center top;
}

body.about-page .about-legal-box:has(> .about-ref-body):hover,
body.about-page .about-legal-box:has(> .about-ref-body):focus-within {
  transform: translateY(-3px);
  border-color: #cdb88d;
  box-shadow: 0 14px 34px rgba(44, 36, 22, 0.14);
}

body.about-page a.about-legal-prohibition-more,
body.about-page a.about-legal-prohibition-more:hover,
body.about-page a.about-legal-prohibition-more:focus-visible {
  text-decoration: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.about-page .about-legal-box:has(> .about-ref-body) {
    transition: none;
  }

  body.about-page .about-legal-box:has(> .about-ref-body):hover,
  body.about-page .about-legal-box:has(> .about-ref-body):focus-within {
    transform: none;
  }
}
body.about-page .about-core-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
body.about-page .about-legal-box > .about-core-grid {
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
/* 关于页「网站核心功能」：活页本式双栏（左页 | 金属环书脊 | 右页），阅读为先横后纵 */
body.about-page .about-core-grid.about-core-grid--binder-rows {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
body.about-page .about-legal-box > .about-core-grid.about-core-grid--binder-rows {
  gap: 22px;
}
body.about-page .about-core-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-width: 0;
}
body.about-page .about-core-row > .about-core-card:first-child {
  border-top-right-radius: 11px;
  border-bottom-right-radius: 11px;
}
body.about-page .about-core-row > .about-core-card:last-child {
  border-top-left-radius: 11px;
  border-bottom-left-radius: 11px;
}
body.about-page .about-core-binder {
  position: relative;
  z-index: 1;
  width: 36px;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  margin: 0 -1px;
  box-sizing: border-box;
  background: linear-gradient(
    90deg,
    #c9c0ae 0%,
    #ebe4d4 24%,
    #faf6ec 50%,
    #e3dccf 76%,
    #c4bba8 100%
  );
  border-left: 1px solid rgba(90, 80, 64, 0.16);
  border-right: 1px solid rgba(90, 80, 64, 0.16);
  box-shadow:
    inset 2px 0 5px rgba(255, 255, 255, 0.42),
    inset -2px 0 5px rgba(44, 36, 22, 0.07);
}
body.about-page .about-core-binder-ring {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 2px solid #555048;
  background: linear-gradient(155deg, #ece7dc, #ada598);
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 1px 2px rgba(0, 0, 0, 0.14),
    -0.5px -0.5px 1px rgba(0, 0, 0, 0.1) inset;
}
body.about-page .about-core-card {
  background: linear-gradient(180deg, #fffefc 0%, #faf8f4 100%);
  border: 1px solid rgba(154, 127, 78, 0.09);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(44, 36, 22, 0.035),
    0 6px 18px rgba(44, 36, 22, 0.045);
  transition:
    background 0.22s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease,
    border-color 0.24s ease;
}
body.about-page .about-core-card:hover {
  background: #fff;
  transform: translateY(-2px);
  border-color: rgba(154, 127, 78, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 2px 4px rgba(44, 36, 22, 0.04),
    0 10px 26px rgba(44, 36, 22, 0.08);
}
body.about-page .about-core-card:hover h3,
body.about-page .about-core-card:hover p {
  color: #2a2620;
}
body.about-page .about-core-card h3 {
  margin: 0 0 10px;
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  color: #3a3226;
  transition: color 0.22s ease;
}
body.about-page .about-core-card p {
  margin: 0;
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  color: #4a4a4a;
  line-height: 1.66;
  font-weight: 400;
  transition: color 0.22s ease;
}
body.about-page .about-ref-epilogue h2 {
  margin: 0 0 14px;
  text-align: center;
}

body.about-page .about-ref-epilogue h2 {
  margin: 0 0 14px;
  text-align: center;
}

body.about-page .about-ref-epilogue {
  text-align: center;
  margin: 22px 0 8px;
  color: #4a4a4a;
}
body.about-page .about-ref-epilogue-line {
  margin: 14px auto 28px;
  border: 0;
  border-top: 1px solid #e6e1d6;
  width: min(760px, 94%);
}
body.about-page .about-ref-epilogue h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 500;
  color: #352f25;
  font-size: 20px;
}
body.about-page .about-ref-epilogue p {
  margin: 0;
  line-height: 1.8;
  font-size: 17px;
}
body.about-page .about-ref-epilogue .about-ref-epilogue-brand {
  margin-top: 22px;
  color: #2f2c25;
  font-size: 17px;
}
/* 主页中间：沙漏展示区（居中、放大） */
.sandglass-stage {
  width: 100%;
  max-width: 100%;
  margin: 8px auto 24px;
  padding: 20px 12px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  justify-content: center;
  align-items: center;
  column-gap: 8px;
  box-sizing: border-box;
  background: #000;
  border-radius: 14px;
}
.sandglass-meta {
  color: #c8c8d0;
  font-family: var(--font-sans);
  /* 随视口缩放，窄屏避免 32px 固定值抢眼；大屏仍顶到 32px */
  font-size: clamp(17px, 5vw, 32px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
  width: 100%;
  line-height: 1;
}
.sandglass-meta-left {
  text-align: center;
}
.sandglass-meta-right {
  text-align: center;
}
/* 沙漏 + 沙子雨视为一体：占位 + visual 同高参与布局，整列在栏框内上下居中 */
.sandglass-wrap {
  flex: none;
  width: min(173px, 42vw);
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
  position: static;
}
.sandglass-spacer {
  flex: 0 0 24px;
  width: 100%;
  height: 24px;
  pointer-events: none;
}
.sandglass-visual {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
}
.sandglass-figure {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  z-index: 3;
}
.sand-lower-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  clip-path: polygon(50% 50.5%, 0% 100%, 100% 100%);
  background-image:
    linear-gradient(
      90deg,
      rgba(10, 12, 22, 0.54) 0%,
      rgba(10, 12, 22, 0.42) 7.5%,
      rgba(10, 12, 22, 0.22) 14%,
      rgba(10, 12, 22, 0) 24%
    ),
    linear-gradient(
      270deg,
      rgba(10, 12, 22, 0.54) 0%,
      rgba(10, 12, 22, 0.42) 7.5%,
      rgba(10, 12, 22, 0.22) 14%,
      rgba(10, 12, 22, 0) 24%
    ),
    linear-gradient(
      180deg,
      rgba(10, 12, 22, 0) 46.6%,
      rgba(10, 12, 22, 0.16) 50.1%,
      rgba(10, 12, 22, 0.08) 54%,
      rgba(10, 12, 22, 0) 59%
    ),
    radial-gradient(
      ellipse 16% 6.5% at 50% 51.1%,
      rgba(10, 12, 22, 0.37) 0%,
      rgba(10, 12, 22, 0.23) 42%,
      rgba(10, 12, 22, 0) 78%
    );
}
.sandglass-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.sand-sky,
.sand-upper {
  position: absolute;
  left: 0;
  transform: none;
  width: 100%;
  pointer-events: none;
  z-index: 4;
}
.sand-sky {
  display: block;
  top: -18px;
  left: 50%;
  transform: translateX(calc(-50% + 0px));
  width: calc((94% * 0.95) + 5px);
  height: 18px;
  overflow: hidden;
}
.sand-sky::before,
.sand-sky::after {
  content: "";
  position: absolute;
  inset: -18px 0 0 0;
  background-image:
    radial-gradient(circle at 0.9px 0.9px, rgba(238, 241, 248, 0.95) 0.62px, transparent 0.95px),
    radial-gradient(circle at 0.8px 0.8px, rgba(214, 219, 232, 0.88) 0.52px, transparent 0.9px),
    radial-gradient(circle at 0.7px 0.7px, rgba(192, 198, 214, 0.78) 0.45px, transparent 0.82px);
  background-size: 2.2px 7px, 2.8px 8px, 3.4px 9px;
  background-position: 52.6% 0, 52.6% 0, 52.6% 0;
  --sky-offset: 0px;
  animation: skyRainFlow 7.5s linear infinite;
  pointer-events: none;
}
.sand-sky::after {
  --sky-offset: -18px;
}
.sky-grain,
.upper-grain {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(224, 226, 238, 0.95);
}
.sky-grain {
  display: none;
}
.sand-upper {
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  clip-path: polygon(2.5% 0%, 97.5% 0%, 50% 100%);
  background: rgba(0, 0, 0, 0);
  box-shadow: none;
  animation: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - max(5px, 0.45%)), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - max(5px, 0.45%)), transparent 100%);
}
.sand-upper::before {
  content: "";
  position: absolute;
  inset: -1px;
  clip-path: polygon(3.5% 0%, 96.5% 0%, 50% 100%);
  background-image:
    linear-gradient(
      172deg,
      rgba(196, 202, 216, 0.34) 0%,
      rgba(172, 180, 198, 0.3) 48%,
      rgba(148, 156, 176, 0.36) 100%
    ),
    radial-gradient(circle at 38% 44%, rgba(208, 214, 228, 0.52) 0.4px, transparent 0.7px),
    radial-gradient(circle at 71% 58%, rgba(165, 172, 190, 0.46) 0.36px, transparent 0.64px),
    radial-gradient(circle at 24% 62%, rgba(188, 194, 210, 0.44) 0.34px, transparent 0.6px),
    radial-gradient(circle at 82% 32%, rgba(132, 140, 158, 0.42) 0.32px, transparent 0.58px);
  background-size:
    100% 100%,
    2.3px 2.8px,
    2.7px 2.2px,
    3.2px 3.5px,
    2.9px 2.4px;
  background-position:
    50% 0,
    53.5% 0.25px,
    54.9% 0.55px,
    53.2% 0.9px,
    54.4% 1.15px;
  background-repeat: no-repeat, repeat, repeat, repeat, repeat;
  opacity: 0.9;
  filter: blur(0.45px);
  transform: translateZ(0);
  animation: upperSandDrift 12.8s linear infinite;
  pointer-events: none;
}
.sand-upper::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(3.5% 0%, 96.5% 0%, 50% 100%);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 26%, rgba(34, 42, 62, 0.44) 66%, rgba(18, 25, 44, 0.72) 100%);
  background-size: 100% 145%;
  background-position: 50% -8%;
  mix-blend-mode: multiply;
  opacity: 1;
  animation: upperSandShade 12.8s ease-in-out infinite alternate;
  pointer-events: none;
}
.upper-grain {
  display: none;
}

.sand-stream {
  display: block;
  position: absolute;
  left: 50.05%;
  top: 52.7%;
  width: 7px;
  height: 44.2%;
  transform: translateX(-50%);
  background: none;
  z-index: 5;
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(50% 0%, 96% 15%, 100% 100%, 0% 100%, 4% 15%);
}
.sand-neck-flow {
  position: absolute;
  left: 50.05%;
  top: 50.46%;
  width: 1px;
  height: 3.3%;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
  background-image:
    radial-gradient(circle 0.24px at 50% 0.95px, rgba(224, 228, 240, 0.77) 100%, transparent 0),
    radial-gradient(circle 0.24px at 50% 2.65px, rgba(187, 196, 214, 0.65) 100%, transparent 0);
  background-size: 1px 3.6px;
  background-repeat: repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  animation: neckSandSeamless 0.75s linear infinite;
  opacity: 0.82;
}
.sand-stream::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle 0.35px at 0.7px 0.95px, rgba(224, 228, 240, 0.77) 100%, transparent 0),
    radial-gradient(circle 0.35px at 0.7px 2.58px, rgba(187, 196, 214, 0.65) 100%, transparent 0),
    radial-gradient(circle 0.35px at 2.1px 1.02px, rgba(224, 228, 240, 0.77) 100%, transparent 0),
    radial-gradient(circle 0.35px at 2.1px 2.72px, rgba(187, 196, 214, 0.65) 100%, transparent 0),
    radial-gradient(circle 0.35px at 3.5px 0.91px, rgba(224, 228, 240, 0.68) 100%, transparent 0),
    radial-gradient(circle 0.35px at 3.5px 2.61px, rgba(187, 196, 214, 0.56) 100%, transparent 0),
    radial-gradient(circle 0.35px at 4.9px 1.05px, rgba(224, 228, 240, 0.77) 100%, transparent 0),
    radial-gradient(circle 0.35px at 4.9px 2.75px, rgba(187, 196, 214, 0.65) 100%, transparent 0),
    radial-gradient(circle 0.35px at 6.3px 0.93px, rgba(224, 228, 240, 0.77) 100%, transparent 0),
    radial-gradient(circle 0.35px at 6.3px 2.63px, rgba(187, 196, 214, 0.65) 100%, transparent 0);
  background-size: 100% 3.6px;
  background-position:
    50% 0, 50% 0,
    50% 0.576px, 50% 0.576px,
    50% 1.152px, 50% 1.152px,
    50% 1.728px, 50% 1.728px;
  background-repeat: repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 2%, #000 86%, rgba(0, 0, 0, 0.45) 93%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 2%, #000 86%, rgba(0, 0, 0, 0.45) 93%, transparent 100%);
  animation: streamSandSeamless 0.75s linear infinite;
  pointer-events: none;
}
.sand-stream::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.14) 14%,
    rgba(255, 255, 255, 0.02) 32%,
    rgba(120, 128, 150, 0) 48%,
    rgba(34, 38, 54, 0.2) 66%,
    rgba(28, 32, 48, 0.28) 76%,
    rgba(92, 96, 112, 0.48) 86%,
    rgba(68, 72, 88, 0.62) 91%,
    rgba(44, 46, 58, 0.75) 96%,
    rgba(22, 24, 34, 0.82) 100%
  );
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 2%, #000 86%, rgba(0, 0, 0, 0.45) 93%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 2%, #000 86%, rgba(0, 0, 0, 0.45) 93%, transparent 100%);
  pointer-events: none;
}

.sand-void {
  display: none;
}

@keyframes skyRainFlow {
  0% { transform: translateY(var(--sky-offset)); opacity: 1; }
  100% { transform: translateY(calc(var(--sky-offset) + 18px)); opacity: 1; }
}

@keyframes streamSandSeamless {
  0% {
    background-position:
      50% 0, 50% 0,
      50% 0.576px, 50% 0.576px,
      50% 1.152px, 50% 1.152px,
      50% 1.728px, 50% 1.728px;
  }
  100% {
    background-position:
      50% 3.6px, 50% 3.6px,
      50% calc(3.6px + 0.576px), 50% calc(3.6px + 0.576px),
      50% calc(3.6px + 1.152px), 50% calc(3.6px + 1.152px),
      50% calc(3.6px + 1.728px), 50% calc(3.6px + 1.728px);
  }
}

@keyframes neckSandSeamless {
  0% { background-position: 50% 0; }
  100% { background-position: 50% 3.6px; }
}

@keyframes upperSandDrift {
  0% {
    background-position:
      50% 0,
      53.5% 0.25px,
      54.9% 0.55px,
      53.2% 0.9px,
      54.4% 1.15px;
  }
  100% {
    background-position:
      50% 2.2px,
      53.5% calc(0.25px + 2.2px),
      54.9% calc(0.55px + 2.2px),
      53.2% calc(0.9px + 2.2px),
      54.4% calc(1.15px + 2.2px);
  }
}

@keyframes upperSandShade {
  0% { background-position: 54.2% -8%; }
  100% { background-position: 54.2% 12%; }
}
.search-line {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: stretch;
}
.search-line input { flex: 1; }
.search-line button.primary {
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
}
.memorial-country {
  display: none;
  flex: 0 0 min(200px, 38vw);
  min-width: 0;
  max-width: 240px;
  font-size: 14px;
  border-radius: 10px;
}
html[lang="en"] .home .search-line .memorial-country {
  display: block;
}
.memorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.memorial-item {
  display: flex;
  align-items: stretch;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fcfdff;
}
/* 左侧：仅放头像，与右侧文字区分栏 */
.memorial-item__aside {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.memorial-item__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #1a1a1a;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  background: #fff;
  line-height: 1.1;
  text-align: center;
}
/* 右侧：上下两区，分隔线仅为右栏宽度；每区内两端对齐 */
.memorial-item__body {
  flex: 1 1 0%;
  min-width: 0;
  width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}
.memorial-item__pane {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* 逝者列表卡片（默认中文）：首行左姓名、右籍贯；单行内略缩字号（见 js/memorial-name-fit.js），仍不够则最多两行。已定版，勿在无明确需求时改此布局。英文见下 html[lang="en"]。 */
.memorial-item__pane--top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 12px;
  padding-bottom: 8px;
}
.memorial-item__pane--bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.memorial-item__pane--bottom .memorial-item__birth {
  justify-self: start;
}
.memorial-item__pane--bottom .memorial-item__death {
  justify-self: end;
}
.memorial-item__dash {
  justify-self: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}
.memorial-item__pane--top h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  overflow-wrap: anywhere;
}
/* 列表姓名：memorial-name-fit.js 切换；单行略缩字号，否则最多两行（中英一致，英文见下 html[lang="en"] 补全） */
.memorial-item__pane--top h3.memorial-name--single-line {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
}
.memorial-item__pane--top h3.memorial-name--two-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}
.memorial-item__place {
  flex: 0 0 auto;
  max-width: 48%;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.memorial-item__birth,
.memorial-item__death {
  flex: 0 1 auto;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}
.memorial-item__birth {
  text-align: left;
}
.memorial-item__death {
  text-align: right;
}

/* 英文：姓名独占一行（全宽）+ 籍贯 + 生卒；姓名同中文策略：先缩字单行，否则最多两行，绝不第三行 */
html[lang="en"] .memorial-item__pane--top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  row-gap: 4px;
}
html[lang="en"] .memorial-item__pane--top h3 {
  align-self: flex-start;
  text-align: left;
  flex: 0 1 100%;
  width: 100%;
  max-width: 100%;
  /* JS 运行前或未加 class 时：先限制两行，避免长名撑出第三行 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
html[lang="en"] .memorial-item__pane--top h3.memorial-name--single-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
html[lang="en"] .memorial-item__pane--top h3.memorial-name--two-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
html[lang="en"] .memorial-item__place {
  align-self: flex-start;
  text-align: left;
  flex: 0 1 100%;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  border: 1px solid var(--line);
  background: #fcfdff;
  border-radius: 12px;
  padding: 14px;
}
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}
.step span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.step p { margin: 0; }

.form-row { margin-bottom: 12px; }
label { display: block; margin-bottom: 6px; font-size: 14px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}
button.primary {
  border: none;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
button.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.footer-clock-wrap .live-clock {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 16px 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.footer-title { color: #1e293b; font-weight: 700; margin-bottom: 6px; }
.footer-note { margin-bottom: 12px; }
.footer-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  font-size: 13px;
}
.footer-stats a { color: #334155; text-decoration: none; }
.footer-stats a:hover { color: var(--brand); }
.subpage-footer .footer-note {
  color: rgba(236, 242, 251, 0.9);
}
.subpage-footer {
  --footer-row-gap: 4px;
  position: relative;
  border-top: none;
  /* 顶部分隔线与首页同档：见 .home .site-footer::before / .subpage-footer::before 共用渐变 */
  padding: 10px 0 9px;
  background: #2f3642;
}
@media (min-width: 861px) {
  /* PC：二级页脚内容区上下各 17px */
  .subpage-footer {
    padding: 17px 0 17px;
  }
}
/* 页脚顶部分隔线：白→黑。用不透明 CSS 渐变，避免 separator.png 左端半透明在深色页脚上发黑 */
.home .site-footer::before,
.subpage-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    90deg,
    #ffffe0 0%,
    #f4f4f4 10%,
    #e2e2e2 20%,
    #d4d4d4 25%,
    #b1b1b1 32%,
    #8d8d8d 35%,
    #7d7d7d 40%,
    #616161 50%,
    #494949 60%,
    #404040 65%,
    #373737 70%,
    #2e2e2e 75%,
    #262626 80%,
    #1d1d1d 85%,
    #0f0f0f 90%,
    #010101 95%,
    #000000 100%
  );
}
/* 中文页脚第二行：手机端缩短「知识共享」表述 */
.footer-ethics-phrase--short {
  display: none;
}
/* 中文首页/二级页脚声明：手机端简版（PC 不变） */
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .footer-note-variant--short,
html[lang="zh"].subpage-view body.subpage .subpage-footer .footer-note-variant--short {
  display: none;
}
html[lang="en"] .home .footer-note-variant--short,
html[lang="en"].subpage-view body.subpage .subpage-footer .footer-note-variant--short {
  display: none;
}
@media (max-width: 860px) {
  .footer-ethics-phrase--full {
    display: none;
  }
  .footer-ethics-phrase--short {
    display: inline;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .footer-note-variant--full,
  html[lang="zh"].subpage-view body.subpage .subpage-footer .footer-note-variant--full {
    display: none;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .footer-note-variant--short,
  html[lang="zh"].subpage-view body.subpage .subpage-footer .footer-note-variant--short {
    display: block;
  }
  html[lang="en"] .home .footer-note-variant--full,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-note-variant--full {
    display: none;
  }
  html[lang="en"] .home .footer-note-variant--short,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-note-variant--short {
    display: block;
  }
}
.subpage-footer .container {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.subpage-footer .footer-note-stack {
  gap: var(--footer-row-gap);
}
.subpage-footer .footer-line + .footer-line {
  margin-top: var(--footer-row-gap);
}
.subpage-footer .footer-line--text,
.subpage-footer .footer-line--journey,
.subpage-footer .footer-line--bottom {
  font-size: 13px;
  line-height: 1.35;
}
.subpage-footer .footer-line--bottom {
  width: min(1080px, 98%);
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  gap: 12px 22px;
}
.subpage-footer .footer-line--bottom a,
.subpage-footer .footer-line--bottom span {
  color: rgba(236, 242, 251, 0.86);
}
.subpage-footer .footer-line--bottom a:hover,
.subpage-footer .footer-line--bottom a:focus-visible,
.subpage-footer .footer-line--bottom a:active {
  color: #dbe8ff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
/* 旅程行：与二级页脚原文案/底栏同色同级 */
.subpage-footer .footer-journey__lead,
.subpage-footer .footer-journey__link,
.subpage-footer .footer-journey__here {
  color: rgba(236, 242, 251, 0.86);
  opacity: 1;
}
.subpage-footer .footer-journey__here,
.subpage-footer .footer-journey__here > span:not(.footer-journey__here-mark) {
  color: rgba(236, 242, 251, 0.96);
  font-weight: 700;
}
.subpage-footer .footer-journey__link:hover,
.subpage-footer .footer-journey__link:focus-visible {
  color: #dbe8ff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* 英文子页页脚前两行：与英文首页 .footer-note-line 一致（单行 + 12px）；窄屏 ≤860px 允许换行 */
html[lang="en"].subpage-view body.subpage .subpage-footer .footer-line--text,
html[lang="en"].subpage-view body.subpage .subpage-footer .footer-line--journey {
  font-size: 12px;
  line-height: 1.2;
}
html[lang="en"].subpage-view body.subpage .subpage-footer .footer-note-line {
  white-space: nowrap;
  line-height: 1.22;
}
@media (max-width: 860px) {
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-note-line {
    white-space: normal;
  }
}

/*
 * =============================================================================
 * 首页（body.home）整体视觉 — 已定版 / FROZEN
 * =============================================================================
 * 请勿在无明确产品需求时改动：整体配色阶、版心、大区块间距、深色半透明卡片语言。
 *
 * 版心与主栅格
 *   - 内容区：.container → width: min(1080px, 96%)；main 纵向 padding: 26px 0
 *   - 首屏双栏：.hero-grid → gap: 24px；窄屏 ≤860px 单列
 *   - 人口三栏：.home .population-strip → gap: 18px（覆盖默认 24px）
 *   - 逝者列表：.memorial-grid → gap: 12px
 *
 * 表面与边线（深色星空底上的「玻璃块」）
 *   - 大块底：rgba(10, 14, 24, 0.07)–0.08；边线/描边：rgba(230, 235, 243, 0.16–0.18)
 *   - 圆角：首页栏框统一 --home-panel-radius（14px）；阴影：统一偏柔和的深色投影
 *
 * 字色阶（由亮到退）
 *   - 强调标题/大数：#eeeeee、#ececec
 *   - 主阅读（域名主色、区块标题、人口数字、搜索字、列表姓名）：#c8c8d0
 *   - 次级（说明、标签、列表籍贯与生卒、占位符）：#aeb0ba、#c4c4c4
 *   - 导航与按钮：约 #dcdcdc → hover #eeeeee；域名金：#b29c72
 *   - 页脚全文（声明 + 第三行）：--home-footer-text-color / opacity，与 1170 亿文案 token 同步；顶部分隔：首页与 .subpage-footer 共用白→黑 CSS 渐变
 *   - 沙漏下金句（非 1170 亿栏）：#646a78；窄屏 → #707584
 *
 * 特例（勿与上表随意合并）
 *   - 逝者列表卡片版式与姓名适配：见 .memorial-item* 注释与 js/memorial-name-fit.js
 *   - 籍贯中英文展示：js/memorial-place-zh.js
 * =============================================================================
 */
html:has(> body.home) {
  background: #03060e;
}
body.home {
  position: relative;
  background: transparent;
  --home-panel-radius: 14px;
  --home-population-value-color: #c8c8d0;
  --footer-journey-here-color: color-mix(in srgb, var(--home-footer-text-color) 90%, #ffffff 10%);
  --home-legacy-text-color: #474d59;
  --home-legacy-text-opacity: 1;
  /* 页脚全文（声明行 + 第三行）同色同透明度，与 1170 亿文案 token 同步 */
  --home-footer-text-color: var(--home-legacy-text-color);
  --home-footer-text-opacity: var(--home-legacy-text-opacity);
}
/* 桌面 / 手机：星云 iframe 固定贴视口，不参与文档高度，避免页脚下方多出可滚空白 */
@media (min-width: 861px) {
  .home .home-bg {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }
}
@media (max-width: 860px) {
  .home .home-bg {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    min-height: 0;
    max-height: none;
  }
}
.home .home-bg {
  border: 0;
  z-index: 0;
  pointer-events: none;
}
.home header,
.home main,
.home footer {
  position: relative;
  z-index: 1;
}
/* 首页 main 底边距略小于全局 26px，整段 footer（含分隔线）随文档流略上移；要下移则增大此值或 .legacy-below-sandglass 的 margin-bottom */
body.home main {
  padding-bottom: 27px;
}
/* 英文首页：块间与主区底各收 1px（共 4 段），main 顶 +4px；顶栏/页脚分隔线位置不变，首段自然 +4px（原顶 25px→29px） */
html[lang="en"] body.home main {
  padding-top: 29px;
  padding-bottom: 24.5px;
}
/* HOME EN/ZH OVERLAY LOCK (2026-04-16)
 * 这些值已按中英文主页叠合效果人工校准，当前视觉为验收通过状态。
 * 目标：切换语言时关键锚点尽量重叠（域名/Logo/人口区/沙漏/蜡烛）。
 * 警告：请勿一次性“重构”或合并这些位移；若需调整，仅按 1px 步进微调并逐项验收。
 */
html[lang="en"] .home .hero.hero-home {
  transform: translateY(1px);
}
html[lang="en"] .home .legacy-below-sandglass {
  margin: 24.5px auto;
}
html[lang="en"] .home .legacy-below-sandglass {
  transform: translateY(2px);
}
html[lang="en"] .home .population-strip {
  transform: translateY(6px);
}
/* 人口区内部补偿位移：用于在外框对齐时保持数字重叠 */
html[lang="en"] .home .population-item {
  display: grid;
  grid-template-rows: minmax(1.15em, auto) minmax(calc(1em * 1.25), auto);
  row-gap: 8px;
  justify-items: center;
  align-content: center;
  transform: translateY(-6px);
}
html[lang="en"] .home .population-value,
html[lang="en"] .home .population-label {
  position: static;
  top: auto;
}
html[lang="en"] .home .population-label {
  margin-top: 0;
}
html[lang="en"] .home .sandglass-stage {
  transform: translateY(1px);
}
@media (max-width: 860px) {
  html[lang="en"] .home .legacy-below-sandglass-inner {
    min-height: 58px;
    padding-top: 14px;
    padding-bottom: 13px;
    margin-top: -1px;
    box-sizing: border-box;
  }
  html[lang="en"] .home .legacy-below-sandglass .legacy-line {
    white-space: pre-line;
    line-height: 1.32;
    font-size: clamp(11px, 3vw, 12px);
    letter-spacing: 0.01em;
    text-align: center;
    display: block;
    overflow: visible;
    padding-left: 4px;
    padding-right: 4px;
    transform: none;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  html[lang="en"] .home .legacy-below-sandglass-inner {
    padding: 12px 12px 14px;
  }
}
html[lang="en"] .home .card {
  margin-top: 26.5px;
}
html[lang="en"] .home .sandglass-stage {
  margin: 24.5px auto;
}
html[lang="en"] .home .site-footer .footer-note-line {
  white-space: nowrap;
  line-height: 1.22;
}
@media (max-width: 860px) {
  html[lang="en"] .home .site-footer .footer-note-line {
    white-space: normal;
  }
}
/*
 * 中文首页：块间与主区底各收 1px（共 4 段 −1px），main 顶 +4px，顶栏线/页脚线位置不变，首段（分隔线→第一块）自然 +4px。
 */
/*
 * 英文首页 main/块 margin：见上 html[lang="en"]（顶 29px、底与块间 24.5px，card 上间距 26.5px）。
 */
:is(html[lang="zh"], html[lang="zh-Hant"]) body.home main {
  padding-top: 30px;
  padding-bottom: 24.5px;
}
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .sandglass-stage {
  margin: 24.5px auto;
}
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .legacy-below-sandglass {
  margin: 24.5px auto;
}
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .card {
  margin-top: 24.5px;
}
/* HOME PC/Mobile 分界 861px — 手机规则见下方 max-width:860px；PC 标题 nowrap 见 min-width:861px */
/* 中文 PC 首页：主标题单行 + 栏框锚点与英文叠合（手机 20/22px 等规则在 max-width:860px 内，不得污染此处） */
@media (min-width: 861px) {
  :is(html[lang="zh"], html[lang="zh-Hant"]) body.home main,
  html[lang="en"] body.home main {
    display: block;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-main-title,
  html[lang="en"] .home .home-main-title {
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-main-title {
    font-size: 1.5rem;
    line-height: 1.35;
    margin: 6px 0 0.5rem;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .legacy-below-sandglass .legacy-line,
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .legacy-below-sandglass .big-number {
    font-size: clamp(11px, 1.25vw, 17px);
    line-height: 1.45;
    white-space: normal;
    text-align: center;
    transform: translateX(-0.75ch);
  }
  /*
   * 中英文 PC 1170 亿栏框：内框 min-height / padding 共用，与中文一行字高一致；英文仅改字级与居中
   */
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .legacy-below-sandglass-inner,
  html[lang="en"] .home .legacy-below-sandglass-inner {
    --home-pc-legacy-inner-v-pad: calc(16px + 18px);
    min-height: calc(var(--home-pc-legacy-inner-v-pad) + 1.5 * clamp(12px, 1.4vw, 20px));
    padding: 16px 14px 18px;
    margin-top: 0;
    box-sizing: border-box;
    align-items: center;
  }
  html[lang="en"] .home .legacy-below-sandglass-inner {
    container-type: inline-size;
    overflow-x: clip;
    overflow-y: hidden;
  }
  /*
   * 英文 PC 专用：栏框与中文叠合（全部 html[lang="en"]，不碰中文）
   */
  html[lang="en"] body.home main {
    padding-top: 30px;
    padding-bottom: 24.5px;
  }
  html[lang="en"] .home .hero.hero-home,
  html[lang="en"] .home .legacy-below-sandglass,
  html[lang="en"] .home .population-strip,
  html[lang="en"] .home .sandglass-stage {
    transform: none;
  }
  html[lang="en"] .home .population-item {
    display: block;
    grid-template-rows: unset;
    row-gap: unset;
    transform: none;
  }
  html[lang="en"] .home .population-label {
    margin-top: 8px;
  }
  html[lang="en"] .home .card {
    margin-top: 24.5px;
  }
  html[lang="en"] .home .legacy-below-sandglass .legacy-line,
  html[lang="en"] .home .legacy-below-sandglass .big-number {
    width: auto;
    max-width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    padding-left: 0;
    padding-right: 0;
    margin-inline: auto;
    font-size: clamp(12px, 3.35cqi, 15px);
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: 0;
    white-space: nowrap;
    text-align: center;
    transform: none;
    overflow-wrap: normal;
    box-sizing: border-box;
  }
  html[lang="en"] .home .site-footer {
    padding-top: 17px;
    padding-bottom: 21px;
    --footer-row-gap: 6px;
  }
  html[lang="en"] .home .site-footer .footer-line--candle {
    overflow: visible;
    padding: 1px 0 0;
    margin: 0;
  }
  html[lang="en"] .home .site-footer .footer-line--candle + .footer-line {
    margin-top: var(--footer-row-gap);
  }
  html[lang="en"] .home .footer-logo--candle {
    overflow: visible;
    width: 26px;
    height: 26px;
  }
  .home .site-footer .footer-line--candle {
    margin-top: 0;
    padding-top: 1px;
  }
  html.ua-edge .home .site-footer .footer-line--candle {
    padding-top: 3px;
  }
}
.home .site-header {
  margin-top: 10px;
  /* 语言菜单（PC fixed / 手机 absolute）均在 header 层叠内；须高于 main(z-index:1)，否则人口数字会盖住下拉 */
  z-index: 10;
}
/* 菜单打开时再抬一档（手机 absolute 与二级页同口径；与曾用 site-locale-menu-open 一致） */
body.site-locale-menu-open header,
body.site-locale-menu-open .site-header {
  z-index: 10100;
}
.home .top-brand,
.home .header-inner {
  background: transparent;
}
/* 仅加大顶区上内边距：域名与主副标语下移；右上角 absolute 相对本块顶边，位置不变 */
.home .top-brand {
  padding-top: 32px;
}
.home .header-inner {
  border-bottom-color: rgba(255, 255, 255, 0.18);
  padding-top: 12px;
  padding-bottom: 11px;
}
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .header-inner {
  border-bottom-color: transparent;
}
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .header-inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.18);
  transform: translateY(5px);
  pointer-events: none;
}
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .top-nav.nav-bar .nav-bar__cluster > a {
  transform: translateY(7px);
}
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .top-nav.nav-bar > .nav-bar__logo {
  transform: translateY(7px);
}
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .top-nav.nav-bar .nav-bar__logo .nav-logo {
  width: 25px;
  height: 25px;
}
html[lang="en"] .home .top-nav.nav-bar .nav-bar__logo .nav-logo {
  width: 25px;
  height: 25px;
}
/* 英文首页：整条主导航（含中间 logo）相对版心下移 7px；分隔线仍在 .header-inner 底边，文档流不变 */
html[lang="en"] .home .header-inner .top-nav.nav-bar {
  transform: translateY(7px);
}
/* 英文首页：顶栏底边实线改为伪元素，translateY(5px) 仅下移分隔线，与中文同法；其余不动 */
html[lang="en"] .home .header-inner {
  border-bottom-color: transparent;
}
html[lang="en"] .home .header-inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.18);
  transform: translateY(5px);
  pointer-events: none;
}
.home .header-right.top-right-tools {
  top: 12px;
}
/* 品牌域名 thedead.wiki — Bodoni* 06 Fatface；与沙漏/人口同档灰金分色 */
.home .domain {
  color: var(--home-text-main);
  font-family: var(--font-brand-logo);
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: clamp(22px, 3.75vw, 32px);
}
/* 默认略压一档亮度；悬停恢复为已定版亮色（与注释「沙漏/人口同档灰金」一致） */
.home .domain .domain-main {
  color: #a9abb4;
  transition: color 0.22s ease;
}
.home .domain .domain-accent {
  color: #8f7c56;
  font-weight: 900;
  transition: color 0.22s ease;
}
.home .domain:hover .domain-main {
  color: #c8c8d0;
}
.home .domain:hover .domain-accent {
  color: var(--color-accent);
}
@media (prefers-reduced-motion: reduce) {
  .home .domain .domain-main,
  .home .domain .domain-accent {
    transition: none;
  }
}
/* 首页主标题：中文以 Noto Serif SC 为主，与副标题无衬线对比 */
.home .main-title,
.home .home-main-title {
  font-family: "Noto Serif SC", "Playfair Display", Georgia, "Noto Serif", serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--home-text-main);
  letter-spacing: 2px;
  line-height: 1.35;
  margin: 6px 0 0.5rem;
  /* flex：左右文案与圆点为三块，交叉轴居中，比 vertical-align 更贴中文视觉中线 */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
/* 中文主标题：只用 Noto Serif SC，禁止 iOS/Android 各自合成伪粗体导致字形不一致 */
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-main-title {
  font-family: "Noto Serif SC", serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-main-title .separator {
  font-family: "Noto Serif SC", serif;
  font-synthesis: none;
}
.home .main-title .separator,
.home .home-main-title .separator {
  color: var(--color-accent);
  margin: 0 6px;
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.home .subtitle,
.home .home-subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--home-text-muted);
  letter-spacing: 2px;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}
.home .subtitle .star,
.home .home-subtitle .star {
  color: var(--color-accent);
  margin: 0 6px;
  font-size: 0.9rem;
}
html[lang="en"] .home .main-title,
html[lang="en"] .home .home-main-title {
  font-family: var(--font-serif);
  /* 略小于中文 1.5rem；再小一档避免英文行过长时标题显笨 */
  font-size: 1.32rem;
  line-height: 1.4;
  min-height: calc(1.5rem * 1.35);
  max-width: min(40rem, 92vw);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  white-space: normal;
}
/* Playfair 下 • 字柜偏大；略小于 1.1em，避免圆点抢过两侧英文 */
html[lang="en"] .home .main-title .separator,
html[lang="en"] .home .home-main-title .separator {
  font-size: 0.92em;
}
@media (min-width: 720px) {
  html[lang="en"] .home .main-title,
  html[lang="en"] .home .home-main-title {
    white-space: nowrap;
    max-width: none;
  }
}
html[lang="en"] .home .subtitle,
html[lang="en"] .home .home-subtitle {
  min-height: calc(1.2rem * 1.6);
  max-width: min(28rem, 92vw);
  margin-left: auto;
  margin-right: auto;
}
/* 首页主导航：左右两簇各占 50% 宽；logo 脱离文档流 absolute 在 nav 的几何 50% — 与 .container 内域名中轴一致。
 * 英文拉丁排版下三栏 grid 可能出现亚像素列宽差，导致 logo 相对域名略偏右；本写法对中英文一致。 */
.home .top-nav.nav-bar {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  gap: 0;
}
.home .nav-bar__cluster {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 50%;
}
.home .nav-bar__cluster--left {
  justify-content: flex-end;
  gap: 36px;
  /* 为中间 30px logo 留白，避免长英文链视觉压到 logo */
  padding-right: calc(15px + 36px);
}
.home .nav-bar__cluster--right {
  justify-content: flex-start;
  gap: 36px;
  padding-left: calc(15px + 36px);
}
.home .top-nav.nav-bar .nav-bar__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.home .top-nav.nav-bar .nav-bar__cluster > a {
  font-size: 18px;
}
@media (max-width: 640px) {
  .home .main-title,
  .home .home-main-title {
    font-size: 1.15rem;
    letter-spacing: 1px;
  }
  html[lang="en"] .home .main-title,
  html[lang="en"] .home .home-main-title {
    font-size: 1.04rem;
  }
  .home .subtitle,
  .home .home-subtitle {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }
}

.home .top-nav a[href="index.html"],
.home .top-nav a[href="about-project.html"],
.home .top-nav a[href="howtocreate.html"],
.home .top-nav a[href="local-memorial.html"],
.home .top-nav a[href="create-memorial.html"] {
  color: #a8b0bc;
  border-bottom-color: transparent;
  transition: color 0.22s ease, border-bottom-color 0.22s ease;
}
.home .top-nav a:hover {
  color: #f2f5fa;
  border-bottom-color: rgba(238, 242, 250, 0.55);
}
.home .top-nav.nav-bar .nav-bar__logo:hover {
  border-bottom-color: rgba(238, 242, 250, 0.55);
}
/* 中间 logo：默认保持现有观感；悬停略提亮 */
.home .top-nav.nav-bar .nav-bar__logo .nav-logo {
  transition: filter 0.22s ease;
}
.home .top-nav.nav-bar .nav-bar__logo:hover .nav-logo {
  filter: brightness(1.32) contrast(1.08) drop-shadow(0 0 10px rgba(255, 248, 235, 0.45));
}
@media (prefers-reduced-motion: reduce) {
  .home .top-nav a[href="index.html"],
  .home .top-nav a[href="about-project.html"],
  .home .top-nav a[href="howtocreate.html"],
  .home .top-nav a[href="local-memorial.html"],
  .home .top-nav a[href="create-memorial.html"] {
    transition: none;
  }
  .home .top-nav.nav-bar .nav-bar__logo .nav-logo {
    transition: none;
  }
  .home .search-line .primary,
  .home .search-line button.primary,
  .home .search-line a.primary {
    transition: none;
  }
  .home .section-title {
    transition: none;
  }
  .home .search-line input,
  .home .search-line select,
  .home .search-line textarea {
    transition: none;
  }
}
.site-header--subpage-compact .header-inner {
  /* 已定版：二级顶栏上留白（22px / safe-area+14px）。勿在未明确要求时改动。 */
  padding-top: max(22px, calc(env(safe-area-inset-top, 0px) + 14px));
  padding-bottom: 14px;
  padding-left: 0;
  padding-right: 0;
  border-bottom: 0;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.site-header--subpage-compact {
  border-bottom: 1.5px solid #d8d8d8;
}
/* 二级紧凑顶栏：语言并入 nav 后仅一项子块，用 block + 全宽 nav，版心完全等同 .container */
html.subpage-view body.subpage .site-header--subpage-compact .header-inner {
  display: block;
}
html.subpage-view body.subpage .site-header--subpage-compact .top-nav.nav-bar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
html.subpage-view body.subpage .site-header--subpage-compact .header-right.top-right-tools {
  position: static;
  top: auto;
  right: auto;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-top: 0;
  width: auto;
  justify-content: flex-end;
}
.site-header--subpage-compact .top-nav.nav-bar {
  width: 100%;
  gap: 0;
  justify-content: initial;
}
.site-header--subpage-compact .top-nav.nav-bar > a {
  font-size: 16px;
}
/* 二级导航：与首页同为 Inter + Noto Sans SC；字距与品牌字标同档，整体一条工具栏（仅桌面；移动端用 subpage-mobile-topbar） */
@media (min-width: 861px) {
  .site-header--subpage-compact .nav-bar--subpage,
  .site-header--subpage-compact .top-nav.nav-bar.nav-bar--subpage-fixed {
    position: static;
    display: flex !important;
    /* 语言在 nav 末项时：整行铺满版心，项间留白均分（勿用 flex-start 否则全挤左侧） */
    justify-content: space-between;
    gap: 0;
    align-items: center;
    min-height: 34px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    box-sizing: border-box;
    /* 顶栏项偏多或品牌偏宽时横向滚动，避免把整页撑出横向滚动条 */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .site-header--subpage-compact .nav-bar--subpage::-webkit-scrollbar,
  .site-header--subpage-compact .nav-bar--subpage-fixed::-webkit-scrollbar {
    height: 3px;
  }
  .site-header--subpage-compact .nav-bar--subpage::-webkit-scrollbar-thumb,
  .site-header--subpage-compact .nav-bar--subpage-fixed::-webkit-scrollbar-thumb {
    background: rgba(47, 63, 87, 0.22);
    border-radius: 3px;
  }
  .site-header--subpage-compact .nav-bar--subpage > a,
  .site-header--subpage-compact .nav-bar--subpage-fixed > a {
    margin: 0 !important;
    width: auto;
    text-align: center;
    flex: 0 0 auto;
  }
  .site-header--subpage-compact .nav-bar--subpage > *,
  .site-header--subpage-compact .nav-bar--subpage-fixed > * {
    flex: 0 0 auto;
  }
  .site-header--subpage-compact .top-nav.nav-bar > .header-right.top-right-tools {
    flex-shrink: 0;
    margin-left: 0;
  }
  /* 二级页桌面顶栏：地球仪用浅底深边，避免沿用首页深色半透明边框看不见 */
  body.subpage .site-header--subpage-compact .site-locale-picker__trigger {
    border: 1px solid rgba(148, 172, 206, 0.58);
    background: rgba(248, 251, 255, 0.94);
    color: #3d5a7c;
    box-shadow:
      0 1px 2px rgba(44, 67, 95, 0.07),
      inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  }
  body.subpage .site-header--subpage-compact .site-locale-picker__trigger:hover,
  body.subpage .site-header--subpage-compact .site-locale-picker.is-open .site-locale-picker__trigger {
    border-color: rgba(120, 152, 192, 0.72);
    background: rgba(236, 244, 252, 0.98);
    color: #1a3354;
    box-shadow:
      0 2px 5px rgba(44, 67, 95, 0.1),
      inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  }
}
/* 二级导航链接：与全站无衬线体系一致，字距与品牌字标同档 */
.site-header--subpage-compact .nav-bar--subpage > a:not(.nav-brand-text),
.site-header--subpage-compact .nav-bar--subpage-fixed > a:not(.nav-brand-text) {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.02em;
}
/* 二级导航内域名 — Bodoni* 06 Fatface + 已定版顶栏分色（--subpage-nav-brand-*） */
.site-header--subpage-compact .nav-brand-text {
  justify-self: auto;
  margin-right: 0;
  letter-spacing: 0.02em;
  font-family: var(--font-brand-logo);
  font-weight: 900;
  font-size: clamp(13px, 1.95vw, 20px) !important;
  line-height: 1;
  white-space: nowrap;
}
.site-header--subpage-compact .nav-brand-text .domain-main {
  color: var(--subpage-nav-brand-main) !important;
}
.site-header--subpage-compact .nav-brand-text .domain-accent {
  color: var(--subpage-nav-brand-accent) !important;
  font-weight: 900;
}
.site-header--subpage-compact .nav-bar__logo .nav-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.site-header--subpage-compact .nav-bar__logo {
  position: static;
  transform: none;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-fallback {
  font-size: 15px;
  color: var(--subpage-nav-link);
  line-height: 1;
}

.home .login-btn,
.home .lang-switch button,
.home .site-locale-picker__trigger {
  background: var(--home-topbar-control-bg);
  color: var(--home-topbar-control-fg);
  border: 1px solid var(--home-topbar-control-border);
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}
.home .login-btn:hover,
.home .lang-switch button:hover,
.home .site-locale-picker__trigger:hover,
.home .site-locale-picker.is-open .site-locale-picker__trigger {
  background: var(--home-topbar-control-bg-hover);
  color: var(--home-topbar-control-fg-hover);
  border-color: var(--home-topbar-control-border-hover);
}
.home .site-locale-picker__icon {
  color: currentColor;
}
.home .user-center {
  background: rgba(248, 250, 252, 0);
  border: 1px solid transparent;
  border-radius: 999px;
  color: #c4c8d2;
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}
.home .user-center:hover {
  color: #f2f5fa;
  background: rgba(248, 250, 252, 0.18);
  border-color: rgba(238, 242, 250, 0.62);
}
.home .lang-switch:not(.lang-switch--solo) button.is-active {
  background: rgba(164, 185, 222, 0.28);
  border-color: rgba(196, 214, 245, 0.62);
  color: #e8eef8;
  font-weight: 600;
}
.home .avatar {
  background: rgba(248, 250, 252, 0.1);
  color: #c6cad3;
  border: 1px solid rgba(230, 235, 243, 0.28);
}
.home .header-right.top-right-tools .user-center .avatar {
  background: var(--home-topbar-control-bg);
  border: 1px solid var(--home-topbar-control-border);
}

.home .hero,
.home .card {
  background: rgba(10, 14, 24, 0.07);
  border-color: rgba(230, 235, 243, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}
/* 人口 / 沙漏 / 1170 亿 / 搜索 — 外框圆角一致 */
.home .hero.hero-home,
.home .card,
.home .sandglass-stage,
.home .legacy-below-sandglass-inner {
  border-radius: var(--home-panel-radius);
}
/* 搜索卡片：内容从上往下排，避免标题+搜索在卡内像一整块被垂直居中 */
.home .card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 16px 20px 18px;
}
/* 主页人口区：无上方标语时去掉顶距，栏框高度随内容收紧 */
.home .hero.hero-home {
  padding-top: 10px;
  padding-bottom: 10px;
}
.home .hero.hero-home .banner-center {
  width: 100%;
}
.home .population-strip {
  margin-top: 0;
  gap: 18px;
}
.home .hero-panel {
  background: rgba(10, 14, 24, 0.08);
  border-color: rgba(230, 235, 243, 0.16);
}
.home .big-number { color: #ececec; }
.home .hero h1 { color: #eeeeee; }
/* 首页搜索等区块标题：与沙漏日期/人口数字同档，减轻刺眼 */
.home .section-title {
  color: #a8b0bc;
  transition: color 0.22s ease;
  cursor: default;
}
.home .section-title:hover {
  color: #f2f5fa;
}
/* 标题「搜索纪念」：竖条左缘与下方搜索框外边框左缘垂直对齐（略右移整块标题） */
.home .card .section-title {
  position: relative;
  margin: 0 0 10px 2px;
  padding-left: 11px;
  /* 略小于全局区块标题 token，与缩小后的主标语拉开层次，仍略高于搜索框 17px */
  font-size: clamp(1.05rem, 2.6vw, 1.22rem);
  line-height: 1.35;
  box-sizing: border-box;
  /* 不用 border-left（会拉满行高）；改用短竖条，仅比文字略高 */
  border-left: none;
}
.home .card .section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  /* 宽度与原 border-left: 4px 一致，只改高度 */
  width: 4px;
  height: calc(1em + 2px);
  border-radius: 0;
  background: var(--color-accent);
}
/* 控件间距与卡片左右内边距同档(20px)；不拉伸搜索行，高级搜索→右缘保持卡片原有 padding */
.home .card .search-line {
  align-items: center;
  margin-bottom: 0;
  gap: 20px;
  box-sizing: border-box;
}
.home .hero p,
.home .hero-desc { color: #c4c4c4; }
.home .quote { color: #e0e0e0 !important; }
/* 与沙漏两侧日期/时间同档色；tabular 数字（无衬线） */
.home .population-value {
  color: var(--home-population-value-color);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.15;
  min-height: 1.15em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home .population-label {
  color: #aeb0ba;
  line-height: 1.25;
  min-height: calc(1em * 1.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 首页人口 / 沙漏日期时间 → 帮助中心 FAQ #population-data / #datetime-display */
.home .home-meta-help-link {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.home .home-meta-help-link--population {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.home .home-meta-help-link--datetime {
  display: block;
  width: 100%;
  color: var(--home-population-value-color);
}
.home .sandglass-meta {
  color: var(--home-population-value-color);
}
@media (min-width: 861px) {
  .home .home-meta-help-link {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s ease;
  }
  .home .home-meta-help-link--population:hover,
  .home .home-meta-help-link--population:focus-visible,
  .home .home-meta-help-link--datetime:hover,
  .home .home-meta-help-link--datetime:focus-visible {
    color: #e8ecf2;
  }
  .home .home-meta-help-link[data-help-tip]::after {
    content: attr(data-help-tip);
    position: absolute;
    z-index: 24;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%);
    width: max-content;
    max-width: min(300px, 88vw);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(230, 235, 243, 0.22);
    background: rgba(12, 16, 26, 0.94);
    color: #d8dce4;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.01em;
    text-align: left;
    white-space: normal;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
  }
  .home .home-meta-help-link:hover::after,
  .home .home-meta-help-link:focus-visible::after {
    opacity: 1;
    visibility: visible;
  }
  .home .population-item:first-child .home-meta-help-link--population::after {
    left: 0;
    transform: none;
  }
  .home .population-item:last-child .home-meta-help-link--population::after {
    left: auto;
    right: 0;
    transform: none;
  }
  .home .sandglass-meta-left.home-meta-help-link--datetime::after {
    left: 0;
    transform: none;
  }
  .home .sandglass-meta-right.home-meta-help-link--datetime::after {
    left: auto;
    right: 0;
    transform: none;
  }
}
.home .metric strong { color: #eaeaea; }
.home .metric span { color: #c0c0c0; }

.home .search-line input,
.home .search-line select,
.home .search-line textarea {
  background: rgba(10, 14, 24, 0.08);
  border: 1px solid rgba(230, 235, 243, 0.18);
  color: #c8c8d0;
  /* 与同行「开始搜索 / 高级搜索」按钮同高、字号略加大 */
  font-size: 17px;
  line-height: 1.3;
  padding: 11px 14px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}
/* 首页搜索框：占位符悬停点亮、聚焦淡出；边线亮度对齐占位文字 */
.home .search-line input:focus,
.home .search-line input:focus-visible,
.home .search-line input.is-search-input-focused {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  border-color: #f2f5fa;
  box-shadow: none;
}
.home .search-line input:focus::placeholder,
.home .search-line input:focus-visible::placeholder,
.home .search-line input.is-search-input-focused::placeholder,
.home .search-line input:focus::-webkit-input-placeholder,
.home .search-line input:focus-visible::-webkit-input-placeholder,
.home .search-line input.is-search-input-focused::-webkit-input-placeholder {
  opacity: 0;
  color: transparent;
}
.home .search-line input:focus:not(:placeholder-shown),
.home .search-line input:focus-visible:not(:placeholder-shown),
.home .search-line input.is-search-input-focused:not(:placeholder-shown) {
  border-color: #f2f5fa;
  box-shadow: 0 0 0 1px rgba(242, 246, 252, 0.45);
}
@media (min-width: 861px) {
  .home .search-line input:hover:not(:focus):not(:focus-visible) {
    border-color: #f2f5fa;
    box-shadow: none;
  }
  .home .search-line input:hover:not(:focus):not(:focus-visible)::placeholder {
    color: #f2f5fa;
    opacity: 1;
  }
  .home .card:has(.section-title:hover) .search-line input:not(:focus):not(:focus-visible) {
    border-color: #f2f5fa;
    box-shadow: none;
  }
  .home .card:has(.section-title:hover) .search-line input:not(:focus):not(:focus-visible)::placeholder {
    color: #f2f5fa;
    opacity: 1;
  }
}
.home .search-line input::placeholder,
.home input::placeholder,
.home textarea::placeholder {
  color: #aeb0ba;
  opacity: 1;
  transition: color 0.22s ease, opacity 0.22s ease;
}
.home .search-line .primary,
.home .search-line button.primary,
.home .search-line a.primary {
  background: rgba(10, 14, 24, 0.08);
  color: #a8b0bc;
  border: 1px solid rgba(230, 235, 243, 0.18);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  padding: 11px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 8px;
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}
.home .search-line button.primary {
  -webkit-appearance: none;
  appearance: none;
}
.home .search-line .primary:hover,
.home .search-line button.primary:hover,
.home .search-line a.primary:hover {
  color: #f2f5fa;
  border-color: rgba(238, 242, 250, 0.42);
  background: rgba(10, 14, 24, 0.12);
}
.home .search-line .primary:focus-visible,
.home .search-line button.primary:focus-visible,
.home .search-line a.primary:focus-visible {
  color: #f2f5fa;
  border-color: rgba(238, 242, 250, 0.42);
  background: rgba(10, 14, 24, 0.12);
}
.home .memorial-item {
  background: transparent;
  border-color: rgba(230, 235, 243, 0.18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}
.home .memorial-item__pane--top h3 { color: #c8c8d0; }
.home .memorial-item__place,
.home .memorial-item__birth,
.home .memorial-item__death,
.home .memorial-item__dash { color: #aeb0ba; }
.home .memorial-item__pane--bottom {
  border-top-color: rgba(230, 235, 243, 0.14);
}
.home .memorial-item__avatar {
  border-color: rgba(230, 235, 243, 0.45);
  color: #aeb0ba;
  background: rgba(10, 14, 24, 0.25);
}

.home .sandglass-stage {
  background: rgba(10, 14, 24, 0.08);
  border: 1px solid rgba(230, 235, 243, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  margin: 24px auto;
  /* 日期 | 沙漏列 | 时间：三列纵向居中；沙漏列高度已含沙子雨占位 */
  align-items: center;
  align-content: center;
  padding: 18px 12px 20px;
}
@media (min-width: 861px) {
  /*
   * PC 沙漏 / 人口栏：人口内边距 X；沙漏内边距略小，日期–时间横向跨度 ≥ 人口数字跨度。
   */
  body.home {
    --home-pc-pop-edge: clamp(50px, 7vw, 130px);
    --home-pc-sandglass-edge: clamp(42px, calc(7vw - 10px), 120px);
  }
  /*
   * PC 沙漏：[左边框] + X + 日期 + 沙漏(水平几何居中) + 时间 + X + [右边框]
   */
  body.home .sandglass-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 18px var(--home-pc-sandglass-edge) 20px;
  }
  body.home .sandglass-meta {
    font-size: clamp(18px, 2.35vw, 28px);
  }
  body.home .sandglass-meta-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    text-align: left;
  }
  body.home .sandglass-wrap {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  body.home .sandglass-meta-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    text-align: right;
  }
  body.home .home-meta-help-link--datetime {
    width: auto;
  }
  /*
   * PC 人口栏：诞生数字左对齐、死亡数字右对齐，X 与沙漏栏一致。
   */
  .home .hero.hero-home {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .home .population-strip {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 0;
    justify-items: stretch;
    padding-left: var(--home-pc-pop-edge);
    padding-right: var(--home-pc-pop-edge);
    box-sizing: border-box;
  }
  .home .population-item:first-child {
    justify-self: start;
    text-align: left;
  }
  .home .population-item:nth-child(2) {
    justify-self: center;
    text-align: center;
  }
  .home .population-item:last-child {
    justify-self: end;
    text-align: right;
  }
  .home .population-item:first-child .home-meta-help-link--population {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    width: max-content;
    max-width: 100%;
  }
  .home .population-item:nth-child(2) .home-meta-help-link--population {
    align-items: center;
  }
  .home .population-item:last-child .home-meta-help-link--population {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    width: max-content;
    max-width: 100%;
  }
  /* 数字贴左右边距；标签在同宽块内居中（随数字位数变宽） */
  .home .population-item:first-child .population-value {
    justify-content: flex-start;
    text-align: left;
    width: auto;
  }
  .home .population-item:first-child .population-label {
    justify-content: center;
    text-align: center;
    width: auto;
  }
  .home .population-item:nth-child(2) .population-value,
  .home .population-item:nth-child(2) .population-label {
    justify-content: center;
    text-align: center;
  }
  .home .population-item:last-child .population-value {
    justify-content: flex-end;
    text-align: right;
    width: auto;
  }
  .home .population-item:last-child .population-label {
    justify-content: center;
    text-align: center;
    width: auto;
  }
  .home .population-label {
    font-size: clamp(13px, 1.32vw, 18px);
  }
}
.home .sandglass-spacer {
  flex: 0 0 18px;
  height: 18px;
}

/* 首页垂直中轴：与 .container 版心 50% 一致。域名已居中；沙漏滴漏/颈部原为 50.05% 相对素材微调，会与 logo、蜡烛中轴错开约 1px，故在首页改为严格 50%。 */
.home .sand-stream,
.home .sand-neck-flow {
  left: 50%;
}

.home .legacy-below-sandglass {
  width: 100%;
  max-width: 100%;
  /* 下边距与 body.home main 的 padding-bottom 一起决定「分隔线」相对视口位置；勿用页脚内垫高蜡烛区 */
  margin: 10px auto 29px;
  padding: 0;
  box-sizing: border-box;
}
.home .legacy-below-sandglass-inner {
  background: rgba(10, 14, 24, 0.08);
  border: 1px solid rgba(230, 235, 243, 0.16);
  padding: 16px 14px 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
}
/* 比页脚略暗一档，仍退在星空里；与页脚同步微调可读性（窄屏再略提亮） */
.home .legacy-below-sandglass .legacy-line,
.home .legacy-below-sandglass .big-number {
  color: var(--home-legacy-text-color);
  opacity: var(--home-legacy-text-opacity);
  width: 100%;
  position: relative;
  left: 0;
  transform: translateX(-0.75ch);
  transition: color 220ms ease, text-shadow 220ms ease;
}

.home .legacy-below-sandglass {
  --legacy-x: 50%;
  --legacy-y: 50%;
  touch-action: manipulation;
}
.home .legacy-below-sandglass .legacy-below-sandglass-inner {
  position: relative;
  overflow: hidden;
}
.home .legacy-below-sandglass .legacy-below-sandglass-inner::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  background: radial-gradient(
    170px circle at var(--legacy-x) var(--legacy-y),
    rgba(188, 198, 224, 0.34) 0%,
    rgba(178, 188, 214, 0.2) 36%,
    rgba(170, 180, 206, 0.1) 60%,
    transparent 82%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms ease;
  z-index: 0;
}
.home .legacy-below-sandglass .legacy-line {
  position: relative;
  z-index: 1;
}
.home .legacy-below-sandglass.is-pointer-active .legacy-below-sandglass-inner::before {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .home .legacy-below-sandglass:hover .legacy-line,
  .home .legacy-below-sandglass:hover .big-number {
    color: #aab3c8;
    text-shadow: 0 0 14px rgba(198, 208, 232, 0.34);
  }
}
/*
 * 首页窄屏交互：按视口宽度启用 hover/active（兼容 DevTools 手机模拟 + 真机触控）。
 * 勿仅用 (hover: none)——设备模拟下即使用鼠标滑过，(hover: hover) 也为 false。
 */
@media (max-width: 860px) {
  .home .search-line input:hover:not(:focus):not(:focus-visible),
  .home .search-line input:active:not(:focus):not(:focus-visible) {
    border-color: #f2f5fa;
    box-shadow: none;
  }
  .home .search-line input:hover:not(:focus):not(:focus-visible)::placeholder,
  .home .search-line input:active:not(:focus):not(:focus-visible)::placeholder {
    color: #f2f5fa;
    opacity: 1;
  }
  .home .card:has(.section-title:hover) .search-line input:not(:focus):not(:focus-visible),
  .home .card:has(.section-title:active) .search-line input:not(:focus):not(:focus-visible),
  .home .card.is-section-title-active .search-line input:not(:focus):not(:focus-visible) {
    border-color: #f2f5fa;
    box-shadow: none;
  }
  .home .card:has(.section-title:hover) .search-line input:not(:focus):not(:focus-visible)::placeholder,
  .home .card:has(.section-title:active) .search-line input:not(:focus):not(:focus-visible)::placeholder,
  .home .card.is-section-title-active .search-line input:not(:focus):not(:focus-visible)::placeholder {
    color: #f2f5fa;
    opacity: 1;
  }
  .home .section-title:hover,
  .home .section-title:active,
  .home .card.is-section-title-active .section-title {
    color: #f2f5fa;
  }
  .home .search-line .primary:hover,
  .home .search-line button.primary:hover,
  .home .search-line a.primary:hover,
  .home .search-line .primary:active,
  .home .search-line button.primary:active,
  .home .search-line a.primary:active {
    color: #f2f5fa;
    border-color: rgba(238, 242, 250, 0.42);
    background: rgba(10, 14, 24, 0.12);
  }
  .home .home-mobile-topbar .header-right.top-right-tools .lang-switch--desktop button:hover,
  .home .home-mobile-topbar .header-right.top-right-tools .lang-switch--desktop button:active {
    background: rgba(248, 250, 252, 0.18);
    color: #f2f5fa;
    border-color: rgba(238, 242, 250, 0.62);
  }
  .home .home-mobile-topbar .user-center:hover,
  .home .home-mobile-topbar .user-center:active {
    opacity: 0.82;
  }
  .home .home-mobile-logo-btn:hover,
  .home .home-mobile-logo-btn:active,
  .home .home-mobile-logo-center:hover,
  .home .home-mobile-logo-center:active {
    background: transparent;
    border-color: transparent;
  }
  .home .home-mobile-primary-nav__link:hover,
  .home .home-mobile-primary-nav__link:active,
  .home .home-mobile-primary-nav__link:focus-visible {
    color: #f2f5fa;
    background: rgba(248, 250, 252, 0.06);
  }
  /*
   * 手机 1170 亿文案：默认灰暗白；点击全文+边框亮；滑动随指尖提亮；松手后再亮 3s 淡出
   */
  .home .legacy-below-sandglass .legacy-below-sandglass-inner::before {
    opacity: 0 !important;
    visibility: hidden;
    transition: opacity 0.2s ease;
  }
  .home .legacy-below-sandglass.is-legacy-dragging.is-pointer-active .legacy-below-sandglass-inner {
    isolation: isolate;
  }
  .home .legacy-below-sandglass.is-legacy-dragging.is-pointer-active .legacy-below-sandglass-inner::before {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2;
    background: radial-gradient(
      92px circle at var(--legacy-x) var(--legacy-y),
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.72) 32%,
      rgba(255, 255, 255, 0.22) 56%,
      transparent 74%
    );
    mix-blend-mode: screen;
  }
  .home .legacy-below-sandglass.is-legacy-dragging.is-pointer-active .legacy-line,
  .home .legacy-below-sandglass.is-legacy-dragging.is-pointer-active .big-number {
    position: relative;
    z-index: 1;
  }
  .home .legacy-below-sandglass .legacy-below-sandglass-inner {
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
  }
  .home .legacy-below-sandglass .legacy-line,
  .home .legacy-below-sandglass .big-number {
    color: var(--home-legacy-text-color);
    opacity: var(--home-legacy-text-opacity);
    text-shadow: none;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    transition: color 0.45s ease, text-shadow 0.45s ease;
  }
  .home .legacy-below-sandglass.is-pointer-active .legacy-below-sandglass-inner {
    border-color: #f2f5fa;
    box-shadow: none;
  }
  .home .legacy-below-sandglass.is-legacy-sustained.is-pointer-active .legacy-line,
  .home .legacy-below-sandglass.is-legacy-sustained.is-pointer-active .big-number,
  .home .legacy-below-sandglass.is-legacy-touching.is-pointer-active:not(.is-legacy-dragging) .legacy-line,
  .home .legacy-below-sandglass.is-legacy-touching.is-pointer-active:not(.is-legacy-dragging) .big-number {
    color: #f2f5fa;
    opacity: 1;
    text-shadow: none;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
  .home .legacy-below-sandglass.is-legacy-touching.is-legacy-dragging.is-pointer-active .legacy-line,
  .home .legacy-below-sandglass.is-legacy-touching.is-legacy-dragging.is-pointer-active .big-number {
    color: #9aa0aa;
    opacity: 1;
    text-shadow: none;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
  .home .footer-line--bottom a:hover,
  .home .footer-line--bottom a:active {
    color: #8e93a0;
  }
}

.home .site-footer {
  position: relative;
  background: rgba(10, 14, 24, 0.1);
  border-top: none;
  /* 顶部分隔：白→黑渐变（出生→死亡意象），见共用 ::before 规则 */
  padding-top: 17px;
  /* 与首页右上角按钮距浏览器顶边（9 + 12 ≈ 21px）对齐，形成上下视觉平衡 */
  padding-bottom: 21px;
  /* 页脚文字与 1170 亿文案区同档色；具体字色见 --home-footer-text-*（仅行容器设 opacity，防嵌套叠色） */
  font-size: 12px;
  --footer-row-gap: 6px;
  /* 页脚统计：访问人次预留须大于创建纪念；中英数字相同，占位统一 */
  --footer-stat-digit-slots-visitors: 7;
  --footer-stat-digit-slots-memorials: 5;
}
/* 中文页脚：比英文大一号（英文行长、略小；中文可略大） */
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .site-footer {
  font-size: 13px;
}
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .site-footer .footer-line--text,
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .site-footer .footer-line--journey,
:is(html[lang="zh"], html[lang="zh-Hant"]) .home .site-footer .footer-line--bottom {
  font-size: 13px;
  line-height: 1.22;
}
.footer-line {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  flex-wrap: wrap;
}
.home .site-footer .footer-line + .footer-line {
  margin-top: var(--footer-row-gap);
}
.footer-line + .footer-line {
  margin-top: 4px;
}
.footer-line--text {
  flex-direction: column;
  align-items: center;
}
.footer-note-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
  gap: var(--footer-row-gap);
}
.footer-note-stack .footer-note-line {
  display: block;
  margin: 0;
  max-width: min(920px, 100%);
}
.footer-line--text,
.footer-line--journey,
.footer-line--bottom { font-size: 12px; line-height: 1.2; }
body:not(.home) .footer-line--bottom a,
body:not(.home) .footer-line--bottom span { color: #d4d4d4; }
/* 页脚：仅 .footer-line--text / --journey / --bottom 行容器设色与 opacity，子元素 inherit + opacity:1，统计区与链接不得两档色 */
.home .site-footer .footer-line--text,
.home .site-footer .footer-line--journey,
.home .site-footer .footer-line--bottom {
  color: var(--home-footer-text-color);
  opacity: var(--home-footer-text-opacity);
}
.home .site-footer .footer-line--text :where(a, span, strong, p),
.home .site-footer .footer-line--journey :where(a, span, strong, p),
.home .site-footer .footer-line--bottom :where(a, span, strong) {
  color: inherit;
  opacity: 1;
}
.home .site-footer .footer-line--bottom strong {
  font-weight: 600;
}
.footer-line--bottom a { text-decoration: none; }

/* 表单蜜罐 / Turnstile（联系、登录等） */
.tdw-honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tdw-turnstile-slot {
  display: flex;
  justify-content: center;
  margin: 10px 0 6px;
  max-width: 100%;
  min-height: 0;
}

/* 暂时隐去页脚「捐赠支持」（donate 页与顶栏入口保留） */
.site-footer a[href="donate.html"],
.subpage-footer a[href="donate.html"],
#footer-donation {
  display: none !important;
}

/* 首页 / 二级页 ViZNA：窄屏见 @media (max-width:860px)；PC 首页去掉伦理准则并显示 ViZNA */
.home #footer-vizna,
body.subpage .subpage-footer #footer-vizna {
  display: none;
}
@media (min-width: 861px) {
  .home #footer-ethics {
    display: none !important;
  }
  .home #footer-vizna,
  body.subpage .subpage-footer #footer-vizna {
    display: inline;
  }
}
@media (min-width: 861px) {
  .footer-rights-vizna {
    display: contents;
  }
}

/* 页脚文案行分隔点；桌面与旅程行共用 --footer-dot-gap，窄屏略紧以贴近原空格观感 */
.footer-sep {
  display: inline;
  margin: 0 0.25em;
  font-weight: 400;
  color: inherit;
}
/* 页脚破折号：文案行与旅程导语共用同一节点样式 */
.footer-dash {
  display: inline;
  margin: 0 var(--footer-dash-gap, 0.25em);
  font-weight: 400;
  letter-spacing: 0;
  color: inherit;
}

/* 站群导航：八站统一 4+4 两行 — FOOTER-SITE-NAV.md */
.footer-line--journey {
  display: none !important;
}
.footer-line--journey.is-enabled {
  display: flex !important;
  flex-direction: column;
  width: 100%;
}
.footer-journey__lead {
  display: none !important;
}
.footer-journey {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}
.footer-journey__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--footer-row-gap, 4px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-journey__list > li {
  display: inline-flex;
  align-items: center;
}
/* 行容器本身不加点；站名分隔由子项或桌面 display:contents 后的子项承担 */
.footer-journey__list > li.footer-journey__row::after {
  content: none;
}
/* 导语与破折号按文字基线对齐，避免 ::after + align-items:center 造成偏下/显粗 */
.footer-journey__list > li.footer-journey__lead {
  align-items: baseline;
  font-weight: 400;
}
.footer-journey__lead {
  font-weight: 400;
}
/* 旅程站间点：独立节点，不在 <a> 内，避免悬停下划线与手型光标 */
.footer-journey__dot {
  display: inline;
  margin: 0 0.55em;
  font-weight: 400;
  color: inherit;
  cursor: default;
  pointer-events: none;
  text-decoration: none;
  user-select: none;
}
/* 桌面 ≥861px：首页+二级页、中/英 — 文案行与旅程行分隔点统一为 •，字重与前后间距一致 */
@media (min-width: 861px) {
  .home .site-footer,
  body.subpage .subpage-footer {
    --footer-dot-gap: 0.50em;
    --footer-dash-gap: 0.25em;
    --footer-journey-dot-gap: 0.42em;
  }
  .home .site-footer .footer-sep,
  body.subpage .subpage-footer .footer-sep {
    display: inline;
    margin: 0 var(--footer-dot-gap);
    font-weight: 400;
    color: inherit;
  }
  .home .site-footer .footer-dash,
  body.subpage .subpage-footer .footer-dash {
    margin: 0 var(--footer-dash-gap);
    font-weight: 400;
    letter-spacing: 0;
    color: inherit;
  }
  /* PC：八站单行 8×1；HTML 仍两行语义容器，display:contents 压平为一行 */
  .footer-journey__list {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    gap: 0;
  }
  .footer-journey__row {
    display: contents;
  }
  .footer-journey__row > * {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .footer-journey__dot {
    margin: 0 var(--footer-journey-dot-gap);
  }
  html[lang="en"] .footer-journey__list {
    letter-spacing: -0.01em;
  }
}
/* 英文站名：手机 labelEn（含域名后缀），PC labelEnPc（短名） */
.footer-journey__en-label--pc {
  display: none;
}
@media (min-width: 861px) {
  .footer-journey__en-label--mobile {
    display: none;
  }
  .footer-journey__en-label--pc {
    display: inline;
  }
}
.footer-journey__link {
  text-decoration: none;
  color: inherit;
}
.footer-journey__link:hover,
.footer-journey__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-journey__here {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  font-weight: 600;
  color: inherit;
  cursor: default;
  outline: none;
}
.footer-journey__here-mark {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  z-index: 2;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 400;
  font-size: 0.86em;
  line-height: 1.3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  background: rgba(242, 242, 248, 0.98);
  color: #1c1c24;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.footer-journey__here-mark::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top-color: rgba(242, 242, 248, 0.98);
}
.footer-journey__here:hover .footer-journey__here-mark,
.footer-journey__here:focus-visible .footer-journey__here-mark {
  opacity: 1;
  visibility: visible;
}
.home .footer-journey__link:hover,
.home .footer-journey__link:focus-visible {
  color: #c8c8d0;
  text-decoration: underline;
  text-underline-offset: 2px;
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}
/*
 * 主页 PC：页脚无链接文案随鼠标局部点亮（径向光斑跟手，非整行）。
 * 仅 (hover:hover)+(pointer:fine)+≥861px；链接仍用上方既有悬停。
 */
@media (hover: hover) and (pointer: fine) {
  @media (min-width: 861px) {
    .home .site-footer .footer-journey__here.footer-spot-text {
      --footer-spot-base: var(--footer-journey-here-color);
    }
    .home .site-footer.is-footer-spot-active .footer-spot-text,
    .home .site-footer.is-footer-spot-active .footer-spot-text span:not(.footer-journey__here-mark),
    .home .site-footer.is-footer-spot-active .footer-spot-text strong,
    .home .site-footer.is-footer-spot-active .footer-line--journey .footer-journey__here.footer-spot-text,
    .home .site-footer.is-footer-spot-active .footer-line--journey .footer-journey__here.footer-spot-text > span:not(.footer-journey__here-mark) {
      background-image: radial-gradient(
        100px circle at var(--spot-x, -999px) var(--spot-y, -999px),
        #c8d0e4 0%,
        #aab3c8 28%,
        var(--footer-spot-base, var(--home-footer-text-color, #474d59)) 75%
      );
      background-color: transparent;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
    }
    /* tooltip 保持实色底板，不受 text-fill 透明影响 */
    .home .site-footer.is-footer-spot-active .footer-spot-text .footer-journey__here-mark {
      background-image: none;
      -webkit-background-clip: border-box;
      background-clip: border-box;
      -webkit-text-fill-color: #1c1c24;
      color: #1c1c24;
    }
  }
}
/* 本站「数字纪念」：压过行内 inherit；比其它七站链接更亮 + 加粗 */
.home .site-footer .footer-line--journey .footer-journey__here,
.home .site-footer .footer-line--journey .footer-journey__here > span:not(.footer-journey__here-mark) {
  color: var(--footer-journey-here-color);
  font-weight: 700;
  opacity: 1;
}
body.subpage .subpage-footer .footer-journey__lead,
body.subpage .subpage-footer .footer-journey__link,
body.subpage .subpage-footer .footer-journey__here {
  color: rgba(236, 242, 251, 0.86);
  opacity: 1;
}
body.subpage .subpage-footer .footer-journey__here,
body.subpage .subpage-footer .footer-journey__here > span:not(.footer-journey__here-mark) {
  color: color-mix(in srgb, rgb(236, 242, 251) 90%, #ffffff 10%);
  font-weight: 700;
  opacity: 1;
}
body.subpage .footer-journey__here-mark {
  background: rgba(248, 248, 252, 0.98);
  color: #1c1c24;
}
body.subpage .footer-journey__here-mark::after {
  border-top-color: rgba(248, 248, 252, 0.98);
}
body.subpage .subpage-footer .footer-line--journey {
  color: rgba(236, 242, 251, 0.86);
}
@media (max-width: 860px) {
  /*
   * 手机站群行：八站 4+4（FOOTER-SITE-NAV.md）
   * 每行独立 nowrap flex；英文略收点距。
   */
  .footer-journey__dot--row-bridge {
    display: none !important;
  }
  .footer-journey__list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: var(--footer-row-gap, 8px);
  }
  .footer-journey__list > li.footer-journey__lead {
    margin: 0;
    justify-content: center;
    align-items: baseline;
    white-space: normal;
  }
  .footer-journey__row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: baseline;
    max-width: 100%;
    white-space: nowrap;
  }
  .footer-journey__row > * {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
  }
  /* PC 压单行时由 row-bridge 补第 4↔5 站间点；手机第二行行首隐藏 */
  .footer-journey__dot--row-bridge {
    display: inline;
  }
  html[lang="en"] .home .footer-line--journey .footer-journey__row,
  html[lang="en"] body.subpage .footer-line--journey .footer-journey__row {
    letter-spacing: -0.02em;
  }
  .footer-journey__here-mark {
    bottom: calc(100% + 4px);
    font-size: 0.82em;
  }
}

/* 第三行：同一 flex 内统一 gap，任意相邻两项间距一致（含换行） */
.footer-line--bottom {
  width: 100%;
  gap: 12px;
}
/* 英文第三行项多，禁止换行成第四行：单行 + 略缩字距与字号；极窄屏可横向滑动查看 */
html[lang="en"] .home .footer-line--bottom {
  flex-wrap: nowrap;
  row-gap: 0;
  gap: 6px 8px;
  font-size: 11px;
  line-height: 1.25;
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
html[lang="en"] .home .footer-line--bottom::-webkit-scrollbar {
  height: 4px;
}
html[lang="en"] .home .footer-line--bottom::-webkit-scrollbar-thumb {
  background: rgba(226, 232, 240, 0.25);
  border-radius: 4px;
}
/* 统计数字：预留宽度 + 等宽数字，减少跳动（访问人次位数 > 创建纪念） */
.home .site-footer #footer-count-visitors,
.home .site-footer #footer-count-memorials {
  display: inline-block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.home .site-footer #footer-count-visitors {
  min-width: calc(var(--footer-stat-digit-slots-visitors) * 1ch);
}
.home .site-footer #footer-count-memorials {
  min-width: calc(var(--footer-stat-digit-slots-memorials) * 1ch);
}
/* 悬停 / 点击 / 键盘聚焦时显示下划线（默认无下划线） */
.home .footer-line--bottom a:hover,
.home .footer-line--bottom a:focus-visible,
.home .footer-line--bottom a:active {
  color: #c4cad8;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-logo--candle {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.footer-logo--candle .candle {
  position: relative;
  width: 9px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f7f2d9 0%, #e7dfbe 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}
.footer-logo--candle .candle::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.6px;
  height: 4px;
  background: #5f4a3e;
  border-radius: 1px;
}
.footer-logo--candle .candle-flame {
  position: absolute;
  left: 50%;
  top: -11px;
  transform: translateX(-50%);
  width: 10px;
  height: 13px;
  border-radius: 50% 50% 55% 55%;
  background: radial-gradient(circle at 50% 16%, #fffbe1 0%, #ffe7a4 34%, #ffc466 62%, #ff983a 84%, #ff792e 100%);
  filter: drop-shadow(0 0 10px rgba(255, 196, 118, 0.95));
  animation: candleFlicker 1.25s ease-in-out infinite;
}
.footer-logo--candle .candle-flame::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 130, 0.55) 0%, rgba(255, 180, 90, 0.22) 45%, rgba(255, 150, 60, 0) 78%);
  filter: blur(2px);
  pointer-events: none;
}

@keyframes candleFlicker {
  0% { transform: translateX(-50%) scale(1) rotate(-2.4deg); opacity: 0.98; }
  30% { transform: translateX(-50%) scale(0.9, 1.08) rotate(2.2deg); opacity: 0.82; }
  65% { transform: translateX(-50%) scale(1.08, 0.92) rotate(-3.2deg); opacity: 1; }
  100% { transform: translateX(-50%) scale(1) rotate(-2.4deg); opacity: 0.98; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-logo--candle .candle-flame { animation: none !important; }
}

@media (max-width: 860px) {
  /* 二级页手机 L0 页头主标题 — 全站统一 token，勿各页单独写更小 clamp */
  main.subpage-main .page-header h1,
  main.subpage-main .privacy-header h1,
  main.subpage-main .disclaimer-header h1,
  main.subpage-main .cookies-header h1,
  main.subpage-main .copyright-header h1,
  main.subpage-main > section.hero:first-child h1,
  main.subpage-main > .subpage-hero h1,
  main.subpage-main .thanks-card h1,
  body.about-page main.subpage-main.copyright-main .copyright-header h1,
  body.about-page main.subpage-main.privacy-main .privacy-header h1,
  body.about-page main.subpage-main.disclaimer-main .disclaimer-header h1,
  body.about-page main.subpage-main.cookies-main .cookies-header h1,
  body.about-page main.subpage-main.onchain-main .page-header h1,
  body.about-page main.subpage-main.howto-main .page-header h1,
  body.about-page main.subpage-main.memorial-main .page-header h1,
  body.about-page main.subpage-main.contact-main .page-header h1,
  body.about-page main.subpage-main.donate-main .page-header h1,
  body.about-page main.subpage-main.useradmin-main .page-header h1 {
    font-size: var(--font-size-subpage-title) !important;
    line-height: 1.36 !important;
    letter-spacing: normal !important;
  }

  /*
   * 中文二级页 L0 主标题 / L0.5 副标题题记：
   * 锁定 Noto 字重 + 禁 font-synthesis，避免 iOS（PingFang/系统字）与 Android（Noto/Roboto）各自「伪粗」导致观感不一致。
   */
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main .page-header h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main .privacy-header h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main .disclaimer-header h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main .cookies-header h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main .copyright-header h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main > section.hero:first-child h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main > .subpage-hero h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main .thanks-card h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page main.subpage-main.copyright-main .copyright-header h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page main.subpage-main.privacy-main .privacy-header h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page main.subpage-main.disclaimer-main .disclaimer-header h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page main.subpage-main.cookies-main .cookies-header h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page main.subpage-main.onchain-main .page-header h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page main.subpage-main.howto-main .page-header h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page main.subpage-main.memorial-main .page-header h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page main.subpage-main.contact-main .page-header h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page main.subpage-main.donate-main .page-header h1,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page .about-ref-quote {
    font-family: "Noto Serif SC", serif !important;
    font-weight: 500 !important;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    letter-spacing: normal !important;
  }

  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main .page-header p,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main > section.hero:first-child p,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main .thanks-card .subhead,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main .subpage-hero p,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main .privacy-header .privacy-meta,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main.privacy-main .privacy-meta,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main .disclaimer-header .disclaimer-meta,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main.disclaimer-main .disclaimer-meta,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main .cookies-header .cookies-meta,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main.cookies-main .cookies-meta,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.subpage-main .copyright-header .copyright-meta,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page .about-ref-stats,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.onchain-main .page-header .onchain-page-subtitle,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.onchain-main .page-header p.onchain-page-subtitle,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.howto-main .page-header p,
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) main.memorial-main .page-header p {
    font-family: "Noto Sans SC", sans-serif !important;
    font-weight: 400 !important;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
  }

  /*
   * Android 手机：Noto 同数值字重偏细；较 iOS 提一档。
   * 关于页主标题 / 字标题的字号+字重扩展到全站二级页（仅 Android，不影响 iOS/PC）。
   * 依赖 js/platform-class.js（或页头内联）在 html 上加 .platform-android。
   */
  html.platform-android {
    /* 短主标题保持 22px；关于页长引言仍用下方 21px 规则 */
    --font-size-subpage-title: 22px;
  }

  /* Android L0 主标题：700 + 允许合成粗体 + 轻描边（比 900 略轻，仍比默认 500 明显） */
  html.platform-android main.subpage-main .page-header h1,
  html.platform-android main.subpage-main .privacy-header h1,
  html.platform-android main.subpage-main .disclaimer-header h1,
  html.platform-android main.subpage-main .cookies-header h1,
  html.platform-android main.subpage-main .copyright-header h1,
  html.platform-android main.subpage-main > section.hero:first-child h1,
  html.platform-android main.subpage-main > .subpage-hero h1,
  html.platform-android main.subpage-main .thanks-card h1,
  html.platform-android body.about-page main.subpage-main.copyright-main .copyright-header h1,
  html.platform-android body.about-page main.subpage-main.privacy-main .privacy-header h1,
  html.platform-android body.about-page main.subpage-main.disclaimer-main .disclaimer-header h1,
  html.platform-android body.about-page main.subpage-main.cookies-main .cookies-header h1,
  html.platform-android body.about-page main.subpage-main.onchain-main .page-header h1,
  html.platform-android body.about-page main.subpage-main.howto-main .page-header h1,
  html.platform-android body.about-page main.subpage-main.memorial-main .page-header h1,
  html.platform-android body.about-page main.subpage-main.contact-main .page-header h1,
  html.platform-android body.about-page main.subpage-main.donate-main .page-header h1,
  html.platform-android body.about-page h1.about-ref-quote,
  html.platform-android body.about-page h1.about-ref-quote .about-ref-quote-line {
    font-family: "Noto Serif SC", serif !important;
    font-weight: 700 !important;
    font-synthesis: weight !important;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke: 0.25px currentColor;
  }

  html.platform-android body.about-page h1.about-ref-quote,
  html.platform-android body.about-page h1.about-ref-quote .about-ref-quote-line {
    font-size: 21px !important;
  }

  html.platform-android main.subpage-main .page-header p,
  html.platform-android main.subpage-main > section.hero:first-child p,
  html.platform-android main.subpage-main .thanks-card .subhead,
  html.platform-android main.subpage-main .subpage-hero p,
  html.platform-android main.subpage-main .privacy-header .privacy-meta,
  html.platform-android main.subpage-main.privacy-main .privacy-meta,
  html.platform-android main.subpage-main .disclaimer-header .disclaimer-meta,
  html.platform-android main.subpage-main.disclaimer-main .disclaimer-meta,
  html.platform-android main.subpage-main .cookies-header .cookies-meta,
  html.platform-android main.subpage-main.cookies-main .cookies-meta,
  html.platform-android main.subpage-main .copyright-header .copyright-meta,
  html.platform-android body.about-page .about-ref-stats,
  html.platform-android main.onchain-main .page-header .onchain-page-subtitle,
  html.platform-android main.onchain-main .page-header p.onchain-page-subtitle,
  html.platform-android main.howto-main .page-header p,
  html.platform-android main.memorial-main .page-header p {
    font-weight: 500 !important;
  }

  html.platform-android body.about-page main.about-ref-main .about-core-card h3,
  html.platform-android body.about-page main.about-ref-main .about-brand-list > li > a,
  html.platform-android body.about-page main.about-ref-main .about-legal-box .about-ref-body strong,
  html.platform-android main.subpage-main.copyright-main .section-content strong,
  html.platform-android main.subpage-main.privacy-main .privacy-section strong,
  html.platform-android main.subpage-main.disclaimer-main .disclaimer-section strong,
  html.platform-android main.subpage-main.cookies-main .cookies-section strong,
  html.platform-android main.subpage-main.privacy-main .privacy-section h3,
  html.platform-android main.subpage-main.disclaimer-main .disclaimer-section h3,
  html.platform-android main.subpage-main.cookies-main .cookies-section h3,
  html.platform-android main.onchain-main .feature-card h3,
  html.platform-android main.onchain-main .step-content > h3,
  html.platform-android main.onchain-main .step-content > h4,
  html.platform-android main.howto-main .step-content strong,
  html.platform-android main.donate-main .donation-card h3,
  html.platform-android main.thanks-main .impact-box h3,
  html.platform-android main.faq-main .faq-question,
  html.platform-android main.faq-main .faq-question .faq-question-text,
  html.platform-android body.subpage .subpage-mobile-nav-link--active {
    font-family: "Noto Serif SC", serif !important;
    font-weight: 700 !important;
    font-synthesis: none;
  }

  /* Android 栏框外 L1 字标题：19px / 700，与关于页 .about-ref-title 同档 */
  html.platform-android main.subpage-main.copyright-main .section-title,
  html.platform-android main.subpage-main.privacy-main .privacy-section h2,
  html.platform-android main.subpage-main.disclaimer-main .disclaimer-section h2,
  html.platform-android main.subpage-main.cookies-main .cookies-section h2,
  html.platform-android main.howto-main .step-title,
  html.platform-android main.memorial-main .section-title,
  html.platform-android main.onchain-main .platforms-section h2,
  html.platform-android main.onchain-main .guide-section h2,
  html.platform-android main.contact-main .form-card h2,
  html.platform-android main.faq-main .contact-box h3,
  html.platform-android main.donate-main .about-ref-title,
  html.platform-android body.about-page h2.about-ref-title {
    font-family: "Noto Serif SC", serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    font-synthesis: weight !important;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke: 0.2px currentColor;
  }

  /*
   * iOS：强制 Noto 500 + font-synthesis:none 后比原先 PingFang 观感偏细；
   * 主标题 / 字标题提到 600（用真实字重文件），不改安卓 700。
   */
  html.platform-ios main.subpage-main .page-header h1,
  html.platform-ios main.subpage-main .privacy-header h1,
  html.platform-ios main.subpage-main .disclaimer-header h1,
  html.platform-ios main.subpage-main .cookies-header h1,
  html.platform-ios main.subpage-main .copyright-header h1,
  html.platform-ios main.subpage-main > section.hero:first-child h1,
  html.platform-ios main.subpage-main > .subpage-hero h1,
  html.platform-ios main.subpage-main .thanks-card h1,
  html.platform-ios body.about-page main.subpage-main.copyright-main .copyright-header h1,
  html.platform-ios body.about-page main.subpage-main.privacy-main .privacy-header h1,
  html.platform-ios body.about-page main.subpage-main.disclaimer-main .disclaimer-header h1,
  html.platform-ios body.about-page main.subpage-main.cookies-main .cookies-header h1,
  html.platform-ios body.about-page main.subpage-main.onchain-main .page-header h1,
  html.platform-ios body.about-page main.subpage-main.howto-main .page-header h1,
  html.platform-ios body.about-page main.subpage-main.memorial-main .page-header h1,
  html.platform-ios body.about-page main.subpage-main.contact-main .page-header h1,
  html.platform-ios body.about-page main.subpage-main.donate-main .page-header h1,
  html.platform-ios body.about-page h1.about-ref-quote,
  html.platform-ios body.about-page h1.about-ref-quote .about-ref-quote-line {
    font-family: "Noto Serif SC", serif !important;
    font-weight: 600 !important;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
  }

  html.platform-ios main.subpage-main.copyright-main .section-title,
  html.platform-ios main.subpage-main.privacy-main .privacy-section h2,
  html.platform-ios main.subpage-main.disclaimer-main .disclaimer-section h2,
  html.platform-ios main.subpage-main.cookies-main .cookies-section h2,
  html.platform-ios main.howto-main .step-title,
  html.platform-ios main.memorial-main .section-title,
  html.platform-ios main.onchain-main .platforms-section h2,
  html.platform-ios main.onchain-main .guide-section h2,
  html.platform-ios main.contact-main .form-card h2,
  html.platform-ios main.faq-main .contact-box h3,
  html.platform-ios main.donate-main .about-ref-title,
  html.platform-ios body.about-page h2.about-ref-title {
    font-family: "Noto Serif SC", serif !important;
    font-weight: 600 !important;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
  }

  html.platform-android body.subpage .subpage-mobile-nav-link {
    font-weight: 600;
  }

  html.platform-android .home .home-mobile-nav-link {
    font-weight: 600;
  }

  /* iPhone 汉堡下拉：字号 +1、字重 500（Android 维持现有 600/700 补偿） */
  html.platform-ios body.subpage .subpage-mobile-nav-link {
    font-size: calc(var(--font-size-subpage-mobile-nav) + 1px);
    font-weight: 500;
  }
  html.platform-ios .home .home-mobile-nav-link {
    font-size: 18px;
    font-weight: 500;
  }

  html.platform-android:is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page .about-manifesto-box .about-ref-body,
  html.platform-android:is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page .about-manifesto-box .about-ref-body p {
    font-weight: 500 !important;
  }

  body.about-page .about-ref-main {
    padding-top: 16px !important;
  }
  body.about-page .about-ref-hero {
    margin-bottom: 22px;
  }
  body.about-page .about-ref-quote {
    font-size: 21px;
    line-height: 1.42;
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  /* 中文宣言固定 3 行，避免大小屏 / iOS·Android 自动断行不一致 */
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page .about-ref-quote {
    font-size: clamp(16.5px, 5.05vw, 21px);
  }
  :is(html[lang="zh"], html[lang="zh-CN"], html[lang="zh-Hant"]) body.about-page .about-ref-quote .about-ref-quote-line {
    display: block;
    white-space: nowrap;
  }
  body.about-page .about-ref-section {
    margin-bottom: 26px;
  }
  /* 栏框外区块标题（L1）：手机默认 600；Android 见上方 platform-android → 700 */
  body.about-page .about-ref-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
  }
  body.about-page .about-legal-box {
    padding: 16px 14px 18px !important;
  }
  /* 宣言栏框：手机中文与桌面一致用 Noto Serif SC 400（勿用 PingFang 425，Android 不支持） */
  html[lang="zh"] body.about-page .about-manifesto-box .about-ref-body,
  html[lang="zh"] body.about-page .about-manifesto-box .about-ref-body p,
  html[lang="zh-CN"] body.about-page .about-manifesto-box .about-ref-body,
  html[lang="zh-CN"] body.about-page .about-manifesto-box .about-ref-body p,
  html[lang="zh-Hant"] body.about-page .about-manifesto-box .about-ref-body,
  html[lang="zh-Hant"] body.about-page .about-manifesto-box .about-ref-body p {
    font-family: "Noto Serif SC", serif !important;
    font-size: 19px !important;
    font-weight: 400 !important;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.02em;
    line-height: 1.68;
  }
  html[lang="en"].subpage-view body.about-page .about-manifesto-box .about-ref-body,
  html[lang="en"].subpage-view body.about-page .about-manifesto-box .about-ref-body p {
    font-family: var(--font-sans) !important;
    font-size: 19px !important;
    font-weight: 400 !important;
    font-synthesis: none;
    line-height: 1.68;
  }
  /* 其他栏框正文 L3：手机 18px */
  body.about-page main.about-ref-main .about-core-card p,
  body.about-page main.about-ref-main .about-brand-teaser,
  body.about-page main.about-ref-main .about-legal-box:not(.about-manifesto-box) .about-ref-body,
  body.about-page main.about-ref-main .about-legal-box:not(.about-manifesto-box) .about-ref-body p,
  body.about-page main.about-ref-main .about-legal-box:not(.about-manifesto-box) .about-legal-list,
  body.about-page main.about-ref-main .about-legal-box:not(.about-manifesto-box) .about-legal-list li {
    font-size: 18px !important;
  }
  body.about-page main.about-ref-main .about-core-card h3,
  body.about-page main.about-ref-main .about-brand-list > li > a,
  body.about-page main.about-ref-main .about-legal-box .about-ref-body strong {
    font-size: 18px !important;
  }
  body.about-page .about-ref-body p {
    margin-bottom: 10px;
  }
  body.about-page .about-core-card {
    padding: 14px 14px 12px;
  }
  body.about-page main.about-ref-main .about-core-card h3 {
    margin-bottom: 8px;
  }
  /* 法律/政策类 L1–L3 由 --subpage-l* token 负责（手机端自动 19/18/18） */
  main.subpage-main.copyright-main .cert-table th,
  main.subpage-main.copyright-main .cert-table td {
    font-size: 15px;
  }
  main.howto-main .page-header,
  main.memorial-main .page-header {
    margin-bottom: 26px;
  }
  main.contact-main .page-header,
  main.donate-main .page-header,
  main.useradmin-main .page-header {
    margin-bottom: 12px;
  }
  main.howto-main .page-header p,
  main.memorial-main .page-header p,
  main.contact-main .page-header p,
  main.donate-main .page-header p,
  main.useradmin-main .page-header p {
    line-height: 1.45 !important;
    max-width: 100% !important;
    margin-top: 10px !important;
    white-space: normal !important;
    overflow-x: visible;
    width: auto !important;
  }
  main.contact-main .page-header p.contact-page-subtitle {
    white-space: normal !important;
    max-width: 100% !important;
    overflow-x: visible !important;
  }
  html[lang="en"] main.onchain-main .page-header .onchain-page-subtitle,
  html[lang="en"] main.onchain-main .page-header p.onchain-page-subtitle {
    white-space: normal !important;
    max-width: 100% !important;
  }
  main.howto-main .page-header p:first-of-type,
  main.memorial-main .page-header p:first-of-type:not(.memorial-page-hero__quote) {
    white-space: normal !important;
    overflow-x: visible;
  }
  main.howto-main .page-header p:last-of-type:not(:first-of-type),
  main.memorial-main .page-header p:last-of-type:not(:first-of-type) {
    white-space: normal !important;
    max-width: 100% !important;
  }
  main.howto-main .step-title {
    font-size: var(--subpage-l1-size) !important;
  }
  main.onchain-main .platforms-section h2,
  main.onchain-main .guide-section h2 {
    font-size: var(--subpage-l1-size) !important;
  }
  main.memorial-main .section-title {
    font-size: var(--subpage-l1-size) !important;
  }
  main.memorial-main .memorial-form-tail .memorial-submit-note {
    white-space: normal !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  html[lang="en"].subpage-view body.subpage main.howto-main .step-title {
    font-size: var(--subpage-l1-size) !important;
  }
  html[lang="en"].subpage-view body.subpage main.subpage-main.privacy-main .privacy-section h2,
  html[lang="en"].subpage-view body.subpage main.subpage-main.disclaimer-main .disclaimer-section h2,
  html[lang="en"].subpage-view body.subpage main.subpage-main.cookies-main .cookies-section h2,
  html[lang="en"].subpage-view body.subpage main.subpage-main.copyright-main .section-title {
    font-size: var(--subpage-l1-size);
  }
  main.subpage-main.privacy-main .privacy-section h3,
  main.subpage-main.disclaimer-main .disclaimer-section h3,
  main.subpage-main.cookies-main .cookies-section h3 {
    font-size: var(--subpage-l2-size);
  }
  body.about-page .about-ref-epilogue {
    margin-top: 18px;
    margin-bottom: 6px;
  }
  body.about-page .about-ref-epilogue h2 {
    font-size: 19px;
    margin-bottom: 10px;
  }
  body.about-page .about-ref-epilogue p,
  body.about-page .about-ref-epilogue .about-ref-epilogue-brand,
  body.about-page .about-ref-epilogue .about-ref-epilogue-brand strong {
    font-size: 17px;
    line-height: 1.65;
  }
  body.about-page .about-ref-epilogue .about-ref-epilogue-brand {
    margin-top: 16px;
  }
  body.about-page .about-ref-epilogue-line {
    margin: 10px auto 20px;
  }
  body.about-page .about-core-grid:not(.about-core-grid--binder-rows) {
    grid-template-columns: 1fr;
  }
  body.about-page .about-core-row {
    grid-template-columns: 1fr;
  }
  body.about-page .about-core-binder {
    width: 100%;
    min-height: 42px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 28px;
    margin: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(90, 80, 64, 0.12);
    border-bottom: 1px solid rgba(90, 80, 64, 0.12);
  }
  body.about-page .about-core-row > .about-core-card:first-child,
  body.about-page .about-core-row > .about-core-card:last-child {
    border-radius: 14px;
  }
  body.about-page.subpage .about-main .about-story {
    padding: 16px;
  }
  body.about-page.subpage .about-main .about-number-list {
    grid-template-columns: 1fr;
  }
  body.about-page.subpage .about-main .about-number-list > li {
    padding: 12px 12px 8px;
  }
  body.about-page .about-main .about-hero-headline {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  body.about-page .about-main .about-hero .page-subtitle {
    text-align: left;
    white-space: normal;
  }
  .hero-grid, .feature-grid, .steps, .memorial-grid, .footer-stats {
    grid-template-columns: 1fr;
  }
  .page-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .page-section h2 {
    font-size: clamp(17px, 4.7vw, 22px);
  }
  .page-card h3 {
    font-size: clamp(16px, 4.2vw, 20px);
  }
  html[lang="en"].subpage-view body.subpage main h2,
  html[lang="en"].subpage-view body.subpage .page-section h2,
  html[lang="en"].subpage-view body.subpage main .step-title {
    font-size: calc(clamp(17px, 4.7vw, 22px) * 0.92);
  }
  html[lang="en"].subpage-view body.subpage main h3,
  html[lang="en"].subpage-view body.subpage .page-card h3 {
    font-size: calc(clamp(16px, 4.2vw, 20px) * 0.92);
  }
  html[lang="en"].subpage-view body.about-page.subpage .about-ref-title {
    font-size: 18px;
  }
  html[lang="en"].subpage-view body.about-page.subpage .about-ref-epilogue h2 {
    font-size: 18px !important;
  }
  .top-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
  .top-nav.nav-bar {
    gap: 14px 20px;
  }
  .site-header--subpage-compact .top-nav.nav-bar {
    gap: 10px 16px;
  }
  .site-header--subpage-compact .top-nav.nav-bar > a {
    font-size: 18px;
  }
  .site-header--subpage-compact .nav-bar__logo {
    position: static;
    transform: none;
  }
  .nav-bar__logo {
    order: -1;
    flex-basis: 100%;
    justify-content: center;
  }
  /* 首页：窄屏恢复流式，不用 absolute logo，避免与上下叠层冲突 */
  .home .top-nav.nav-bar {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 10px;
    column-gap: 0;
    justify-items: center;
  }
  .home .top-nav.nav-bar .nav-bar__logo {
    position: static;
    transform: none;
    order: -1;
    z-index: auto;
  }
  html[lang="en"] .home .top-nav.nav-bar .nav-bar__logo {
    transform: none;
  }
  .home .nav-bar__cluster--left,
  .home .nav-bar__cluster--right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    width: 100%;
    max-width: 100%;
    flex: none;
    padding-left: 0;
    padding-right: 0;
  }
  .top-nav a {
    font-size: 17px;
    margin: 0 6px;
  }
  .top-nav.nav-bar > a {
    margin: 0;
  }
  .domain { font-size: 36px; }
  .home .domain { font-size: 26px; }
  .site-header--subpage-compact .top-nav.nav-bar > a {
    font-size: 15px;
  }
  .site-header--subpage-compact .nav-brand-text {
    font-size: 16px !important;
  }
  .tagline-cn { font-size: 18px; }
  .tagline-en { font-size: 14px; }
  .tagline-sub { font-size: 14px; }
  .home .main-title,
  .home .home-main-title {
    font-size: 1.2rem;
  }
  .home .subtitle,
  .home .home-subtitle {
    font-size: 0.88rem;
  }
  .footer-line--text,
  .footer-line--journey,
  .footer-line--bottom {
    font-size: 11px;
    line-height: 1.25;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .site-footer {
    font-size: 13px;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .site-footer .footer-line--text,
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .site-footer .footer-line--journey,
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .site-footer .footer-line--bottom {
    font-size: 13px;
    line-height: 1.25;
  }
  /* 页脚行距等；字色由 --home-footer-text-* 统一在行容器 */
  .home .site-footer {
    padding-top: 10px;
    --footer-row-gap: 6px;
    /* 手机末行↔底边：见文件末尾 --home-mobile-edge（16px）+ safe-area */
  }
  .home .footer-line--bottom a:hover,
  .home .footer-line--bottom a:focus-visible,
  .home .footer-line--bottom a:active {
    color: #c8cedc;
  }
  .header-right.top-right-tools {
    position: static;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
  }
  .search-line {
    flex-direction: column;
  }
  .population-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sandglass-stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: center;
    align-items: center;
    justify-items: center;
    padding: 22px 12px 10px;
  }
  .sandglass-meta-left,
  .sandglass-meta-right {
    text-align: center;
    min-width: auto;
    justify-self: center;
    width: 100%;
    max-width: 100%;
  }
  .sandglass-wrap {
    justify-self: center;
  }
  .sandglass-meta {
    white-space: normal;
    text-align: center;
  }
}

/*
 * 首页移动端顶栏（仅 body.home + max-width: 860px；桌面端 display:contents 保持原样）
 */
@media (min-width: 861px) {
  .home .home-mobile-nav-toggle,
  .home .home-mobile-nav-panel,
  .home .home-mobile-nav-backdrop,
  .home .home-mobile-primary-nav,
  .home .home-mobile-logo-btn,
  .home .home-mobile-logo-center {
    display: none !important;
  }
  .home .home-mobile-topbar {
    display: contents;
  }
  .home .home-mobile-brand {
    display: contents;
    color: inherit;
    text-decoration: none;
    position: static;
    transform: none;
  }
  .home .home-mobile-brand .home-mobile-logo {
    display: none !important;
  }
  .home .lang-switch--solo {
    display: none !important;
  }
  .home .lang-switch--desktop {
    display: none !important;
  }
  .home .site-locale-picker {
    display: inline-flex !important;
  }
  /* 桌面端：页脚分组不参与布局，保持原 flex 单行/换行 */
  .home .footer-bottom-group {
    display: contents;
  }
  .home .footer-bottom-mobile-stack {
    display: contents;
  }
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-bottom-mobile-stack,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-bottom-group--stats-row,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-bottom-group--links-row,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-bottom-group--legal {
    display: contents;
  }
  html[lang="en"].subpage-view body.subpage .subpage-footer .subpage-footer-cookies--row3-en {
    display: none !important;
  }
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-bottom-group--links-primary,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-bottom-group--links-site {
    display: contents;
  }
  html[lang="zh"].subpage-view body.subpage .subpage-footer .footer-bottom-group--links-primary,
  html[lang="zh"].subpage-view body.subpage .subpage-footer .footer-bottom-group--links-site {
    display: contents;
  }
  /* PC 首页/二级页页脚：隐藏纪念地图、记忆上链（手机端仍可按原规则展示） */
  .home .site-footer a[href="memorialmap.html"],
  .home .site-footer a[href="OnChain.html"],
  body.subpage .subpage-footer a[href="memorialmap.html"],
  body.subpage .subpage-footer a[href="OnChain.html"] {
    display: none !important;
  }
}

@media (max-width: 860px) {
  /*
   * 首页手机版心：左右留空 --home-mobile-edge（默认 16px，随屏宽百分比扩展内容区，非固定 px 宽）
   * 页脚分隔线须全屏宽，页脚块负边距拉通；页脚正文 .container 再补同款内边距与主内容对齐
   */
  html:has(> body.home) {
    scrollbar-gutter: auto;
    overflow-x: clip;
    overscroll-behavior-y: none;
  }
  body.home {
    --home-mobile-edge: 16px;
    --home-mobile-safe-left: max(var(--home-mobile-edge), env(safe-area-inset-left, 0px));
    --home-mobile-safe-right: max(var(--home-mobile-edge), env(safe-area-inset-right, 0px));
    --home-mobile-pop-edge-inset: 4px;
    --home-legacy-text-color: #545a66;
    --home-legacy-text-opacity: 0.88;
    /* 栏框行距：中间四块 12px；导航底·末栏框→页脚分隔线 15px（中英文共用） */
    --home-mobile-block-gap: 12px;
    --home-mobile-end-gap: 15px;
    --home-mobile-subtitle-nav-gap: 15px;
    --home-mobile-pop-stack-gap: 8px;
    --home-mobile-hero-padding-y: 12px;
    /* 人口栏高度由内容 + 上下 padding 决定（不再用 min-height 撑高，避免视觉偏下） */
    --home-mobile-legacy-inner-min-height: calc(
      26px + max(13px * 1.5 * 2, clamp(11px, 3vw, 12px) * 1.32 * 3)
    );
    padding-left: var(--home-mobile-safe-left);
    padding-right: var(--home-mobile-safe-right);
    overflow-x: clip;
    position: relative;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) body.home {
    --home-mobile-title-line1-inset: 1em;
    --home-mobile-title-line2-inset: 1em;
  }
  html[lang="en"] body.home {
    --home-mobile-title-line1-inset: clamp(10px, 2.8vw, 15px);
    --home-mobile-title-line2-inset: clamp(10px, 2.8vw, 15px);
  }
  body.home .container {
    width: 100%;
    max-width: 100%;
  }
  body.home .site-footer {
    margin-left: calc(-1 * var(--home-mobile-safe-left));
    margin-right: calc(-1 * var(--home-mobile-safe-right));
    width: auto;
  }
  body.home .site-footer .container {
    padding-left: var(--home-mobile-safe-left);
    padding-right: var(--home-mobile-safe-right);
    box-sizing: border-box;
  }
  .home .header-inner {
    display: none !important;
  }
  .home .site-header {
    margin-top: 0;
  }
  .home .top-brand {
    padding-top: calc(var(--home-mobile-edge) + env(safe-area-inset-top, 0px));
    padding-bottom: 0;
  }
  /*
   * 顶栏：左域名 / 中 logo / 右 English+头像 — 三者锚点固定。
   * 调参：--home-topbar-domain-size、--home-topbar-lang-offset（English 左右）
   * 左右边距由 body.home padding 统一控制，顶栏不再额外内缩
   */
  .home .home-mobile-topbar {
    --home-topbar-domain-size: clamp(14px, 3.85vw, 18px);
    --home-topbar-lang-avatar-gap: var(--mobile-topbar-lang-avatar-gap);
    --mobile-lang-toggle-width: 56px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    margin-bottom: 15px;
  }
  .home .home-mobile-brand.home-mobile-brand--left {
    position: relative;
    z-index: 2;
    flex: 0 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    text-align: left;
    text-decoration: none;
    color: inherit;
    border: 0;
    background: transparent;
    padding: 0;
  }
  .home .home-mobile-logo-center {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    pointer-events: auto;
  }
  .home .home-mobile-logo-btn {
    display: none !important;
  }
  .home .home-mobile-logo.home-mobile-logo--mono {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    filter: grayscale(1) brightness(1.12) contrast(1.05);
  }
  .home .lang-switch--desktop {
    display: none !important;
  }
  .home .lang-switch--solo {
    display: none !important;
  }
  .home .site-locale-picker {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    margin: 0;
    transform: none;
  }
  /* 手机首页：地球仪/头像与 PC 顶栏同色（--home-topbar-control-*） */
  .home .home-mobile-topbar .header-right.top-right-tools .site-locale-picker__trigger {
    width: var(--site-locale-trigger-size);
    height: var(--site-locale-trigger-size);
    min-width: var(--site-locale-trigger-size);
    min-height: var(--site-locale-trigger-size);
    flex-shrink: 0;
    aspect-ratio: 1;
    box-sizing: border-box;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding: 0;
    margin: 0;
    background: var(--home-topbar-control-bg);
    border: 1px solid var(--home-topbar-control-border);
    color: var(--home-topbar-control-fg);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
  }
  .home .home-mobile-topbar .header-right.top-right-tools .site-locale-picker__trigger:hover,
  .home .home-mobile-topbar .header-right.top-right-tools .site-locale-picker__trigger:active,
  .home .home-mobile-topbar .header-right.top-right-tools .site-locale-picker.is-open .site-locale-picker__trigger {
    background: var(--home-topbar-control-bg-hover);
    border-color: var(--home-topbar-control-border-hover);
    color: var(--home-topbar-control-fg-hover);
  }
  .home .home-mobile-topbar .header-right.top-right-tools .site-locale-picker__icon {
    width: var(--site-locale-icon-size);
    height: var(--site-locale-icon-size);
    color: currentColor;
  }
  body.subpage .subpage-mobile-topbar-tools .site-locale-picker__trigger {
    width: var(--site-locale-trigger-size);
    height: var(--site-locale-trigger-size);
    min-width: var(--site-locale-trigger-size);
    min-height: var(--site-locale-trigger-size);
    flex-shrink: 0;
    aspect-ratio: 1;
    box-sizing: border-box;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding: 0;
  }
  body.subpage .subpage-mobile-topbar-tools .site-locale-picker__icon {
    width: var(--site-locale-icon-size);
    height: var(--site-locale-icon-size);
  }
  .home .home-mobile-topbar .user-center .avatar {
    border: 1px solid var(--home-topbar-control-border);
    background: var(--home-topbar-control-bg);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* 四链底部分隔线 → 人口栏外框顶边：--home-mobile-end-gap（15px） */
  .home .home-mobile-primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 0 var(--home-mobile-end-gap, 15px);
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-sizing: border-box;
  }
  .home .home-mobile-primary-nav__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .home .home-mobile-primary-nav__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    width: 100%;
  }
  .home .home-mobile-primary-nav__link {
    color: #a8b0bc;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
  }
  .home .home-mobile-primary-nav__link:hover,
  .home .home-mobile-primary-nav__link:focus-visible {
    color: #e8eef8;
  }
  html[lang="en"] .home .home-mobile-primary-nav {
    --home-en-nav-link-gap: clamp(10px, 2.4vw, 14px);
  }
  /* 英文四链：第 1 行整体靠左（钮1贴左、钮2 间距 X）；第 2 行整体靠右（钮4贴右、钮3–4 间距 X） */
  html[lang="en"] .home .home-mobile-primary-nav__row {
    flex-wrap: nowrap;
    gap: var(--home-en-nav-link-gap);
  }
  html[lang="en"] .home .home-mobile-primary-nav__row--top {
    justify-content: flex-start;
    padding-left: 5px;
    box-sizing: border-box;
  }
  html[lang="en"] .home .home-mobile-primary-nav__row--bottom {
    justify-content: flex-end;
    padding-right: 5px;
    box-sizing: border-box;
  }
  html[lang="en"] .home .home-mobile-primary-nav__link {
    font-size: clamp(13px, 3.55vw, 15px);
    line-height: 1.32;
    white-space: normal;
    max-width: 100%;
    flex: 0 1 auto;
  }
  .home .home-mobile-nav-toggle {
    display: none !important;
  }
  .home .home-mobile-brand .domain {
    font-size: var(--home-topbar-domain-size);
    line-height: 1;
    margin: 0;
    white-space: nowrap;
  }
  .home .home-mobile-topbar .header-right.top-right-tools {
    position: relative;
    top: auto;
    right: auto;
    z-index: 2;
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    margin: 0 0 0 auto;
    padding: 0;
    gap: var(--mobile-topbar-lang-avatar-gap);
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
  }
  .home .home-mobile-topbar .login-btn,
  .home .home-topbar-login,
  .home .home-topbar-register {
    display: none !important;
  }
  .home .home-mobile-topbar .lang-switch {
    gap: 3px;
  }
  .home .home-mobile-topbar .lang-switch--solo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    margin-right: var(--home-topbar-lang-avatar-gap);
    transform: translateX(var(--home-topbar-lang-offset));
  }
  .home .home-mobile-topbar .lang-switch--solo button,
  .home .home-mobile-topbar .lang-switch--solo button.is-active,
  .home .home-mobile-topbar .lang-switch--solo button[aria-pressed="true"] {
    margin: 0;
    padding: 2px 6px;
    font-size: 10.5px;
    line-height: 1;
    min-height: 28px !important;
    min-width: var(--mobile-lang-toggle-width);
    width: var(--mobile-lang-toggle-width);
    box-sizing: border-box;
    border: 1px solid rgba(230, 235, 243, 0.18);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.06);
    color: #c4c8d2;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .home .home-mobile-topbar .lang-switch--solo button:hover,
  .home .home-mobile-topbar .lang-switch--solo button:active {
    background: rgba(248, 250, 252, 0.14);
    border-color: rgba(238, 242, 250, 0.42);
    color: #f2f5fa;
  }
  .home .home-mobile-topbar .lang-switch--solo button:focus {
    background: rgba(248, 250, 252, 0.06);
    border-color: rgba(230, 235, 243, 0.18);
    color: #c4c8d2;
  }
  .home .home-mobile-topbar .lang-switch--solo button:focus-visible {
    background: rgba(248, 250, 252, 0.06);
    border-color: rgba(230, 235, 243, 0.18);
    color: #c4c8d2;
    outline: 2px solid rgba(238, 242, 250, 0.38);
    outline-offset: 2px;
  }
  .home .home-mobile-topbar .lang-switch--solo button:hover:focus,
  .home .home-mobile-topbar .lang-switch--solo button:hover:focus-visible {
    background: rgba(248, 250, 252, 0.14);
    border-color: rgba(238, 242, 250, 0.42);
    color: #f2f5fa;
  }
  .home .home-mobile-topbar .header-right.top-right-tools .lang-switch--desktop button {
    margin: 0;
    padding: 2px 6px;
    font-size: 10.5px;
    line-height: 1;
    min-height: 28px !important;
    border-radius: 12px;
    border-color: rgba(230, 235, 243, 0.28);
    background: rgba(10, 14, 24, 0.28);
    color: #c8c8d0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .home .home-mobile-topbar .user-center {
    flex: 0 0 auto;
    min-width: var(--mobile-topbar-circle-size);
    min-height: var(--mobile-topbar-circle-size);
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .home .home-mobile-topbar .user-center .avatar {
    width: var(--mobile-topbar-circle-size);
    height: var(--mobile-topbar-circle-size);
    box-sizing: border-box;
  }
  .home .home-mobile-topbar .user-center .avatar-logo {
    width: var(--mobile-topbar-circle-logo-size);
    height: var(--mobile-topbar-circle-logo-size);
  }
  .home .main-title,
  .home .home-main-title {
    margin-top: 4px;
  }
  /* 窄屏：main 顶不叠 padding；四栏框用 flex gap 保证栏间距严格相等 */
  :is(html[lang="zh"], html[lang="zh-Hant"]) body.home main,
  html[lang="en"] body.home main {
    padding-top: 0;
    padding-bottom: var(--home-mobile-end-gap, 15px);
    display: flex;
    flex-direction: column;
    gap: var(--home-mobile-block-gap, 12px);
  }
  /* 英文主标题：手机略收字号；与中文 20/16 成比例约为 17/14 */
  html[lang="en"] .home .main-title,
  html[lang="en"] .home .home-main-title {
    font-size: 17px;
    line-height: 1.38;
    margin-top: 10px;
  }
  html[lang="en"] .home .home-subtitle {
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 1.5;
    min-height: 0;
  }
  html[lang="en"] .home .home-mobile-topbar {
    margin-bottom: 15px;
  }
  /* 桌面 overlay 位移：窄屏清零，与中文人口区对齐 */
  html[lang="en"] .home .hero.hero-home,
  html[lang="en"] .home .population-strip,
  html[lang="en"] .home .population-item {
    transform: none;
  }
  /* 人口栏框：上下 padding 相等，内容区自然高度 + 垂直居中 */
  .home .hero.hero-home {
    padding: var(--home-mobile-hero-padding-y, 12px) 12px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
  }
  .home .hero.hero-home .banner-center {
    width: 100%;
  }
  /* 手机仍保持 PC 同款左·中·右三栏；数字略小于沙漏日期/时间，作第二视觉层 */
  .home .population-strip {
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(18px, 5.5vw, 26px);
    row-gap: 0;
    align-items: center;
  }
  .home .population-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: inherit;
    padding: 0;
    margin: 0;
  }
  .home .home-meta-help-link--population {
    gap: var(--home-mobile-pop-stack-gap, 8px);
  }
  .home .population-item:first-child {
    justify-self: start;
    align-items: flex-start;
    text-align: left;
    padding-left: var(--home-mobile-pop-edge-inset);
    padding-right: 0;
  }
  .home .population-item:nth-child(2) {
    justify-self: center;
    align-items: center;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
  .home .population-item:last-child {
    justify-self: end;
    align-items: flex-end;
    text-align: right;
    padding-right: var(--home-mobile-pop-edge-inset);
    padding-left: 0;
  }
  .home .population-value {
    font-size: clamp(16px, 4.15vw, 19px);
    font-weight: 600;
    line-height: 1.2;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: #c8c8d0;
    display: block;
    width: 100%;
  }
  .home .population-label {
    margin: 0;
    padding: 0;
    font-size: clamp(13px, 3.45vw, 15px);
    font-weight: 500;
    line-height: 1.2;
    min-height: 0;
    color: #8e93a0;
    white-space: normal;
    word-break: break-word;
    display: block;
    width: 100%;
  }
  html[lang="en"] .home .population-label {
    font-size: clamp(12px, 3.1vw, 14px);
    letter-spacing: 0.01em;
  }
  .home .home-meta-help-link {
    cursor: pointer;
  }
  .home .home-meta-help-link::after {
    display: none !important;
  }
  .home .home-meta-help-link:active {
    opacity: 0.82;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-subtitle,
  html[lang="en"] .home .home-subtitle {
    margin-bottom: var(--home-mobile-subtitle-nav-gap, 15px);
  }
  /* 沙漏区：与 PC 同结构（date | 沙漏 | time），不用负边距/位移 */
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .sandglass-stage,
  html[lang="en"] .home .sandglass-stage {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    column-gap: 4px;
    align-items: center;
    justify-items: stretch;
    padding: 16px 12px 12px;
    margin: 0 auto;
    overflow: visible;
  }
  .home .sandglass-meta-left {
    grid-column: 1;
    justify-self: start;
    align-self: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    text-align: left;
    padding-left: 8px;
    padding-right: 0;
  }
  .home .sandglass-wrap {
    grid-column: 2;
    justify-self: center;
    align-self: center;
    width: min(136px, 36vw);
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .home .sandglass-meta-right {
    grid-column: 3;
    justify-self: end;
    align-self: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    text-align: right;
    padding-left: 0;
    padding-right: 8px;
  }
  .home .sandglass-meta {
    white-space: nowrap;
    text-align: inherit;
    font-size: clamp(15px, 4.15vw, 18px);
    line-height: 1.15;
  }
  .home .sandglass-spacer {
    display: block;
    flex: 0 0 18px;
    height: 18px;
  }
  .home .sandglass-visual,
  .home .sandglass-img {
    margin: 0;
    padding: 0;
    transform: none;
  }
  .home .sandglass-visual {
    line-height: 0;
  }
  .home .sandglass-img {
    display: block;
    width: 100%;
    height: auto;
  }
  /* 沙漏动画区：仅提升合成层，勿用 contain:paint（会裁切 sand-sky / 上斗沙粒） */
  .home .sandglass-visual {
    transform: translateZ(0);
    overflow: visible;
  }
  .home .sandglass-wrap {
    overflow: visible;
  }
  /* 首页栏框：人口 / 沙漏 / 文案 / 搜索 — 栏间距由 main gap 控制（12px） */
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .legacy-below-sandglass,
  html[lang="en"] .home .legacy-below-sandglass {
    margin: 0 auto;
    transform: none;
  }
  .home .legacy-below-sandglass-inner {
    padding: 12px 12px 14px;
    min-height: var(--home-mobile-legacy-inner-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  /*
   * 手机搜索区：去掉外栏框（幽灵 card），输入/按钮满宽与上面对齐；PC 保持 .card 外框。
   */
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .card,
  html[lang="en"] .home .card {
    margin-top: 0 !important;
    padding: 0;
    min-height: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    box-sizing: border-box;
  }
  .home .card .section-title {
    position: relative;
    margin-bottom: 10px;
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(0.875rem, 2.15vw, 0.95rem);
    border-left: 0;
    padding-left: 10px;
  }
  .home .card .section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: calc(1em + 2px);
    border-radius: 1px;
    background: var(--color-accent);
  }
  .home .card .search-line {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    align-items: stretch;
    width: 100%;
    margin: 0;
  }
  .home .search-line input {
    grid-column: 1;
    grid-row: 1;
    font-size: 13px;
    line-height: 1.35;
    padding: 9px 12px;
    width: 100%;
    min-width: 0;
    border-radius: var(--home-panel-radius, 14px);
    box-sizing: border-box;
  }
  .home .search-line #home-advanced-btn {
    grid-column: 2;
    grid-row: 1;
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.35;
    font-weight: 600;
    padding: 9px 8px;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    border-radius: var(--home-panel-radius, 14px);
  }
  .home .search-line #home-search-btn {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    padding: 9px 14px;
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    border-radius: var(--home-panel-radius, 14px);
  }

  /* 中文手机首页：主标语 / 导航 / 搜索等字号（见下方 token） */
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-main-title,
  html[lang="en"] .home .home-main-title {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-main-title .home-main-title__lead,
  html[lang="en"] .home .home-main-title .home-main-title__lead {
    align-self: flex-start;
    text-align: left;
    max-width: 100%;
    box-sizing: border-box;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-main-title .home-main-title__lead {
    padding-left: var(--home-mobile-title-line1-inset, 1em);
    padding-right: 0;
  }
  html[lang="en"] .home .home-main-title .home-main-title__lead {
    padding-left: var(--home-mobile-title-line1-inset, 12px);
    padding-right: 0;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-main-title .home-main-title__tail,
  html[lang="en"] .home .home-main-title .home-main-title__tail {
    align-self: flex-end;
    text-align: right;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-main-title .home-main-title__tail {
    padding-right: var(--home-mobile-title-line2-inset, 1em);
    padding-left: 0;
  }
  html[lang="en"] .home .home-main-title .home-main-title__tail {
    padding-right: var(--home-mobile-title-line2-inset, 12px);
    padding-left: 0;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-main-title {
    font-size: 19px;
    letter-spacing: 1px;
    margin-top: 8px;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-subtitle {
    font-size: 16px;
    letter-spacing: 1px;
    min-height: 0;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-main-title .separator,
  html[lang="en"] .home .home-main-title .separator {
    font-size: 1.25em;
    margin: 0 4px;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-mobile-topbar {
    --home-topbar-domain-size: clamp(15px, 4.05vw, 19px);
    margin-bottom: 15px;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-mobile-topbar .lang-switch--solo button,
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-mobile-topbar .lang-switch--solo button.is-active,
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-mobile-topbar .lang-switch--solo button[aria-pressed="true"] {
    font-size: 12px;
  }
  html[lang="en"] .home .home-mobile-topbar .lang-switch--solo button[data-lang="zh"],
  html[lang="en"] .home .home-mobile-topbar .lang-switch--solo button[data-lang="zh"].is-active,
  html[lang="en"] .home .home-mobile-topbar .lang-switch--solo button[data-lang="zh"][aria-pressed="true"] {
    font-size: 12px;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-mobile-primary-nav {
    /* 中文单行四链：光学略偏上时，略增上留白、略减下留白 */
    padding: 11px 0 10px;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-mobile-primary-nav__inner {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(4px, 1.5vw, 10px);
    padding-left: 5px;
    padding-right: 5px;
    box-sizing: border-box;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-mobile-primary-nav__row {
    display: contents;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .home-mobile-primary-nav__link {
    font-size: 17px;
    line-height: 1.25;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .population-value {
    font-size: clamp(16px, 4.15vw, 19px);
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .population-label {
    font-size: clamp(14px, 3.75vw, 16px);
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .sandglass-meta {
    font-size: clamp(15px, 4.15vw, 18px);
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .legacy-below-sandglass .legacy-line,
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .legacy-below-sandglass .big-number,
  html[lang="en"] .home .legacy-below-sandglass .legacy-line,
  html[lang="en"] .home .legacy-below-sandglass .big-number {
    color: var(--home-legacy-text-color);
    opacity: var(--home-legacy-text-opacity);
  }
  /* 中文手机 1170 亿文案：固定恰好 2 行（行内 nowrap + JS 缩字号），勿再自动折行 */
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .legacy-below-sandglass .legacy-line,
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .legacy-below-sandglass .big-number {
    font-size: 13px;
    white-space: normal;
    text-align: center;
    line-height: 1.45;
    transform: none;
    overflow-wrap: normal;
    word-break: normal;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .legacy-below-sandglass .legacy-line.is-legacy-fixed-rows .legacy-line-row {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .legacy-below-sandglass-inner {
    /* 左右尽量让出宽度，宁可贴边也不折成 3/4 行 */
    padding: 12px 4px 14px;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .card .section-title {
    font-size: 17px;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .search-line input {
    font-size: 16px;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .search-line input::placeholder {
    font-size: 16px;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .search-line #home-search-btn {
    font-size: 16px;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .search-line #home-advanced-btn {
    font-size: clamp(13px, 3.5vw, 15px);
  }

  /*
   * 英文手机首页：栏框行距与中文共用 token；清零桌面 overlay。
   * 人口区改回 flex（桌面 grid 会破坏垂直居中与栏框高度对齐）。
   */
  html[lang="en"] .home .population-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-template-rows: unset;
    row-gap: 0;
    transform: none;
  }
  html[lang="en"] .home .population-label {
    margin: 0;
  }
  html[lang="en"] .home .home-main-title {
    min-height: 0;
  }
  html[lang="en"] .home .sandglass-stage {
    margin: 0 auto;
    transform: none;
  }
  html[lang="en"] .home .legacy-below-sandglass {
    margin: 0 auto;
    transform: none;
  }
  html[lang="en"] .home .legacy-below-sandglass-inner {
    min-height: var(--home-mobile-legacy-inner-min-height);
    margin-top: 0;
    padding: 12px 12px 14px;
  }
  html[lang="en"] .home .home-mobile-primary-nav {
    margin-bottom: var(--home-mobile-end-gap, 15px);
  }

  /* 页脚：统计独占一行；链接分行；行距统一 --footer-row-gap（6px） */
  .home .footer-note-stack {
    gap: var(--footer-row-gap);
    padding: 0;
  }
  .home .site-footer .footer-note-line,
  .home .footer-line--journey,
  .home .footer-line--bottom {
    font-size: clamp(9px, 2.55vw, 10.5px);
    line-height: 1.2;
  }
  html[lang="en"] .home .site-footer .footer-note-line,
  html[lang="en"] .home .footer-line--journey,
  html[lang="en"] .home .footer-line--bottom,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-line--text,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-line--journey,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-note-line,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-line--bottom {
    font-size: clamp(9px, 2.55vw, 10.5px);
    line-height: 1.22;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .site-footer .footer-line--text,
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .site-footer .footer-line--journey,
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .site-footer .footer-line--bottom,
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .site-footer .footer-note-line {
    font-size: clamp(11px, 3.05vw, 12px);
    line-height: 1.28;
  }
  .home #home-footer-note-1 {
    white-space: nowrap;
    letter-spacing: -0.01em;
  }
  html[lang="en"] .home #home-footer-note-1 {
    letter-spacing: 0;
  }
  html[lang="en"] .home #home-footer-note-1 .footer-note-variant--short,
  html[lang="en"] .home #home-footer-note-2 .footer-note-variant--short,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-note-line:first-child .footer-note-variant--short,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-note-line:nth-child(2) .footer-note-variant--short {
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
  .home .site-footer .footer-note-line:not(#home-footer-note-1) {
    max-width: 100%;
    line-height: 1.35;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .site-footer .footer-note-line:not(#home-footer-note-1) {
    line-height: 1.28;
  }
  .home .footer-line--bottom {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 3px;
    row-gap: var(--footer-row-gap);
    justify-items: center;
    align-items: center;
    width: 100%;
    overflow: visible;
  }
  /* 中文手机首页：与英文同 flex 分行，行距一致（二级页底栏见下方 body.subpage 专用规则，勿用 column+gap） */
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .footer-line--bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--footer-row-gap);
    overflow: visible;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .footer-bottom-group--stats-row,
  html[lang="en"] .home .footer-bottom-group--stats-row,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-bottom-group--stats-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1.8vw, 12px);
    row-gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
  }
  /* 手机首页第 4 行：访问人次/创建纪念 + 隐私协议/免责声明（第 5 行链接区保持独立） */
  .home .footer-bottom-group--stats-row {
    gap: clamp(14px, 4.5vw, 26px);
  }
  .home .footer-bottom-group--stats-row .footer-bottom-group--stats {
    flex: 0 0 auto;
    min-width: max-content;
    width: auto;
    overflow: visible;
  }
  .home .footer-bottom-group--stats-row .footer-bottom-group--legal {
    flex: 0 0 auto;
    width: auto;
  }
  .home .footer-bottom-mobile-stack,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-bottom-mobile-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    gap: var(--footer-row-gap);
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .footer-bottom-group--stats-row .footer-bottom-group--stats,
  html[lang="en"] .home .footer-bottom-group--stats-row .footer-bottom-group--stats {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    justify-content: flex-start;
    gap: 10px 14px;
    overflow: visible;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .footer-bottom-group--legal,
  html[lang="en"] .home .footer-bottom-group--legal,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-bottom-group--legal {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    column-gap: 10px;
    row-gap: 0;
    width: auto;
    margin-left: 0;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .footer-bottom-group--links-row,
  html[lang="en"] .home .footer-bottom-group--links-row,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-bottom-group--links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .footer-bottom-group--links-row .footer-bottom-group--links-primary,
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .footer-bottom-group--links-row .footer-bottom-group--links-site,
  html[lang="en"] .home .footer-bottom-group--links-row .footer-bottom-group--links-primary,
  html[lang="en"] .home .footer-bottom-group--links-row .footer-bottom-group--links-site,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-bottom-group--links-row .footer-bottom-group--links-primary,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-bottom-group--links-row .footer-bottom-group--links-site {
    display: contents;
  }
  .home #footer-map,
  .home #footer-chain-text,
  html[lang="en"].subpage-view body.subpage .subpage-footer #footer-map,
  html[lang="en"].subpage-view body.subpage .subpage-footer #footer-chain-text {
    display: none !important;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home .footer-bottom-group--stats,
  html[lang="en"] .home .footer-bottom-group--stats {
    grid-column: auto;
  }
  /* 中文二级页手机：底栏链接合并为一行 flex（原第 4、5 行合并） */
  :is(html[lang="zh"], html[lang="zh-Hant"]).subpage-view body.subpage .subpage-footer .footer-line--bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]).subpage-view body.subpage .subpage-footer .footer-bottom-group--links-primary,
  :is(html[lang="zh"], html[lang="zh-Hant"]).subpage-view body.subpage .subpage-footer .footer-bottom-group--links-site {
    display: contents;
  }
  :is(html[lang="zh"], html[lang="zh-Hant"]) .home #footer-copyright,
  html[lang="zh"].subpage-view body.subpage .subpage-footer .footer-line--bottom > span:last-child {
    grid-column: auto;
  }
  html[lang="zh"].subpage-view body.subpage .subpage-footer {
    --footer-row-gap: 6px;
    padding-top: 19px;
    /* 末行↔底边：见文件末尾 body.subpage .subpage-footer !important（16px + safe-area） */
  }
  html[lang="zh"].subpage-view body.subpage .subpage-footer .footer-note-stack {
    gap: var(--footer-row-gap);
  }
  html[lang="zh"].subpage-view body.subpage .subpage-footer .footer-line + .footer-line,
  :is(html[lang="zh"], html[lang="zh-Hant"]) body.subpage .subpage-footer .footer-line + .footer-line {
    margin-top: 0;
  }
  html[lang="zh"].subpage-view body.subpage .subpage-footer .footer-line--text,
  html[lang="zh"].subpage-view body.subpage .subpage-footer .footer-line--journey,
  html[lang="zh"].subpage-view body.subpage .subpage-footer .footer-line--bottom,
  html[lang="zh"].subpage-view body.subpage .subpage-footer .footer-note-line {
    font-size: clamp(10px, 2.85vw, 11px);
    line-height: 1.28;
  }
  html[lang="zh"].subpage-view body.subpage .subpage-footer .footer-note-line:not(:first-child) {
    line-height: 1.28;
  }
  html[lang="en"] .home .footer-line--bottom {
    column-gap: 2px;
    overflow: visible;
  }
  .home .footer-bottom-group--stats {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 14px 22px;
    width: 100%;
    white-space: nowrap;
  }
  /* stats-row 内：统计与法务并排，统计区不收缩（避免「创建纪念」数值被裁切） */
  .home .footer-bottom-group--stats-row > .footer-bottom-group--stats {
    width: auto;
    grid-column: auto;
    flex: 0 0 auto;
    min-width: max-content;
    overflow: visible;
  }
  .home .footer-bottom-group--links-primary,
  .home .footer-bottom-group--links-site,
  .home .footer-bottom-group--meta {
    display: contents;
  }
  .home .footer-line--bottom a,
  .home .footer-line--bottom span {
    font-size: inherit;
    line-height: 1.25;
    text-align: center;
    justify-self: center;
  }
  .home .footer-rights-vizna {
    grid-column: span 3;
    white-space: nowrap;
    justify-self: center;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: clamp(6px, 1.8vw, 10px);
    flex-wrap: nowrap;
  }
  .home #footer-copyright {
    grid-column: auto;
    white-space: nowrap;
  }
  /*
   * 英文手机页脚：首页 4 行（声明×2 + 统计/法务 + 链接合并），二级页 4 行（无统计）
   * 首页行距与中文共用 .home .site-footer --footer-row-gap（手机 6px）
   */
  html[lang="en"].subpage-view body.subpage .subpage-footer {
    --footer-en-mobile-row-gap: 6px;
    /* 末行↔底边：见文件末尾 body.subpage .subpage-footer !important（16px + safe-area） */
  }
  html[lang="en"] .home .footer-line + .footer-line {
    margin-top: var(--footer-row-gap, var(--footer-en-mobile-row-gap));
  }
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-line + .footer-line {
    margin-top: 0;
  }
  html[lang="en"] .home .footer-note-stack,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-note-stack {
    gap: var(--footer-row-gap, var(--footer-en-mobile-row-gap));
  }
  html[lang="en"] .home #home-footer-note-1,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-note-line:first-child {
    white-space: normal;
    line-height: 1.32;
  }
  html[lang="en"] .home .footer-line--bottom,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-line--bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--footer-row-gap, var(--footer-en-mobile-row-gap));
    overflow: visible;
  }
  html[lang="en"] .home #footer-copyright,
  html[lang="en"].subpage-view body.subpage .subpage-footer #footer-copyright,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-line--bottom > span:last-child {
    grid-column: auto;
  }
  /* 手机首页/中文二级页：链接行去掉伦理准则（PC 首页中英文见 min-width:861 规则） */
  .home #footer-ethics,
  html[lang="zh"].subpage-view body.subpage .subpage-footer #footer-ethics {
    display: none !important;
  }
  .home #footer-vizna,
  body.subpage .subpage-footer #footer-vizna {
    display: inline !important;
  }
  .footer-rights-vizna {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: clamp(6px, 1.8vw, 10px);
    flex-wrap: nowrap;
    white-space: nowrap;
    max-width: 100%;
  }
  /* 中文二级页手机：底栏第 4 行精简（PC 不变） */
  :is(html[lang="zh"], html[lang="zh-Hant"]).subpage-view body.subpage .subpage-footer .footer-line--bottom a[href="FAQ.html"],
  :is(html[lang="zh"], html[lang="zh-Hant"]).subpage-view body.subpage .subpage-footer .footer-line--bottom a[href="contactus.html"],
  :is(html[lang="zh"], html[lang="zh-Hant"]).subpage-view body.subpage .subpage-footer .footer-line--bottom a[href="memorialmap.html"],
  :is(html[lang="zh"], html[lang="zh-Hant"]).subpage-view body.subpage .subpage-footer .footer-line--bottom a[href="OnChain.html"] {
    display: none !important;
  }
  /* 英文二级页手机：Cookies 在第 3 行（法务旁），第 4 行隐藏重复项 */
  html[lang="en"].subpage-view body.subpage .subpage-footer .subpage-footer-cookies--row3-en {
    display: none;
  }
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-bottom-group--stats-row .subpage-footer-cookies--row3-en {
    display: inline;
  }
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-bottom-group--links-row .subpage-footer-cookies--row4 {
    display: none !important;
  }
  /* 手机首页：顶栏↔顶边、末行↔底边各 16px + safe-area（相加，非 max 叠加） */
  .home .site-footer {
    padding-top: 9px;
    padding-bottom: calc(var(--home-mobile-edge) + env(safe-area-inset-bottom, 0px));
  }
  .home .footer-bottom-group--links-site {
    margin-bottom: 0;
  }
  .home #footer-copyright {
    line-height: 1.15;
    margin-bottom: 0;
  }
  html[lang="en"].subpage-view body.subpage .subpage-footer #footer-copyright {
    line-height: 1.15;
    margin-bottom: 0;
  }
  .home .site-footer .footer-line--candle {
    padding-top: 10px;
    padding-bottom: 8px;
    margin: 0;
    transform: translateY(3px);
  }
  .home .site-footer .footer-line--candle + .footer-line {
    margin-top: 5px;
  }
  .home .home-mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(4, 8, 18, 0.52);
    cursor: pointer;
  }
  .home .home-mobile-nav-backdrop[hidden] {
    display: none !important;
  }
  .home .home-mobile-nav-panel {
    position: relative;
    z-index: 41;
  }
  .home .home-mobile-nav-panel[hidden]:not(.is-open) {
    display: none !important;
  }
  .home .home-mobile-nav-panel.is-open {
    display: block;
  }
  .home .home-mobile-nav-panel__inner {
    margin-top: 0;
    padding: 10px 0 14px;
    background: rgba(10, 14, 24, 0.88);
    border: 1px solid rgba(230, 235, 243, 0.16);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  }
  .home .home-mobile-nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 17px;
    font-weight: 500;
    color: #d8dce6;
    text-decoration: none;
    border-bottom: 1px solid rgba(230, 235, 243, 0.08);
  }
  .home .home-mobile-nav-link:last-child {
    border-bottom: 0;
  }
  .home .home-mobile-nav-link:hover,
  .home .home-mobile-nav-link:focus-visible {
    color: #f2f5fa;
    background: rgba(248, 250, 252, 0.06);
  }
  .home .home-mobile-nav-divider {
    height: 1px;
    margin: 6px 16px;
    background: rgba(178, 156, 114, 0.35);
  }
  body.home.home-mobile-nav-open {
    overflow: hidden;
  }
}

/*
 * 二级页移动端顶栏 + 页脚（body.subpage + max-width: 860px；桌面端不变）
 */
@media (min-width: 861px) {
  body.subpage .subpage-mobile-topbar-shell,
  body.subpage .subpage-mobile-nav-panel,
  body.subpage .subpage-mobile-nav-backdrop {
    display: none !important;
  }
  /* PC 二级顶栏：滚动时贴在视口顶部（手机仍用下方 fixed + mobile-topbar） */
  body.subpage .site-header--subpage-compact {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #f4f8ff;
    background-image:
      radial-gradient(1320px 540px at 50% -180px, rgba(210, 229, 255, 0.62) 0%, rgba(210, 229, 255, 0) 72%),
      radial-gradient(980px 360px at 50% 120px, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0) 76%),
      linear-gradient(180deg, #fbfdff 0%, #f1f6fd 100%);
    box-shadow: 0 1px 0 rgba(207, 217, 234, 0.55);
  }
  body.about-page.subpage .site-header--subpage-compact,
  body.about-page.auth-subpage .site-header--subpage-compact {
    background-color: #fdfcf8;
    background-image: none;
    box-shadow: 0 1px 0 rgba(230, 228, 223, 0.65);
  }
}

@media (max-width: 860px) {
  html.subpage-view body.subpage .site-header--subpage-compact .header-inner,
  body.subpage .site-header--subpage-compact > .container.header-inner {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }
  /*
   * 二级页手机版心：与首页同档 --home-mobile-edge（16px）+ safe-area
   * 顶栏 / 主内容 / 页脚正文同宽；页脚分隔线全屏宽（负边距拉通）
   */
  html:has(> body.subpage),
  html.subpage-view {
    overflow-x: clip;
  }
  body.subpage {
    --home-mobile-edge: 16px;
    --subpage-mobile-title-top-gap: calc(var(--home-mobile-edge) + 2px); /* 顶栏与页标题间距 */
    --home-mobile-safe-left: max(var(--home-mobile-edge), env(safe-area-inset-left, 0px));
    --home-mobile-safe-right: max(var(--home-mobile-edge), env(safe-area-inset-right, 0px));
    --subpage-mobile-fixed-header-h: calc(
      env(safe-area-inset-top, 0px) + var(--home-mobile-edge) + var(--subpage-mobile-topbar-pad-top-adjust, -1px) + var(--subpage-mobile-topbar-row-h, 36px) + var(--subpage-mobile-topbar-pad-bottom, 11px)
    );
    padding-left: var(--home-mobile-safe-left);
    padding-right: var(--home-mobile-safe-right);
    overflow-x: clip;
    position: relative;
  }
  body.subpage .site-header--subpage-compact {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    margin: 0;
    padding-left: var(--home-mobile-safe-left);
    padding-right: var(--home-mobile-safe-right);
    box-sizing: border-box;
    background-color: #fbfdff;
    background-image: linear-gradient(180deg, #fbfdff 0%, #f1f6fd 100%);
    border-bottom: 1.5px solid #cfd9ea;
    box-shadow: 0 2px 12px rgba(44, 67, 95, 0.06);
  }
  body.subpage .container {
    width: 100%;
    max-width: 100%;
  }
  body.subpage main.container.subpage-main:not(.memorial-map-shell) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    padding-top: calc(var(--subpage-mobile-fixed-header-h) + var(--subpage-mobile-title-top-gap)) !important;
    padding-bottom: var(--home-mobile-edge) !important;
    box-sizing: border-box;
  }
  body.subpage.memorial-map-page main.memorial-map-shell {
    padding-top: var(--subpage-mobile-fixed-header-h) !important;
    box-sizing: border-box;
  }
  body.subpage .subpage-footer {
    margin-left: calc(-1 * var(--home-mobile-safe-left));
    margin-right: calc(-1 * var(--home-mobile-safe-right));
    width: auto;
    /* 分隔线 → 首行声明：桌面 10px；手机二级页 19px */
    padding-top: 19px;
    padding-bottom: calc(var(--home-mobile-edge) + env(safe-area-inset-bottom, 0px));
  }
  body.subpage .subpage-footer .container {
    padding-left: var(--home-mobile-safe-left);
    padding-right: var(--home-mobile-safe-right);
    box-sizing: border-box;
  }
  body.subpage .subpage-mobile-topbar-shell {
    --subpage-mobile-topbar-pad-top-adjust: -1px;
    --subpage-mobile-topbar-pad-bottom: 11px;
    --subpage-mobile-topbar-row-h: 36px;
    display: flex;
    align-items: center;
    padding-top: calc(var(--home-mobile-edge) + env(safe-area-inset-top, 0px) + var(--subpage-mobile-topbar-pad-top-adjust));
    padding-bottom: var(--subpage-mobile-topbar-pad-bottom);
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
  body.subpage .subpage-mobile-topbar {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    min-height: var(--subpage-mobile-topbar-row-h);
    height: var(--subpage-mobile-topbar-row-h);
    overflow: visible;
    --subpage-mobile-chip-size: 36px;
    --subpage-mobile-lang-height: 30px;
    --subpage-mobile-chip-radius: 12px;
    --subpage-mobile-hamburger-radius: 10px;
    --mobile-lang-toggle-width: 58px;
    /* 3×3 胶囊格点：无外框；略放大，上下行距略宽于左右
     * pad 须为 0：可见格点与正文/标题竖条同落在 --home-mobile-safe-left 缘上
     * （非 0 时图标比竖条更靠内，会显得「左边距比顶栏汉堡更窄」） */
    --subpage-mobile-nav-grid-dot-w: 6px;
    --subpage-mobile-nav-grid-dot-h: 3px;
    --subpage-mobile-nav-grid-col-gap: 3px;
    --subpage-mobile-nav-grid-row-gap: 4px;
    --subpage-mobile-hamburger-pad-x: 0px;
    --subpage-mobile-hamburger-pad-y: 0px;
    --subpage-mobile-avatar-size: var(--mobile-topbar-circle-size);
    --subpage-mobile-avatar-logo-size: var(--mobile-topbar-circle-logo-size);
    --subpage-mobile-logo-size: 26px;
    /* 顶栏汉堡 / 语言 / 头像：外圈描边略深，内部仍用通用 chip 底色 */
    --subpage-mobile-topbar-chip-border: rgba(148, 168, 196, 0.58);
    --subpage-mobile-chip-bg: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(247, 251, 255, 0.9) 45%,
      rgba(232, 241, 251, 0.74) 100%
    );
    --subpage-mobile-chip-hover-bg: linear-gradient(
      165deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(244, 249, 255, 0.96) 45%,
      rgba(220, 233, 248, 0.84) 100%
    );
    --subpage-mobile-chip-border: rgba(186, 203, 226, 0.42);
    --subpage-mobile-chip-shadow:
      0 1px 2px rgba(44, 67, 95, 0.04),
      0 3px 8px rgba(44, 67, 95, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 0 -1px 0 rgba(168, 186, 214, 0.1);
    --subpage-mobile-chip-shadow-hover:
      0 2px 4px rgba(44, 67, 95, 0.05),
      0 6px 14px rgba(44, 67, 95, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 1),
      inset 0 -1px 0 rgba(148, 172, 206, 0.14);
  }
  body.subpage .subpage-mobile-nav-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: calc(
      3 * var(--subpage-mobile-nav-grid-dot-w) + 2 * var(--subpage-mobile-nav-grid-col-gap) +
        2 * var(--subpage-mobile-hamburger-pad-x)
    );
    height: calc(
      3 * var(--subpage-mobile-nav-grid-dot-h) + 2 * var(--subpage-mobile-nav-grid-row-gap) +
        2 * var(--subpage-mobile-hamburger-pad-y)
    );
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: #3d5a7c;
    cursor: pointer;
    transition:
      color 0.18s ease,
      opacity 0.18s ease,
      transform 0.18s ease;
  }
  /* 扩大点击热区，不把可见格点推离左缘 */
  body.subpage .subpage-mobile-nav-toggle::after {
    content: "";
    position: absolute;
    inset: -12px;
  }
  body.subpage .subpage-mobile-nav-toggle:hover,
  body.subpage .subpage-mobile-nav-toggle:focus-visible {
    border-color: transparent;
    box-shadow: none;
    background: transparent;
    color: #2f4866;
    opacity: 1;
  }
  body.subpage .subpage-mobile-nav-toggle:focus-visible {
    outline: 2px solid rgba(148, 172, 206, 0.4);
    outline-offset: 2px;
    border-radius: 6px;
  }
  body.subpage .subpage-mobile-nav-toggle:active {
    transform: scale(0.96);
    box-shadow: none;
    opacity: 0.88;
  }
  body.subpage .subpage-mobile-nav-toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, var(--subpage-mobile-nav-grid-dot-w));
    grid-template-rows: repeat(3, var(--subpage-mobile-nav-grid-dot-h));
    column-gap: var(--subpage-mobile-nav-grid-col-gap);
    row-gap: var(--subpage-mobile-nav-grid-row-gap);
    width: calc(
      3 * var(--subpage-mobile-nav-grid-dot-w) + 2 * var(--subpage-mobile-nav-grid-col-gap)
    );
    height: calc(
      3 * var(--subpage-mobile-nav-grid-dot-h) + 2 * var(--subpage-mobile-nav-grid-row-gap)
    );
    pointer-events: none;
  }
  body.subpage .subpage-mobile-nav-toggle-grid > span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.92;
  }
  body.subpage .subpage-mobile-logo-btn.subpage-mobile-logo-center {
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
  }
  body.subpage .subpage-mobile-topbar-tools {
    position: relative;
    z-index: 2;
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    margin: 0 0 0 auto;
    padding: 0;
    gap: var(--mobile-topbar-lang-avatar-gap);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow: visible;
  }
  body.subpage .subpage-mobile-topbar-tools .subpage-mobile-topbar-avatar,
  body.subpage .subpage-mobile-topbar-tools .user-center.subpage-mobile-topbar-avatar {
    flex: 0 0 auto;
    min-width: var(--mobile-topbar-circle-size);
    min-height: var(--mobile-topbar-circle-size);
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body.subpage .subpage-mobile-logo-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
  }
  body.subpage .subpage-mobile-logo-btn:hover {
    background: transparent;
    border-color: transparent;
  }
  body.subpage .subpage-mobile-logo {
    width: var(--subpage-mobile-logo-size, 26px);
    height: var(--subpage-mobile-logo-size, 26px);
    object-fit: contain;
    display: block;
  }
  body.subpage .subpage-mobile-topbar-tools .site-locale-picker {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    flex-shrink: 0;
    gap: 0;
    margin: 0;
    transform: none;
  }
  body.subpage .subpage-mobile-topbar-tools .site-locale-picker__trigger {
    margin: 0;
    flex-shrink: 0;
    aspect-ratio: 1;
    border: 1px solid var(--subpage-mobile-topbar-chip-border);
    background: var(--subpage-mobile-chip-bg);
    box-shadow: var(--subpage-mobile-chip-shadow);
    -webkit-backdrop-filter: blur(10px) saturate(1.06);
    backdrop-filter: blur(10px) saturate(1.06);
    color: #3d5a7c;
  }
  body.subpage .subpage-mobile-topbar-tools .site-locale-picker__trigger:hover,
  body.subpage .subpage-mobile-topbar-tools .site-locale-picker__trigger:active,
  body.subpage .subpage-mobile-topbar-tools .site-locale-picker.is-open .site-locale-picker__trigger {
    border-color: rgba(148, 172, 206, 0.68);
    box-shadow: var(--subpage-mobile-chip-shadow-hover);
    background: var(--subpage-mobile-chip-hover-bg);
    color: var(--subpage-nav-link-hover, #1a3354);
  }
  body.subpage .subpage-mobile-topbar-tools .site-locale-picker__trigger:active {
    transform: scale(0.98);
  }
  body.subpage .subpage-mobile-topbar-tools .subpage-mobile-topbar-avatar .avatar,
  body.subpage .subpage-mobile-topbar-tools .user-center.subpage-mobile-topbar-avatar .avatar {
    width: var(--mobile-topbar-circle-size);
    height: var(--mobile-topbar-circle-size);
    box-sizing: border-box;
    border-radius: 50%;
    border: 1px solid var(--subpage-mobile-topbar-chip-border);
    background: var(--subpage-mobile-chip-bg);
    box-shadow:
      var(--subpage-mobile-chip-shadow),
      inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(10px) saturate(1.06);
    backdrop-filter: blur(10px) saturate(1.06);
    transition:
      border-color 0.22s ease,
      box-shadow 0.22s ease,
      background 0.22s ease,
      transform 0.18s ease;
  }
  body.subpage .subpage-mobile-topbar-tools .subpage-mobile-topbar-avatar:hover .avatar,
  body.subpage .subpage-mobile-topbar-tools .user-center.subpage-mobile-topbar-avatar:hover .avatar,
  body.subpage .subpage-mobile-topbar-tools .subpage-mobile-topbar-avatar:focus-visible .avatar,
  body.subpage .subpage-mobile-topbar-tools .user-center.subpage-mobile-topbar-avatar:focus-visible .avatar {
    border-color: rgba(148, 172, 206, 0.68);
    box-shadow:
      var(--subpage-mobile-chip-shadow-hover),
      inset 0 0 0 1px rgba(255, 255, 255, 0.72);
    background: var(--subpage-mobile-chip-hover-bg);
  }
  body.subpage .subpage-mobile-topbar-tools .subpage-mobile-topbar-avatar:active .avatar,
  body.subpage .subpage-mobile-topbar-tools .user-center.subpage-mobile-topbar-avatar:active .avatar {
    transform: scale(0.97);
    box-shadow:
      0 1px 2px rgba(44, 67, 95, 0.06),
      inset 0 1px 3px rgba(44, 67, 95, 0.08);
  }
  body.subpage .subpage-mobile-topbar-tools .subpage-mobile-topbar-avatar .avatar-logo,
  body.subpage .subpage-mobile-topbar-tools .user-center.subpage-mobile-topbar-avatar .avatar-logo {
    width: var(--mobile-topbar-circle-logo-size);
    height: var(--mobile-topbar-circle-logo-size);
    opacity: 0.94;
  }
  body.subpage .subpage-mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(20, 32, 52, 0.28);
    cursor: pointer;
  }
  body.subpage .subpage-mobile-nav-backdrop[hidden] {
    display: none !important;
  }
  body.subpage .subpage-mobile-nav-panel {
    position: relative;
    z-index: 2;
  }
  body.subpage .subpage-mobile-nav-panel[hidden]:not(.is-open) {
    display: none !important;
  }
  body.subpage .subpage-mobile-nav-panel.is-open {
    display: block;
    position: fixed;
    left: var(--home-mobile-safe-left);
    right: var(--home-mobile-safe-right);
    top: var(--subpage-mobile-fixed-header-h);
    z-index: 2;
    box-sizing: border-box;
  }
  body.subpage.subpage-mobile-nav-open .site-header--subpage-compact {
    z-index: 1100;
  }
  body.subpage .subpage-mobile-nav-panel__inner {
    margin-top: 0;
    padding: 4px 0 6px;
    background: #fbfdff;
    border: 1px solid #d6e0ef;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(57, 84, 120, 0.12);
  }
  body.subpage .subpage-mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 18px 11px 15px;
    border-left: 3px solid transparent;
    font-size: var(--font-size-subpage-mobile-nav);
    font-weight: 500;
    line-height: 1.45;
    color: var(--subpage-nav-link, #2f435f);
    text-decoration: none;
    text-align: left;
    border-bottom: 1px solid rgba(207, 217, 234, 0.65);
    box-sizing: border-box;
  }
  body.subpage .subpage-mobile-nav-link:last-child {
    border-bottom: 0;
  }
  body.subpage .subpage-mobile-nav-link--active {
    color: var(--subpage-nav-brand-accent);
    font-weight: 600;
    border-left-color: var(--subpage-nav-brand-accent);
    background: rgba(186, 214, 248, 0.48);
    box-shadow: none;
  }
  body.subpage .subpage-mobile-nav-link--active:hover,
  body.subpage .subpage-mobile-nav-link--active:focus-visible {
    color: var(--subpage-nav-brand-accent);
    background: rgba(168, 202, 242, 0.56);
  }
  body.subpage .subpage-mobile-nav-link:hover,
  body.subpage .subpage-mobile-nav-link:focus-visible {
    color: var(--subpage-nav-link-hover, #1a3354);
    background: rgba(210, 229, 255, 0.35);
  }
  body.subpage .subpage-mobile-nav-divider {
    height: 1px;
    margin: 6px 16px;
    background: rgba(178, 156, 114, 0.35);
  }
  body.subpage.subpage-mobile-nav-open {
    overflow: hidden;
  }
  /* 二级页脚：三行等距（手机 6px，略紧于首页 8px）— 容器 gap 统一 */
  body.subpage .subpage-footer {
    --footer-row-gap: 6px;
  }
  body.subpage .subpage-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--footer-row-gap);
    min-height: 0;
  }
  body.subpage .subpage-footer .footer-note-stack {
    gap: var(--footer-row-gap);
    padding: 0;
  }
  body.subpage .subpage-footer .footer-line {
    margin: 0;
    width: 100%;
  }
  body.subpage .subpage-footer .footer-line + .footer-line {
    margin-top: 0;
  }
  html[lang="zh"].subpage-view body.subpage .subpage-footer .footer-line + .footer-line,
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-line + .footer-line {
    margin-top: 0;
  }
  body.subpage .subpage-footer .footer-note-line,
  body.subpage .subpage-footer .footer-line--journey,
  body.subpage .subpage-footer .footer-line--bottom {
    font-size: clamp(9px, 2.55vw, 10.5px);
    line-height: 1.2;
  }
  body.subpage .subpage-footer .footer-note-line:first-child {
    white-space: nowrap;
    letter-spacing: -0.01em;
  }
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-note-line:first-child {
    letter-spacing: 0;
  }
  body.subpage .subpage-footer .footer-note-line:not(:first-child) {
    max-width: 100%;
    line-height: 1.35;
    white-space: normal;
  }
  /* 二级页手机底栏：统一 flex（不用 grid，避免双行/row-gap 把第 2↔3 行撑大） */
  body.subpage .subpage-footer .footer-bottom-group--links-primary,
  body.subpage .subpage-footer .footer-bottom-group--links-site {
    display: contents;
  }
  body.subpage .subpage-footer .footer-line--bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    gap: 0;
    width: 100%;
    max-width: none;
    overflow: visible;
  }
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-line--bottom {
    flex-direction: column;
    align-items: center;
    column-gap: 0;
    row-gap: 0;
    gap: var(--footer-row-gap, var(--footer-en-mobile-row-gap));
  }
  body.subpage .subpage-footer .footer-line--journey.is-enabled {
    gap: 0;
    row-gap: 0;
  }
  body.subpage .subpage-footer .footer-journey__list {
    gap: 0;
    row-gap: 0;
  }
  body.subpage .subpage-footer .footer-line--bottom a,
  body.subpage .subpage-footer .footer-line--bottom span {
    font-size: inherit;
    line-height: 1.25;
    text-align: center;
    justify-self: center;
  }
  body.subpage .subpage-footer .footer-line--bottom > span:last-child {
    grid-column: auto;
    white-space: nowrap;
    justify-self: center;
  }
  /* 英文二级页手机页脚：覆盖上方通用 grid/间距，与英文首页一致 */
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-note-stack {
    gap: var(--footer-row-gap, var(--footer-en-mobile-row-gap));
  }
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-line + .footer-line {
    margin-top: 0;
  }
  html[lang="en"].subpage-view body.subpage .subpage-footer .footer-note-line:first-child {
    white-space: normal;
    line-height: 1.32;
  }
}

/* ── 故土纪念 / 搜索：描边按钮（与创建·编辑纪念页 CTA 一致） ── */
body.local-memorial-page .btn,
body.local-memorial-page a.btn,
body.local-memorial-page button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  padding: 10px 20px;
  min-height: 40px;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.2;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: #2c2c2c;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}
body.local-memorial-page .btn:hover,
body.local-memorial-page a.btn:hover {
  background: rgba(178, 156, 114, 0.14);
  border-color: #a47f4a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 36, 22, 0.1);
}
body.local-memorial-page .btn.primary {
  font-weight: 600;
}
body.local-memorial-page .btn.danger {
  border-color: #dfc6c1;
  color: #8d4b40;
  background: transparent;
}
body.local-memorial-page .btn.danger:hover {
  background: rgba(141, 75, 64, 0.08);
  border-color: #c99;
  box-shadow: 0 6px 16px rgba(44, 36, 22, 0.08);
}
body.local-memorial-page .tab-btn,
main.local-memorial-main .lm-level-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: #2c2c2c;
  font-family: inherit;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}
body.local-memorial-page .tab-btn {
  min-height: var(--tab-btn-h, 2.05rem);
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  font-size: 0.84rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}
main.local-memorial-main .lm-level-btn {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  line-height: 1.35;
  appearance: none;
  -webkit-appearance: none;
}
body.local-memorial-page .tab-btn:hover,
main.local-memorial-main .lm-level-btn:hover {
  background: rgba(178, 156, 114, 0.14);
  border-color: #a47f4a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 36, 22, 0.1);
}
body.local-memorial-page .tab-btn.active,
main.local-memorial-main .lm-level-btn.active {
  background: rgba(178, 156, 114, 0.18);
  border-color: #a47f4a;
  color: #2c2c2c;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(44, 36, 22, 0.08);
}
body.local-memorial-page .tab-btn--ghost,
body.local-memorial-page .tab-btn--ghost:hover {
  opacity: 0.58;
  cursor: default;
  pointer-events: none;
  transform: none;
  box-shadow: none;
  background: transparent;
  border-color: #e2dfd8;
  color: #8a8278;
}
body.local-memorial-page .btn-create {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: #2c2c2c;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  margin-bottom: 1rem;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}
body.local-memorial-page .lm-admin-v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: #2c2c2c;
  border-radius: 40px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.84rem;
  font-family: inherit;
  font-weight: 500;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}
body.local-memorial-page .lm-admin-v2-btn:hover {
  background: rgba(178, 156, 114, 0.14);
  border-color: #a47f4a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 36, 22, 0.1);
}
body.local-memorial-page .lm-admin-v2-btn--danger {
  border-color: #dfc6c1;
  color: #8d4b40;
  background: transparent;
}
body.local-memorial-page .lm-admin-v2-btn--danger:hover {
  background: rgba(141, 75, 64, 0.08);
  border-color: #c99;
  box-shadow: 0 6px 16px rgba(44, 36, 22, 0.08);
}
body.local-memorial-page #tabsNav .lm-admin-v2-tab.memorial-tab-pill {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: #2c2c2c;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}
body.local-memorial-page #tabsNav .lm-admin-v2-tab.memorial-tab-pill:hover {
  background: rgba(178, 156, 114, 0.14);
  border-color: #a47f4a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 36, 22, 0.1);
  filter: none;
  color: #2c2c2c;
}
body.local-memorial-page #tabsNav .lm-admin-v2-tab.memorial-tab-pill.is-active,
body.local-memorial-page #tabsNav .lm-admin-v2-tab.memorial-tab-pill.active {
  background: rgba(178, 156, 114, 0.18);
  border-color: #a47f4a;
  color: #2c2c2c;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(44, 36, 22, 0.08);
}
body.local-memorial-page #tabsNav .lm-nav-dd__trigger[aria-expanded="true"],
body.local-memorial-page .lm-nav-dd__trigger[aria-expanded="true"] {
  background: rgba(178, 156, 114, 0.18);
  border-color: #a47f4a;
}
body.local-memorial-page .manage-btn,
body.local-memorial-page .lm-admin-v2-close {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: #2c2c2c;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}
body.local-memorial-page .manage-btn:hover,
body.local-memorial-page .lm-admin-v2-close:hover {
  background: rgba(178, 156, 114, 0.14);
  border-color: #a47f4a;
  color: #2c2c2c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 36, 22, 0.1);
  filter: none;
}
body.local-memorial-page .btn-create:hover {
  background: rgba(178, 156, 114, 0.14);
  border-color: #a47f4a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 36, 22, 0.1);
}

/* 故土详情 / 专题：面包屑 */
body.local-memorial-page .lm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.12rem 0.32rem;
  margin: 0 0 0.7rem;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #8a8275;
}
body.local-memorial-page .lm-breadcrumb a {
  color: #a47f4a;
  text-decoration: none;
  font-weight: 500;
}
body.local-memorial-page .lm-breadcrumb a:hover {
  text-decoration: underline;
}
body.local-memorial-page .lm-breadcrumb-sep {
  color: #c4b9a8;
  user-select: none;
  font-size: 0.75em;
  line-height: 1;
}
body.local-memorial-page .lm-breadcrumb [aria-current="page"] {
  color: #6f6a61;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  body.local-memorial-page .org-meta {
    font-size: 0.78rem;
  }
  body.local-memorial-page .org-desc.org-desc--summary {
    font-size: 0.88rem;
  }
  main.local-memorial-main .lm-stat-card {
    font-size: 0.82rem;
  }
}

body.local-memorial-page .lm-deceased-search-btn,
body.local-memorial-page .local-memorial-main .lm-region-more-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: #2c2c2c;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}
body.local-memorial-page .lm-deceased-search-btn:hover,
body.local-memorial-page .local-memorial-main .lm-region-more-toggle:hover {
  background: rgba(178, 156, 114, 0.14);
  border-color: #a47f4a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 36, 22, 0.1);
  filter: none;
}
body.local-memorial-page .local-memorial-main .lm-region-more-toggle[aria-expanded="true"],
body.local-memorial-page .story-tb-btn.is-active,
body.local-memorial-page .story-mode-btn.is-active,
body.local-memorial-page .lm-media-mode-btn.is-active,
body.local-memorial-page .leaders-seg.is-active {
  background: rgba(178, 156, 114, 0.18);
  border-color: #a47f4a;
  color: #2c2c2c;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(44, 36, 22, 0.08);
  filter: none;
}
main.advancesearch-main .search-btn,
main.searchresult-main .search-btn,
main.searchresult-main .sort-btn,
main.searchresult-main .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: #2c2c2c;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}
main.advancesearch-main .search-btn {
  flex: 0 0 140px;
  height: 44px;
  padding: 0 16px;
  border-radius: 40px;
  font-size: 0.97rem;
  line-height: 1;
  box-sizing: border-box;
}
main.searchresult-main .search-btn {
  flex-shrink: 0;
  flex-grow: 0;
  min-height: 40px;
  min-width: 5.75rem;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 0.9rem;
  line-height: 1.2;
  box-sizing: border-box;
  font-weight: 600;
  white-space: nowrap;
}
main.advancesearch-main .search-btn:hover,
main.searchresult-main .search-btn:hover,
main.searchresult-main .sort-btn:hover,
main.searchresult-main .page-btn:hover:not(.disabled) {
  background: rgba(178, 156, 114, 0.14);
  border-color: #a47f4a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 36, 22, 0.1);
}
main.advancesearch-main .search-btn:focus-visible,
main.searchresult-main .search-btn:focus-visible,
main.searchresult-main .sort-btn:focus-visible,
main.searchresult-main .page-btn:focus-visible:not(.disabled) {
  outline: 2px solid rgba(164, 127, 74, 0.55);
  outline-offset: 2px;
}
main.searchresult-main .sort-btn,
main.searchresult-main .page-btn {
  border-radius: 40px;
  padding: 8px 16px;
  font-size: 0.8rem;
}
main.searchresult-main .page-btn.disabled,
main.searchresult-main .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
main.searchresult-main .sort-btn.active,
main.searchresult-main .page-btn.active {
  background: rgba(178, 156, 114, 0.18);
  border-color: #a47f4a;
  color: #2c2c2c;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(44, 36, 22, 0.08);
}
@media (prefers-reduced-motion: reduce) {
  body.local-memorial-page .btn,
  body.local-memorial-page .tab-btn,
  main.local-memorial-main .lm-level-btn,
  body.local-memorial-page .btn-create,
  body.local-memorial-page .lm-admin-v2-btn,
  main.advancesearch-main .search-btn,
  main.searchresult-main .search-btn,
  main.searchresult-main .sort-btn,
  main.searchresult-main .page-btn {
    transition: border-color 0.22s ease, background-color 0.22s ease;
  }
  body.local-memorial-page .btn:hover,
  body.local-memorial-page .tab-btn:hover,
  main.local-memorial-main .lm-level-btn:hover,
  body.local-memorial-page .btn-create:hover,
  main.advancesearch-main .search-btn:hover,
  main.searchresult-main .search-btn:hover,
  main.searchresult-main .sort-btn:hover,
  main.searchresult-main .page-btn:hover:not(.disabled) {
    transform: none;
    box-shadow: none;
  }
}
@media (max-width: 860px) {
  body.local-memorial-page .btn,
  body.local-memorial-page a.btn,
  body.local-memorial-page .tab-btn,
  main.local-memorial-main .lm-level-btn,
  body.local-memorial-page .btn-create,
  body.local-memorial-page .lm-admin-v2-btn,
  main.advancesearch-main .search-btn,
  main.searchresult-main .search-btn,
  main.searchresult-main .sort-btn,
  main.searchresult-main .page-btn {
    font-size: 0.8125rem !important;
    padding: 8px 16px !important;
    min-height: 36px;
    border-radius: 28px !important;
  }
  main.advancesearch-main .search-btn {
    flex: 1 1 100%;
    height: auto;
    min-height: 36px;
    font-size: 0.875rem !important;
  }
  main.searchresult-main .search-input {
    flex-wrap: nowrap;
    gap: 8px;
  }
  main.searchresult-main .search-input input {
    flex: 1 1 auto;
    min-width: 0;
  }
  main.searchresult-main .search-btn {
    flex: 0 0 auto;
    min-width: 5.75rem;
    width: auto;
    white-space: nowrap;
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* 故土详情 / 管理：手机英文导航胶囊字较长，缩小字号并允许换行 */
@media (max-width: 768px) {
  body.local-memorial-page .lm-breadcrumb {
    font-size: 0.68rem;
    line-height: 1.28;
    gap: 0.08rem 0.24rem;
    margin-bottom: 0.5rem;
  }
  html[lang="en"] body.local-memorial-page .lm-breadcrumb {
    font-size: 0.62rem;
    line-height: 1.25;
  }

  html[lang="en"] body.local-memorial-page .tab-btn,
  html[lang="en"] body.local-memorial-page .memorial-tab-pill,
  html[lang="en"] body.local-memorial-page #tabsNav .lm-admin-v2-tab.memorial-tab-pill {
    font-size: 0.66rem !important;
    line-height: 1.14 !important;
    padding: 0.24rem 0.34rem !important;
    min-height: 2.1rem;
    min-width: 0 !important;
    max-width: 100%;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: center;
    box-sizing: border-box;
  }

  html[lang="en"] body.local-memorial-page .tab-btn.lm-nav-dd__trigger,
  html[lang="en"] body.local-memorial-page #tabsNav .lm-nav-dd__trigger {
    padding-left: 0.38rem !important;
    padding-right: 1.22rem !important;
    justify-content: center;
    text-align: center;
  }

  html[lang="en"] body.local-memorial-page .org-level,
  html[lang="en"] body.local-memorial-page .org-op-status {
    font-size: 0.72rem;
    padding: 0.28rem 0.52rem;
    white-space: normal;
    text-align: center;
    line-height: 1.12;
  }

  html[lang="en"] body.local-memorial-page .manage-btn,
  html[lang="en"] body.local-memorial-page .lm-admin-v2-close,
  html[lang="en"] body.local-memorial-page .lm-admin-v2-delete {
    font-size: 0.72rem !important;
    padding: 0.28rem 0.52rem !important;
  }

  html[lang="en"] body.local-memorial-page .lm-admin-v2-btn.lm-admin-v2-btn--full,
  html[lang="en"] body.local-memorial-page .btn-create {
    font-size: 0.76rem !important;
    line-height: 1.2;
    padding: 0.42rem 0.75rem !important;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 400px) {
  html[lang="en"] body.local-memorial-page .tab-btn,
  html[lang="en"] body.local-memorial-page .memorial-tab-pill,
  html[lang="en"] body.local-memorial-page #tabsNav .lm-admin-v2-tab.memorial-tab-pill {
    font-size: 0.62rem !important;
    padding: 0.22rem 0.28rem !important;
    line-height: 1.12 !important;
  }
}

/* =============================================================================
 * 首页手机顶/底留白 — 最终覆盖（防层叠遗漏；改 --home-mobile-edge 即可）
 * ============================================================================= */
@media (max-width: 860px) {
  html:has(> body.home) {
    overscroll-behavior-y: none;
    overflow-anchor: none;
  }
  body.home .top-brand {
    padding-top: calc(var(--home-mobile-edge, 16px) + env(safe-area-inset-top, 0px)) !important;
  }
  body.home .site-footer {
    padding-bottom: calc(var(--home-mobile-edge, 16px) + env(safe-area-inset-bottom, 0px)) !important;
    margin-bottom: 0 !important;
  }
  body.subpage .subpage-mobile-topbar-shell {
    padding-top: calc(var(--home-mobile-edge, 16px) + env(safe-area-inset-top, 0px) + var(--subpage-mobile-topbar-pad-top-adjust, -1px)) !important;
    padding-bottom: var(--subpage-mobile-topbar-pad-bottom, 11px) !important;
  }
  body.subpage .subpage-footer {
    padding-bottom: calc(var(--home-mobile-edge, 16px) + env(safe-area-inset-bottom, 0px)) !important;
    margin-bottom: 0 !important;
  }
}

/* 全站内容保护：禁选/禁拖图片（表单与 .allow-copy 除外） */
/* 纪念创建/编辑：生前事迹 PDF 列表（与 PC 一致，含手机端） */
.memorial-main .life-deeds-pdf-saved-list {
  margin: 10px 0 12px;
}
.memorial-main .life-deeds-pdf-saved-heading {
  margin-bottom: 6px;
}
.memorial-main .life-deeds-pdf-saved-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.memorial-main .life-deeds-pdf-saved-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e8ddd0;
  border-radius: 8px;
  background: #faf7f2;
}
.memorial-main .life-deeds-pdf-saved-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.memorial-main .life-deeds-pdf-saved-item-slot {
  font-size: 13px;
  font-weight: 600;
  color: #4a3a2a;
}
.memorial-main .life-deeds-pdf-saved-item-name {
  font-size: 13px;
  color: #6b5a48;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.memorial-main .life-deeds-pdf-saved-item-when {
  font-size: 12px;
  color: #8a7a68;
}
.memorial-main .life-deeds-pdf-preview-btn {
  flex-shrink: 0;
  border: 1px solid #c8b8a0;
  background: #fff;
  color: #5a4a3a;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.3;
  font-family: inherit;
}
.memorial-main .life-deeds-pdf-preview-btn:hover {
  background: #f5efe6;
}
.memorial-main .life-deeds-pdf-remove-btn {
  flex-shrink: 0;
  border: 1px solid #d6a0a0;
  background: #fff7f7;
  color: #8d3f3f;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.3;
  font-family: inherit;
}
.memorial-main .life-deeds-pdf-remove-btn:hover {
  background: #ffefef;
}
.life-deeds-pdf-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.life-deeds-pdf-preview-modal.is-open {
  display: flex;
}
.life-deeds-pdf-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.55);
}
.life-deeds-pdf-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 96vw);
  height: min(82vh, 760px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.life-deeds-pdf-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #ece6dc;
  background: #faf7f2;
}
.life-deeds-pdf-preview-header strong {
  font-size: 14px;
  color: #4a3a2a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.life-deeds-pdf-preview-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #6b5a48;
}
.life-deeds-pdf-preview-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}
.life-deeds-pdf-preview-foot {
  padding: 8px 14px 12px;
  border-top: 1px solid #ece6dc;
}
.life-deeds-pdf-preview-foot a {
  color: var(--color-accent);
}
@media (max-width: 860px) {
  .memorial-main .life-deeds-pdf-saved-item {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 10px 12px;
  }
  .memorial-main .life-deeds-pdf-saved-item-main {
    flex: 1 1 100%;
  }
  .memorial-main .life-deeds-pdf-saved-item-name {
    white-space: normal;
    word-break: break-word;
  }
  .memorial-main .life-deeds-pdf-preview-btn,
  .memorial-main .life-deeds-pdf-remove-btn {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 0.8125rem;
  }
  .life-deeds-pdf-preview-dialog {
    width: 100%;
    height: min(88vh, 720px);
    border-radius: 14px;
  }
}

html.tdw-content-protect,
html.tdw-content-protect body {
  -webkit-user-select: none;
  user-select: none;
}

html.tdw-content-protect input,
html.tdw-content-protect textarea,
html.tdw-content-protect select,
html.tdw-content-protect [contenteditable="true"],
html.tdw-content-protect .allow-copy,
html.tdw-content-protect [data-allow-copy] {
  -webkit-user-select: text;
  user-select: text;
}

html.tdw-content-protect img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}
