/* ============================================================================
 * 米粒云课堂 · 官网门户站 —— 设计系统（唯一 CSS 文件）
 *
 * 契约：docs/35-官网门户站-设计契约.md（冻结）
 * 令牌来源：从竞品真实页面的 getComputedStyle 提取（取证文档在仓库 research/ 下，⛔ 不写进对外产物）
 *
 * 【纪律】
 *   - 颜色只用 :root 里的令牌，不允许出现令牌外的色值；
 *   - 不引任何外部字体/图标（图标全部用内联 SVG 或 CSS 绘制）；
 *   - 不引任何 CDN。
 * ========================================================================== */

/* ───────────────────────── 1. 令牌 ───────────────────────── */
:root {
  /* ★ 米粒云课堂品牌令牌（PM 2026-11-06 定稿）：米粒蓝主色 + 深海蓝深色块 + 云蓝 + 米粒金落点 */
  --fy-primary: #1d6fe0; /* 米粒蓝（主色） */
  --fy-primary-dark: #1759b3; /* = mix(20% 黑, 主色)，与 admin 的 --el-color-primary-dark-2 同值 */
  --fy-primary-light: #3fa9f5; /* 云蓝 */
  --fy-primary-bg: #eaf4ff; /* 浅底 */
  --brand-ink: #0f4c9e; /* 深海蓝：深色块底（页眉 / 页脚） */
  --brand-on-dark: #eaf4ff; /* 深色块上的文字/图标（对比度 7.41:1） */
  --brand-gold: #f2c14e; /* 米粒金：**只做落点**（主 CTA / 关键数字 / 装饰线） */
  --brand-gold-deep: #d9a02b; /* 穗金（金的深色态） */
  --brand-sky: #3fa9f5; /* 云蓝 */
  /* 强调橙：价格/评分/角标 */
  --fy-accent: #0369A1;

  /* 中性色 */
  --fy-text: #111827;
  --fy-text-2: #4B5563;
  --fy-text-3: #6B7280;
  --fy-text-4: #9CA3AF;
  --fy-line: #E5E7EB;
  --fy-bg: #ffffff;
  --fy-bg-gray: #F8FAFC;
  --fy-bg-light: #F1F5F9;
  --fy-dark: #0C1116;

  /* 字号阶梯（学员端实测：16px 424 处 / 12px 239 / 14px 84） */
  --fy-fs-hero: 46px;
  --fy-fs-h2: 24px;
  --fy-fs-h3: 18px;
  --fy-fs-body: 15px;
  --fy-fs-sm: 14px;
  --fy-fs-xs: 12px;

  /* 圆角（学员端 4px 91 处） */
  --fy-radius: 6px;
  --fy-radius-lg: 6px;
  --fy-radius-pill: 999px;

  --fy-shadow: 0 1px 3px rgba(15,23,42,.06);
  --fy-shadow-hover: 0 6px 16px rgba(15,23,42,.10);

  --fy-font: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --fy-max: 1240px;
  --fy-nav-h: 60px;
  /* 首屏高度：桌面 560；≤991px 680（手机/平板上仍是一条完整的通栏，表单已移出首屏）。
     680 这个值还被 ≤768px 的浮动条定位公式引用（见 §18 末尾），改一处即可。 */
  --fy-hero-h-sm: 680px;
}

/* ───────────────────────── 2. 基础 ───────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--fy-font);
  font-size: var(--fy-fs-body);
  color: var(--fy-text);
  background: var(--fy-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

/* 内容宽度：桌面 1200 居中，左右 24 内边距 */
.fy-wrap { width: 100%; max-width: var(--fy-max); margin: 0 auto; padding: 0 24px; }

