/* ==========================================================================
   WFF Components
   --------------------------------------------------------------------------
   与 tokens.css 配套使用。全部样式作用域在 .wff 之下，避免污染 WP 后台与
   WooCommerce 原生组件。

   组件清单（对应原站 14 个区块）：
   .hero  .answer/.answerbox  .card/.g3/.g2  .dark  .split  .checklist
   .fit/.notfit  .costgrid  .lanes  .steps  .standards  .final
   .eyebrow .lead .btn .proofline .note .links .small
   ========================================================================== */

.wff {
  font-family: var(--wff-font);
  color: var(--wff-ink);
  background: var(--wff-paper);
  line-height: var(--wff-lh-body);
  -webkit-font-smoothing: antialiased;
}

.wff *,
.wff *::before,
.wff *::after { box-sizing: border-box; }

.wff a { color: inherit; }

/* 修复原站缺陷：按钮文字不应带下划线 */
.wff .btn { text-decoration: none; }

.wff .wrap {
  width: var(--wff-wrap);
  margin-inline: auto;
}

/* 大屏上不要留那么多空白：1600px 起逐步放宽容器 */
@media (min-width: 1600px) {
  .wff .wrap { width: min(1320px, 100% - 64px); }
}

@media (min-width: 2100px) {
  .wff .wrap { width: min(1480px, 100% - 96px); }
}

/* 放宽后正文别跟着拉太长，保持可读行宽 */
@media (min-width: 1600px) {
  .wff .lead,
  .wff .answerbox p,
  .wff .split > div > p {
    max-width: 74ch;
  }
}

/* ---------- 眉标 ---------- */
.wff .eyebrow {
  color: var(--wff-teal);
  font-size: var(--wff-fs-eyebrow);
  font-weight: var(--wff-fw-eyebrow);
  letter-spacing: var(--wff-ls-eyebrow);
  text-transform: uppercase;
  margin: 0;
}
.wff .eyebrow--dark { color: var(--wff-teal-ink); }

/* ---------- 标题 ---------- */
.wff h1,
.wff .h1 {
  max-width: 930px;
  margin: 14px 0 22px;
  font-size: var(--wff-fs-h1);
  font-weight: var(--wff-fw-h1);
  line-height: var(--wff-lh-h1);
  letter-spacing: var(--wff-ls-h1);
  color: #fff;
}

.wff h2,
.wff .h2 {
  margin: 0 0 18px;
  font-size: var(--wff-fs-h2);
  font-weight: var(--wff-fw-h2);
  line-height: var(--wff-lh-h2);
  letter-spacing: var(--wff-ls-h2);
  color: var(--wff-navy);
}

.wff h3,
.wff .h3 {
  margin: 0 0 10px;
  font-size: var(--wff-fs-h3);
  font-weight: var(--wff-fw-h3);
  line-height: var(--wff-lh-h3);
  color: var(--wff-navy);
}

.wff .lead {
  max-width: 850px;
  font-size: var(--wff-fs-lead);
  color: var(--wff-muted);
}

.wff p { margin: 0 0 16px; }
.wff p:last-child { margin-bottom: 0; }

.wff .small {
  font-size: var(--wff-fs-small);
  color: var(--wff-muted);
}

/* ---------- 区块 ---------- */
.wff section { padding: var(--wff-section-y) 0; }
.wff section.alt { background: var(--wff-wash); }

/* ---------- C01 Hero ---------- */
.wff .hero {
  position: relative;
  overflow: hidden;
  background: var(--wff-navy);
  color: #fff;
  padding: var(--wff-hero-y) 0;
}

.wff .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(7, 26, 45, 0.98) 0%,
    rgba(7, 26, 45, 0.94) 48%,
    rgba(7, 26, 45, 0.7) 100%
  );
  z-index: 1;
}

.wff .hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 2px solid var(--wff-ring);
  border-radius: 50%;
  right: -170px;
  top: -160px;
  z-index: 1;
}

.wff .hero .wrap {
  position: relative;
  z-index: 2;
}

/* 注意：必须排除 .eyebrow，否则会以 (0,2,1) 的优先级压掉
   .wff .eyebrow (0,2,0) 的 14px / 青色，导致眉标变成 20px 白字。 */
.wff .hero p:not(.eyebrow) {
  max-width: 800px;
  font-size: var(--wff-fs-hero-p);
  color: var(--wff-on-dark);
}

