/* ============================================================
   众星 ZHONGXING 平台官网 v3 —— 全站样式
   v2 重构：平台中心化（众星单主角）＋海洋视觉（波浪层/波纹分隔/线性图标）
   v3 增量：商标接入（导航/页脚/水印/favicon）＋商标蓝进配色作强调色
   2026-09-07：mark 按需求方供图重制为「星轨」多色版（X 星形掠影＋橙/紫/蓝三段轨道弧），
             商标蓝 #0B9BD8 仍是配色强调色；旧版「北辰」罗盘 mark 由 git 历史保留
   桌面优先；两档响应式断点（960px / 640px）见文件尾段
   配色：雾蓝系（老站 style.css 实测主色直接继承做同族）仍是主色；
         商标蓝 #0B9BD8 作强调（hover/选中/焦点/小节标题装饰，见 --brand 注）；
         点缀橙仅主 CTA 一处
   暗色模式不做（v1 已定决策，延续）
   ============================================================ */

:root {
  /* 雾蓝系色板（老站实测四色）＋底白＋点缀橙 */
  --fog-50:  #d9e8f5;   /* 雾蓝极浅：hero 渐变顶 / 浅底 */
  --fog-100: #c4d9ea;   /* 雾蓝浅：hero 渐变中段 / 前浪 */
  --fog-300: #a9c6dd;   /* 主雾蓝：波浪 / 波纹分隔线 / 图标 */
  --fog-500: #7b93aa;   /* 深雾蓝：图标 / 描边 / 次强调 */
  --accent:  #52708b;   /* 深雾蓝（#7b93aa 加深同族）：正文链接 / 眉题——实测对底白 5.1:1、对交替底 4.8:1 */
  --brand:   #0B9BD8;   /* 商标蓝（「星轨」mark 主色）：hover / 选中态 / 焦点环 /
                           小节标题装饰条——仅图形与瞬态，正文文字不用（对底白 3.1:1，
                           小字文字会跌破 4.5:1，故链接基色仍走 --accent 保 5.1:1） */
  --cta-orange: #f5a623; /* 点缀橙（老站实测）：仅主 CTA 一处（已定决策） */

  --navy-900: #0a2540;   /* 深墨蓝：标题 / 页脚底（文字中性色） */
  --navy-700: #14497b;
  --sky-100: #eaf2f8;    /* 悬浮浅底 */
  --mist-50: #f0f6fb;    /* 交替段落底（雾蓝族极浅） */
  --ink-800: #223545;    /* 正文 */
  --ink-500: #5b6f80;    /* 次要文字 */
  --line: #d5e2ed;       /* 描边（雾蓝族） */
  --paper: #fbfdff;      /* 底白（老站实测） */

  --radius: 14px;
  --header-h: 64px;
  --font-stack: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Source Han Sans SC", sans-serif;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth; /* prefers-reduced-motion 下降级，见打磨段 */
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
/* v3：hover 走商标蓝（瞬态＋下划线双通道，基态对比不受影响） */
a:hover { color: var(--brand); text-decoration: underline; }
img, svg { max-width: 100%; height: auto; }

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- v3 菱形语言：细菱形装饰（全页 ≤3 处） ----------
   ① hero 眉题分隔 ② 导航当前板块指示（::after，单选） ③ 页脚备案行分隔 */
.dia {
  display: inline-block; width: 7px; height: 7px; flex: none;
  background: var(--brand); transform: rotate(45deg);
}
.dia-dim { width: 5px; height: 5px; opacity: .85; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 0 0 8px 8px;
  background: var(--navy-900); color: #fff;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; }

/* 锚点跳转时留出吸顶导航的高度（含 v2 终端生态小节锚点） */
section[id], footer[id], .eco[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- 顶部吸顶导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--navy-900); font-weight: 700;
}
.brand:hover { text-decoration: none; color: var(--navy-900); }
/* v3：导航 mark 引用「星轨」多色 SVG（2026-09-07 重制版）；
     30px 下蓝/橙主色对白底可辨，紫弧弱化为点缀 */
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-size: 18px; letter-spacing: .02em; }
.brand-sub {
  font-size: 12.5px; font-weight: 500; color: var(--ink-500);
  padding-left: 10px; border-left: 1px solid var(--line);
}

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex; gap: 4px;
  margin: 0; padding: 0; list-style: none;
}
.site-nav a {
  display: block; padding: 8px 12px;
  font-size: 14.5px; color: var(--ink-800); border-radius: 8px;
  position: relative; /* v3：选中态菱形指示的定位锚 */
}
/* v3：导航 hover 与当前板块选中态走商标蓝；菱形语言②/③——当前板块名下居中一枚细菱形
     （绝对定位不占布局高度，scrollspy 切换无跳动） */
