/**
 * 全站版面壳：页面画布与内容区布局
 *
 * 默认（rail）：斜纹页底 + 双侧竖轨白底版心；类名 .wa-index-page
 * 备选（blocks）：平铺底、通栏分区边线；加 .wa-index-page--blocks
 * 快速预览：?layout=blocks|rail ，或导航版式图标 / WA_CHROME.setLayout(...)
 *
 * - 通栏导航条带（.wa-nav--bar）两套共用
 * - 页头 / 分区跳转 / 关注 CTA / 版心页脚
 * 导航控件本体在 components.css；本文件只管版面骨架。
 * Token：var(--wa-*)；勿运行时引用 frame/
 * 圆角分层：卡/面 --wa-radius · 大面/强调块 --wa-radius-lg · 轻控件 --wa-input-radius ·
 * 大钮 --wa-btn-radius-lg；胶囊形（chip/圆钮）固定 999px（形，非表面阶）
 * 矮条/小方钮（关注 CTA）对 token 封顶，避免大圆角品牌皮收成胶囊
 */

/* —— 默认页底：rail 斜纹；blocks 备选见 --blocks —— */
body:has(.wa-index-page) {
  overflow-x: hidden;
  margin: 0;
}

body:has(.wa-index-page--blocks) {
  /* 与 rail 版心底对齐：亮色 surface / 暗色用 bg（#0d0d0d），勿用 surface(#1a1a1a) */
  background-color: var(--wa-color-surface, #ffffff);
  background-image: none;
}

html[data-theme="dark"] body:has(.wa-index-page--blocks) {
  background-color: var(--wa-color-bg, #0d0d0d);
  background-image: none;
}

.wa-fam-fade-in {
  animation: wa-fam-fade-up 0.55s ease both;
}

@keyframes wa-fam-fade-up {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fam-fade-in {
    animation: none;
  }
}

.wa-fam-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wa-color-primary);
}

.wa-fam-title {
  margin: 0 0 14px;
  font-family: var(--wa-font-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--wa-color-text);
}

.wa-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--wa-input-radius, var(--wa-radius));
  font-size: 13px;
  line-height: 1;
  border: 1px solid transparent;
  flex-shrink: 0;
}

/* FA 在 flex 子项里偶发算成 block；保证字形盒可见 */
.wa-icon-badge > i,
.wa-nav__icon-btn > i,
.wa-nav__toggle > i,
.wa-lg-theme > i {
  display: inline-block;
  line-height: 1;
  width: 1em;
  text-align: center;
  font-style: normal;
}

/* 微信图标：整像素 img，栅格抗锯齿更稳；暗色仅 invert 图片（勿套到 FA <i>） */
img.wa-icon-wechat {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
  pointer-events: none;
}

html[data-theme="dark"] img.wa-icon-wechat {
  filter: invert(1);
}

.wa-icon-badge--soft {
  color: var(--wa-color-primary);
  border-color: color-mix(in srgb, var(--wa-color-primary) 35%, transparent);
  background: var(--wa-color-primary-soft);
}