/* ---------- 按钮 ---------- */
.wff .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
}

.wff .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wff-btn-h);
  padding: 13px 22px;
  border-radius: var(--wff-r-pill);
  font-weight: var(--wff-fw-btn);
  font-size: 16px;
  cursor: pointer;
  border: 0;
  transition: transform 120ms ease, filter 120ms ease;
}

.wff .btn:hover { filter: brightness(0.96); }
.wff .btn:active { transform: translateY(1px); }

.wff .btn.primary {
  background: var(--wff-teal);
  color: var(--wff-navy);
}

.wff .btn.secondary {
  background: transparent;
  border: 1px solid var(--wff-btn-ghost-line);
  color: #fff;
}

/* ---------- 胶囊标签组 ---------- */
.wff .proofline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wff .proofline span {
  border: 1px solid var(--wff-chip-line);
  background: var(--wff-chip-bg);
  border-radius: var(--wff-r-pill);
  padding: 7px 12px;
  color: var(--wff-on-dark-chip);
  font-size: 14px;
}

/* ---------- C02 速答卡 ---------- */
.wff .answer {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.wff .answerbox {
  background: #fff;
  border-left: 7px solid var(--wff-teal);
  border-radius: var(--wff-r-card);
  padding: 30px;
  box-shadow: var(--wff-shadow);
}

/* ---------- 栅格 ---------- */
.wff .grid { display: grid; gap: var(--wff-gap); }
.wff .g3 { grid-template-columns: repeat(3, 1fr); }
.wff .g2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- 卡片 ---------- */
.wff .card {
  background: #fff;
  border: 1px solid var(--wff-line);
  border-radius: var(--wff-r-card);
  padding: var(--wff-card-pad);
  box-shadow: var(--wff-shadow);
}

.wff .card p,
.wff .card li { color: var(--wff-muted); }

/* ---------- 编号圆章 ---------- */
.wff .num {
  display: inline-grid;
  place-items: center;
  width: var(--wff-num);
  height: var(--wff-num);
  border-radius: 50%;
  background: var(--wff-teal);
  color: var(--wff-navy);
  font-weight: var(--wff-fw-black);
  margin-bottom: 16px;
}

/* ---------- C04 深色区 ---------- */
.wff .dark {
  background: var(--wff-navy);
  color: #fff;
}

.wff .dark h2,
.wff .dark h3 { color: #fff; }

.wff .dark p:not(.eyebrow),
.wff .dark li { color: var(--wff-on-dark-2); }

.wff .dark .lead { color: var(--wff-on-dark); }

.wff .ops { margin-top: 30px; }

.wff .ops .card {
  background: var(--wff-navy-2);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* ---------- C05 分栏 ---------- */
.wff .split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--wff-gap-split);
  align-items: start;
}

/* ---------- C06 勾选清单 ---------- */
.wff .checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.wff .checklist li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--wff-line);
  color: var(--wff-muted);
}

.wff .checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--wff-teal-check);
  font-weight: var(--wff-fw-black);
}

.wff .checklist li:last-child { border-bottom: 0; }

/* ---------- 注释 / 链接盒 ---------- */
.wff .note {
  background: var(--wff-note-bg);
  border: 1px solid var(--wff-note-line);
  border-radius: var(--wff-r-note);
  padding: 24px;
}

.wff .links {
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--wff-r-step);
  background: var(--wff-note-bg);
}

.wff .links a {
  color: var(--wff-teal-ink);
  font-weight: var(--wff-fw-btn);
}

/* 有序流程（右栏 note 内） */
.wff .flow { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: flow; }
.wff .flow li {
  counter-increment: flow;
  position: relative;
  padding: 12px 0 12px 40px;
  border-bottom: 1px solid var(--wff-note-line);
}
.wff .flow li:last-child { border-bottom: 0; }
.wff .flow li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--wff-navy);
  color: var(--wff-teal);
  font-size: 12px;
  font-weight: var(--wff-fw-black);
}
.wff .flow strong { display: block; color: var(--wff-navy); }
.wff .flow span { font-size: 15px; color: var(--wff-muted); }

/* ---------- C07 适配双卡 ---------- */
.wff .fit { border-top: 5px solid var(--wff-teal); }
.wff .notfit { border-top: 5px solid var(--wff-coral); }