.site-nav a:hover { color: var(--brand); background: var(--sky-100); text-decoration: none; }
.site-nav a[aria-current="true"] { color: var(--brand); font-weight: 600; }
.site-nav a[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 5px; height: 5px; margin-left: -2.5px;
  background: var(--brand); transform: rotate(45deg);
}

/* 移动端汉堡按钮：桌面隐藏，断点档启用（见打磨段） */
.nav-burger {
  display: none;
  margin-left: auto;
  padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-burger-box { display: block; width: 22px; }
.nav-burger-box i {
  display: block; height: 2px; margin: 5px 0;
  background: var(--navy-900); border-radius: 2px;
}

/* ---------- Hero（v2：浅色水面渐变，雾蓝→白；底部两层错位波浪） ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--fog-50) 0%, var(--fog-100) 46%, var(--paper) 100%);
  color: var(--ink-800);
  padding: 96px 0 190px;
}
.hero h1 { color: var(--navy-900); font-size: clamp(31px, 4.6vw, 50px); max-width: 30em; }
/* v3 商标水印：右侧大 mark 低介入呈现；7% 透明度（红线 ≤8%）不与文字争对比度。
     静态元素无动画，prefers-reduced-motion 天然不受影响；
   container 设 position 使文字绘制于水印之上（水印 img 在 DOM 中先于 container） */
.hero > .container { position: relative; }
.hero-mark {
  position: absolute;
  top: 50%; right: -48px;
  width: min(540px, 46vw);
  transform: translateY(-50%);
  opacity: .07;
  pointer-events: none;
}
.hero-eyebrow {
  /* hero 顶部背景为雾蓝 #d9e8f5，accent 在其上对比不足 4.5:1，故用深墨蓝（实测 7.4:1） */
  color: var(--navy-700); letter-spacing: .12em;
  font-size: 14px; font-weight: 600; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px; /* v3：菱形分隔排布 */
}
.hero .lead { color: var(--ink-500); font-size: 17.5px; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 0; }

.btn {
  display: inline-block; padding: 11px 22px;
  border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
/* 主 CTA＝点缀橙（全站唯一橙色），深字保对比 */
.btn-primary { background: var(--cta-orange); color: #1f3a52; }
.btn-primary:hover { background: #e89717; color: #1f3a52; }
.btn-ghost { border-color: var(--fog-500); color: var(--navy-700); }
.btn-ghost:hover { border-color: var(--navy-700); color: var(--navy-900); background: rgba(255, 255, 255, .55); }

/* 海洋元素①：两层错位波浪——路径 1440 为周期双拼 2880，位移 -50% 无缝循环 */
.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  pointer-events: none;
}
.wave {
  position: absolute;
  left: 0; bottom: 0;
  width: 200%;        /* 位移 -50% 后仍全覆盖视口，且恰移动一个波形周期（1440）→ 无缝循环 */
  max-width: none;    /* 反压全局 svg{max-width:100%}——被钳到 100% 会让右半屏在动画中露空 */
  height: 88px;
}
.wave-back {
  height: 106px;
  fill: var(--fog-300);
  opacity: .55;
  animation: wave-drift 26s linear infinite;
}
.wave-front {
  fill: var(--paper);
  animation: wave-drift 17s linear infinite reverse;
}
@keyframes wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 海洋元素②：章节分隔波纹线 */
.wave-divider {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 22px;
}
.wave-divider path {
  fill: none;
  stroke: var(--fog-300);
  stroke-width: 2;
  opacity: .85;
}

/* ---------- 通用段落 ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--mist-50); }

.eyebrow {
  color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; margin-bottom: 10px;
}
/* v3 小节标题强调：h2 左侧商标蓝短条（标题文字仍深墨蓝保对比；蓝条为图形元素） */
.section h2 {
  font-size: 30px; margin-bottom: 10px;
  position: relative; padding-left: 16px;
}
.section h2::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 5px; height: .66em; border-radius: 3px;
  background: var(--brand);
}
.lead { color: var(--ink-500); font-size: 16.5px; max-width: 40em; margin-bottom: 34px; }

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: 0 10px 28px rgba(10, 37, 64, .10); transform: translateY(-2px); }
/* v3 排版走查：内容卡 h3 统一 16.5px（原卡 17 / 条目行 16.5 不一致） */
.card h3 { font-size: 16.5px; margin-bottom: 6px; }
.card p { color: var(--ink-500); font-size: 14.5px; margin: 0; }

/* v2：Hero 三入口卡已撤，深色底入口卡样式随之移除 */

.card .ico {
  width: 30px; height: 30px; color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- 终端生态（v2 小节，OEM 友好） ---------- */
.eco {
  margin-top: 54px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}
/* v3 排版走查：子级标题统一 21px（原 eco 22 / roles 21 不一致） */
.eco-title { font-size: 21px; margin-bottom: 6px; }
.eco-lead {
  color: var(--ink-500); font-size: 15.5px;
  max-width: 46em; margin-bottom: 24px;
}

/* ---------- 三步上手 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 46px; }
.step {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 15px; margin-bottom: 12px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--ink-500); font-size: 14.5px; margin: 0; }

.roles-title { font-size: 21px; margin: 0 0 18px; }

/* ---------- 合规条目 ---------- */
.law-list { display: grid; gap: 14px; max-width: 880px; }
.law-row {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 18px 22px;
}
.law-row .ico { width: 26px; height: 26px; color: var(--accent); flex: none; margin-top: 3px; }
.law-row h3 { font-size: 16.5px; margin-bottom: 2px; }
.law-row p { color: var(--ink-500); font-size: 14.5px; margin: 0; }

/* ---------- 数据闭环 ---------- */
.loop-fig { margin: 0; }
.loop-fig svg { width: 100%; height: auto; display: block; }
.loop-fig figcaption {
  text-align: center; color: var(--ink-500);
  font-size: 13.5px; margin-top: 14px;
}

/* ---------- 友链 ---------- */
.friend-links { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; }
.friend-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.friend-card:hover { text-decoration: none; border-color: var(--fog-500); box-shadow: 0 8px 22px rgba(10, 37, 64, .08); }
.friend-card .ico { width: 28px; height: 28px; color: var(--accent); flex: none; }
.friend-card h3 { font-size: 16.5px; margin: 0 0 2px; }
.friend-card p { color: var(--ink-500); font-size: 14.5px; margin: 0; } /* v3：14→14.5 对齐其余卡面 */

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--navy-900); color: #b9cfe0;
  padding: 56px 0 0; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px; padding-bottom: 40px;
}
/* v3 商标接入：页脚品牌行 mark＋名称（页脚仅此一枚 mark，不重复堆 logo）；
     星轨 mark 多色对深墨蓝底：橙弧/浅蓝掠影可辨，紫弧弱化（品牌色完整性保留） */
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.footer-mark { width: 30px; height: 30px; flex: none; }
.footer-brand { color: #fff; font-size: 18px; font-weight: 700; margin: 0; }
/* 品牌承继短句（全站唯一一处）＋公司主体运营表述（v2 落位） */
.footer-lineage {
  color: var(--fog-300); font-size: 13.5px; letter-spacing: .05em;
  margin: 0 0 12px;
}
.footer-operator { font-size: 14px; color: #b9cfe0; margin: 10px 0 0; }
.site-footer h3 { color: #fff; font-size: 14.5px; letter-spacing: .06em; margin-bottom: 12px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.site-footer a { color: #b9cfe0; }
.site-footer a:hover { color: #fff; }

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 18px 0 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px;
  font-size: 13px; color: #8aa7bd;
}
.footer-bar .dia { align-self: center; }
.footer-bar p { margin: 0; }
/* 备案号外链：跟随页脚字色，不吃浏览器默认的蓝紫下划线（暗底下会很刺眼） */
.footer-bar a { color: inherit; text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; }

/* ---------- 占位标记（上线前必须替换） ---------- */
.todo-chip {
  display: inline-block; margin-left: 8px;
  padding: 1px 8px; border-radius: 999px;
  border: 1px dashed #d9a441; color: #d9a441;
  font-size: 12px; line-height: 1.6; vertical-align: 1px;
}
.todo-inline {
  padding-bottom: 1px;
  border-bottom: 1px dashed #8aa7bd;
  color: #8aa7bd;
}

/* ---------- 焦点可见性（键盘可达；v3 焦点环走商标蓝，图形门槛 3:1 达标） ---------- */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 减少动态效果偏好：关闭平滑滚动、卡片悬浮位移与波浪动画 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .friend-card { transition: none; }
  .card:hover, .friend-card:hover { transform: none; }
  .wave-back, .wave-front { animation: none; }
}

/* ============================================================
   响应式（桌面优先，两档断点）
   · ≤960px：平板/小窗——导航收进汉堡面板；网格降列数
   · ≤640px：手机——单列布局；标题与留白收紧
   ============================================================ */

/* ---- 档一：≤960px ---- */
@media (max-width: 960px) {
  /* 移动端导航：面板化，由 .nav-burger + JS .nav-open 控制 */
  .nav-burger { display: block; }
  .brand-sub { display: none; } /* 收窄品牌行，给导航让位 */

  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(10, 37, 64, .12);
  }
  body.nav-open .site-nav { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 14px;
  }
  .site-nav a { padding: 12px 10px; font-size: 15.5px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .friend-links { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 76px 0 150px; }
  .hero-mark { width: 380px; right: -70px; opacity: .06; }
  .wave { height: 66px; }
  .wave-back { height: 80px; }
  .wave-divider svg { height: 18px; }
}

/* ---- 档二：≤640px ---- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding-inline: 18px; }

  .hero { padding: 60px 0 118px; }
  .hero-mark { width: 270px; right: -90px; opacity: .05; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .wave { height: 46px; }
  .wave-back { height: 56px; }
  .wave-divider svg { height: 14px; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section h2 { font-size: 25px; }
  .eco { margin-top: 42px; padding-top: 32px; }

  .law-row { flex-direction: column; gap: 8px; padding: 16px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bar { flex-direction: column; }
}

/* ============================================================
   v4 美学打磨（2026-09-06）：众恒主站（xmjoinhand.com，同公司一脉相承）
   成熟元素移植——滚动进度条 / 入场交错 reveal / 卡片图标底块＋顶部渐变扫条 /
   主 CTA 扫光 / 回到顶部 / 页脚顶部渐变线 / alt 段点状纹理 / 汉堡变 ✕ /
   hero 入场 / 选区商标蓝 / 标题 text-wrap。
   纪律自查：全部纯 CSS＋本地 JS（零外部请求不破）；reduced-motion 全量降级
   见本段末尾；商标蓝仍仅图形与瞬态（正文/链接基色不动）；橙色仍仅主 CTA
   一处（回到顶部钮与进度条均走商标蓝，不新增彩色噪音）；菱形仍全页 ≤3 处。
   ============================================================ */

:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 排版细节：标题平衡换行、导语避寡行 ---------- */
h1, h2, h3 { text-wrap: balance; }
.lead, .hero .lead { text-wrap: pretty; }

/* ---------- 选区色：商标蓝淡底 ---------- */
::selection { background: rgba(11, 155, 216, .22); color: var(--navy-900); }

/* ---------- 顶部滚动进度条（JS 驱动；无 JS 恒 scaleX(0) 不可见） ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80;
  background: linear-gradient(90deg, var(--fog-300), var(--brand));
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Hero：右上方商标蓝柔光（浅底版，众恒 hero 径向光的浅色转译） ---------- */
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 44vw; height: 44vw; right: -10vw; top: -14vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 155, 216, .13), transparent 62%);
}