/* —— 版心壳（默认 rail） —— */
.wa-index-page {
  --wa-index-rail: var(--wa-color-border, #e4e4e7);
  --wa-index-gap: 64px;
  --wa-content-max: var(--wa-container, 1400px);
  --wa-content-pad-x: 32px;
  box-sizing: border-box;
  min-height: 100vh;
  padding: 0;
}

html[data-theme="dark"] .wa-index-page {
  --wa-index-rail: color-mix(in srgb, #fff 12%, transparent);
}

.wa-index-page > .wa-comp-index {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: transparent;
}

.wa-index-page--blocks > .wa-comp-index::before,
.wa-index-page--blocks > .wa-comp-index::after {
  content: none !important;
  box-shadow: none !important;
}

/* —— 默认 rail 竖轨版心：SVG 斜纹平铺（减摩尔纹；舞台略密、反向） —— */
body:has(.wa-index-page):not(:has(.wa-index-page--blocks)) {
  --wa-page-hatch-bg: #ffffff;
  --wa-page-hatch-stripe: #f3f4f6;
  --wa-stage-hatch-bg: #fafafa;
  --wa-stage-hatch-stripe: #ececef;
  --wa-hatch-tile-size: 6px;
  --wa-hatch-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M0 6L6 0M-1.5 1.5L1.5-1.5M4.5 7.5L7.5 4.5' stroke='%23f3f4f6' stroke-width='1.25'/%3E%3C/svg%3E");
  --wa-stage-hatch-tile-size: 5px;
  --wa-stage-hatch-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5'%3E%3Cpath d='M0 0L5 5M-1.25 3.75L1.25 6.25M3.75-1.25L6.25 1.25' stroke='%23ececef' stroke-width='1.15'/%3E%3C/svg%3E");
  background-color: var(--wa-page-hatch-bg);
  background-image: var(--wa-hatch-tile);
  background-size: var(--wa-hatch-tile-size) var(--wa-hatch-tile-size);
  background-repeat: repeat;
}

html[data-theme="dark"] body:has(.wa-index-page):not(:has(.wa-index-page--blocks)) {
  --wa-page-hatch-bg: #0a0a0a;
  --wa-page-hatch-stripe: #171717;
  --wa-stage-hatch-bg: #121214;
  --wa-stage-hatch-stripe: #222226;
  --wa-hatch-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M0 6L6 0M-1.5 1.5L1.5-1.5M4.5 7.5L7.5 4.5' stroke='%23171717' stroke-width='1.25'/%3E%3C/svg%3E");
  --wa-stage-hatch-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5'%3E%3Cpath d='M0 0L5 5M-1.25 3.75L1.25 6.25M3.75-1.25L6.25 1.25' stroke='%23222226' stroke-width='1.15'/%3E%3C/svg%3E");
  background-color: var(--wa-page-hatch-bg);
  background-image: var(--wa-hatch-tile);
  background-size: var(--wa-hatch-tile-size) var(--wa-hatch-tile-size);
  background-repeat: repeat;
}

.wa-index-page:not(.wa-index-page--blocks) {
  --wa-index-rail: #eeeeee;
  --wa-index-gap: 48px;
  --wa-index-rail-gap: 24px;
  --wa-index-stage-inset: 20px;
  --wa-index-stage-pad-x: 32px;
  --wa-index-rail-mark: 20px;
  padding: 0 var(--wa-index-rail-gap);
}

html[data-theme="dark"] .wa-index-page:not(.wa-index-page--blocks) {
  --wa-index-rail: rgba(255, 255, 255, 0.08);
  --wa-index-rail-inner: color-mix(in srgb, #fff 16%, transparent);
}

.wa-index-page:not(.wa-index-page--blocks) > .wa-comp-index {
  /* 对齐 flow：内容 1400 + 双侧内边距 ≈ 1480 */
  width: min(1480px, calc(100% - (var(--wa-index-stage-inset) * 2)));
  margin: 0 auto;
  padding: 28px var(--wa-index-stage-pad-x) 0;
  background: var(--wa-color-surface, #ffffff);
}

html[data-theme="dark"] .wa-index-page:not(.wa-index-page--blocks) > .wa-comp-index {
  /* 暗色版心底 = --wa-color-bg，与 blocks 页底同一真源 */
  background: var(--wa-color-bg, #0d0d0d);
}

.wa-index-page:not(.wa-index-page--blocks) > .wa-comp-index::before,
.wa-index-page:not(.wa-index-page--blocks) > .wa-comp-index::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--wa-index-rail-inner, var(--wa-index-rail));
  pointer-events: none;
  z-index: 3;
}

.wa-index-page:not(.wa-index-page--blocks) > .wa-comp-index::before {
  left: 0;
  box-shadow: calc(-1 * var(--wa-index-rail-mark)) 0 0 0 var(--wa-index-rail);
}

.wa-index-page:not(.wa-index-page--blocks) > .wa-comp-index::after {
  right: 0;
  box-shadow: var(--wa-index-rail-mark) 0 0 0 var(--wa-index-rail);
}

@media (max-width: 960px) {
  .wa-index-page:not(.wa-index-page--blocks) {
    --wa-index-gap: 32px;
    --wa-index-rail-gap: 12px;
    --wa-index-stage-inset: 0px;
    /* 内边距沿用桌面 32px，只收外侧斜纹边 */
    --wa-index-stage-pad-x: 32px;
    /* 关掉靠外色条，保留内容区 1px 边框线 */
    --wa-index-rail-mark: 0px;
  }

  .wa-index-page:not(.wa-index-page--blocks) > .wa-comp-index {
    width: 100%;
    padding-top: 20px;
  }
}

.wa-index-page:not(.wa-index-page--blocks) .wa-comp-index__head::after,
.wa-index-page:not(.wa-index-page--blocks) .wa-index-catalog::after,
.wa-index-page:not(.wa-index-page--blocks) .wa-comp-index__foot::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: var(--wa-index-rail);
  transform: translateX(-50%);
  pointer-events: none;
}

/* —— 顶栏壳：公告 + 导航同包吸顶，避免双 sticky 缝隙 —— */
.wa-site-chrome {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  /* 透明：由 .wa-nav--bar 自己做半透明毛玻璃，勿用不透明底盖住 */
  background: transparent;
}

/* —— 顶部公告条（全局开关：html[data-wa-announce=on|off] / WA_CHROME） —— */
.wa-announce {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 40px;
  border-bottom: none;
  /* 主色条略压深；底边多压 1px 盖住与导航交界的亚像素发丝缝 */
  margin-bottom: -1px;
  padding-bottom: 1px;
  background: color-mix(in srgb, var(--wa-color-primary) 88%, #000);
  color: var(--wa-color-on-primary, #fff);
  box-shadow: 0 1px 0 0 color-mix(in srgb, var(--wa-color-primary) 88%, #000);
}

html[data-theme="dark"] .wa-announce {
  background: color-mix(in srgb, var(--wa-color-primary) 78%, #000);
  box-shadow: 0 1px 0 0 color-mix(in srgb, var(--wa-color-primary) 78%, #000);
}

html[data-wa-announce="off"] .wa-announce {
  display: none;
}

.wa-announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 40px;
  padding: 8px 40px;
  text-align: center;
}

.wa-announce__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--wa-color-on-primary, #fff) 92%, transparent);
}

.wa-announce__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wa-color-on-primary, #fff) 38%, transparent);
  background: color-mix(in srgb, var(--wa-color-on-primary, #fff) 14%, transparent);
  color: var(--wa-color-on-primary, #fff);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wa-announce__cta:hover {
  border-color: color-mix(in srgb, var(--wa-color-on-primary, #fff) 62%, transparent);
  background: color-mix(in srgb, var(--wa-color-on-primary, #fff) 22%, transparent);
  color: var(--wa-color-on-primary, #fff);
}

.wa-announce__cta i {
  font-size: 11px;
}

.wa-announce__close {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--wa-color-on-primary, #fff) 78%, transparent);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s ease, color 0.15s ease;
}

.wa-announce__close:hover {
  background: color-mix(in srgb, var(--wa-color-on-primary, #fff) 14%, transparent);
  color: var(--wa-color-on-primary, #fff);
}

.wa-announce__close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--wa-color-on-primary, #fff) 55%, transparent);
  outline-offset: 2px;
}

.wa-announce__close i {
  font-size: 14px;
  line-height: 1;
}

/* —— 右下角联系入口（全局开关：html[data-wa-contact=on|off] / WA_CHROME） —— */
.wa-contact-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--wa-color-primary);
  color: var(--wa-color-on-primary, #fff);
  text-decoration: none;
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--wa-color-fg) 8%, transparent),
    0 10px 28px color-mix(in srgb, var(--wa-color-primary) 28%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s ease;
}

.wa-contact-fab:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px color-mix(in srgb, var(--wa-color-fg) 10%, transparent),
    0 14px 32px color-mix(in srgb, var(--wa-color-primary) 36%, transparent);
}

.wa-contact-fab:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--wa-color-primary) 55%, transparent);
  outline-offset: 3px;
}

.wa-contact-fab i {
  font-size: 18px;
  line-height: 1;
}

html[data-wa-contact="off"] .wa-contact-fab {
  display: none;
}

/* —— 版式预览切换：挂在导航 .wa-nav__actions（由 site-chrome 注入） —— */
.wa-nav__icon-btn.wa-layout-toggle[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--wa-color-primary) 45%, var(--wa-color-border));
  color: var(--wa-color-primary);
  background: color-mix(in srgb, var(--wa-color-primary) 10%, var(--wa-color-surface));
}

/* 窄屏固定通栏，隐藏版式切换 */
@media (max-width: 960px) {
  .wa-nav__icon-btn.wa-layout-toggle {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .wa-announce__inner {
    gap: 8px;
    padding: 8px 36px 8px 14px;
  }

  .wa-announce__text {
    font-size: 12px;
  }

  .wa-announce__close {
    right: 6px;
    width: 26px;
    height: 26px;
  }

  .wa-contact-fab {
    width: 44px;
    height: 44px;
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }
}

/* 全站顶栏左右 gutter；设计资源侧栏 --wa-dr-side-pad-x 与此同步 */
:root {
  --wa-nav-pad-x: 0.875rem;
}

/* —— 通栏导航（在版心轨外，全宽吸顶；风格对齐资源站顶栏） —— */
.wa-nav--bar {
  --site-nav-h: 64px;
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  min-height: var(--site-nav-h);
  border-bottom: 1px solid color-mix(in srgb, var(--wa-index-rail, var(--wa-color-border)) 70%, transparent);
  background: color-mix(in srgb, var(--wa-color-surface) 72%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  overflow: visible;
}

/* 已包进 .wa-site-chrome 时由外壳吸顶；导航保留半透明毛玻璃 */
.wa-site-chrome .wa-nav--bar {
  position: relative;
  top: auto;
  z-index: auto;
}

html[data-theme="dark"] .wa-nav--bar {
  background: color-mix(in srgb, var(--wa-color-surface) 62%, transparent);
  border-bottom-color: color-mix(in srgb, var(--wa-index-rail, var(--wa-color-border)) 55%, transparent);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wa-nav--bar,
  html[data-theme="dark"] .wa-nav--bar {
    background: var(--wa-color-surface);
  }
}

.wa-nav--bar .wa-nav__inner {
  width: 100%;
  max-width: none;
  min-height: var(--site-nav-h);
  margin: 0;
  padding-left: var(--wa-nav-pad-x);
  padding-right: var(--wa-nav-pad-x);
  box-sizing: border-box;
}

/* 窄屏抽屉为 fixed 侧栏，不再随顶栏通栏铺满 */

.wa-nav--bar .wa-brand__name {
  font-size: 1.5rem;
}

.wa-nav--bar .wa-brand__mark {
  width: 32px;
  height: 32px;
}

.wa-nav--bar .wa-brand__tagline,
.wa-nav__drawer-brand .wa-brand__tagline {
  font-size: 0.78125rem;
}

@media (min-width: 1280px) {
  .wa-nav--bar .wa-nav__links > a,
  .wa-nav--bar .wa-nav__links > .wa-nav__text-btn,
  .wa-nav--bar .wa-nav__drop > .wa-nav__drop-trigger {
    font-size: 0.875rem;
  }
}

/* —— 页头 —— */
.wa-comp-index__head {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--wa-content-max, 1280px);
  margin: 0 auto;
  padding: 64px var(--wa-content-pad-x, 32px) 48px;
  border-bottom: 1px solid var(--wa-index-rail, var(--wa-color-border));
}

/* rail 默认：版心内页头 + 通栏发丝线 */
.wa-index-page:not(.wa-index-page--blocks) .wa-comp-index__head {
  max-width: none;
  margin: 0 0 var(--wa-index-gap);
  padding: 0 0 var(--wa-index-gap);
  border-bottom: 0;
}

.wa-index-page:not(.wa-index-page--blocks) .wa-comp-index__head::after {
  bottom: 0;
}

.wa-comp-index__head-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 20px;
}

.wa-comp-index__head-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.wa-comp-index__head .wa-fam-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.wa-comp-index__head .wa-fam-kicker .wa-icon-badge {
  width: 22px;
  height: 22px;
  border-radius: max(4px, calc(var(--wa-input-radius, var(--wa-radius)) - 4px));
  font-size: 11px;
}

.wa-comp-index__head .wa-fam-title {
  margin-bottom: 8px;
  font-size: clamp(32px, 4.5vw, 48px);
}

.wa-index-page:not(.wa-index-page--blocks) .wa-comp-index__head .wa-fam-title {
  font-size: clamp(28px, 4vw, 40px);
}

.wa-comp-index__lead {
  margin: 0;
  max-width: 42em;
  font-size: 16px;
  line-height: 1.65;
  color: var(--wa-color-text-secondary, var(--wa-color-muted));
}

.wa-comp-index__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.wa-comp-index__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 0 0 auto;
}

.wa-comp-index__stat {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--wa-color-border) 88%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--wa-color-surface) 88%, transparent);
  color: var(--wa-color-text-secondary, var(--wa-color-muted));
  font-size: 12px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

html[data-theme="dark"] .wa-comp-index__stat {
  background: color-mix(in srgb, var(--wa-color-surface) 92%, transparent);
  border-color: color-mix(in srgb, var(--wa-color-border) 90%, transparent);
}

.wa-lg-theme {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--wa-color-border) 88%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--wa-color-surface) 88%, transparent);
  color: var(--wa-color-text-secondary, var(--wa-color-muted));
  cursor: pointer;
}