/* ---------- C08 成本九宫格 ---------- */
.wff .costgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.wff .costitem {
  padding: 18px;
  border-radius: var(--wff-r-sm);
  background: #fff;
  border: 1px solid var(--wff-line);
  font-weight: 750;
  color: var(--wff-navy);
}

/* ---------- C09 Lane 双图卡 ---------- */
.wff .lanes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.wff .lane {
  overflow: hidden;
  border: 1px solid var(--wff-line);
  border-radius: var(--wff-r-lane);
  background: #fff;
  box-shadow: var(--wff-shadow);
}

.wff .lane img {
  display: block;
  width: 100%;
  height: var(--wff-lane-img-h);
  object-fit: cover;
}

.wff .lane .copy { padding: 26px; }

/* ---------- C10 流程五步 ---------- */
.wff .steps {
  counter-reset: step 0;
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.wff .step {
  counter-increment: step 1;
  display: grid;
  grid-template-columns: var(--wff-step-num) 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--wff-line);
  border-radius: var(--wff-r-step);
  background: #fff;
}

.wff .step::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: var(--wff-step-num);
  height: var(--wff-step-num);
  border-radius: var(--wff-r-sm);
  background: var(--wff-navy);
  color: var(--wff-teal);
  font-weight: var(--wff-fw-black);
}

/* ---------- C11 服务标准 ---------- */
.wff .standards .card { border-top: 5px solid var(--wff-teal); }

/* 实测：原站 .standard 为 <p>，被 .card p 的 (0,2,1) 覆盖，
   最终颜色是 --muted (#607385)，不是 navy。此处按渲染值还原。 */
.wff .standard {
  font-size: 20px;
  font-weight: var(--wff-fw-black);
  line-height: var(--wff-lh-body);
  color: var(--wff-muted);
  margin: 0 0 8px;
}

/* ---------- C13 FAQ ---------- */
.wff details {
  background: #fff;
  border: 1px solid var(--wff-line);
  border-radius: var(--wff-r-sm);
  padding: 18px 20px;
  margin: 12px 0;
}

.wff summary {
  cursor: pointer;
  font-weight: var(--wff-fw-bold);
  color: var(--wff-navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.wff summary::-webkit-details-marker { display: none; }

.wff summary::after {
  content: "+";
  flex: 0 0 auto;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--wff-teal-ink);
  transition: transform 160ms ease;
}

.wff details[open] summary::after {
  content: "–";
  transform: rotate(180deg);
}

.wff details p {
  margin: 12px 0 0;
  color: var(--wff-muted);
}

/* ---------- C14 收尾 CTA ---------- */
.wff .final {
  background: linear-gradient(125deg, var(--wff-navy), var(--wff-navy-3));
  color: #fff;
  text-align: center;
}

.wff .final h2 { color: #fff; }

.wff .final p {
  max-width: 800px;
  margin: 0 auto 26px;
  color: var(--wff-on-dark);
}

/* ---------- Header ---------- */
.wff-header {
  position: sticky;
  top: 0;
  z-index: var(--wff-z-nav);
  background: var(--wff-navy);
  color: #fff;
}

.wff-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--wff-header-h);
}

.wff-header .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wff-header .brand img,
.wff-header .brand svg { height: 28px; width: auto; display: block; }

.wff-header nav { margin-left: auto; }

.wff-header ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wff-header ul a {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms ease;
}

.wff-header ul a:hover { color: var(--wff-teal); }

.wff-header .cta { margin-left: 8px; flex: 0 0 auto; }
.wff-header .cta .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; white-space: nowrap; }

.wff-header .burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.wff-header .burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* ---------- Footer ---------- */
.wff-footer {
  background: var(--wff-navy);
  color: var(--wff-on-dark);
  padding: 64px 0 28px;
}

.wff-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.wff-footer h4 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.wff-footer ul { margin: 0; padding: 0; list-style: none; }
.wff-footer li { margin-bottom: 10px; }
.wff-footer a { color: var(--wff-on-dark-2); text-decoration: none; font-size: 15px; }
.wff-footer a:hover { color: var(--wff-teal); }

.wff-footer .brandblurb { max-width: 340px; font-size: 15px; color: var(--wff-on-dark-2); margin: 16px 0 20px; }

.wff-footer .legal {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(220, 233, 240, 0.7);
}

/* ---------- 悬浮联系按钮 ---------- */
.wff-fab {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: var(--wff-z-float);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--wff-r-pill);
  background: #25d366;
  color: #06342a;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   响应式 ≤800px —— 与原站塌陷规则一致
   ========================================================================== */
