/* Firefly all-pages chrome (E2F v1.1) = ff-header.css + ff-header-v2-extra.css + ff-footer.css
   + ff-chrome-hide.css + ff-chrome-fix.css；外链 wp_enqueue_style ?ver=20261112；顺序不可倒。 */
/* ===== Firefly Visual · 统一头部 v1（2026-11-08 望舒） =====
   站点 token：底 #0E1015 ／ 字 #F5F0E8 ／ 金 #FFC83B ／ 线 rgba(245,240,232,.14)
   零 JS：桌面 hover + focus-within，移动 <details>。
   ⚠️ 只用 CSS 变量前缀 --ffh-，避免与页面原有样式冲突。 */
.ffh{
  --ffh-bg:#0E1015; --ffh-bg2:#12151B; --ffh-cream:#F5F0E8; --ffh-gold:#FFC83B;
  --ffh-line:rgba(245,240,232,.14); --ffh-dim:rgba(245,240,232,.62);
  position:sticky; top:0; z-index:80;
  background:rgba(14,16,21,.92);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--ffh-line);
  font-family:"Be Vietnam Pro",-apple-system,"Segoe UI",Arial,sans-serif;
  color:var(--ffh-cream);
}
.ffh *, .ffh *::before, .ffh *::after{box-sizing:border-box}
.ffh-in{
  max-width:1280px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; gap:26px; height:62px;
}
.ffh-brand{
  display:flex; align-items:center; gap:9px; text-decoration:none; color:inherit;
  font-size:12.5px; letter-spacing:.16em; white-space:nowrap; flex:0 0 auto;
}
.ffh-brand i{width:9px;height:9px;background:var(--ffh-gold);display:block}

/* ---- 桌面导航 ---- */
.ffh-nav{display:flex; align-items:center; gap:24px; margin-left:6px}
.ffh-mi{position:relative}
.ffh-top{
  display:flex; align-items:center; gap:6px; text-decoration:none; color:rgba(245,240,232,.84);
  font-size:11.5px; letter-spacing:.13em; text-transform:uppercase; line-height:62px; white-space:nowrap;
  transition:color .18s;
}
.ffh-car{width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;
  transform:rotate(45deg) translateY(-2px);opacity:.6;transition:transform .18s}
.ffh-mi:hover .ffh-top, .ffh-mi:focus-within .ffh-top, .ffh-top:hover{color:var(--ffh-gold)}
.ffh-mi:hover .ffh-car, .ffh-mi:focus-within .ffh-car{transform:rotate(225deg) translateY(-1px)}

/* ---- 下拉面板：全宽条（锚在 .ffh 上，避免绝对定位把页面撑宽） ---- */
.ffh-mi{position:static}
.ffh-drop{
  position:absolute; top:100%; left:0; right:0;
  background:#0B0D11; border-top:1px solid var(--ffh-line); border-bottom:1px solid var(--ffh-line);
  box-shadow:0 28px 56px rgba(0,0,0,.62);
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .16s ease, transform .16s ease, visibility .16s;
  padding:22px 0 26px;
}
.ffh-mi:hover > .ffh-drop, .ffh-mi:focus-within > .ffh-drop{opacity:1;visibility:visible;transform:none}
.ffh-panel{
  max-width:1280px; margin:0 auto; padding:0 24px;
  display:grid; grid-template-columns:repeat(4,minmax(150px,1fr)); gap:0 30px;
}
.ffh-drop--single .ffh-panel{grid-template-columns:repeat(2,minmax(150px,240px))}
.ffh-col{padding:4px 0}
.ffh-col h4{
  margin:0 0 10px; font-size:9.5px; font-weight:400; letter-spacing:.18em;
  text-transform:uppercase; color:var(--ffh-gold);
}
.ffh-col h4 s{ text-decoration:none; margin-left:5px; color:rgba(245,240,232,.42) }
.ffh-col a{
  display:block; text-decoration:none; color:rgba(245,240,232,.74);
  font-size:13.5px; line-height:1.35; padding:5.5px 0; letter-spacing:.01em;
  transition:color .14s;
}
.ffh-col a:hover{color:var(--ffh-cream)}