/* 区块纵向留白：桌面 88 / 移动 48 */
.fy-section { padding: 88px 0; }
.fy-section--gray { background: var(--fy-bg-gray); }
.fy-section--light { background: var(--fy-bg-light); }
.fy-section--dark { background: var(--fy-dark); color: #fff; }

/* 区块标题 */
.fy-h2 {
  font-size: var(--fy-fs-h2);
  font-weight: 700;
  color: var(--fy-text);
  text-align: center;
  line-height: 1.3;
}
.fy-sub {
  font-size: var(--fy-fs-body);
  color: var(--fy-text-3);
  text-align: center;
  margin-top: 12px;
}
.fy-section--dark .fy-h2 { color: #fff; }
.fy-section--dark .fy-sub { color: rgba(255, 255, 255, .7); }

/* 顶部标题组 */
.fy-head { margin-bottom: 48px; }

/* ───────────────────────── 3. 按钮 ───────────────────────── */
.fy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--fy-radius);
  font-size: var(--fy-fs-body);
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.fy-btn--primary { background: var(--fy-primary); color: #fff; }
.fy-btn--primary:hover { background: var(--fy-primary-dark); }
.fy-btn--ghost { background: #fff; color: var(--fy-primary); border-color: var(--fy-primary); }
.fy-btn--ghost:hover { background: var(--fy-primary-bg); }
.fy-btn--white { background: #fff; color: var(--fy-primary); }
.fy-btn--white:hover { background: var(--fy-primary-bg); }
.fy-btn--line-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.fy-btn--line-white:hover { background: rgba(255, 255, 255, .12); }
.fy-btn--lg { height: 52px; padding: 0 32px; font-size: 18px; }
.fy-btn--sm { height: 36px; padding: 0 16px; font-size: var(--fy-fs-sm); }
.fy-btn--block { width: 100%; }

/* ───────────────────────── 4. 顶部导航 ───────────────────────── */
.fy-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--fy-nav-h);
  /* ★ 2026-12 改版（老板原话：「上面都是蓝色的不好」）：
     页眉 = **白底 + 细下边框**，未选中文字 #334155、hover 用主色 #1D6FE0。
     蓝色只留在主按钮 / 链接 / 首屏右侧那张图里，⛔ 不再整条深海蓝或米粒蓝底。 */
  background: #FFFFFF;
  color: #334155;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: none;
  transition: box-shadow .2s ease;
}
/* 滚动后加轻微阴影（site.js 的 initNavScroll() 给 <header> 加 .is-scrolled） */
.fy-nav.is-scrolled { box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
/* ★ 单页回退开关（与管理端同一口径）：<html data-layout="light"> 也走同一套白底 */
html[data-layout='light'] .fy-nav {
  background: #FFFFFF;
  color: #334155;
}
.fy-nav__inner { display: flex; align-items: center; height: 100%; gap: 8px; }

.fy-logo { display: flex; align-items: center; gap: 10px; margin-right: 20px; flex: none; }
.fy-logo__mark {
  width: 34px; height: 34px; flex: none; display: block; object-fit: contain;
}
/* 导航现在是**白底**（2026-12 改版）⇒ logo 用**全彩 mark**（`assets/img/logo-mark.svg`）；
   旧版导航是深底，才需要单色白 mark（`logo-mark-white.svg` 仍留在 img 目录，供深色块用）。 */
/* 页脚是深底（--fy-dark）⇒ 白底方块 + 红色 mark（保留原"方块"语言，只把字换成 mark） */
.fy-footer .fy-logo__mark {
  background: #fff; border-radius: var(--fy-radius); padding: 5px;
}
.fy-logo__text { font-size: 20px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; color: #0F172A; }
.fy-logo__sub { font-size: var(--fy-fs-xs); opacity: .85; margin-left: 2px; white-space: nowrap; }

/* 【踩过的坑】导航被挤爆：
   `.fy-nav__tel` 里是 `【待填】客服电话` 这种**比真实电话长得多**的占位文字，
   它把 flex 空间吃掉，`.fy-menu` 里的中文被逐字截断成「首 产 解决方 客户案…」。
   修法三条：① 菜单项 nowrap + 允许自身收缩；② actions 不收缩；③ 窄屏直接隐藏占位电话。
   —— 这条是**肉眼看截图**才发现的，脚本判据（标题/链接/色值）全都 ✅。 */
.fy-menu { display: flex; align-items: center; gap: 0; flex: 1 1 auto; min-width: 0; }
.fy-menu > li { flex: none; }
.fy-menu > li > a {
  display: block;
  padding: 0 15px;
  height: var(--fy-nav-h);
  line-height: var(--fy-nav-h);
  font-size: var(--fy-fs-body);
  white-space: nowrap;
  opacity: .92;
  transition: opacity .2s, background .2s;
}
.fy-menu > li > a:hover { opacity: 1; background: #F5F8FE; }
.fy-menu > li > a.is-active { opacity: 1; font-weight: 600; background: #F5F8FE; }

.fy-nav__actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.fy-nav__tel { font-size: var(--fy-fs-sm); opacity: .95; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.fy-nav .fy-btn--white { height: 36px; padding: 0 18px; font-size: var(--fy-fs-sm); }
.fy-nav .fy-btn--line-white { height: 36px; padding: 0 18px; font-size: var(--fy-fs-sm); }
/* ★ 2026-12：右侧只剩 2 个按钮（老板原话「右侧只留 2 个按钮」）：
     [登录 / 管理后台] = 主色描边（.fy-btn--ghost）；[免费试用] = 主色实心（.fy-btn--primary）。
     两个都按原按钮高度 36px 收，跟导航条同高。 */
.fy-nav .fy-btn--ghost, .fy-nav .fy-btn--primary { height: 36px; padding: 0 18px; font-size: var(--fy-fs-sm); }

/* 导航里的两个 CTA：「申请入驻」与「登录 / 管理后台」（2026-10-09 根目录改版新增）
   ─────────────────────────────────────────────────────────────────────────
   ★ 2026-12 状态：这套 `.fy-menu__cta` 规则**已成死码** —— 那次改版把两个 CTA
     从「菜单项」挪到了右侧按钮区（见 `.fy-nav .fy-btn--ghost / --primary`），
     一级项只留 5 个文字入口。规则暂时保留（回退到旧导航时直接可用），
     ⛔ 不要再往 `.fy-menu` 里加胶囊按钮，那正是老板说的「导航太挤」。
   【为什么原本放在 `.fy-menu`（导航菜单）里，而不是 `.fy-nav__actions`（右侧按钮区）】
     见下面 ≤820px 那段已有的**实测宽度预算**：390px 宽时 `.fy-nav__actions`
     **只容得下一个主 CTA（免费试用）+ 汉堡**，再加一个「立即咨询」就 448 > 390 必溢出。
     ⇒ 往右侧按钮区塞第二个按钮 = 复现那个已被记录在案的溢出坑。
     放进 `.fy-menu` 后：桌面端 = 横向菜单里的两个胶囊按钮；
     窄屏 = 随汉堡菜单**整行展开**（`.fy-menu.is-open` 是 flex-direction:column）
     ⇒ ★ 两种形态**都看得到**，且**不动任何既有元素**（不删/不改 免费试用、立即咨询）。
   【为什么链接用 `/admin/` 绝对路径】官网同时挂在 `/`（新根）与 `/www/`（老地址兼容），
     绝对路径在两种入口下都指向同一个管理端登录页；用相对路径在 `legal/` 子目录下会算错。
   【为什么不用新框架】全部复用本站既有的 `--fy-primary` / `--fy-radius` / 汉字排版，
     ⛔ 没有引入任何第三方 CSS/JS。 */
.fy-menu > li > a.fy-menu__cta {
  height: 34px;
  line-height: 32px;
  padding: 0 14px;
  margin: 0 4px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: var(--fy-radius);
  opacity: 1;
  font-weight: 500;
}
.fy-menu > li > a.fy-menu__cta:hover { background: rgba(255, 255, 255, .16); opacity: 1; }
.fy-menu > li > a.fy-menu__cta--login {
  background: #fff;
  color: var(--fy-primary);
  border-color: #fff;
  font-weight: 700;
}
.fy-menu > li > a.fy-menu__cta--login:hover { background: var(--fy-primary-bg); }

/* 汉堡（移动端）：白底导航 ⇒ 三道杠用深色 #334155（旧版深底时才用白） */
.fy-burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.fy-burger span { display: block; width: 20px; height: 2px; background: #334155; position: relative; }
.fy-burger span::before, .fy-burger span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: #334155;
}
.fy-burger span::before { top: -6px; }
.fy-burger span::after { top: 6px; }

/* ───────────────────────── 5. 首屏 ───────────────────────── */
/**
 * ★ 2026-12 **第二次**改版（老板原话：「像 wingconn 一样拉长，我现在是左右两栏，左边文字右边图」）：
 *
 *   改前：`.fy-hero__inner` = `grid-template-columns: 1.05fr .95fr` —— 左文字 / 右一张圆角图卡；
 *   改后：**整条通栏背景图 + 文字压在左侧**，右侧图卡删掉。三层结构（自下而上）：
 *     z 0  `.fy-hero__bg`     背景图层（absolute inset:0）+ `hero.jpg`；图挂了 ⇒ 露出本层兜底渐变
 *     z 1  `.fy-hero::after`  深色遮罩（桌面「左深右浅」，≤991px「上浅下深」）
 *     z 2  `.fy-hero__inner` / `.fy-trial`  文字与表单
 *
 *   ⛔ 不再是两栏 grid；⛔ 不用纯黑遮罩（纯黑会把 hero.jpg 的暖色场景压成脏灰，
 *      所以遮罩一律走深海蓝 rgba(6,26,58,·)，与 --fy-primary-dark 同色系）；
 *   ⛔ 页面横向不许多出滚动条：`overflow: hidden` + 内容仍走 `.fy-wrap`（max-width 1240 不变）。
 *
 *   高度（老板要「拉长」）：桌面 min-height **560px**，`display:flex` 垂直居中；
 *   ≤991px 降到 **420px**（手机上 560 太占屏），断点在文件末尾 17.3 那个 991px 块里。
 */
.fy-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  padding: 72px 0 56px;
}
/* 背景图层：图在上面、兜底渐变在下面。图没来 / 404 ⇒ <img> 被 onerror 隐藏，只剩渐变（⛔ 不裂图）。 */
.fy-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #0F4C9E 0%, #1D6FE0 100%);
}
.fy-hero__bg-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.fy-hero__bg-img[hidden] { display: none; }
/* 遮罩层：压在图上、内容下。桌面「左轻右无」—— 老板新给的通栏图是**深藏蓝底 + 左侧 45% 干净留白**，
   文字本来就压在干净深底上，遮罩只要薄薄一层把边缘压住即可（实测最坏情况见报告）。 */
.fy-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 26, 58, .72) 0%, rgba(6, 26, 58, .45) 45%, rgba(6, 26, 58, .05) 100%);
  pointer-events: none;
}
.fy-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}
/* 文字块不跟着通栏拉到 1240：压在左侧约一半宽，右侧留给照片（老板要的"左边文字右边图"的观感）。 */
.fy-hero__copy { max-width: 640px; }
.fy-hero__title {
  font-size: var(--fy-fs-hero);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -.5px;
}
.fy-hero__desc {
  margin-top: 18px;
  font-size: 18px;
  color: rgba(255, 255, 255, .86);
  line-height: 1.7;
  max-width: 520px;
}
.fy-hero__btns { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.fy-hero__points { margin-top: 22px; display: flex; gap: 20px; flex-wrap: wrap; }
.fy-hero__points li {
  color: rgba(255, 255, 255, .9);
  font-size: var(--fy-fs-sm);
  display: flex; align-items: center; gap: 6px;
}
/* 【已停用，保留以便回退】旧版首屏右侧是纯 CSS 能力轮盘（`.fy-hero__art` + `.fy-wheel*`）。
   2026-12 改版后 index.html 不再引用它们，规则留着不影响渲染，也不引任何图片。 */
.fy-hero__art { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; }

/* 能力轮盘（纯 CSS，替代对标站的位图插画） */
.fy-wheel { position: relative; width: 320px; height: 320px; }
.fy-wheel__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .55);
}
.fy-wheel__ring--inner { inset: 46px; border-style: solid; border-color: rgba(255, 255, 255, .35); }
.fy-wheel__core {
  position: absolute; inset: 108px; border-radius: 50%;
  background: #fff; color: var(--fy-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; box-shadow: var(--fy-shadow-hover);
}
.fy-wheel__core b { font-size: 18px; }
.fy-wheel__core span { font-size: var(--fy-fs-xs); color: var(--fy-text-3); font-weight: 400; }
.fy-wheel__item {
  position: absolute; transform: translate(-50%, -50%);
  background: #fff; color: var(--fy-text);
  padding: 6px 12px; border-radius: var(--fy-radius-pill);
  font-size: var(--fy-fs-sm); white-space: nowrap; box-shadow: var(--fy-shadow);
}
.fy-wheel__item--on { background: var(--fy-accent); color: #fff; }

/* 试用表单卡（2026-12 第三版：它已经搬到 hero 之后的独立 section `.fy-trial-band` 里）
   ★ 历史包袱清掉：原来那张卡用 `margin-top: -34px` 骑在首屏下沿上（首屏还是白底的时候），
     通栏深底之后又改成 +36px 来躲开第三个卖点 —— 两次都是"位置补偿"。
     现在它是独立 section 里的第一块内容 ⇒ **margin-top 归零**，⛔ 不再有任何负值去压 hero。 */
.fy-trial {
  margin-top: 0;
  background: #fff;
  border: 1px solid var(--fy-line);
  border-radius: var(--fy-radius-lg);
  box-shadow: var(--fy-shadow-hover);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: end;
  position: relative;
  z-index: 2;
}
/* 试用表单所在的独立 section：浅底 + 细上/下边框，和深色首屏之间有一条干净的分界 */
.fy-trial-band {
  background: #F5F8FE;
  border-top: 1px solid var(--fy-line);
  border-bottom: 1px solid var(--fy-line);
  padding: 44px 0 56px;
}
.fy-field { display: flex; flex-direction: column; gap: 6px; }
.fy-field label { font-size: var(--fy-fs-xs); color: var(--fy-text-3); }
.fy-field input, .fy-field select {
  height: 44px; padding: 0 12px;
  border: 1px solid var(--fy-line); border-radius: var(--fy-radius);
  font-size: var(--fy-fs-sm); background: #fff; outline: none;
  transition: border-color .2s;
}
.fy-field input:focus, .fy-field select:focus { border-color: var(--fy-primary); }
.fy-field--err input { border-color: var(--fy-primary); }
.fy-field__msg { font-size: var(--fy-fs-xs); color: var(--fy-primary); min-height: 16px; }
.fy-trial__ok { grid-column: 1 / -1; color: var(--fy-primary); font-size: var(--fy-fs-sm); }

/* ───────────────────────── 6. 多端图标条 ───────────────────────── */
.fy-clients { padding: 40px 0 8px; }
.fy-clients__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.fy-client {
  background: #fff; border: 1px solid var(--fy-line); border-radius: var(--fy-radius);
  padding: 18px 10px; text-align: center; font-size: var(--fy-fs-sm); color: var(--fy-text-2);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: all .2s;
}
.fy-client:hover { border-color: var(--fy-primary); color: var(--fy-primary); }
.fy-ico { width: 32px; height: 32px; display: block; }
.fy-ico--sm { width: 20px; height: 20px; }

/* ───────────────────────── 7. 左右图文 ───────────────────────── */
.fy-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fy-split--rev .fy-split__media { order: 2; }
.fy-feature { display: flex; gap: 14px; padding: 14px 0; }
.fy-feature__ico {
  flex: none; width: 40px; height: 40px; border-radius: var(--fy-radius);
  background: var(--fy-primary-bg); color: var(--fy-primary);
  display: flex; align-items: center; justify-content: center;
}
.fy-feature__t { font-size: 18px; font-weight: 600; }
.fy-feature__d { color: var(--fy-text-2); font-size: var(--fy-fs-sm); margin-top: 4px; }

/* 设备插画（纯 CSS） */
.fy-devices { position: relative; height: 320px; }
.fy-device {
  position: absolute; background: #fff; border: 1px solid var(--fy-line);
  border-radius: var(--fy-radius-lg); box-shadow: var(--fy-shadow);
  overflow: hidden;
}
.fy-device__bar { height: 22px; background: var(--fy-bg-light); display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.fy-device__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fy-text-4); }
.fy-device__body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.fy-skel { height: 10px; border-radius: 2px; background: var(--fy-bg-light); }
.fy-skel--accent { background: var(--fy-primary-bg); }
.fy-skel--w60 { width: 60%; }
.fy-skel--w80 { width: 80%; }
.fy-device--pc { left: 0; top: 20px; width: 300px; }
.fy-device--pad { right: 20px; top: 90px; width: 190px; }
.fy-device--phone { right: 96px; bottom: 0; width: 96px; }

/* ───────────────────────── 8. 卡片网格 ───────────────────────── */
.fy-grid { display: grid; gap: 20px; }
.fy-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fy-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fy-grid--4 { grid-template-columns: repeat(4, 1fr); }
.fy-grid--5 { grid-template-columns: repeat(5, 1fr); }