@media (max-width: 800px) {
  .wff .wrap { width: var(--wff-wrap-m); }
  .wff .hero { padding: var(--wff-hero-y-m) 0; }
  .wff h1, .wff .h1 { font-size: var(--wff-fs-h1-m); }
  .wff .hero p { font-size: var(--wff-fs-hero-p-m); }
  .wff section { padding: var(--wff-section-y-m) 0; }

  .wff .g3,
  .wff .g2,
  .wff .split,
  .wff .costgrid,
  .wff .lanes { grid-template-columns: 1fr; }

  .wff .actions { display: grid; }
  .wff .btn { width: 100%; }

  .wff .lane img { height: var(--wff-lane-img-h-m); }
  .wff .answer { margin-top: -24px; }

  .wff-header .wrap { height: var(--wff-header-h-m); gap: 16px; }
  .wff-header nav { display: none; }
  .wff-header .burger { display: block; margin-left: auto; }
  .wff-header .cta { display: none; }
  .wff-header .wff-lang { display: none; }

  .wff-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .wff-footer .legal { flex-direction: column; }

  /* 修复原站缺陷：悬浮按钮不再压住首屏内容 */
  .wff-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* ≤1024 隐藏桌面菜单（平板也走抽屉） */
@media (max-width: 1024px) {
  .wff-header nav { display: none; }
  .wff-header .burger { display: block; margin-left: auto; }
  .wff-header .wff-lang { display: none; }
}

/* ---------- 可访问性 ---------- */
.wff a:focus-visible,
.wff button:focus-visible,
.wff summary:focus-visible,
.wff .btn:focus-visible {
  outline: 2px solid var(--wff-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 跳转到正文（键盘用户按 Tab 首先出现） */
.wff-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--wff-teal);
  color: var(--wff-navy);
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  text-decoration: none;
}

.wff-skip:focus {
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .wff * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   第二部分：站点级 UI 组件（导航 / 抽屉 / 面包屑 / 表单 / 商城 / 内容 / 数据）
   原站这些部分散落在 Astra、WooCommerce、Elementor 与 Tailwind 工具类中，
   此处统一为一套。对应 docs/07-页面结构蓝图.md 的 C15–C28。
   ========================================================================== */

/* ---------- 区块头（eyebrow + h2 + lead 的常用组合） ---------- */
.wff .sec-head { max-width: 820px; margin-bottom: 36px; }
.wff .sec-head .lead { margin-top: 0; }
.wff .sec-head--center { margin-inline: auto; text-align: center; }

/* ---------- 导航：二级下拉 ---------- */
.wff-nav__item { position: relative; }

.wff-nav__sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--wff-line);
  border-radius: var(--wff-r-sm);
  box-shadow: var(--wff-shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
  z-index: 10;
}

.wff-nav__item:hover .wff-nav__sub,
.wff-nav__item:focus-within .wff-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wff-header .wff-nav__sub a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--wff-navy);
  font-size: 15px;
  font-weight: 500;
  white-space: normal;
}

.wff-header .wff-nav__sub a:hover {
  background: var(--wff-note-bg);
  color: var(--wff-teal-ink);
}

/* ---------- 移动抽屉 ---------- */
.wff-drawer { position: fixed; inset: 0; z-index: 1001; display: none; }
.wff-drawer.is-open { display: block; }

.wff-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 26, 45, 0.55);
  backdrop-filter: blur(2px);
}

.wff-drawer__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(86vw, 360px);
  background: #fff;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}

.wff-drawer.is-open .wff-drawer__panel { transform: translateX(0); }

.wff-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wff-line);
  margin-bottom: 8px;
}

.wff-drawer__close {
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--wff-navy);
  cursor: pointer;
  padding: 4px 8px;
}

.wff-drawer nav ul { list-style: none; margin: 0; padding: 0; }

.wff-drawer nav a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--wff-line);
  color: var(--wff-navy);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.wff-drawer nav ul ul a {
  padding-left: 18px;
  font-size: 15px;
  font-weight: 400;
  color: var(--wff-muted);
  border-bottom: 0;
}

.wff-drawer__foot { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; }

/* ---------- 面包屑 ---------- */
.wff-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--wff-muted);
}

.wff-crumbs a { color: var(--wff-muted); text-decoration: none; }
.wff-crumbs a:hover { color: var(--wff-teal-ink); }
.wff-crumbs [aria-current="page"] { color: var(--wff-navy); font-weight: 600; }
.wff-crumbs .sep { opacity: 0.5; }