/* ---------- Hero 入场：文字逐项浮入（首屏一次性，非滚动触发） ---------- */
.hero .container > * { animation: heroIn .75s var(--ease-out) both; }
.hero .container > *:nth-child(2) { animation-delay: .12s; }
.hero .container > *:nth-child(3) { animation-delay: .22s; }
.hero .container > *:nth-child(4) { animation-delay: .32s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 入场 reveal（JS 加类驱动；无 JS 不加类＝直接可见，无回归） ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 卡片打磨①：hover 顶部渐变扫条（商标蓝起笔，众恒 icon-card 同款） ---------- */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--fog-300));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s var(--ease-out);
}
.card:hover::before { transform: scaleX(1); }
.card {
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { border-color: rgba(11, 155, 216, .35); }

/* ---------- 卡片打磨②：图标进渐变圆角底块，hover 反白微旋（众恒 glyph 移植；
   作用域限 .card 内图标，law-row / friend-card 的内联小图标不动） ---------- */
.card .ico {
  width: 52px; height: 52px; padding: 12px;
  border-radius: 13px; color: var(--accent);
  background: linear-gradient(135deg, rgba(11, 155, 216, .12), rgba(82, 112, 139, .10));
  transition: background .3s ease, color .3s ease, transform .3s var(--ease-out);
}
.card:hover .ico {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  transform: rotate(-4deg) scale(1.05);
}

/* ---------- 按钮打磨：浮起＋主 CTA 扫光（橙色按钮仍全站唯一，扫光只挂它） ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .15s ease, box-shadow .15s ease,
    background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { box-shadow: 0 6px 16px rgba(245, 166, 35, .35); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(245, 166, 35, .42); }
.btn-primary::after {
  content: ""; position: absolute; z-index: -1; top: 0; left: -70%;
  width: 45%; height: 100%; transform: skewX(-22deg);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
  transition: left .55s var(--ease-out);
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost { box-shadow: 0 1px 3px rgba(10, 37, 64, .08); }
.btn-ghost:hover { box-shadow: 0 6px 18px rgba(10, 37, 64, .12); }

/* ---------- 导航链接瞬态补过渡 ---------- */
.site-nav a { transition: color .15s ease, background .15s ease; }

/* ---------- 移动端汉堡：开合时三杠变 ✕（众恒 nav-toggle 同款形变） ---------- */
.nav-burger-box i { transition: transform .25s var(--ease-out), opacity .2s ease; }
body.nav-open .nav-burger-box i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger-box i:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger-box i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 三步上手：卡面 hover 浮起＋序号圆走商标蓝渐变 ---------- */
.step { transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(10, 37, 64, .10);
  border-color: rgba(11, 155, 216, .35);
}
.step-num { background: linear-gradient(135deg, var(--brand), var(--accent)); }

/* ---------- 合规条目：hover 横移＋左描边转商标蓝（众恒 mini-card 同款） ---------- */
.law-row {
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.law-row:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(10, 37, 64, .08);
  border-left-color: var(--brand);
}

/* ---------- 友链卡：hover 补浮起 ---------- */
.friend-card { transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.friend-card:hover { transform: translateY(-2px); }

/* ---------- alt 段落：雾蓝点状纹理＋上下羽化（众恒 section.alt 移植） ---------- */
.section.alt {
  position: relative;
  background: linear-gradient(180deg, var(--mist-50) 0%, var(--paper) 100%);
}
.section.alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(82, 112, 139, .08) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.section.alt > .container { position: relative; z-index: 1; }

/* ---------- 回到顶部悬浮钮（商标蓝渐变；橙色唯一纪律不破） ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 8px 22px rgba(11, 155, 216, .38);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s var(--ease-out), visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; } /* 覆盖全局 svg{height:auto}，保正圆内图标比例 */

/* ---------- 页脚：顶部商标蓝渐变强调线＋导航链接 hover 横移 ---------- */
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--fog-300) 45%, transparent);
}
.site-footer ul a { transition: color .18s ease, padding-left .18s ease; }
.site-footer ul a:hover { padding-left: 4px; }