.wa-lg-theme i {
  font-size: 12px;
}

html[data-theme="dark"] .wa-lg-theme {
  background: color-mix(in srgb, var(--wa-color-surface) 92%, transparent);
  border-color: color-mix(in srgb, var(--wa-color-border) 90%, transparent);
}

.wa-lg-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.wa-lg-jump a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--wa-color-primary);
  border-radius: 999px;
  background: transparent;
  color: var(--wa-color-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.wa-lg-jump a:hover {
  background: var(--wa-color-primary-soft);
}

.wa-lg-jump__zh {
  font-weight: 600;
}

.wa-lg-jump__en {
  color: color-mix(in srgb, var(--wa-color-primary) 72%, transparent);
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 720px) {
  .wa-comp-index__head-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .wa-comp-index__stats {
    justify-content: flex-start;
  }
}

/* —— 主内容区 —— */
.wa-index-page .wa-index-catalog {
  position: relative;
  flex: 0 1 auto;
  display: flow-root;
  padding-bottom: 0;
  margin-bottom: 0;
}

.wa-index-page:not(.wa-index-page--blocks) .wa-index-catalog {
  padding-bottom: var(--wa-index-gap);
}

.wa-index-page:not(.wa-index-page--blocks) .wa-index-catalog::after {
  bottom: 0;
}

/* —— 关注 CTA —— */
.wa-comp-index__follow {
  margin: 0;
  padding: var(--wa-index-gap) var(--wa-content-pad-x, 32px);
  text-align: center;
  border: none;
  border-top: 1px solid var(--wa-index-rail, var(--wa-color-border));
  border-radius: 0;
  box-shadow: none;
  background: color-mix(in srgb, var(--wa-color-muted) 8%, var(--wa-color-surface));
  overflow: visible;
}

html[data-theme="dark"] .wa-comp-index__follow {
  background: color-mix(in srgb, #fff 5%, var(--wa-color-surface));
}

.wa-index-page:not(.wa-index-page--blocks) .wa-comp-index__follow {
  margin: 0 calc(-1 * var(--wa-index-stage-pad-x));
  padding: var(--wa-index-gap) var(--wa-index-stage-pad-x);
  border-top: 0;
  background: color-mix(in srgb, var(--wa-color-muted) 3.5%, var(--wa-color-surface));
}

html[data-theme="dark"] .wa-index-page:not(.wa-index-page--blocks) .wa-comp-index__follow {
  background: color-mix(in srgb, #fff 3.5%, var(--wa-color-surface));
}

.wa-comp-index__follow-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wa-color-primary);
}

.wa-comp-index__follow-title {
  margin: 0 0 12px;
  font-family: var(--wa-font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wa-color-text);
}

.wa-comp-index__follow-lead {
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--wa-color-muted);
}