/* ---------- 表单 ---------- */
.wff-form {
  background: #fff;
  border: 1px solid var(--wff-line);
  border-radius: var(--wff-r-card);
  padding: 28px;
  box-shadow: var(--wff-shadow);
}

.wff-field { margin-bottom: 18px; }

.wff-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--wff-navy);
}

.wff-req { color: var(--wff-coral); margin-left: 2px; }

.wff-input,
.wff-select,
.wff-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--wff-line);
  border-radius: 10px;
  background: #fff;
  color: var(--wff-ink);
  font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.wff-input::placeholder,
.wff-textarea::placeholder { color: #9aa8b5; }

.wff-input:focus,
.wff-select:focus,
.wff-textarea:focus {
  outline: none;
  border-color: var(--wff-teal);
  box-shadow: 0 0 0 3px rgba(37, 217, 199, 0.25);
}

.wff-input[aria-invalid="true"],
.wff-textarea[aria-invalid="true"] { border-color: #e05a4f; }

.wff-textarea { min-height: 128px; resize: vertical; }

.wff-help { margin-top: 6px; font-size: 13px; color: var(--wff-muted); }
.wff-error { margin-top: 6px; font-size: 13px; color: #c0392b; }

.wff-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--wff-muted);
}

.wff-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--wff-teal-ink); }

.wff-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.wff-form__actions { margin-top: 8px; }

.wff-form__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--wff-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* 表单状态提示 */
.wff-alert {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid;
}
.wff-alert--ok { background: var(--wff-note-bg); border-color: var(--wff-note-line); color: var(--wff-teal-ink); }
.wff-alert--err { background: #fdf1f0; border-color: #f3c9c6; color: #a5342b; }

/* ---------- 分类筛选 ---------- */
.wff-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 34px;
}

.wff-filters a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--wff-line);
  border-radius: var(--wff-r-pill);
  background: #fff;
  color: var(--wff-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease;
}

.wff-filters a span { color: var(--wff-muted); font-weight: 400; font-size: 13px; }
.wff-filters a:hover { border-color: var(--wff-teal); }

.wff-filters a.is-on {
  background: var(--wff-navy);
  border-color: var(--wff-navy);
  color: #fff;
}

.wff-filters a.is-on span { color: rgba(255, 255, 255, 0.7); }

/* ---------- 商品卡 ---------- */
.wff-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wff-product {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--wff-line);
  border-radius: var(--wff-r-step);
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.wff-product:hover { box-shadow: var(--wff-shadow); transform: translateY(-2px); }

.wff-product__media {
  aspect-ratio: 1 / 1;
  background: var(--wff-wash);
  overflow: hidden;
}

.wff-product__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wff-product__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.wff-product__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--wff-navy);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wff-product__cat { font-size: 12px; color: var(--wff-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.wff-price { margin-top: auto; font-size: 17px; font-weight: 800; color: var(--wff-navy); }

.wff-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: var(--wff-r-pill);
  background: var(--wff-note-bg);
  color: var(--wff-teal-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- 博客卡 ---------- */
.wff-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.wff-post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--wff-line);
  border-radius: var(--wff-r-step);
  overflow: hidden;
}

.wff-post__media { aspect-ratio: 16 / 9; background: var(--wff-wash); overflow: hidden; }
.wff-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wff-post__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wff-post__meta { font-size: 13px; color: var(--wff-muted); display: flex; gap: 10px; }
.wff-post__title { font-size: 18px; font-weight: 700; color: var(--wff-navy); line-height: 1.35; margin: 0; }
.wff-post__excerpt { font-size: 14px; color: var(--wff-muted); line-height: 1.6; }

/* ---------- 分页 ---------- */
.wff-pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

.wff-pager a,
.wff-pager span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--wff-line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--wff-navy);
  text-decoration: none;
  background: #fff;
}

.wff-pager a:hover { border-color: var(--wff-teal); }

.wff-pager .is-current {
  background: var(--wff-navy);
  border-color: var(--wff-navy);
  color: #fff;
  font-weight: 700;
}

/* ---------- 数据表（SLA / 国家时效 / 对比 / 规格） ---------- */
.wff-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--wff-line);
  border-radius: var(--wff-r-sm);
  background: #fff;
}