/* ---------- v4 reduced-motion 全量降级（与上文人字拖纪律一致） ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero .container > * { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card::before { transition: none; }
  .card:hover .ico { transform: none; }
  .btn, .btn-primary::after { transition: none; }
  .btn-primary::after { display: none; }
  .btn:hover, .step:hover, .law-row:hover, .friend-card:hover, .to-top:hover { transform: none; }
  .nav-burger-box i { transition: none; }
  .to-top { transition: none; }
  .site-footer ul a { transition: none; }
  .site-footer ul a:hover { padding-left: 0; }
}

/* ---------- v4 响应式补充 ---------- */
@media (max-width: 960px) {
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}
@media (max-width: 640px) {
  .hero::before { display: none; } /* 窄屏柔光与水印叠噪，关闭 */
}

/* ============================================================
   B 批（2026-09-12）：手机竖屏优化＋404 页
   ① 闭环示意图窄屏横滚的可感知性：右缘内容渐隐（mask 对任意底色成立，
      不依赖段落背景）＋图注加「左右滑动」提示（仅 ≤640 显示）
   ② 窄屏紧凑卡：图标与标题同行（卡面从三行压到两行，页面少滚一屏半）
   ③ 404 品牌页样式（自足，沿用全站 tokens）
   纪律自查：纯 CSS 增量；桌面档零变化；reduced-motion 无涉（无动画）。
   ============================================================ */