/* ---- CTA ---- */
.ffh-cta{
  margin-left:auto; flex:0 0 auto; text-decoration:none;
  border:1px solid var(--ffh-gold); color:var(--ffh-gold);
  font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  padding:10px 17px; white-space:nowrap; transition:background .16s,color .16s;
}
.ffh-cta:hover{background:var(--ffh-gold); color:#0E1015}

/* ---- 移动 ---- */
.ffh-burger{display:none; margin-left:auto; position:relative}
.ffh-burger > summary{
  list-style:none; cursor:pointer; width:34px;height:34px; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:4px; border:1px solid var(--ffh-line);
}
.ffh-burger > summary::-webkit-details-marker{display:none}
.ffh-burger > summary span{display:block;width:15px;height:1px;background:var(--ffh-cream);transition:transform .18s,opacity .18s}
.ffh-burger[open] > summary span:nth-child(1){transform:translateY(5px) rotate(45deg)}
.ffh-burger[open] > summary span:nth-child(2){opacity:0}
.ffh-burger[open] > summary span:nth-child(3){transform:translateY(-5px) rotate(-45deg)}
.ffh-mnav{
  position:absolute; right:-24px; top:52px; width:min(92vw,360px);
  max-height:calc(100vh - 70px); overflow-y:auto;
  background:#0B0D11; border:1px solid var(--ffh-line);
  box-shadow:0 24px 48px rgba(0,0,0,.65); padding:6px 0 10px;
}
.ffh-mrow, .ffh-msec > summary{
  display:flex; align-items:center; justify-content:space-between;
  padding:13px 18px; font-size:12px; letter-spacing:.12em; text-transform:uppercase;
  color:rgba(245,240,232,.84); text-decoration:none; cursor:pointer; list-style:none;
  border-bottom:1px solid rgba(245,240,232,.08);
}
.ffh-msec > summary::-webkit-details-marker{display:none}
.ffh-msec > summary::after{content:"+"; color:var(--ffh-gold); font-size:15px; line-height:1}
.ffh-msec[open] > summary::after{content:"–"}
.ffh-mbody{padding:4px 18px 12px; background:rgba(255,255,255,.015)}
.ffh-mgrp b{
  display:block; font-size:9px; font-weight:400; letter-spacing:.18em; text-transform:uppercase;
  color:var(--ffh-gold); padding:11px 0 3px;
}
.ffh-mbody a{
  display:block; text-decoration:none; color:rgba(245,240,232,.72);
  font-size:14px; padding:7px 0;
}
.ffh-mbody a:hover{color:var(--ffh-cream)}

/* ---- 断点：1023 以下切移动 ---- */
@media (max-width:1023px){
  .ffh-in{gap:14px; height:56px; padding:0 18px}
  .ffh-nav, .ffh-cta{display:none}
  .ffh-burger{display:block}
  .ffh-mnav{top:46px; right:-18px}
}
/* ---- 关动画偏好 ---- */
@media (prefers-reduced-motion:reduce){
  .ffh *, .ffh *::before, .ffh *::after{transition:none !important}
}
/* ---- 打印 ---- */
@media print{ .ffh{position:static; backdrop-filter:none} .ffh-nav,.ffh-cta,.ffh-burger{display:none} }

/* ---- 移动菜单遮罩（望舒 2026-11-09 裁定）----
   为什么必须挂 body::after 不能挂 .ffh：.ffh 带 backdrop-filter:blur(14px)，
   filter 类属性会给 position:fixed 的后代另建包含块 → 挂在 .ffh 里 inset:0 只铺满
   62px 高的头部，看着像没生效。body::after 在根层叠上下文，z-index:79 卡在正文(auto)
   之上、.ffh(80) 之下：挡住正文点击，盖不住头部和菜单面板。
   用 body:has() 锁滚是纯 CSS，保住组件「零 JavaScript」。
   已知取舍：点遮罩空白不能关菜单（纯 CSS 做不到），用户走右上 X。 */
@media (max-width:1023px){
  body:has(.ffh-burger[open])::after{
    content:""; position:fixed; inset:0; z-index:79;
    background:rgba(10,11,13,.72);
  }
  body:has(.ffh-burger[open]){ overflow:hidden }
}

/* 当前页高亮（2026-11-11 望舒加）：由组件内 12 行 JS 打 aria-current，
   这里只管样式。用属性选择器，无 JS 时不出现、不影响任何现有页面。 */
.ffh-top[aria-current]{ color:var(--ffh-gold) }
.ffh-top[aria-current] .ffh-car{ opacity:.9 }

/* ===== Firefly Visual · 统一头部 v2 · Products 面板（2026-11-09，按 Lincoln 裁定重做）
   核心：预览位 = 固定高度的「台面」，图不裁不拉，横竖各自保持原生比例，统一坐一条基线。
   Lincoln：「为什么没办法随着产品形态进行横竖变化……很多形态没办法改成横向图片。」
   → 规格不再是 16:9，改为「固定台面 + 原生比例 + 底部对齐」：
      竖机（Flare 0.92 / Focus 0.75 / Forge Podium 0.67）站满台面高、自然变窄；
      横机（Fortis / Fort 1.78）铺满台面宽、自然变矮；底边同一条线。
   零 JS 做法：链接保持 position:static，img 绝对定位到台面，只在 a:hover 时 opacity:1。
   13 张全部 loading="lazy"，面板默认关闭，首屏不下载。 */
.ffh-panel--prod{
  position:relative;
  padding-right:356px;         /* 台面 320 + 右边距 26 + 间隙 10 */
  min-height:246px;            /* 台面 224 + 上 14 + 地面线 8 */
  align-items:start;
}
.ffh-p{ position:static }
.ffh-p img{
  position:absolute; right:26px; top:14px;
  width:320px; height:224px;
  object-fit:contain;
  object-position:center bottom;   /* ★ 竖机站满高、横机铺满宽，底边对齐 */
  opacity:0; transition:opacity .16s ease;
  pointer-events:none; z-index:3;
  filter:drop-shadow(0 12px 26px rgba(0,0,0,.6));
}
.ffh-p:hover img,
.ffh-p:focus-visible img{ opacity:1 }

/* 台面地面线：竖机落地、横机有依托，不悬空 */
.ffh-panel--prod::after{
  content:""; position:absolute; right:26px; top:238px;
  width:320px; height:1px; z-index:2;
  background:linear-gradient(90deg,transparent,rgba(245,240,232,.16) 12%,rgba(245,240,232,.16) 88%,transparent);
}

/* 空态：未悬停时台面里写提示 */
.ffh-pv{
  position:absolute; right:26px; top:14px; width:320px; height:224px; z-index:1;
  border:1px dashed rgba(245,240,232,.14);
  display:flex; align-items:center; justify-content:center;
}
/* 台面背光：深色产品在 #0E1015 上读不出轮廓（2026-11-11 望舒，A/B 实测取 B 版）
   ⚠️ right 用 -26px 而不是 -40px：-40 时 .ffh-pv(右侧 26px) 的 ::before 会伸出容器 13px，
   1280 档 documentElement.scrollWidth = 1293 > 1280，横向溢出断言假失败。改 -26 后四档溢出 0。 */
.ffh-pv::before{
  content:""; position:absolute; left:-40px; right:-26px; top:-28px; bottom:-14px;
  background:radial-gradient(ellipse 60% 80% at 50% 90%,
    rgba(245,240,232,.075) 0%, rgba(245,240,232,.04) 45%, rgba(245,240,232,0) 72%);
  pointer-events:none; z-index:0;
}
.ffh-pv span{
  font-size:9.5px; letter-spacing:.2em; text-transform:uppercase;
  color:rgba(245,240,232,.26); text-align:center; line-height:1.9;
}
/* 有悬停时隐掉空态提示（用 :has，纯 CSS，全绿） */
.ffh-panel--prod:has(.ffh-p:hover) .ffh-pv span{ opacity:0 }

@media (max-width:1279px){
  .ffh-panel--prod{ padding-right:0; min-height:0 }
  .ffh-panel--prod::after{ display:none }
  .ffh-p img, .ffh-pv{ display:none }   /* 1280 以下不显示预览，避免挤窄四列 */
  /* 桌面四列网格 min 150×4=600px，在 390 会撑出 324px 假溢出（站上有 overflow-x:hidden 遮住，
     但 scrollWidth 仍超标 → 断言假失败）。1280 以下直接摘掉桌面下拉，溢出归 0。 */
  .ffh-drop{ display:none }
}

/* ===== Firefly Visual · 统一页脚 v1（2026-11-09 望舒）
   用途：凡是切了 elementor_canvas 的页面（286 头部 + 290 页脚都不再渲染），用这段补页脚。
   自包含：颜色写死，不依赖页面 CSS 变量；全部选择器带 .ffft 前缀，不污染任何页面。
   零 JS、零图片。命名规则：ffft- 前缀。 */

.ffft{
  background:#0B0C10; color:#F5F0E8;
  border-top:1px solid rgba(245,240,232,.10);
  font-family:"Be Vietnam Pro",-apple-system,"Segoe UI",Arial,sans-serif;
  padding:52px 0 26px;
}
.ffft *, .ffft *::before, .ffft *::after{ box-sizing:border-box }
.ffft-in{
  max-width:1280px; margin:0 auto; padding:0 24px;
  display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:0 40px;
}
.ffft-brand b{
  display:block; font-size:15px; letter-spacing:.14em; font-weight:600; margin-bottom:12px;
}
.ffft-brand b span{ color:#FFC83B; margin:0 3px }
.ffft-brand p{
  margin:0; max-width:34ch; font-size:13px; line-height:1.75; color:rgba(245,240,232,.52);
}
.ffft-col h4{
  margin:0 0 12px; font-size:9.5px; font-weight:400; letter-spacing:.2em;
  text-transform:uppercase; color:#FFC83B;
}
.ffft-col ul{ margin:0; padding:0; list-style:none }
.ffft-col li{ font-size:13px; line-height:1.9; color:rgba(245,240,232,.62) }
.ffft-col a{ color:rgba(245,240,232,.62); text-decoration:none; transition:color .16s }
.ffft-col a:hover{ color:#FFC83B }
/* 维护段内链行：设计稿原 `<footer class="foot">` 的 6 条子页链接迁到这里，
   否则换页脚会丢掉维护段内部链接（2026-11-11 望舒，Lincoln「页脚你决定」后定） */
.ffft-sub{
  max-width:1280px; margin:26px auto 0; padding:14px 24px 0;
  border-top:1px solid rgba(245,240,232,.08);
  display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 18px;
  font-size:11.5px; letter-spacing:.02em;
}
.ffft-sub span{
  font-size:9.5px; letter-spacing:.2em; text-transform:uppercase;
  color:#FFC83B; margin-right:4px;
}
.ffft-sub a{ color:rgba(245,240,232,.52); text-decoration:none; transition:color .16s }
.ffft-sub a:hover{ color:#FFC83B }

.ffft-end{
  max-width:1280px; margin:34px auto 0; padding:18px 24px 0;
  border-top:1px solid rgba(245,240,232,.08);
  display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
  font-size:11.5px; color:rgba(245,240,232,.38);
}
@media (max-width:1023px){
  .ffft{ padding:40px 0 22px }
  .ffft-in{ grid-template-columns:1fr 1fr; gap:26px 24px }
  .ffft-brand{ grid-column:1 / -1 }
}
@media (max-width:599px){
  .ffft-in{ grid-template-columns:1fr }
  .ffft-end{ flex-direction:column; gap:6px }
}

/* E2F · Wave 2 旧头部收口（只对 body.ff-chrome 生效 = 只对白名单页生效）
   每条对应一页，改动记入 report.csv 的 hide 列。不许碰 .ffh 自己。 */
body.ff-chrome header.hdr{ display:none !important; }              /* 11 个产品页：短代码自带头 */
body.ff-chrome nav.nav{ display:none !important; }                 /* 产品/领导/哲学页：旧导航条 */
body.ff-chrome #ff-page > .bar{ display:none !important; }         /* about-us：旧 bar 容器（含 nav.bar__n） */

/* E2F · Wave 2 色值校正（只对 body.ff-chrome 生效）
   为什么需要：canvas 页的主题/Elementor kit 给 a 设了显式色 rgb(58,60,66)，
   特异性压过组件的 .ffh-top / .ffh-brand / .ffh-cta → 深底上导航几乎不可读。
   这里只补「文字色」，不动任何尺寸/布局。 */
body.ff-chrome .ffh-brand{ color:#F5F0E8 !important; }
body.ff-chrome .ffh-nav a.ffh-top,
body.ff-chrome .ffh-car{ color:rgba(245,240,232,.84) !important; }
/* 高亮必须比上面那条 (0,3,1) 更具体，否则 !important 同权时被压掉 */
body.ff-chrome .ffh-nav a.ffh-top[aria-current],
body.ff-chrome .ffh-nav a.ffh-top[aria-current] .ffh-car{ color:#FFC83B !important; }
body.ff-chrome .ffh-cta{ color:#FFC83B !important; }
body.ff-chrome .ffh-mrow{ color:rgba(245,240,232,.84) !important; }
body.ff-chrome .ffh-mgrp a{ color:rgba(245,240,232,.74) !important; }
body.ff-chrome .ffh-brand i{ color:inherit !important; }
/* 页脚同理：主题的 a{color:rgb(58,60,66)} 把深色底上的 .ffft 链接压成不可读的深灰。
   这里只回填设计稿 ff-footer.css 里原本就写好的两个色值，不动尺寸/布局。 */
body.ff-chrome .ffft-col a{ color:rgba(245,240,232,.62) !important; }
body.ff-chrome .ffft-sub a{ color:rgba(245,240,232,.52) !important; }
body.ff-chrome .ffft-col a:hover,
body.ff-chrome .ffft-sub a:hover{ color:#FFC83B !important; }

/* ---- 2026-11-13 H2WB-20261113 LOGO + unified footer ---- */
.ffh-brand img{width:150px;height:45px;display:block}
.ffh-brand i{display:none}
.ffft-brand img{display:block;margin-bottom:14px}

/* R4-hover 2026-11-13 */
/* 横线：从左往右滑出（只动 transform，不触发 reflow；不改行高、不位移文字） */
.ffh-p .ffh-t{ position:relative; display:inline-block }
.ffh-p .ffh-t::after{
  content:""; position:absolute; left:0; right:0; bottom:-5px; height:2px;
  background:#FFC83B; pointer-events:none;
  transform:scaleX(0); transform-origin:left center;
  transition:transform 220ms cubic-bezier(.22,.61,.36,1);
}
.ffh-p:hover .ffh-t::after,
.ffh-p:focus-visible .ffh-t::after{ transform:scaleX(1); transition-duration:280ms }

/* 图：进 150ms / 出 180ms */
.ffh-p img{ transition:opacity 180ms ease }
.ffh-p:hover img,
.ffh-p:focus-visible img{ transition-duration:150ms }

/* 说明行：图位内右下角，距右/下各 14px（图位 right:26 top:14 320x224） */
.ffh-p .ffh-cap{
  position:absolute; right:40px; bottom:22px; z-index:4;
  display:flex; align-items:baseline; gap:5px; white-space:nowrap;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  text-shadow:0 2px 8px rgba(0,0,0,.6);
  opacity:0; transform:translateY(2px); pointer-events:none;
  transition:opacity 180ms ease, transform 180ms ease;
}
/* 底部轻蒙版：透明 → 深色，只压右下，不遮主体轮廓（320x64，右/下对齐图位） */
.ffh-p .ffh-cap::before{
  content:""; position:absolute; right:-14px; bottom:-14px;
  width:320px; height:64px; z-index:-1; pointer-events:none;
  background:linear-gradient(90deg, rgba(11,13,17,0), rgba(11,13,17,.85));
}
.ffh-p .ffh-cap b{
  font-size:13px; font-weight:600; letter-spacing:1px; text-transform:uppercase;
  color:#FFC83B;
}
.ffh-p .ffh-cap i{ font-style:normal; font-size:12px; color:rgba(255,200,59,.5) }
.ffh-p .ffh-cap em{
  font-style:normal; font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color:#8A8178;
}
.ffh-p:hover .ffh-cap,
.ffh-p:focus-visible .ffh-cap{ opacity:1; transform:translateY(0); transition-duration:150ms }

/* 有悬停/聚焦时隐掉空态提示（含 focus，补 :has 原规则只有 hover） */
.ffh-panel--prod:has(.ffh-p:focus-visible) .ffh-pv span{ opacity:0 }

/* <1280：预览台与说明行一律不出现 */
@media (max-width:1279px){
  .ffh-p .ffh-cap, .ffh-p .ffh-t::after{ display:none }
}

/* ==== Q2-1 20261114：列标题 h4 → p.ffh-col-h（6 项值取自改前 h4 计算样式，逐值抄）==== */
.ffh-col-h{
  margin:0 0 10px; padding:0; font-size:9.5px; font-weight:400; letter-spacing:.18em;
  line-height:normal; color:var(--ffh-gold); text-transform:uppercase;
}
.ffh-col-h s{ text-decoration:none; margin-left:5px; color:rgba(245,240,232,.42) }