.wff-table { width: 100%; border-collapse: collapse; font-size: 15px; }

.wff-table th {
  background: var(--wff-wash);
  color: var(--wff-navy);
  font-weight: 800;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--wff-line);
  white-space: nowrap;
}

.wff-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--wff-line);
  color: var(--wff-muted);
  vertical-align: top;
}

.wff-table tr:last-child td { border-bottom: 0; }
.wff-table td strong { color: var(--wff-navy); }

/* ---------- 指标条 ---------- */
.wff-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: #fff;
  border: 1px solid var(--wff-line);
  border-radius: var(--wff-r-card);
  padding: 28px;
  box-shadow: var(--wff-shadow);
}

.wff-metric__num {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--wff-navy);
}

.wff-metric__label { margin-top: 4px; font-size: 14px; color: var(--wff-muted); }

/* ---------- 区域入口卡 ---------- */
.wff-gateways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.wff-gateway {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  padding: 24px;
  border-radius: var(--wff-r-card);
  overflow: hidden;
  background: var(--wff-navy);
  color: #fff;
  text-decoration: none;
}

.wff-gateway img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.wff-gateway::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 26, 45, 0.92), rgba(7, 26, 45, 0.15));
}

.wff-gateway__body { position: relative; z-index: 2; }
.wff-gateway__body h3 { color: #fff; margin-bottom: 4px; }
.wff-gateway__body p { color: var(--wff-on-dark); font-size: 14px; margin: 0; }

/* ---------- 证言墙 ---------- */
.wff-voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.wff-voice {
  background: #fff;
  border: 1px solid var(--wff-line);
  border-radius: var(--wff-r-card);
  padding: 24px;
  box-shadow: var(--wff-shadow);
  display: flex;
  flex-direction: column;
}

.wff-voice__quote { font-size: 16px; color: var(--wff-ink); line-height: 1.7; margin: 0; }

.wff-voice__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }

.wff-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--wff-note-bg);
  color: var(--wff-teal-ink);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}

.wff-voice__name { font-size: 14px; font-weight: 700; color: var(--wff-navy); }
.wff-voice__role { font-size: 13px; color: var(--wff-muted); }

/* ---------- 团队 / 角色卡 ---------- */
.wff-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.wff-member {
  background: #fff;
  border: 1px solid var(--wff-line);
  border-radius: var(--wff-r-card);
  padding: 24px;
}

.wff-member__role { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wff-teal-ink); }
.wff-member h3 { margin-top: 6px; }

/* ---------- 区域横幅 ---------- */
.wff-band {
  background: var(--wff-note-bg);
  border-top: 1px solid var(--wff-note-line);
  border-bottom: 1px solid var(--wff-note-line);
  padding: 48px 0;
}

.wff-band h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.wff-band p { max-width: 760px; color: var(--wff-muted); }

/* ---------- 人群段（左文右清单 / 交替） ---------- */
.wff-audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.wff-audience--flip > :first-child { order: 2; }

.wff-audience__list { margin: 0; padding: 0; list-style: none; }
.wff-audience__list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--wff-line);
  color: var(--wff-muted);
}
.wff-audience__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--wff-teal-check);
  font-weight: 900;
}

/* ---------- Logo 墙 ---------- */
.wff-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
}

.wff-logos img { max-width: 100%; height: 32px; object-fit: contain; filter: grayscale(1); opacity: 0.75; }
.wff-logos img:hover { filter: none; opacity: 1; }

/* ---------- 关联能力卡 ---------- */
.wff-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.wff-related .card { display: flex; flex-direction: column; }
.wff-related .card a {
  margin-top: auto;
  padding-top: 14px;
  color: var(--wff-teal-ink);
  font-weight: 800;
  text-decoration: none;
}