.wa-comp-index__follow-bar {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
  padding: 18px 32px;
  border: 0;
  /* 矮条：封顶 16px（对齐母版索引），避免白场 radius-lg=28 收成胶囊 */
  border-radius: min(16px, var(--wa-radius-lg, var(--wa-radius)));
  background: var(--wa-btn-primary-bg, var(--wa-color-primary));
  color: var(--wa-btn-primary-fg, var(--wa-color-on-primary, #fff));
  box-shadow: var(--wa-shadow-button);
  overflow: visible;
}

.wa-comp-index__follow-text {
  min-width: 0;
}

.wa-comp-index__follow-label {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.wa-comp-index__follow-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.wa-comp-index__follow-divider {
  width: 1px;
  height: 36px;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.25;
}

.wa-comp-index__follow-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
}

.wa-comp-index__follow-icons > .wa-bg-mp {
  display: inline-flex;
  align-items: center;
  align-self: center;
  line-height: 0;
}

.wa-comp-index__follow-icon {
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  /* 36 方钮封顶 8px（对齐母版），白场 input=12 时不会收成 squircle */
  border-radius: min(8px, var(--wa-input-radius, 8px));
  background: var(--wa-color-surface);
  color: var(--wa-color-primary);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

/*
 * FA7 默认画布 --fa-width: 1.25em。勿改成 1em，否则字形被裁切、目测偏右。
 * 与 preview/web 关注条一致：只靠父级 flex 居中，不改写图标宽高。
 */
.wa-comp-index__follow-icon > i {
  display: inline-block;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-style: normal;
  text-align: center;
  vertical-align: middle;
}

.wa-comp-index__follow-icon:hover {
  background: color-mix(in srgb, var(--wa-color-primary) 22%, #fff);
  color: var(--wa-color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--wa-color-primary) 28%, transparent);
}

@media (max-width: 720px) {
  .wa-comp-index__follow-bar {
    gap: 16px;
    padding: 16px 20px;
  }

  .wa-comp-index__follow-divider {
    display: none;
  }
}

/* —— 页脚 —— */
.wa-comp-index__foot {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 56px;
  margin: auto 0 0;
  padding: 18px var(--wa-content-pad-x, 32px);
  border-top: 1px solid var(--wa-index-rail, var(--wa-color-border));
  background: transparent;
  color: var(--wa-color-muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.wa-index-page:not(.wa-index-page--blocks) .wa-comp-index__foot {
  height: 56px;
  min-height: 0;
  margin: auto calc(-1 * var(--wa-index-stage-pad-x)) 0;
  padding: 0 var(--wa-index-stage-pad-x);
  border-top: 0;
  background: #ffffff;
}

.wa-index-page:not(.wa-index-page--blocks) .wa-comp-index__foot::before {
  top: 0;
}

html[data-theme="dark"] .wa-index-page:not(.wa-index-page--blocks) .wa-comp-index__foot {
  background: var(--wa-color-bg, #0d0d0d);
}

.wa-comp-index__foot a {
  color: inherit;
  text-decoration: none;
}

.wa-comp-index__foot a:hover {
  color: var(--wa-color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— 站点页脚壳（site-footer.js / .wa-site-foot） ——
 * 结构样式必须 rail / blocks 共用；勿挂在 :not(--blocks) 下，
 * 否则切到 blocks 会回退成单行 foot 的 flex 居中，整块被挤窄。
 */
.wa-comp-index__foot.wa-site-foot {
  display: block;
  align-self: stretch;
  box-sizing: border-box;
  /* auto：配合负边距拉满版心；勿写 width:100%，否则右侧少一截 */
  width: auto;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: auto 0 0;
  padding: clamp(30px, 2.8vw, 40px) var(--wa-content-pad-x, 32px) 24px;
  border-top: 1px solid var(--wa-index-rail, var(--wa-color-border));
  background: transparent;
  color: var(--wa-color-text);
  font-size: inherit;
  line-height: inherit;
  text-align: left;
}

/* rail：拉齐版心左右边，顶线改用通栏 ::before
 * 须覆盖同级「单行 foot」的 height:56px（选择器多一类名） */
.wa-index-page:not(.wa-index-page--blocks) .wa-comp-index__foot.wa-site-foot {
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0 calc(-1 * var(--wa-index-stage-pad-x, 32px)) 0;
  padding: clamp(30px, 2.8vw, 40px) var(--wa-index-stage-pad-x, 32px) 24px;
  border-top: 0;
  background: transparent;
}

.wa-index-page:not(.wa-index-page--blocks) .wa-comp-index__foot.wa-site-foot::before {
  top: 0;
}

html[data-theme="dark"] .wa-index-page:not(.wa-index-page--blocks) .wa-comp-index__foot.wa-site-foot {
  background: transparent;
}

.wa-comp-index__foot.wa-site-foot a:hover,
.wa-site-foot a:hover {
  text-decoration: none;
}

.wa-site-foot__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 0;
  color: var(--wa-color-text);
}

.wa-site-foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
  padding-bottom: clamp(16px, 2.2vw, 24px);
}

.wa-site-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-top: clamp(16px, 2.2vw, 24px);
  border-top: 1px solid var(--wa-index-rail, var(--wa-color-border));
}

.wa-site-foot__brand.wa-brand {
  flex: 0 1 auto;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.wa-site-foot__brand .wa-brand__mark {
  width: 44px;
  height: 44px;
}

.wa-site-foot__brand-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wa-site-foot__brand .wa-brand__name {
  font-size: 1.75rem;
}

.wa-site-foot__brand .wa-brand__tagline {
  display: block;
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.wa-site-foot__cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px 40px;
  margin-left: auto;
}

.wa-site-foot__col {
  min-width: 6.5rem;
  text-align: left;
}

.wa-site-foot__heading {
  margin: 0 0 12px;
  color: var(--wa-color-muted);
  font-family: var(--wa-font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.wa-site-foot__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wa-site-foot__list li + li {
  margin-top: 10px;
}

.wa-site-foot__list a {
  color: var(--wa-color-text);
  font-family: var(--wa-font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.15s ease;
}

.wa-site-foot__list a:hover {
  color: var(--wa-color-primary);
  text-decoration: none;
}

.wa-site-foot__legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 12rem;
}

.wa-site-foot__copy,
.wa-site-foot__note {
  margin: 0;
  color: var(--wa-color-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.wa-site-foot__copy a {
  color: inherit;
  text-decoration: none;
}

.wa-site-foot__copy a:hover {
  color: var(--wa-color-primary);
  text-decoration: none;
}

.wa-site-foot__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wa-site-foot__social .wa-nav__icon-btn {
  text-decoration: none;
}

.wa-site-foot__social .wa-nav__icon-btn:hover {
  text-decoration: none;
}

@media (max-width: 720px) {
  .wa-comp-index__foot.wa-site-foot {
    padding: 28px var(--wa-content-pad-x, 32px) 20px;
  }

  .wa-index-page:not(.wa-index-page--blocks) .wa-comp-index__foot.wa-site-foot {
    padding: 28px var(--wa-index-stage-pad-x, 32px) 20px;
  }

  .wa-site-foot__inner {
    padding-top: 0;
  }

  .wa-site-foot__top {
    gap: 20px;
    padding-bottom: 16px;
  }

  .wa-site-foot__bottom {
    align-items: flex-start;
    padding-top: 16px;
  }

  .wa-site-foot__cols {
    width: 100%;
    margin-left: 0;
    gap: 24px 36px;
  }

  .wa-site-foot__brand .wa-brand__tagline {
    display: block;
  }
}

/* —— 微信公众号悬停卡 —— */
.wa-bg-mp {
  position: relative;
  display: inline-flex;
}

/* 顶栏：二维码向下展开，避免被裁切 */
.wa-bg-mp--down .wa-bg-mp__card {
  top: calc(100% + 12px);
  bottom: auto;
  transform: translateX(-50%) translateY(-4px);
}

.wa-bg-mp--down .wa-bg-mp__card::after {
  top: -6px;
  bottom: auto;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid var(--wa-index-rail, #eeeeee);
  border-top: 1px solid var(--wa-index-rail, #eeeeee);
}

.wa-bg-mp--down:hover .wa-bg-mp__card,
.wa-bg-mp--down:focus-within .wa-bg-mp__card {
  transform: translateX(-50%) translateY(0);
}

html[data-theme="dark"] .wa-bg-mp--down .wa-bg-mp__card::after {
  border-color: rgba(255, 255, 255, 0.1);
}

.wa-bg-mp__card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 168px;
  padding: 12px;
  border: 1px solid var(--wa-index-rail, #eeeeee);
  border-radius: var(--wa-radius);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.wa-bg-mp__card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--wa-index-rail, #eeeeee);
  border-bottom: 1px solid var(--wa-index-rail, #eeeeee);
  background: #ffffff;
  transform: translateX(-50%) rotate(45deg);
}

.wa-bg-mp:hover .wa-bg-mp__card,
.wa-bg-mp:focus-within .wa-bg-mp__card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.wa-bg-mp__title {
  color: var(--wa-color-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.wa-bg-mp__hint {
  margin-top: 2px;
  margin-bottom: 6px;
  color: var(--wa-color-muted);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.wa-bg-mp__qr {
  display: block;
  width: 136px;
  height: 136px;
  object-fit: cover;
  border-radius: max(4px, calc(var(--wa-input-radius, var(--wa-radius)) / 2));
  background: #f7f7f8;
}

html[data-theme="dark"] .wa-bg-mp__card {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--wa-color-bg, #1a1a1a);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .wa-bg-mp__card::after {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--wa-color-bg, #1a1a1a);
}