/* ---------- ① 闭环图横滚暗示（≤640） ---------- */
.loop-swipe-hint { display: none; }   /* 桌面整图可见，不需要 */
@media (max-width: 640px) {
  .loop-swipe-hint { display: inline; color: var(--ink-500); }
  /* 右缘渐隐＝「还有内容」的通用暗示；滚到最右时末节点淡出属该模式常规代价 */
  .loop-fig {
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  }
}

/* ---------- ② 窄屏紧凑卡（≤640；.step/.law-row/.roles 各有形态，不在此列） ---------- */
@media (max-width: 640px) {
  .card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px; row-gap: 2px;
    align-items: center;
  }
  .card .ico {
    grid-row: 1; margin: 0;
    width: 44px; height: 44px; padding: 10px; border-radius: 11px; /* 桌面 52px 会撑破 44px 列 */
  }
  .card h3 { grid-row: 1; margin: 0; }
  .card p { grid-column: 1 / -1; }
}

/* ---------- ③ 404 页（自足） ---------- */
.page404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--fog-50) 0%, var(--fog-100) 46%, var(--paper) 100%);
}
.page404-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(10, 37, 64, .12);
  padding: 38px 34px 34px;
  text-align: center;
  max-width: 420px;
  width: 100%;
}
.page404-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 15.5px;
}
.page404-code {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .04em;
  color: var(--fog-300);
}
.page404-card h1 { font-size: 20px; margin: 6px 0 4px; }
.page404-note { color: var(--ink-500); font-size: 14.5px; margin: 0 0 22px; }
.page404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.page404-actions .btn { padding: 10px 22px; font-size: 14.5px; }