/* ---------- 第二部分响应式 ---------- */
@media (max-width: 1024px) {
  .wff-metrics { grid-template-columns: repeat(2, 1fr); }
  .wff-logos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .wff-form__row { grid-template-columns: 1fr; }
  .wff-products,
  .wff-posts,
  .wff-voices,
  .wff-team,
  .wff-gateways,
  .wff-related { grid-template-columns: 1fr; }
  .wff-metrics { grid-template-columns: 1fr 1fr; gap: 18px; padding: 20px; }
  .wff-audience { grid-template-columns: 1fr; gap: 24px; }
  .wff-audience--flip > :first-child { order: 0; }
  .wff-logos { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .wff-table { font-size: 14px; }
  .wff-table th, .wff-table td { padding: 11px 12px; }
}

/* ==========================================================================
   第三部分：中文本地化
   --------------------------------------------------------------------------
   仅在 <html lang="zh-CN"> 时生效，英文版不受影响。
   覆盖项全部来自 tokens.css 的 --*-zh 变量，不新造设计值。
   ========================================================================== */

:lang(zh) .wff {
  --wff-font: var(--wff-font-zh);
  --wff-lh-body: var(--wff-lh-body-zh);
  line-break: strict;      /* 避免 。，、 出现在行首 */
  word-break: normal;
  overflow-wrap: break-word;
}

/* 标题：中文不能收紧字距，行高要放松 */
:lang(zh) .wff h1,
:lang(zh) .wff .h1 {
  letter-spacing: var(--wff-ls-h1-zh);
  line-height: var(--wff-lh-h1-zh);
  max-width: 22em;          /* 中文按字算宽度，约 20 字/行 */
  text-wrap: balance;
}

:lang(zh) .wff h2,
:lang(zh) .wff .h2 {
  letter-spacing: var(--wff-ls-h2-zh);
  line-height: var(--wff-lh-h2-zh);
  text-wrap: balance;
}

:lang(zh) .wff h3,
:lang(zh) .wff .h3 { line-height: var(--wff-lh-h3-zh); }

/* 眉标：中文全大写无意义，字距收到 0.08em */
:lang(zh) .wff .eyebrow {
  letter-spacing: var(--wff-ls-eyebrow-zh);
  font-weight: var(--wff-fw-eyebrow-zh);
  text-transform: none;
}

/* 正文行长控制 */
:lang(zh) .wff .lead,
:lang(zh) .wff .hero p,
:lang(zh) .wff .final p { max-width: var(--wff-measure-zh); }

/* 中文不加粗到 900（假粗体） */
:lang(zh) .wff .num,
:lang(zh) .wff .step::before,
:lang(zh) .wff .standard { font-weight: var(--wff-fw-black-zh); }

/* 数字仍用拉丁字体，避免中文等宽数字 */
:lang(zh) .wff .metric__num,
:lang(zh) .wff .price,
:lang(zh) .wff .metric__num { font-feature-settings: "tnum" 1; }

/* 按钮内文字：中文不需要大写转换 */
:lang(zh) .wff .btn { letter-spacing: 0.02em; }

/* ==========================================================================
   第四部分：语言切换器
   --------------------------------------------------------------------------
   设计要求：
   - 深色头部上用深底版，浅色容器上用浅底版
   - 当前语言是实心胶囊，另一语言是文字链接
   - 不能是下拉菜单（两语言时下拉是多余的一步）
   ========================================================================== */

.wff-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--wff-r-pill);
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.wff-lang a,
.wff-lang > span {
  padding: 5px 12px;
  border-radius: var(--wff-r-pill);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  white-space: nowrap;
}

.wff-lang a:hover { color: #fff; }

.wff-lang .is-current {
  background: var(--wff-teal);
  color: var(--wff-navy);
}

/* 浅底版 */
.wff-lang--light {
  border-color: var(--wff-line);
  background: #fff;
}

.wff-lang--light a,
.wff-lang--light > span { color: var(--wff-muted); }

.wff-lang--light a:hover { color: var(--wff-navy); }

.wff-lang--light .is-current {
  background: var(--wff-navy);
  color: #fff;
}

/* 中文语境下切换器里的 EN 用拉丁字体，间距略收 */
:lang(zh) .wff-lang a,
:lang(zh) .wff-lang > span { letter-spacing: 0.02em; }

/* ---------- 移动端点击目标：小于 44px 的一律撑到可点 ---------- */
@media (max-width: 800px) {
  .wff-footer ul li a,
  .wff-footer .legal a {
    display: inline-block;
    padding: 10px 0;
    min-height: 40px;
  }

  .wff details summary {
    min-height: 48px;
    padding: 13px 0;
    align-items: center;
  }

  .wff .brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .wff-crumbs a {
    display: inline-block;
    padding: 6px 0;
  }

  .wff-footer .legal a {
    margin-right: 6px;
  }

  .wff-footer p a[href^="mailto"] {
    display: inline-block;
    padding: 10px 0;
    min-height: 40px;
  }

  .wff-product__title {
    display: inline-block;
    padding: 7px 0;
    min-height: 38px;
  }
}