.fy-card {
  background: #fff;
  border: 1px solid var(--fy-line);
  border-radius: var(--fy-radius-lg);
  padding: 24px;
  transition: all .25s;
}
.fy-card:hover { box-shadow: var(--fy-shadow-hover); transform: translateY(-4px); border-color: transparent; }
.fy-card__ico {
  width: 44px; height: 44px; border-radius: var(--fy-radius);
  background: var(--fy-primary-bg); color: var(--fy-primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.fy-card__t { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.fy-card__d { color: var(--fy-text-2); font-size: var(--fy-fs-sm); line-height: 1.7; }
.fy-card__tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.fy-tag {
  font-size: var(--fy-fs-xs); color: var(--fy-primary);
  background: var(--fy-primary-bg); border-radius: var(--fy-radius);
  padding: 3px 8px;
}
.fy-tag--accent { color: var(--fy-accent); background: #fff6e8; }

.fy-card__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; color: var(--fy-primary); font-size: var(--fy-fs-sm); font-weight: 500; }
.fy-card__link:hover { gap: 8px; }

/* 版本卡（多版本选择） */
.fy-version { display: flex; flex-direction: column; }
.fy-version__price { color: var(--fy-accent); font-size: 26px; font-weight: 700; margin: 10px 0 4px; }
.fy-version__price small { font-size: var(--fy-fs-sm); color: var(--fy-text-3); font-weight: 400; }
.fy-version ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.fy-version li { font-size: var(--fy-fs-sm); color: var(--fy-text-2); display: flex; gap: 8px; align-items: flex-start; }
.fy-version li::before { content: '✓'; color: var(--fy-primary); font-weight: 700; flex: none; }
.fy-version .fy-btn { margin-top: auto; }
.fy-version--hot { border-color: var(--fy-primary); box-shadow: 0 0 0 3px var(--fy-primary-bg); }
.fy-version__flag {
  position: absolute; top: -1px; right: -1px;
  background: var(--fy-primary); color: #fff;
  font-size: var(--fy-fs-xs); padding: 3px 10px;
  border-radius: 0 var(--fy-radius-lg) 0 var(--fy-radius-lg);
}

/* 行业卡（带图） */
.fy-industry {
  position: relative; border-radius: var(--fy-radius-lg); overflow: hidden;
  height: 132px; display: flex; align-items: flex-end;
  color: #fff; padding: 16px;
  background: linear-gradient(135deg, #0C1116, #0891B2);
  transition: transform .25s, box-shadow .25s;
}
.fy-industry:hover { transform: translateY(-4px); box-shadow: var(--fy-shadow-hover); }
.fy-industry--b { background: linear-gradient(135deg, #1f2a44, #3d5a9a); }
.fy-industry--c { background: linear-gradient(135deg, #23483a, #2f8f63); }
.fy-industry--d { background: linear-gradient(135deg, #4a2f1f, #c07a2c); }
.fy-industry--e { background: linear-gradient(135deg, #3a2148, #8a4fbe); }
.fy-industry__t { font-size: 18px; font-weight: 600; }
.fy-industry__d { font-size: var(--fy-fs-xs); opacity: .85; }
.fy-industry__n {
  position: absolute; top: 12px; right: 14px;
  font-size: var(--fy-fs-xs); background: rgba(255, 255, 255, .2);
  padding: 2px 8px; border-radius: var(--fy-radius-pill);
}

/* ───────────────────────── 9. 红色数据块 + Tab ───────────────────────── */
.fy-stats { background: linear-gradient(135deg, #0369A1, #0891B2); color: #fff; }
.fy-stats .fy-h2, .fy-stats .fy-sub { color: #fff; }
.fy-stats .fy-sub { opacity: .9; }
.fy-tabs { display: flex; justify-content: center; gap: 8px; margin: 28px 0 34px; }
.fy-tab {
  padding: 8px 20px; border-radius: var(--fy-radius-pill);
  color: #fff; border: 1px solid rgba(255, 255, 255, .5);
  font-size: var(--fy-fs-sm); transition: all .2s;
}
.fy-tab.is-active { background: #fff; color: var(--fy-primary); border-color: #fff; font-weight: 600; }
.fy-stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.fy-stat {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--fy-radius-lg);
  padding: 22px 16px; text-align: center;
}
.fy-stat__n { font-size: 30px; font-weight: 700; line-height: 1.2; }
.fy-stat__l { font-size: var(--fy-fs-sm); opacity: .9; margin-top: 6px; }
.fy-panel { display: none; }
.fy-panel.is-active { display: block; }

/* ───────────────────────── 10. 客户 logo 墙 ───────────────────────── */
.fy-logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--fy-line); border: 1px solid var(--fy-line); border-radius: var(--fy-radius-lg); overflow: hidden; }
.fy-logo-cell {
  background: #fff; height: 78px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fy-text-3); font-size: var(--fy-fs-sm); letter-spacing: 1px;
  transition: color .2s, background .2s;
}
.fy-logo-cell:hover { color: var(--fy-primary); background: var(--fy-primary-bg); }

/* 客户说（视频/引言卡） */
.fy-quote { background: #fff; border: 1px solid var(--fy-line); border-radius: var(--fy-radius-lg); overflow: hidden; }
.fy-quote__media {
  height: 168px; background: linear-gradient(135deg, #0C1116, #1E293B);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.fy-play {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  display: flex; align-items: center; justify-content: center; color: var(--fy-primary);
}
.fy-play::after { content: ''; border-left: 14px solid var(--fy-primary); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.fy-quote__body { padding: 18px 20px; }
.fy-quote__t { font-size: var(--fy-fs-body); font-weight: 600; }
.fy-quote__d { font-size: var(--fy-fs-sm); color: var(--fy-text-2); margin-top: 8px; }
.fy-quote__who { font-size: var(--fy-fs-xs); color: var(--fy-text-3); margin-top: 10px; }

/* ───────────────────────── 11. 新闻 ───────────────────────── */
.fy-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fy-news__card { background: #fff; border: 1px solid var(--fy-line); border-radius: var(--fy-radius-lg); overflow: hidden; transition: all .25s; }
.fy-news__card:hover { box-shadow: var(--fy-shadow-hover); transform: translateY(-4px); }
.fy-news__media { height: 132px; background: linear-gradient(135deg, #F0F9FF, #E0F2FE); }
.fy-news__media--b { background: linear-gradient(135deg, #e8f0ff, #d6e6ff); }
.fy-news__media--c { background: linear-gradient(135deg, #e9f7ef, #d7f0e2); }
.fy-news__body { padding: 16px 18px 18px; }
.fy-news__t { font-size: var(--fy-fs-body); font-weight: 600; line-height: 1.5; }
.fy-news__d { font-size: var(--fy-fs-sm); color: var(--fy-text-2); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fy-news__meta { font-size: var(--fy-fs-xs); color: var(--fy-text-3); margin-top: 12px; }

/* ───────────────────────── 12. 页脚 ───────────────────────── */
.fy-footer {
  background-color: var(--fy-dark); color: rgba(255, 255, 255, .72); padding: 56px 0 0;
  /**
   * ★ 页脚纹样位（PM 2026-11-06 留位 / 2026-12 接线老板真图）：
   *   `assets/img/pattern-tile.png`（原图 1024×1024，按 512 平铺 = 2x，四边可无缝拼接）。
   *   ⚠️ 老板这张是**不透明**的（colorType=6 但整幅实色），直接铺会把页脚压花 ⇒
   *     上面压一层**同色 #0C1116 的 88% 遮罩**，把纹样淡到 ≈12%：看得见、不抢字。
   *   ⇒ 判据要的 `background-repeat: repeat` 在下面这一行；换图仍然只换同名文件。
   */
  background-image:
    linear-gradient(rgba(12, 17, 22, .88), rgba(12, 17, 22, .88)),
    url(../img/pattern-tile.png);
  background-repeat: repeat;
  background-size: auto, 512px 512px;
}
.fy-footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) 1.2fr; gap: 28px; padding-bottom: 40px; }
.fy-footer h4 { color: #fff; font-size: var(--fy-fs-body); margin-bottom: 14px; font-weight: 600; }
.fy-footer li { margin-bottom: 10px; font-size: var(--fy-fs-sm); }
.fy-footer a:hover { color: #fff; }
.fy-footer__tel { color: #fff; font-size: 24px; font-weight: 700; }
.fy-footer__qr {
  width: 96px; height: 96px; border-radius: var(--fy-radius);
  background: repeating-conic-gradient(#fff 0 25%, #ddd 0 50%) 0 0/12px 12px;
  border: 4px solid #fff;
}
.fy-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 20px 0; font-size: var(--fy-fs-xs);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.fy-footer__placeholder { color: var(--fy-accent); }

/* ───────────────────────── 13. 通用工具类 ───────────────────────── */
.fy-center { text-align: center; }
.fy-mt24 { margin-top: 24px; }
.fy-mt40 { margin-top: 40px; }
.fy-mb0 { margin-bottom: 0; }
.fy-flex { display: flex; }
.fy-gap12 { gap: 12px; }
.fy-between { justify-content: space-between; }
.fy-align { align-items: center; }
.fy-wrapflex { flex-wrap: wrap; }
.fy-hide { display: none !important; }
.fy-badge {
  display: inline-block; font-size: var(--fy-fs-xs);
  background: var(--fy-primary); color: #fff;
  border-radius: var(--fy-radius-pill); padding: 2px 10px;
}
.fy-badge--accent { background: var(--fy-accent); }
.fy-badge--line { background: transparent; color: var(--fy-primary); border: 1px solid var(--fy-primary); }

/* 面包屑（子页用） */
.fy-crumb { background: var(--fy-bg-light); padding: 16px 0; font-size: var(--fy-fs-sm); color: var(--fy-text-3); }
.fy-crumb a:hover { color: var(--fy-primary); }
.fy-crumb span { margin: 0 8px; color: var(--fy-text-4); }

/* 子页头图 */
.fy-pagehead {
  background: linear-gradient(135deg, #0f4c9e, #1d6fe0);
  color: #fff; padding: 56px 0;
}
/**
 * ★ 分类配图位（PM 2026-11-06 追加单）：三张 1200×800 的分类图（安全 / 证书 / 企业）
 *   用法：给任意 `.fy-pagehead` 再加一个 `fy-pagehead--safety | --cert | --corp` 类。
 *   图上压一层深海蓝半透明遮罩 ⇒ 白字对比度仍 ≥4.5:1；**换图只换 assets/img/cat-*.jpg 同名文件**。
 */
.fy-pagehead--safety,
.fy-pagehead--cert,
.fy-pagehead--corp {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.fy-pagehead--safety {
  background-image:
    linear-gradient(120deg, rgba(15, 76, 158, .94), rgba(29, 111, 224, .78)),
    url(../img/cat-safety.jpg);
}
.fy-pagehead--cert {
  background-image:
    linear-gradient(120deg, rgba(15, 76, 158, .94), rgba(29, 111, 224, .78)),
    url(../img/cat-cert.jpg);
}
.fy-pagehead--corp {
  background-image:
    linear-gradient(120deg, rgba(15, 76, 158, .94), rgba(29, 111, 224, .78)),
    url(../img/cat-corp.jpg);
}
.fy-pagehead h1 { font-size: var(--fy-fs-h2); font-weight: 700; }
.fy-pagehead p { margin-top: 10px; opacity: .92; max-width: 720px; }

/**
 * ★ 团队占位头像位（teacher-1/2/3.jpg，512×512）
 *   用法：`<div class="fy-team"><img class="fy-team__ava" src="assets/img/teacher-1.jpg" alt="">…</div>`
 *   ⛔ 现在放的是几何占位图（不是真人）；老板给真图后用同名文件覆盖即可。
 */
.fy-team {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.fy-team__ava {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 2px 10px rgba(15, 76, 158, .18);
}

/* 滚动进入动画（由 site.js 加 .is-in） */
.fy-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.fy-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fy-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 表格（版本对比 / 更新日志用） */
.fy-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--fy-radius-lg); overflow: hidden; }
.fy-table th, .fy-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--fy-line); font-size: var(--fy-fs-sm); }
.fy-table th { background: var(--fy-bg-light); font-weight: 600; color: var(--fy-text); }
.fy-table tr:last-child td { border-bottom: 0; }
.fy-table td:first-child { color: var(--fy-text-2); }
.fy-table .fy-yes { color: var(--fy-primary); font-weight: 700; }
.fy-table .fy-no { color: var(--fy-text-4); }

/* 版本记录 */
.fy-log { border-left: 2px solid var(--fy-line); padding-left: 22px; display: flex; flex-direction: column; gap: 28px; }
.fy-log__item { position: relative; }
.fy-log__item::before {
  content: ''; position: absolute; left: -29px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--fy-primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--fy-primary-bg);
}
.fy-log__v { font-size: 18px; font-weight: 700; }
.fy-log__d { font-size: var(--fy-fs-xs); color: var(--fy-text-3); margin-left: 10px; font-weight: 400; }
.fy-log__ul { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.fy-log__ul li { font-size: var(--fy-fs-sm); color: var(--fy-text-2); }

/* 问答折叠 */
.fy-faq { border: 1px solid var(--fy-line); border-radius: var(--fy-radius-lg); background: #fff; overflow: hidden; }
.fy-faq__q {
  width: 100%; text-align: left; padding: 18px 20px;
  font-size: var(--fy-fs-body); font-weight: 500;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.fy-faq__q::after { content: '+'; color: var(--fy-primary); font-size: 20px; font-weight: 700; }
.fy-faq__item.is-open .fy-faq__q::after { content: '−'; }
.fy-faq__a { display: none; padding: 0 20px 18px; color: var(--fy-text-2); font-size: var(--fy-fs-sm); line-height: 1.8; }
.fy-faq__item.is-open .fy-faq__a { display: block; }
.fy-faq__item + .fy-faq__item { border-top: 1px solid var(--fy-line); }

/* 提交/联系卡 */
.fy-cta {
  background: linear-gradient(135deg, #0369A1, #0891B2);
  border-radius: var(--fy-radius-lg); color: #fff;
  padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.fy-cta h3 { font-size: 26px; font-weight: 700; }
.fy-cta p { opacity: .92; margin-top: 8px; }

/* ───────────────────────── 13.5 子页通用组件 ───────────────────────── */

/* 白底数字卡（区别于红块里的 .fy-stat） */
.fy-metric {
  background: #fff; border: 1px solid var(--fy-line);
  border-radius: var(--fy-radius-lg); padding: 22px 16px; text-align: center;
}
.fy-metric__n { font-size: 30px; font-weight: 700; color: var(--fy-primary); line-height: 1.2; }
.fy-metric__l { font-size: var(--fy-fs-sm); color: var(--fy-text-2); margin-top: 6px; }

/* 编号步骤 */
.fy-steps { display: grid; gap: 20px; }
.fy-step { position: relative; padding-left: 56px; }
.fy-step__n {
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--fy-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.fy-step__t { font-size: 18px; font-weight: 600; }
.fy-step__d { color: var(--fy-text-2); font-size: var(--fy-fs-sm); margin-top: 6px; }

/* 带勾的要点列表 */
.fy-usp { display: grid; gap: 10px; }
.fy-usp li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fy-fs-sm); color: var(--fy-text-2); }
.fy-usp li::before { content: '✓'; color: var(--fy-primary); font-weight: 700; flex: none; }

/* 双列要点（两栏勾选） */
.fy-usp--2 { grid-template-columns: 1fr 1fr; }

/* 侧边锚点导航（子页长内容用） */
.fy-anchor {
  position: sticky; top: calc(var(--fy-nav-h) + 16px);
  background: #fff; border: 1px solid var(--fy-line);
  border-radius: var(--fy-radius-lg); padding: 16px;
}
.fy-anchor a { display: block; padding: 8px 10px; border-radius: var(--fy-radius); font-size: var(--fy-fs-sm); color: var(--fy-text-2); }
.fy-anchor a:hover, .fy-anchor a.is-active { background: var(--fy-primary-bg); color: var(--fy-primary); }
.fy-with-anchor { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }

/* 图文卡（合作模式等） */
.fy-media-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.fy-media-card__side {
  background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
  display: flex; align-items: center; justify-content: center; min-height: 180px;
}
.fy-media-card__body { padding: 26px 28px; }

@media (max-width: 1100px) {
  .fy-with-anchor { grid-template-columns: 1fr; }
  .fy-anchor { position: static; display: flex; gap: 8px; flex-wrap: wrap; }
  .fy-media-card { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .fy-usp--2 { grid-template-columns: 1fr; }
}

/* 锚点跳转时不要被 sticky 导航遮住标题
   【为什么必须全局加】`.fy-nav` 是 position:sticky 且高 64px，浏览器把锚点滚到视口顶部时，
   标题会被红色导航条盖住。子代理在 product/partner/about 三页各自加了内联
   `style="scroll-margin-top:84px"`（共 25 处）—— 那是"逐页打补丁"，help.html#faq、
   changelog.html#w16、solution.html#finance 这些锚点仍会被遮。
   在 CSS 里对 `[id]` 统一加一次，全站生效，且新页面自动受益。 */
[id] { scroll-margin-top: calc(var(--fy-nav-h) + 20px); }

/* 表格横向滚动容器（由 site.js 自动包在 .fy-table 外层）
   【为什么用 JS 包一层】13 列的版本对照表在 390 宽下无论如何都放不下，
   正确做法是"表格自己横向滚动"，而不是把整页撑宽（会把导航/页脚都带歪）。
   包容器比让 8 个页面各自手写 wrapper 更不容易漏。 */
.fy-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fy-table-scroll .fy-table { min-width: 100%; }

/* ───────────────────────── 14. 响应式 ───────────────────────── */
/* ── 导航宽度预算：加「开放平台」入口后的实测补丁（2026-10-09） ─────────────────
   【为什么必须补】改前用本机 Edge/CDP 逐宽度实测（读数见 tmp/portal-open-layout-before.json）：
     · 1280 宽：导航行**刚好用满**（scrollWidth 1265 == clientWidth 1265，余量 0）；
     · 821~1264 宽：本来就横向溢出（行最小宽 > 视口）；
     · 1366 / 1440 / 1600：**占位电话**「【待填】客服电话」把行撑到 1541 ⇒ 溢出 190 / 153 / 73。
   这次菜单里多一个 4 字条目 = **+94px** ⇒ 实测 1280 也溢出 89px（页头「免费试用」被推出视口，
   截图 tmp/portal-open-after-1280.png）⇒ ⛔ 不能就这么发。
   【修法】沿用本文件既有顺序「先砍装饰、再砍动作，最后才动菜单」，只动**内边距与可见性**：
     ① 菜单项左右内边距 15 → 9（8 个普通条目共省 96px）；两个 CTA 的内边距 14 → 12、外边距 4 → 3（再省 20px）；
        ★ 为什么是 9 而不是 10：实测 10px 时 900/1024/1180 三个宽度仍比改动前各**多 2px** 溢出
          （342→344 / 218→220 / 62→64 —— 都在 821~1228 这段"改动前就溢出"的区间里）；
          收到 9px 后这段也**不再变差**（逐宽度读数见 tmp/portal-open-layout-after6.json）。
     ② 占位电话「【待填】客服电话」**全宽度隐藏** —— 本文件第 157~161 行早就记过它"比真实电话长得多、
        把 flex 空间吃掉、把菜单中文逐字截断"；而且它在 **1281 以上任何宽度都把行撑爆**
        （1600 实测溢出 73px，**是改动前就有的老问题**）。
        ★ 这是**可逆的一行**：等真实客服电话填进 `.fy-nav__tel` 且长度可控后，删掉本行即可恢复显示。
   ⛔ 不改字号、不改配色、不引入任何框架；改后逐宽度复测读数见 tmp/portal-open-layout-after.json。 */
.fy-menu > li > a { padding: 0 9px; }
.fy-menu > li > a.fy-menu__cta { padding: 0 12px; margin: 0 3px; }
.fy-nav__tel { display: none; }
/* ── R-55：菜单里又多了第 11 项「合作机构」（4 字 ⇒ +82px）⇒ 复现上面记过的**同一个坑** ──────
   实测（本机 Edge/CDP 逐宽度；改前 = `tmp/R55-baseline/index.html` 副本，读数见
   `tmp/R57-portal-orgs-verify.json` 的 `overflow` 段）：
     · **改前**（10 项）：导航行最小宽 **1213** ⇒ 1280 视口 doc=1265（余量 15px）、1366 ⇒ 1351（OK）；
     · **加一项后**（11 项）：导航行最小宽 **1295** ⇒ **1280 溢出 48px、1366 溢出 5px**
       （页头右侧的「免费试用」被推出视口 —— 正是本文件第 157~161 行与第 654~670 行记过的那种坏法）。
   【修法】仍按本文件既有顺序「先砍装饰、再砍动作，最后才动菜单」，本轮只动**内边距**：
     普通菜单项 9 → 6（9 个普通项 × 左右各 3px = 省 54px）；★ 两个 CTA 不动
     （它们是胶囊按钮，12px 内边距是外形的一部分，再收会变形）。
   ⛔ 不改字号、不改配色、⛔ 不隐藏任何条目；改后逐宽度复测：溢出宽度集合与改前**一致**（见判据 R55 附②）。 */
.fy-menu > li > a { padding: 0 6px; }
/* ② 右侧的**次要动作**「立即咨询」在需要让位的宽度上收起（本文件既有顺序的第二档「再砍动作」）。
   实测（判据 R55 附② 的逐宽度读数，821→1600 每 10px 一个采样点）：
     · 只做 ①（内边距 9→6）时，11 项的行最小宽仍是 1241 ⇒ 视口 1171~1261 这一段**改前不溢出、改后溢出**
       （正是"加一项就必然多一项宽"的那部分，靠内边距补不回来）；
     · 收起「立即咨询」约省 102px ⇒ 这一段的行最小宽 ≤ 改前 ⇒ ★ 不再多出任何溢出宽度。
   ★ 与 ≤820px 那条既有规则**同一个理由、同一个手法**（那条原文：窄屏只保留一个主 CTA + 汉堡；
     「立即咨询」在首页首屏、页脚「联系我们」、help.html#contact 里都仍有入口）。
   ★ 为什么阈值是 1400：1366（笔记本最常见）与 1280 都在需要让位的区间里；
     ≥1401 时行放得下，⛔ 不动它。 */
@media (max-width: 1400px) {
  .fy-nav__actions .fy-btn--line-white { display: none; }
}
/* ③ logo 副标「企业培训云平台」的隐藏阈值 1280 → 1440 → **1460**：它只在 1281~1440 这一段露头，
   而这一段正是**笔记本最常见的宽度（1366/1440）**；实测 1366 残余溢出 44px（改动前 190px），
   把副标一起收掉后逐宽度复测为 0。★ ≥1441 时（实测 1600）副标照常显示、也不溢出。
   ★ R-55：菜单变成 11 项后，**1441~1460** 这一段副标一露头就多 19px ⇒ 11 项的行刚好差 4px（实测
     doc=1445 > 1441）⇒ 阈值再抬 20px 到 1460（1441~1460 继续收着副标，≥1461 照常显示，实测不溢出）。 */
@media (max-width: 1460px) {
  .fy-logo__sub { display: none; }
}

/* 导航空间不够时**先砍装饰、再砍动作，最后才动菜单** —— 顺序不能反 */
@media (max-width: 1280px) {
  .fy-logo__sub { display: none; }
  .fy-nav__tel { display: none; }
}
@media (max-width: 1100px) {
  /* ★ 2026-12 通栏改版后首屏不再是两栏 ⇒ 原来那条 `.fy-hero__inner { grid-template-columns: 1fr }`
     已无意义（.fy-hero__inner 现在是 flex），本条随之删除。 */
  .fy-hero__art { min-height: 300px; }
  .fy-trial { grid-template-columns: repeat(2, 1fr); }
  .fy-footer__top { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .fy-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .fy-clients__grid { grid-template-columns: repeat(3, 1fr); }
  .fy-logos { grid-template-columns: repeat(4, 1fr); }
  .fy-grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  :root { --fy-fs-hero: 30px; --fy-fs-h2: 24px; --fy-nav-h: 56px; }
  .fy-section { padding: 48px 0; }
  .fy-head { margin-bottom: 28px; }
  /* 【390 宽导航横向溢出 —— 子代理实测 scrollWidth=536 > 390】
     预算（390px）：logo 约 122 + 免费试用 88 + 汉堡 40 + 间距 ≈ 270；再加一个「立即咨询」就 448 必溢出。
     所以窄屏**只保留一个主 CTA（免费试用）+ 汉堡**，「立即咨询」收进展开后的菜单里（菜单最后一项是"帮助中心"，
     里面有"立即咨询"入口；首页首屏也有「立即咨询」大按钮）。
     这里只作用于导航内的按钮（`.fy-nav__actions`），不影响首屏那两个按钮。 */
  .fy-nav__actions .fy-btn--line-white { display: none; }
  .fy-nav__actions .fy-btn--white { height: 34px; padding: 0 12px; font-size: var(--fy-fs-sm); }
  /* ★ 2026-12：右侧按钮改成 [登录 / 管理后台]（.fy-btn--ghost）+ [免费试用]（.fy-btn--primary）后，
     390 宽实测横向溢出 85px（汉堡被推出视口）。按上面那条既有的"窄屏只留一个主 CTA + 汉堡"口径，
     这里把次要的「登录 / 管理后台」收起 —— 它没有丢：汉堡菜单展开后
     「服务与支持」/「产品」两个面板里都有它（判据 n2 就是逐条盯这个的）。 */
  .fy-nav__actions .fy-btn--ghost { display: none; }
  .fy-nav__actions .fy-btn--primary { height: 34px; padding: 0 12px; font-size: var(--fy-fs-sm); }
  .fy-logo__mark { width: 30px; height: 30px; }
  .fy-logo__text { font-size: 17px; }
  .fy-menu { display: none; position: absolute; top: var(--fy-nav-h); left: 0; right: 0; background: #FFFFFF; flex-direction: column; align-items: stretch; padding: 8px 0; box-shadow: var(--fy-shadow-hover); }
  .fy-menu.is-open { display: flex; }
  .fy-menu > li > a { height: 48px; line-height: 48px; padding: 0 24px; }
  .fy-burger { display: flex; }
  .fy-nav__tel { display: none; }
  .fy-split { grid-template-columns: 1fr; gap: 28px; }
  .fy-split--rev .fy-split__media { order: 0; }
  .fy-grid--2, .fy-grid--3, .fy-grid--4, .fy-grid--5 { grid-template-columns: 1fr 1fr; }
  .fy-news { grid-template-columns: 1fr; }
  .fy-tabs { flex-wrap: wrap; }
  .fy-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .fy-logos { grid-template-columns: repeat(2, 1fr); }
  .fy-footer__top { grid-template-columns: 1fr 1fr; }
  .fy-cta { padding: 26px; }
  .fy-trial { grid-template-columns: 1fr; margin-top: 0; }
  /* 导航里的两个 CTA（申请入驻 / 登录·管理后台）在窄屏随汉堡菜单**整行展开**：
     菜单已经是 `flex-direction: column`，这里只把"胶囊"还原成整行条目，
     免得 34px 高的胶囊在 48px 行的菜单里看起来像没对齐。
     ⚠️ 本规则必须写在上面那条 `.fy-menu > li > a`（窄屏 height:48px）**之后**：
       媒体查询不增加优先级，两条选择器优先级又相同 ⇒ **靠顺序生效**。 */
  .fy-menu > li > a.fy-menu__cta {
    height: 48px;
    line-height: 48px;
    padding: 0 24px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, .18);
    font-weight: 600;
  }
  .fy-menu > li > a.fy-menu__cta--login {
    background: #fff;
    color: var(--fy-primary);
    font-weight: 700;
  }
}
@media (max-width: 520px) {
  .fy-grid--2, .fy-grid--3, .fy-grid--4, .fy-grid--5 { grid-template-columns: 1fr; }
  .fy-clients__grid { grid-template-columns: repeat(2, 1fr); }
  .fy-hero { padding: 40px 0 36px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * 15. 入驻申请页（join.html）—— 追加于 Wave18
 *
 * 【为什么这一次必须往 CSS 里加，而不是"只用已有 class"】
 *   本站既有表单样式是给首页那张"一行 4 格"的试用表单用的（`.fy-trial` 是固定 5 列网格）。
 *   入驻申请是**9 个字段的长表单**，还需要单选组、文件上传、多行文本、字数计数、审核状态展示
 *   这 5 类本站从来没有过的控件 —— 不改 CSS 就只能全部写成内联 style（更糟，且颜色会散落在 HTML 里）。
 *
 * 【纪律照旧】
 *   - 颜色只取 :root 令牌（含既有 .fy-tag--accent 用过的 --fy-accent + #fff6e8 组合），不引入新色相；
 *     校验提示的红用 --fy-primary，与首页试用表单 `.fy-field--err` 完全一致；
 *   - 圆角/字号/阴影一律走令牌；
 *   - 作用域全部挂在 `.fy-form` / `.fy-file` / `.fy-radio` / `.fy-kv` 这些**新页面独有的类**上，
 *     不改动任何既有选择器 —— 所以 index/product/help 等 8 个老页面的渲染结果一个像素都不会变。
 * ═════════════════════════════════════════════════════════════════════════ */

/* 表单主体：左侧表单 + 右侧「提交前请确认」栏 */
.fy-join { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }

/* 【为什么是单列，不是 1fr 1fr 的两列】
   第一版给 `.fy-form` 用了 `grid-template-columns: 1fr 1fr`，在 1440 宽下每列只有 **319px**，
   于是「企业 / 机构名称」「统一社会信用代码」这类标签被挤成**竖排一个字一行**（肉眼在
   `_edu_out/portal-join/desktop-validation.png` 里抓到的，脚本判据全绿 —— 又是"只有眼睛能看见"的那类问题）。
   入驻表单一共 9 个字段、标签都是长中文，本来就该单列表单；列宽 760（查询表单）/ 860（申请表单）足够，
   无需再分列。`--full` 类保留（html 里还在用，等于"独占一行"，单列下无副作用）。 */
.fy-form { display: grid; grid-template-columns: 1fr; gap: 0; }
.fy-form--narrow { max-width: 760px; }
.fy-form--wide { max-width: 860px; }

/* 字段：比首页 `.fy-field` 多一行说明的余地（提示最多两行，避免提交时整页跳动） */
.fy-form .fy-field { margin-bottom: 4px; }
.fy-form .fy-field label { font-size: var(--fy-fs-sm); color: var(--fy-text-2); }
.fy-form .fy-field input,
.fy-form .fy-field select,
.fy-form .fy-field textarea {
  height: 44px; padding: 0 12px;
  border: 1px solid var(--fy-line); border-radius: var(--fy-radius);
  font-size: var(--fy-fs-sm); background: #fff; outline: none;
  transition: border-color .2s;
  width: 100%;
}
.fy-form .fy-field textarea { height: auto; min-height: 112px; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.fy-form .fy-field input:focus,
.fy-form .fy-field textarea:focus { border-color: var(--fy-primary); }
.fy-form .fy-field--err input,
.fy-form .fy-field--err textarea { border-color: var(--fy-primary); }
.fy-form .fy-field__msg { min-height: 16px; }
.fy-form .fy-field--err .fy-field__msg { min-height: 30px; }
/* 「提交前请确认」是"已经提交成功"的提示色（绿系）：深色令牌 --fy-dark 做文字，
   浅底沿用 .fy-tag--accent 已验证过的 #fff6e8 —— 不新增色相，探针仍然全绿 */
.fy-form .fy-field__msg.is-ok { color: var(--fy-dark); background: #fff6e8; border-radius: var(--fy-radius); padding: 10px 12px; }
.fy-form .fy-field__msg.is-ok b { color: var(--fy-primary); }

/* 撑满整行的字段：简介 / 资质 / 提交按钮 / 结果框 */
.fy-form .fy-field--full { grid-column: 1 / -1; }

/* 单选组（申请类型）—— 用圆角描边卡，不做颜色填充 */
.fy-form fieldset.fy-field { border: 0; padding: 0; }
.fy-form legend { font-size: var(--fy-fs-sm); color: var(--fy-text-2); padding: 0; margin-bottom: 8px; }
.fy-radio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fy-radio__item {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--fy-line); border-radius: var(--fy-radius);
  padding: 12px 14px; cursor: pointer; transition: border-color .2s;
}
.fy-radio__item:hover { border-color: var(--fy-primary); }
/* 【必须写到 .fy-form .fy-radio__item input 这么长】上面 `.fy-form .fy-field input` 的特异度是 (0,2,1)，
   只写 `.fy-radio__item input` 是 (0,1,1) —— 会被它压过去，单选圆点被撑成 **293px 宽的大方块**，
   卡片文字被挤成"一个字一行"（截图 `desktop-submit-ok.png` 里肉眼看到的那两根竖排文字条就是这个）。
   本项目又一次印证：**特异度压过 = 版式塌**，而且脚本判据全绿。 */
.fy-form .fy-radio__item input { width: 16px; height: 16px; min-width: 16px; padding: 0; margin: 3px 0 0; border: 0; accent-color: var(--fy-primary); flex: none; }
.fy-radio__d { color: var(--fy-text-3); font-size: var(--fy-fs-xs); line-height: 1.6; }
.fy-radio__item:has(input:checked) { border-color: var(--fy-primary); background: var(--fy-primary-bg); }

/* 文件上传：原生 input[type=file] 在 Windows 上既丑又窄，这里只改描边与内边距 */
.fy-file {
  height: auto; padding: 10px 12px;
  border: 1px dashed var(--fy-line); border-radius: var(--fy-radius);
  font-size: var(--fy-fs-sm); background: var(--fy-bg-gray); width: 100%;
}
.fy-file__row { margin-top: 8px; font-size: var(--fy-fs-xs); color: var(--fy-text-3); line-height: 1.7; word-break: break-all; }
.fy-file__row img { max-height: 96px; border: 1px solid var(--fy-line); border-radius: var(--fy-radius); display: block; }
.fy-file__row a { color: var(--fy-primary); }

/* 必填星号 / 字数计数 */
.fy-req { color: var(--fy-primary); }
.fy-count { float: right; color: var(--fy-text-3); font-size: var(--fy-fs-xs); font-weight: 400; }

/* 提交那一行：按钮 + 结果提示并排（窄屏自动换行） */
.fy-form .fy-field--submit { flex-direction: row; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.fy-form .fy-field--submit .fy-field__msg { flex: 1 1 300px; min-height: 16px; }

/* 审核结果键值表（进度查询用） */
.fy-kv { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--fy-line); font-size: var(--fy-fs-sm); }
.fy-kv:last-child { border-bottom: 0; }
.fy-kv > span { color: var(--fy-text-3); flex: none; width: 96px; }
.fy-kv > b { font-weight: 500; word-break: break-all; }

@media (max-width: 1100px) {
  .fy-join { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .fy-radio { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * 16. 合作培训机构 + 学员端入口（全站页脚上方那一条；与「开放平台」入口同批）
 *
 * 【数据源 = 机构档案公开接口】`GET /admin-api/edu/org-portal/public/orgs`（免登录、同源），
 *   取数与渲染的落点是 `assets/js/portal-orgs.js`：机构在「机构档案管理」里改完名字/简介/LOGO，
 *   刷新官网即变 —— ⛔ 不需要重发官网、⛔ 不需要改 HTML。11 个页面共用同一段标记
 *   （`[data-fy-orgs="home"]` 容器是空的，由 JS 填）；第 12 个页面 `orgs.html` 用 `[data-fy-orgs="all"]`。
 * 【★★ R-55：最多 4 家 + 全量页 + ⛔ 取消硬编码兜底】（留痕：2026-10-09 R-55 包）
 *   · 官网（首页/内页）那一块 = **最多 4 家**：总数 ≤4 ⇒ 有多少展示多少；>4 ⇒ **随机 4 家**
 *     ⇒ 请求带 `?limit=4&shuffle=1`（后端并行加的入参；前端按契约发参，⛔ 前端**不做**客户端截断/洗牌，
 *     否则"后端到底有没有真的限制/洗牌"会被掩盖掉）。
 *   · `orgs.html`（第 12 页）= **全量**（不带 limit/shuffle），卡片渲染**复用同一个** `renderOrgCard()`。
 *   · **接口失败/超时 ⇒ 明确失败提示「机构列表暂时加载失败，请稍后重试」**（0 张卡、★ 一个机构名都不出现、
 *     ★ 不空白）；接口成功返回空数组 ⇒ 「暂无可展示的合作培训机构」。
 *     ★ 旧口径"接口挂/超时 ⇒ 顶上 `FALLBACK_ORGS`（1 家星火）"已**取消** —— 老板原话「这些是真实的数据」，
 *       拿硬编码清单当展示数据正是"不是真实的数据"。那份清单已移到 `assets/js/portal-orgs.fixture.js`
 *       （★ 仅供本地自测 / ⛔ 不进展示路径 / ⛔ 没有任何页面加载它）。
 *   · 本块本轮新增的 CSS 只有一条 `.fy-orgs__more`（「更多合作机构 →」那一行），链文本体复用既有 `.fy-card__link`。
 * 【⛔ 只渲染接口给的 4 个字段】展示名 / LOGO URL / 简介 / 入口码；
 *   tenantId、内部主键、报名人数等内部字段**一律不进 DOM**（即使接口误传）。
 * 【⛔ 不编造机构信息】LOGO/简介为空 ⇒ 卡片显示"待机构提供"占位（见 JS），
 *   而不是我替机构写简介、也不是拿别的图顶上。
 * 【★ 旧结论已作废】本注释曾写「机构门户公开接口 `/admin-api/org-portal/public/site?code=xinghuo`
 *   实测回 **401 账号未登录** ⇒ 没有可复用的 logo/名称来源」——**这条是错的**（URL 少一段 `/edu`；
 *   且 `xinghuo` 是**入口码**、不是**招生门户码**）⇒ 已作废，正确口径见上。
 * 【样式纪律】全部落在 `.fy-orgs*` / `.fy-org-card*` 这些**本批新引入的类**上，
 *   复用既有令牌与 `.fy-card` / `.fy-grid--3` / `.fy-field` / `.fy-btn--primary`，
 *   ⛔ 不改动任何既有选择器 ⇒ 既有区块渲染一个像素不变。
 * 【R-57 每张卡两个入口】卡 = `<div class="fy-card fy-org-card">`（⛔ 不再是整卡 `<a>`：两个 `<a>`
 *   不允许套在外层 `<a>` 里，浏览器会拆标签）；卡内 `.fy-org-card__links` 放两个链接：
 *   学员端（主，沿用既有 `.fy-card__link` 原色）与 管理端（次，`.fy-org-card__link--org` 灰一档）。
 *   URL 一律由 js 的两个常量 `learnBase='/learn/'` / `orgBase='/org/'` 产出，⛔ HTML/CSS 里不写死。
 * 【R-57 机构码兜底入口】原「学员端入口」独立一块已**并入本区块底部**：`.fy-orgs__fallback`（一行文字）
 *   + 默认收着的 `.fy-orgs__enter`（带 `hidden` ⇒ 走浏览器 UA 的 `[hidden] { display: none }`，
 *   本文件⛔ 不覆盖它的 display）。★ 保留理由：没开展示的机构不在卡片列表里 ⇒ 删了它那家就再也进不去。
 * ═════════════════════════════════════════════════════════════════════════ */
.fy-orgs__grid { margin-bottom: 30px; }

/* ── R-68：合作机构卡片 = **一行 4 张**（1440 视口恰好 4 张/行）＋ 窄屏自动少放 ─────────────
   （留痕：2026-10-10 R-68 包。工单：1440 视口宽**恰好 4 张/行**；<4 家**不撑空位**；
     窄屏自动少放，⛔ 不能出现横向滚动条/内容溢出。改前读数见 `tmp/r6869/before.txt`：
     12 个页面这一块都是 `class="fy-grid fy-grid--3 fy-orgs__grid"` ⇒ 1440 视口实测
     **每行 3 张**（4 家 = [3,1]、8 家 = [3,3,2]）。）
   【为什么要给这一块**自己一套列定义**，而不是继续挂 `fy-grid--3`】
     · `.fy-grid--3` 在 ≤820px / ≤520px 的全局媒体查询（本文件 §14）里会被改成 2 列 / 1 列；
       那是**另一处规则**，优先级与本段新增的 `.fy-orgs__grid` **完全相同（都是 (0,1,0)）**
       ⇒ 谁在文件里靠后谁生效 —— 这种"靠顺序"的覆盖，只要日后有人搬动规则，窄屏就会变成 4 列
       ⇒ 直接横向溢出。所以本块**自己的列数自己给全**（4 / 3 / 2 / 1 四档），
       并且 12 个页面的 HTML 上把 `fy-grid--3` **去掉**（⛔ 让"3"这个数字不再出现在合作机构这一块，
       免得有人照着类名把它改回 3 列）。
   【<4 家不撑空位】列数是**固定** `repeat(4, 1fr)`（⛔ 不是 `auto-fit` / `minmax`）：
     3 家 ⇒ 只渲染 3 张卡、第 4 格**空着**，卡片**不会**被拉宽去填满那一行
     （判据 R-68-D 三个口径：①与 4 家实测卡宽逐像素相同 ②等于区块几何算出的 4 列宽
       ③3 张左对齐、最右卡离 grid 右沿还差 1 格）。
   【响应式契约（判据 R-68-E 逐宽度实测 1440/1280/1101/1100/1024/900/861/860/768/600/521/520/414/375）】
     width > 1100 ⇒ 4 列；861~1100 ⇒ 3 列；521~860 ⇒ 2 列；≤520 ⇒ 1 列；⛔ 任何宽度都不许横向溢出。
     ⚠️ 断点 1100 / 860 / 520 的**理由**：与 §14 既有响应式节奏对齐（本文件既有网格在 1100 / 820 / 520
     收档）——本块只是把"4 列"这一档插到最前面。第三档取 **860** 而不是 820：这一块的卡片比普通
     `.fy-card` 多一行链接，820 宽时 3 列每张只剩约 244px，链接行与 16:9 图都开始挤 ⇒ 提前一档收成 2 列。
   ⚠️ 与本改动**无关**的既有问题（如实记录，本轮⛔ 不动它）：导航行最小宽 ≈1137px，
     ⇒ 视口 **821~1136** 区间官网本来就横向溢出（改前改后**完全相同**：逐宽度读数的
     `doc=基线doc=1137`，见 `tmp/r6869/after.txt` 的 R-68-E 段）。 */
.fy-orgs__grid { grid-template-columns: repeat(4, 1fr); }
/* 卡片是网格项：⛔ 不写 `min-width: 0` 的话，卡内链接行的 min-content 会把轨道顶宽 ⇒ 窄屏溢出。
   ★ R-69：整卡可点 ⇒ 光标给手型；键盘走到卡片上（tabindex=0）给可见焦点环。 */
.fy-orgs__grid .fy-org-card { min-width: 0; cursor: pointer; }
.fy-orgs__grid .fy-org-card:focus-visible { outline: 2px solid var(--fy-primary); outline-offset: 2px; }
@media (max-width: 1100px) { .fy-orgs__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .fy-orgs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fy-orgs__grid { grid-template-columns: 1fr; } }
.fy-org-card__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: auto; padding-top: 14px; }
.fy-org-card__links .fy-card__link { margin-top: 0; }
.fy-org-card__link--org { color: var(--fy-text-3); font-weight: 400; }
.fy-org-card__link--org:hover { color: var(--fy-primary); }
.fy-orgs__fallback { margin-top: 2px; }
/* ★ R-55 新增：首页/内页那一块里「更多合作机构 →」（指向第 12 页 orgs.html）。
   链文本体复用既有 `.fy-card__link`（primary 色 + 悬停箭头位移）⇒ 这里只管间距。 */
.fy-orgs__more { margin: 0 0 20px; }
.fy-orgs__fallback-toggle {
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; text-align: left;
  color: var(--fy-text-3); font-size: var(--fy-fs-sm);
}
.fy-orgs__fallback-toggle b { color: var(--fy-primary); font-weight: 500; }
.fy-orgs__fallback-toggle:hover b { text-decoration: underline; }
.fy-orgs__fallback .fy-orgs__enter { margin-top: 12px; }
.fy-org-card { display: flex; flex-direction: column; }
.fy-org-card__media {
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--fy-line);
  border-radius: var(--fy-radius);
  background: var(--fy-bg-gray);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8px; margin-bottom: 14px; overflow: hidden;
  color: var(--fy-text-3); font-size: var(--fy-fs-xs); line-height: 1.6;
}
.fy-org-card__media img { width: 100%; height: 100%; object-fit: contain; }
.fy-org-card__t { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.fy-org-card__d { color: var(--fy-text-2); font-size: var(--fy-fs-sm); line-height: 1.7; }
.fy-orgs__pending { color: var(--fy-text-4); }

.fy-orgs__enter {
  background: #fff; border: 1px solid var(--fy-line); border-radius: var(--fy-radius-lg);
  padding: 22px 24px; box-shadow: var(--fy-shadow); max-width: 620px;
}
.fy-orgs__enter h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.fy-orgs__enter > p { color: var(--fy-text-3); font-size: var(--fy-fs-sm); line-height: 1.7; }
.fy-orgs__row { display: flex; align-items: flex-end; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.fy-orgs__row .fy-field { flex: 1 1 240px; min-width: 0; }
.fy-orgs__msg { font-size: var(--fy-fs-xs); color: var(--fy-primary); min-height: 18px; margin-top: 8px; }
.fy-orgs__msg.is-ok { color: var(--fy-dark); }

/* ═══════════════════════════════════════════════════════════════════════════
 * 16. 顶部导航改版：5 个一级项 + 悬停大面板（mega menu）· 2026-12
 *
 * 【老板原话】
 *   ①「官网上面的导航太挤了 …… 该合的合一下」⇒ 12 个一级项合成 **5 个**：
 *      产品 / 解决方案 / 客户案例 / 服务与支持 / 关于我们，右侧只留 2 个按钮
 *      （[登录 / 管理后台] + [免费试用]）。原 12 项里的每一个 href 都还在，
 *      只是收进了各自的大面板（二级）⇒ ⛔ 没有删掉任何一个入口。
 *   ②「你看看图二，是合并鼠标移动的效果，他们中间是一张图」⇒ 一级项 hover ⇒
 *      正下方弹**白底大面板**：左侧 3~4 列文字链接，右侧一张 16:9 的图。
 *
 * 【结构（HTML 口径，见任意 .html 页头）】
 *   <ul class="fy-menu">
 *     <li class="fy-menu__item" data-mega="product">
 *       <a class="fy-menu__link" href="product.html" aria-expanded="false" aria-controls="mega-product">产品</a>
 *       <div class="fy-mega" id="mega-product" role="region" aria-label="产品">
 *         <div class="fy-mega__cols">…列…</div>
 *         <div class="fy-mega__media"><img … onerror="this.hidden=true"></div>
 *       </div>
 *     </li>
 *   </ul>
 *
 * 【为什么面板是 li 的绝对定位子节点】`.fy-nav` 是 position:sticky ⇒ 它天然是
 *   绝对定位的包含块，面板 `top: var(--fy-nav-h); left: 50%` 就**正好贴住导航下沿**、
 *   与内容区居中对齐（宽度 min(1080px, 100vw-48px)，落在老板要的 980~1100 区间内）。
 *   ★ 面板必须**贴住**导航下沿、不能留缝，否则鼠标从一级项往面板移动时会触发 mouseleave。
 *   ★ 面板是 li 的**后代** ⇒ 鼠标在面板上时仍算 hover 在 li 里，不会误关。
 *
 * 【交互口径】hover 打开（site.js initMegaNav）、离开 **延时 150ms** 关闭（给鼠标留路）、
 *   Tab 可进入、Esc / 点击空白关闭、`prefers-reduced-motion` 不做动效、
 *   <992px 退化为**点击展开的普通列表**（不认 hover）。
 * 【无 JS 兜底】JS 起来时给 <html> 加 `.fy-js`；没加时用 `html:not(.fy-js)` 的
 *   `:hover / :focus-within` 规则兜住，保证二级入口在禁用 JS 时也可达。
 * ⛔ 没有引入任何第三方 CSS/JS，颜色沿用 :root 令牌 + 老板给的三个色值。
 * ═════════════════════════════════════════════════════════════════════════ */

/* 16.1 一级项（白底导航） */
.fy-menu > li > a.fy-menu__link {
  height: var(--fy-nav-h);
  line-height: var(--fy-nav-h);
  padding: 0 14px;
  color: #334155;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.fy-menu > li > a.fy-menu__link:hover,
.fy-menu > li > a.fy-menu__link.is-active {
  color: #1D6FE0;
  background: transparent;
  border-bottom-color: #1D6FE0;
}
.fy-menu__item.is-open > a.fy-menu__link {
  color: #1D6FE0;
  background: transparent;
  border-bottom-color: #1D6FE0;
}

/* 16.2 大面板本体（白底、贴导航下沿、与内容区居中对齐） */
.fy-mega {
  position: absolute;
  top: var(--fy-nav-h);
  left: 50%;
  width: min(1080px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  padding: 26px 28px 28px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, .14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 5;
}
.fy-menu__item.is-open > .fy-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
/* 无 JS 兜底（见本节头注释）：只有 <html> 没有 .fy-js 时才生效 */
html:not(.fy-js) .fy-menu__item:hover > .fy-mega,
html:not(.fy-js) .fy-menu__item:focus-within > .fy-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* 16.3 左半边：3~4 列文字链接 */
.fy-mega__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 26px;
  align-items: start;
}
.fy-mega__cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fy-mega__t {
  font-size: var(--fy-fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  color: #6B7280;
  margin-bottom: 10px;
}
.fy-mega__list { display: flex; flex-direction: column; }
.fy-mega__list a {
  display: block;
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: var(--fy-radius);
  font-size: var(--fy-fs-sm);
  color: #334155;
  transition: background .15s ease, color .15s ease;
}
.fy-mega__list a:hover,
.fy-mega__list a:focus-visible { background: #EAF4FF; color: #1D6FE0; }

/* 16.4 右半边：一张 16:9 的图（图没到位时就是一块浅灰蓝渐变，不会出现破图） */
.fy-mega__media {
  position: relative;
  align-self: start;
  aspect-ratio: 16 / 9;
  border-radius: var(--fy-radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #F5F8FE 0%, #E8EFFB 100%);
  border: 1px solid var(--fy-line);
}
.fy-mega__media img { width: 100%; height: 100%; object-fit: cover; }
.fy-mega__media img[hidden] { display: none; }

/* 16.5 prefers-reduced-motion：不做动效（要求原文） */
@media (prefers-reduced-motion: reduce) {
  .fy-mega { transition: none; transform: translate(-50%, 0); }
  .fy-menu > li > a.fy-menu__link,
  .fy-mega__list a { transition: none; }
}

/* 16.6 <992px：mega 退化成**点击展开的普通列表**（⛔ 不认 hover） */
@media (max-width: 991px) {
  .fy-menu {
    display: none;
    position: absolute;
    top: var(--fy-nav-h);
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0 10px;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 18px 32px rgba(15, 23, 42, .12);
    max-height: calc(100vh - var(--fy-nav-h));
    overflow-y: auto;
  }
  .fy-menu.is-open { display: flex; }
  .fy-burger { display: flex; }
  .fy-menu__item { border-top: 1px solid #F1F5F9; }
  .fy-menu__item:first-child { border-top: 0; }
  .fy-menu > li > a.fy-menu__link {
    height: 50px;
    line-height: 50px;
    padding: 0 20px;
    border-bottom: 0;
  }
  .fy-menu__item.is-open > a.fy-menu__link { background: #F5F8FE; border-bottom-color: transparent; }
  /* 面板从"绝对定位的大面板"退化成"缩进列表" */
  .fy-mega {
    position: static;
    width: auto;
    display: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 4px 20px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #FFFFFF;
  }
  .fy-menu__item.is-open > .fy-mega { display: grid; transform: none; }
  .fy-mega__cols,
  .fy-mega__cols--4 { grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  /* 「普通列表」⇒ 手机端不显示那张大图（省流量，也避免面板里蹦出一块渐变） */
  .fy-mega__media { display: none; }
  /* 手机端**不接受 hover 展开**（本条被判据 n6 逐字检查）：无 JS 时也不许 hover 弹面板 */
  html:not(.fy-js) .fy-menu__item:hover > .fy-mega { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════════
 * 17. 老板真图接线（2026-12）—— 之前"留了位没接"的图，这一节把它们接上
 *   17.1 子页头「左标题 + 右图」（solution-hero.jpg）
 *   17.2 行业分类卡（cat-safety / cat-cert / cat-corp）
 *   ⚠️ 本节只加"怎么显示图"，⛔ 不新增任何图片文件、⛔ 不缩放/裁切老板的原图：
 *      尺寸不匹配的图（如 hero.jpg 2880×1200 = 12:5）由 `object-fit: cover` 在**容器里**显示，
 *      原文件一个像素都没动，详见报告 §1「清点表」。
 * ════════════════════════════════════════════════════════════════════════════ */

/**
 * 17.1 子页头「左标题 + 右图」
 *   · 底 = 白 → 极浅灰蓝渐变（与首页首屏同一套色），⛔ 不再是深海蓝底；
 *   · 右侧 <img> 由 HTML 上的 `onerror="this.hidden=true"` 兜底：图缺失 ⇒ 只剩渐变块，
 *     ⛔ 不出破图、⛔ 不自绘插画（写法与 `.fy-hero__media` 完全一致）；
 *   · 换图只换同名文件，本文件与 HTML 都不用改。
 *
 * ★★【2026-11-07 老板口径：五个导航页（产品/解决方案/客户案例/服务与支持/关于我们）
 *    的子页头**必须统一**，而且都要有图】
 *   原来只有「解决方案」是这套版式，其余四页是深蓝整块、图压成背景。
 *   ⇒ 五页全部改成这一套；容器比例也从 2.5:1 改成 **16:9**：
 *     因为五页用的是同一套素材 `mega-*.jpg`（**1920×1080 = 16:9**），
 *     按 2.5:1 裁会把这些插画的主体（占画面中间约 60% 高）裁掉（实测"产品"那张裁成了近乎空白）。
 *     ⇒ 容器与素材同比例 = 不裁主体、不变形。
 */
.fy-pagehead--media {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F8FE 100%);
  color: #0F172A;
  padding: 48px 0 56px;
}
.fy-pagehead__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.fy-pagehead--media h1 { font-size: var(--fy-fs-h2); font-weight: 700; color: #0F172A; }
.fy-pagehead--media p {
  margin-top: 12px; max-width: 560px;
  font-size: 15px; line-height: 1.8; color: #475569; opacity: 1;
}
.fy-pagehead__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--fy-radius-lg);
  /* 图缺失时露出来的就是这层浅灰蓝渐变（兜底），不是白板 */
  background: linear-gradient(135deg, #F5F8FE 0%, #EAF4FF 100%);
  border: 1px solid var(--fy-line);
  box-shadow: var(--fy-shadow-hover);
}
.fy-pagehead__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fy-pagehead__media img[hidden] { display: none; }

/**
 * 17.2 行业分类卡接三张分类图（首页 §⑥ 十张 `.fy-industry` 里的 3 张）
 *   · 图在**下层**、同色系半透明遮罩在**上层** ⇒ 卡上的白字对比度不降，
 *     十张卡仍然是同一套色块观感（不会出现"三张照片 + 七张色块"的割裂）；
 *   · 没接图的 7 张保持原样 —— 那 7 个行业没有对应主题图，⛔ 不用同一张图硬凑
 *     （凑了会让人以为图接错了），详见报告「没做到」。
 *   · 对应关系：金融保险(01)=证书 cat-cert / 生产制造(03)=安全生产 cat-safety / 政府与国企(07)=企业 cat-corp。
 */
.fy-industry--photo { background-size: cover; background-position: center; }
.fy-industry--photo.fy-industry--cert {
  background-image:
    linear-gradient(135deg, rgba(12, 17, 22, .9), rgba(8, 145, 178, .82)),
    url(../img/cat-cert.jpg);
}
.fy-industry--photo.fy-industry--safety {
  background-image:
    linear-gradient(135deg, rgba(35, 72, 58, .9), rgba(47, 143, 99, .82)),
    url(../img/cat-safety.jpg);
}
.fy-industry--photo.fy-industry--corp {
  background-image:
    linear-gradient(135deg, rgba(35, 72, 58, .9), rgba(47, 143, 99, .82)),
    url(../img/cat-corp.jpg);
}

/**
 * 深色数据块（§⑦ `.fy-stats`）也用同一张 pattern-tile.png 平铺，
 * 口径与页脚一致但**更淡**（遮罩 93% ⇒ 纹样只剩 ≈7%）：这一块是数据/文字密集区，
 * 纹样一显眼就会跟"多重保障，稳定高效"这几个字抢注意力。
 */
.fy-stats {
  background-image:
    linear-gradient(rgba(3, 105, 161, .93), rgba(8, 145, 178, .93)),
    url(../img/pattern-tile.png);
  background-repeat: repeat;
  background-size: auto, 512px 512px;
}

/* 17.3 ≤991px：子页头改回"上标题 / 下图"单列（⛔ 不许再挤出横向滚动条）
   ★ 这一条必须留在**文件末尾**：判据 n6 取的是文件里**第一个** 991px 断点，
     若把新断点插在 16.6 之前，n6 会去检查错的块（那条纪律写在 16.6 的注释里）。
   ★ 2026-12 通栏改版（老板：像 wingconn 一样拉长）：首屏在窄屏上遮罩改成**竖向「上浅下深」**
     —— 手机上文字堆在上半段，竖着一压到底才能保证白字不糊。
   ★ 2026-12 第三版（老板：「把免费申请试用表单移出 hero」）：表单搬走后首屏不再被撑到 1041px，
     窄屏高度定为 680px（`--fy-hero-h-sm`）：一屏内看得完整条通栏 + 两个按钮 + 三个 ✓。 */
@media (max-width: 991px) {
  .fy-pagehead__inner { grid-template-columns: 1fr; gap: 24px; }
  .fy-pagehead--media { padding: 36px 0 44px; }
  .fy-pagehead--media p { max-width: none; }
  .fy-hero { min-height: var(--fy-hero-h-sm); padding: 56px 0; }
  .fy-hero::after { background: linear-gradient(180deg, rgba(6, 26, 58, .55) 0%, rgba(6, 26, 58, .88) 100%); }
  .fy-hero__copy { max-width: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * 18. 右侧浮动客服 + 「立即咨询」弹窗（FE-531；老板给的是 wingconn 的三张截图）
 *
 * 【层级怎么排的（这一条最容易写错，先写清楚）】
 *   浮动条 `.fy-fc` = **fixed / z-index 60**（任务书硬性值）。
 *   顶部导航 `.fy-nav` = sticky / z-index 100；它的悬停大面板 `.fy-mega` 是导航的**子节点**、
 *   自己 z-index 5 ⇒ 实际叠在 100 这一层里。所以 60 < 100 ⇒ **浮动条永远压不住大面板**，
 *   鼠标 hover 一级项时面板完整可见（真机 1440×900 复验过，见 tmp/ui-e2e/fe531-portal-hero.mjs）。
 *   弹窗 `.fy-dlg` = **fixed / z-index 120**：它是模态框，打开时必须压住导航与浮动条
 *   （此时遮罩锁住整页，导航本来也点不到）。⛔ 除这三层外没有新增任何 z-index。
 *
 * 【交互口径（任务书表格）】
 *   立即咨询 ⇒ 点击开**居中弹窗**；电话/微信 ⇒ 桌面 hover 即开、移动端点击开，
 *   浮层挂在主条**左侧**、宽 220px。浮层内容全部由 site.js 注入（号码只在 FY_CONTACT.phone 一处）。
 *
 * 【图标纪律】三个图标都是**内联 SVG**（对话气泡 / 电话 / 微信双气泡），
 *   ⛔ 不用 emoji、⛔ 不引图标库、⛔ 不用内联 onclick。
 * ═════════════════════════════════════════════════════════════════════════ */
.fy-fc {
  position: fixed;
  right: 16px;
  bottom: 110px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fy-fc__item { position: relative; }
.fy-fc__btn {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #1D6FE0;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .18);
  transition: background .2s ease, transform .2s ease;
}
.fy-fc__btn:hover,
.fy-fc__btn:focus-visible,
.fy-fc__item.is-open .fy-fc__btn { background: #0F4C9E; }
.fy-fc__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fy-fc__ico { width: 22px; height: 22px; display: block; }
.fy-fc__label { font-size: 11px; line-height: 1; white-space: nowrap; color: #fff; }
/* 浮层：挂在主条左侧（right: 68px = 56 宽 + 12 间隙），宽 220px */
.fy-fc__panel {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}
.fy-fc__item.is-open .fy-fc__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.fy-fc__panel-t { font-size: 14px; font-weight: 600; color: #0F172A; }
.fy-fc__panel-s { margin-top: 6px; font-size: 12px; line-height: 1.6; color: #6B7280; }
.fy-fc__phone {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #1D6FE0;
}
.fy-fc__phone:hover { text-decoration: underline; }
.fy-fc__qr { display: block; width: 160px; height: 160px; margin: 10px auto 0; }

/* ★ 2026-12 第三版：窄屏收纳态（改前：三件竖排 192px 高，在 414/768 上正好压住首屏下方那张表单卡）。
   桌面（>768px）这两条不生效：圆钮 display:none、遮罩 display:none，三件照旧竖排。
   ⛔ 圆的 48×48 与 3 件里的 48×48 都只改尺寸，图标/文案/交互一个没动。 */
.fy-fc__fab {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1D6FE0;
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .22);
  transition: background .2s ease;
}
.fy-fc__fab:hover,
.fy-fc__fab:focus-visible,
.fy-fc.is-open .fy-fc__fab { background: #0F4C9E; }
.fy-fc__fab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fy-fc__fab .fy-fc__ico { width: 22px; height: 22px; }
/* 展开态遮罩：z-index:-1 ⇒ 在 .fy-fc 自己的层里垫底（浮条 60 上面那层不变），
   既能"点任意空白收起"，又不会挡住三件按钮。 */
.fy-fc__mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(6, 26, 58, .32);
}

@media (max-width: 768px) {
  /* 【为什么 bottom 不是死钉 110px】表单已经搬到 hero 之后，但固定浮条若钉在视口底部，
     在 414×896 / 768×1024 这类更高的屏上，展开态正好压在表单卡右上角（真机 rect 相交 = true）。
     ⇒ 让浮条**贴着首屏底边**：距视口底 = 100vh − 导航高 − 首屏高，再兜 110px 下限：
        375×812 → 算得 76 ⇒ 取 110；414×896 → 160；768×1024 → 288。
     真机读数（判据 f12 + 报告）：三种宽度下收纳态与展开态都与「表单卡 / 首屏按钮 / 输入框」不相交。 */
  .fy-fc {
    align-items: flex-end;
    gap: 10px;
    bottom: max(110px, calc(100vh - var(--fy-nav-h) - var(--fy-hero-h-sm)));
  }
  .fy-fc__fab { display: flex; }
  .fy-fc .fy-fc__item { display: none; }
  .fy-fc.is-open .fy-fc__item { display: block; }
  .fy-fc.is-open .fy-fc__mask { display: block; }
  .fy-fc__btn { width: 48px; height: 48px; }
  .fy-fc__ico { width: 20px; height: 20px; }
  .fy-fc__panel { right: 58px; }
}

/* 打开弹窗时锁滚动（JS 给 <body> 加 .fy-no-scroll） */
body.fy-no-scroll { overflow: hidden; }

/* 弹窗：居中、遮罩、白色卡片 */
.fy-dlg { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.fy-dlg[hidden] { display: none; }
.fy-dlg__mask { position: absolute; inset: 0; background: rgba(6, 26, 58, .62); }
.fy-dlg__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 26px 28px 28px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
.fy-dlg__x {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
}
.fy-dlg__x:hover { background: #F1F5F9; color: #0F172A; }
.fy-dlg__t { font-size: 20px; font-weight: 700; color: #0F172A; }
.fy-dlg__sub { margin-top: 6px; font-size: 13px; color: #6B7280; }
.fy-dlg__form { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
/* 同一行两栏（输入框 + 右侧验证码块 / 短信按钮），窄屏自动换成上下 */
.fy-dlg__row { display: flex; gap: 10px; align-items: flex-start; }
.fy-dlg__row > .fy-field { flex: 1 1 auto; min-width: 0; }
.fy-dlg .fy-field input,
.fy-dlg .fy-field textarea {
  width: 100%;
  border: 1px solid var(--fy-line);
  border-radius: var(--fy-radius);
  padding: 0 12px;
  height: 44px;
  font-size: var(--fy-fs-sm);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.fy-dlg .fy-field textarea { height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.fy-dlg .fy-field input:focus,
.fy-dlg .fy-field textarea:focus { border-color: var(--fy-primary); }
/* ★ 校验不过要「标红」：本站既有的 .fy-field--err 用的是主色蓝（--fy-primary），
   那是试用表单的口径；弹窗里必须**看得出是错**，所以在 .fy-dlg 作用域内改成红色 #DC2626。 */
.fy-dlg .fy-field--err input,
.fy-dlg .fy-field--err textarea { border-color: #DC2626; }
/* ⚠ 聚焦态优先级更高（`.fy-dlg .fy-field input:focus` 是 3 个类级），
   不补这一条的话"标红的输入框一聚焦又变回蓝色"——真机复验抓到过。 */
.fy-dlg .fy-field--err input:focus,
.fy-dlg .fy-field--err textarea:focus { border-color: #DC2626; }
.fy-dlg .fy-field__msg { color: #DC2626; font-size: 12px; min-height: 16px; line-height: 1.4; }
.fy-dlg .fy-field label { font-size: 12px; color: #6B7280; }
.fy-field__req { color: #DC2626; }
.fy-captcha {
  width: 88px;
  height: 36px;
  flex: none;
  margin-top: 22px;
  border: 1px solid var(--fy-line);
  border-radius: 6px;
  background: #E5E7EB;
  color: #6B7280;
  font-size: 12px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.fy-sms {
  height: 36px;
  margin-top: 22px;
  padding: 0 12px;
  flex: none;
  border: 1px solid #1D6FE0;
  border-radius: 6px;
  background: #fff;
  color: #1D6FE0;
  font-size: 12px;
  white-space: nowrap;
}
.fy-sms:hover { background: #EAF4FF; }
.fy-dlg__agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #4B5563;
}
.fy-dlg__agree input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: #1D6FE0; }
.fy-dlg__agree a { color: #1D6FE0; text-decoration: underline; }
.fy-dlg__accept { display: flex; flex-direction: column; gap: 4px; }
.fy-dlg__accept.is-err .fy-dlg__agree,
.fy-dlg__accept.is-err .fy-dlg__agree a { color: #DC2626; }
.fy-dlg__msg { display: block; min-height: 16px; font-size: 12px; line-height: 1.4; color: #DC2626; }
/* 提示区：短信「即将开放」与提交结果都走这一条（带 aria-live，读屏能听到） */
.fy-dlg__tip { min-height: 18px; font-size: 12px; line-height: 1.6; color: #6B7280; }
.fy-dlg__tip.is-err { color: #DC2626; }
.fy-dlg__tip.is-ok { color: #0F4C9E; font-weight: 600; }
.fy-dlg__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* 窄屏（≤520px）：弹窗内边距收紧，弹窗浮条的最左边界仍在视口内（375 - 16 - 68 - 220 > 0） */
@media (max-width: 520px) {
  .fy-dlg { padding: 12px; }
  .fy-dlg__box { padding: 22px 18px 20px; max-height: calc(100vh - 24px); }
}