/* ============================================================
   v5 视觉与易用性整改（2026-09-12，统筹端亲做）
   主攻四件事：
   ① Hero 首屏气场：桌面端垂直居中＋min-height、h1 加大一档、
      价值三元组「看得见/报得出/管得住」商标蓝记号笔式高亮（文字与标点原样）
   ② 消除卡片单调：终端生态收进浅色大面板；三步上手法序号连接线（桌面）；
      四角色改横排卡（图标左文右）；合规条目图标进渐变底块（与功能卡同语言）
   ③ 细节降噪与提精度：波纹分隔线减重、闭环示意图重描（颜色/字级，
      几何不动）、按钮与卡面圆角/留白微调、页脚联系方式配图标、
      友链卡补 ↗ 外链指向暗示
   纪律自查：零新增外部请求（图标全内联）；橙色仍仅主 CTA；商标蓝仅
   图形与瞬态（三元组高亮为背景图形非文字色，正文对比不受影响）；
   菱形仍 ≤3 处；水印透明度未动；无 JS / reduced-motion 均无回归。
   ============================================================ */

/* ---------- Hero：桌面端首屏垂直居中，撑足气场 ---------- */
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.22;
}
.hero .lead { font-size: 18.5px; }
/* 价值三元组：深墨蓝加粗＋商标蓝记号笔高亮（背景图形，非文字变色） */
.hero .lead strong { color: var(--navy-900); }
.hero .lead strong span {
  padding: 0 .06em;
  background: linear-gradient(180deg, transparent 74%, rgba(11, 155, 216, .26) 74%);
}
@media (min-width: 961px) {
  .hero {
    min-height: min(84vh, 780px);
    display: flex; align-items: center;
    padding-top: 56px;
  }
}

/* ---------- 排版节奏：段落留白与标题字级微升 ---------- */
.section { padding: 88px 0; }
.section h2 { font-size: 33px; margin-bottom: 12px; }
.lead { margin-bottom: 36px; }

/* ---------- 按钮与卡面：圆角/留白对齐新节奏 ---------- */
.btn { padding: 12px 26px; border-radius: 12px; font-size: 15.5px; }
.card { border-radius: 16px; padding: 26px 24px; }

/* ---------- 终端生态：收进浅色大面板，与上方六卡分区 ---------- */
.eco {
  margin-top: 56px; padding: 40px 36px 44px;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, var(--mist-50) 100%);
}

/* ---------- 三步上手：序号连接线（桌面档；纯装饰伪元素） ---------- */
.step { position: relative; border-radius: 16px; padding: 26px 24px; }
.step-num { width: 36px; height: 36px; font-size: 16px; }
@media (min-width: 961px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 43px; right: -20px;
    width: 20px; border-top: 2px dashed var(--fog-300);
  }
  .step:not(:last-child)::before {
    content: ""; position: absolute; top: 39.5px; right: -6.5px;
    width: 7px; height: 7px;
    border-top: 2px solid var(--fog-300); border-right: 2px solid var(--fog-300);
    transform: rotate(45deg);
  }
}

/* ---------- 四角色：横排卡（图标左、文右，无 markup 改动的 grid 实现） ---------- */
.roles .card {
  display: grid; grid-template-columns: 44px 1fr;
  column-gap: 16px; row-gap: 4px; align-items: center;
  padding: 20px 22px; border-radius: 14px;
}
.roles .card .ico {
  grid-row: 1 / span 2;
  width: 44px; height: 44px; padding: 10px; border-radius: 11px;
  margin: 0;
}
.roles .card h3 { margin: 0; }
.roles .card p { grid-column: 2; }

/* ---------- 合规条目：图标进渐变底块，与功能卡图标同语言 ---------- */
.law-row .ico {
  width: 44px; height: 44px; padding: 10px; border-radius: 11px;
  margin-top: 0;
  background: linear-gradient(135deg, rgba(11, 155, 216, .12), rgba(82, 112, 139, .10));
}

/* ---------- 友链卡：↗ 外链指向暗示（hover 商标蓝瞬态） ---------- */
.friend-card .ext {
  margin-left: auto; width: 18px; height: 18px; flex: none;
  color: var(--fog-500);
  transition: color .18s ease, transform .18s ease;
}
.friend-card:hover .ext { color: var(--brand); transform: translate(2px, -2px); }

/* ---------- 页脚：联系方式配小图标，提高扫视性 ---------- */
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg {
  width: 16px; height: 16px; flex: none; margin-top: 5px;
  color: var(--fog-300);
}
.footer-contact span { flex: 1; }
.site-footer { padding-top: 64px; }

/* ---------- 波纹分隔线：减重（原 2px/.85 偏吵，4 处重复） ---------- */
.wave-divider svg { height: 18px; }
.wave-divider path { stroke-width: 1.5; opacity: .55; }

/* ---------- v5 响应式 ---------- */
@media (max-width: 960px) {
  .section { padding: 68px 0; }
  .section h2 { font-size: 30px; }
  .eco { margin-top: 44px; padding: 28px 20px 32px; border-radius: 16px; }
  .wave-divider svg { height: 14px; }
  .law-row .ico { width: 40px; height: 40px; padding: 9px; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section h2 { font-size: 26px; }
  .hero .lead { font-size: 17px; }
  .eco { margin-top: 36px; padding: 22px 14px 26px; border-radius: 14px; }
  .wave-divider svg { height: 12px; }
  .roles .card { padding: 18px 16px; }
  /* 闭环示意图：窄屏按比例缩到 ~7px 文字不可读——改为横向滚动保字级，
     触屏滑动＋桌面 shift＋滚轮均可滚（屏幕阅读器另有 title/desc 全文） */
  .loop-fig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .loop-fig svg { min-width: 640px; }
}
