/* ============================================================
   全站统一页头 / 页脚 / 栏目副导航 / 移动端底栏
   由 scripts/build-chrome.js 注入，partials/ 为唯一来源。

   页头：与首页 index.html 的 .notice/.header/.mobile-nav 完全同一套
   结构与取值，只在子页生效（<html data-xc="sub">），首页沿用自身样式。
   页脚 / 副导航 / 底栏：使用 --xc-* 前缀，避免与业务 CSS 同名变量冲突。
   ============================================================ */

:root {
  --xc-brand: #0b57d0;
  --xc-brand-dark: #0846ab;
  --xc-ink: #0d1523;
  --xc-ink-2: #1d2a3d;
  --xc-muted: #5c6a7c;
  /* 三级文字：原 #7d8a9b 在浅色底上仅 3.5:1，不满足 AA，收到与 --xc-muted 同级 */
  --xc-muted-2: #5c6a7c;
  --xc-line: #e4e9f0;
  --xc-line-strong: #d3dae5;
  --xc-bg: #ffffff;
  --xc-soft: #f5f7fa;
  --xc-accent-weak: #eef4fe;
  --xc-header-h: 64px;
  --xc-gutter: clamp(18px, 1.8vw, 44px);
  --xc-shadow: 0 8px 24px -18px rgba(13, 21, 35, .45);
  --xc-ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
  --xc-brand: #5a8ef2;
  --xc-brand-dark: #8ab2f7;
  --xc-ink: #e9f0f7;
  --xc-ink-2: #cfdae7;
  --xc-muted: #a2b3c6;
  --xc-muted-2: #8598ae;
  --xc-line: #1b2a3d;
  --xc-line-strong: #273a51;
  --xc-bg: #0f1b2b;
  --xc-soft: #0d1726;
  --xc-accent-weak: rgba(90, 142, 242, .14);
  --xc-shadow: 0 10px 30px -24px #000;
}

/* ============================================================
   页头（仅子页生效）
   结构与首页逐项一致：公告条 / 主导航 7 项 / 代理合作·控制台·搜索·
   登录·免费注册·汉堡 / 移动端抽屉。取值照抄首页，不改间距与高度。
   ============================================================ */
[data-xc="sub"] {
  --ink: #0d1523;
  --ink-2: #1d2a3d;
  --muted: #5c6a7c;
  --muted-2: #7d8a9b;
  --line: #e4e9f0;
  --line-strong: #d3dae5;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --surface: #ffffff;   /* v2 产品面板底色（与首页 --surface 对齐） */
  --accent: #0b57d0;
  --accent-hover: #0846ab;
  --accent-weak: #eef4fe;
  --accent-line: #b8d1fb;
  --accent-solid: #0b57d0;
  --brand-400: #5a8ef2;
  --brand-200: #b8d1fb;
  --dark: #08121f;
  --header-h: 64px;
  --notice-h: 36px;
  /* 首页沿用自身 index.html 的 --container；子页上限见下方 html[data-xc="sub"] 规则 */
  --container: 100%;
  --gutter: clamp(18px, 1.8vw, 44px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
html[data-xc="sub"][data-theme="dark"] {
  --ink: #e9f0f7;
  --ink-2: #cfdae7;
  --muted: #a2b3c6;
  --muted-2: #8598ae;
  --line: #1b2a3d;
  --line-strong: #273a51;
  --bg: #0b1220;
  --bg-soft: #0f1b2b;
  --surface: #0f1b2b;  /* 暗色 v2 产品面板底色（与首页暗色 --surface 对齐） */
  --accent: #8ab2f7;
  --accent-hover: #b8d1fb;
  --accent-weak: rgba(90, 142, 242, .14);
  --accent-line: rgba(90, 142, 242, .3);
  --accent-solid: #2f6fe8;
  --brand-400: #8ab2f7;
  --brand-200: #b8d1fb;
  --dark: #070d17;
}

[data-xc="sub"] .notice,
[data-xc="sub"] .notice *,
[data-xc="sub"] .header,
[data-xc="sub"] .header *,
[data-xc="sub"] .mobile-nav,
[data-xc="sub"] .mobile-nav * { box-sizing: border-box; }

/* 子页内容容器上限 1280：只作用于子页。
   首页 index.html 的 :root 在本样式表之前，若直接改上面的 :root，会把首页一起收窄。 */
html[data-xc="sub"] { --container: 1280px; }
/* 服务页只引本文件，缺 body 重置会露出 UA 默认 8px 白边 */
html[data-xc="sub"] body { margin: 0; }

/* 无障碍专用类：视觉隐藏，键盘聚焦时显示。
   服务页只引本文件，原先缺这段定义导致「跳到正文」被渲染成可见白条。 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: static; width: auto; height: auto; margin: 0;
  overflow: visible; clip: auto; white-space: normal;
  padding: 10px 16px; background: #fff;
}

/* 服务页封面：沿用产品页 .page-hero 的同一套渐变，避免顶部出现空白带 */
[data-xc="sub"] .svc-hero { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 78%); }

[data-xc="sub"] .container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 公告条（全站统一：首页与所有子页同一份内容，由 build-chrome.js 生成） ---------- */
[data-xc="sub"] .notice { background: var(--dark); color: #c3cdda; font-size: 13px; }
[data-xc="sub"] .notice .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 36px; }
[data-xc="sub"] .notice__main { display: flex; align-items: center; gap: 8px; min-width: 0; }
[data-xc="sub"] .notice__tag {
  flex: none; padding: 1px 6px; border-radius: 3px; background: rgba(255,255,255,.1);
  color: #e8eef7; font-size: 11px; letter-spacing: .04em;
}
[data-xc="sub"] .notice__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-xc="sub"] .notice__text strong { color: #fff; font-weight: 600; }
/* 子页只引本文件、没有全局 a 重置，公告条链接会露出 UA 默认下划线；
   与首页 index.html 的 .notice__text a / .notice__links a 取值对齐，仅公告条生效。 */
[data-xc="sub"] .notice__text a { color: inherit; text-decoration: none; }
[data-xc="sub"] .notice__text a:hover { color: #fff; text-decoration: underline; }
[data-xc="sub"] .notice__links { display: flex; align-items: center; gap: 18px; flex: none; white-space: nowrap; }
[data-xc="sub"] .notice__links a { color: #a9b6c6; text-decoration: none; transition: color .18s; }
[data-xc="sub"] .notice__links a:hover { color: #fff; }
html[data-xc="sub"][data-theme="dark"] .notice { background: #070d17; border-bottom: 1px solid var(--line); color: #9fb2c8; }
html[data-xc="sub"][data-theme="dark"] .header { background: rgba(11, 18, 32, .88); border-bottom-color: var(--line); }
html[data-xc="sub"][data-theme="dark"] .header.is-stuck { box-shadow: 0 10px 30px -24px #000; }
html[data-xc="sub"][data-theme="dark"] .logo__mark { background: var(--accent-solid); color: #fff; box-shadow: none; }

/* ---------- 主导航 ---------- */
[data-xc="sub"] .header { position: relative;
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s;
}
[data-xc="sub"] .header.is-stuck { box-shadow: 0 6px 24px -18px rgba(13,21,35,.4); }
[data-xc="sub"] .header .container { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
[data-xc="sub"] .logo { display: flex; align-items: center; gap: 9px; flex: none; margin-right: 10px; color: var(--ink); text-decoration: none; }
[data-xc="sub"] .logo__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #fff; box-shadow: inset 0 -8px 14px rgba(0,0,0,.16); }
[data-xc="sub"] .logo__mark svg { width: 19px; height: 19px; stroke-width: 1.9; }
[data-xc="sub"] .logo__text { font-size: 19px; font-weight: 700; letter-spacing: .01em; display: inline-flex; align-items: baseline; gap: 5px; }
[data-xc="sub"] .logo__sub { font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: .06em; }

[data-xc="sub"] .nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
[data-xc="sub"] .nav a {
  position: relative; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--ink-2);
  white-space: nowrap; text-decoration: none; transition: color .18s, background .18s;
}
[data-xc="sub"] .nav a:hover { color: var(--accent); background: var(--bg-soft); }
[data-xc="sub"] .nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transition: transform .2s;
}
[data-xc="sub"] .nav a:hover::after { transform: scaleX(1); }
[data-xc="sub"] .nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---------- 「全部服务」二级菜单 ---------- */
[data-xc="sub"] .nav__group { position: relative; }
[data-xc="sub"] .nav__trigger {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 10px; border: 0; border-radius: 6px; background: none;
  font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: color .18s, background .18s;
}
[data-xc="sub"] .nav__trigger:hover,
[data-xc="sub"] .nav__group.is-open .nav__trigger { color: var(--accent); background: var(--bg-soft); }
[data-xc="sub"] .nav__group:has(a[aria-current="page"]) .nav__trigger { color: var(--accent); font-weight: 600; }
[data-xc="sub"] .nav__caret { width: 14px; height: 14px; flex: none; transition: transform .2s var(--ease); }
[data-xc="sub"] .nav__group.is-open .nav__caret { transform: rotate(180deg); }
[data-xc="sub"] .nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 70;
  display: none; min-width: 168px; padding: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 40px -26px rgba(13, 21, 35, .5);
  /* 面板条目增多后，矮视口下不能溢出到屏幕外：超出时菜单内部滚动。
     菜单起点在公告条 + 页头之下，故减去 --notice-h，只减 --header-h 会溢出视口底部。 */
  max-height: calc(100vh - var(--header-h) - var(--notice-h) - 18px); overflow-y: auto; overscroll-behavior: contain;
}
[data-xc="sub"] .nav__group.is-open .nav__menu { display: block; }
/* 桥接区：把触发器与菜单之间的 6px 空隙纳入命中范围，防止鼠标下滑时丢 hover。
   挂在 .nav__group 上，避免菜单自身 overflow 滚动时把桥接区裁掉。 */
[data-xc="sub"] .nav__group.is-open::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px; }
[data-xc="sub"] .nav__menu a {
  display: block; padding: 9px 10px; border-radius: 6px;
  font-size: 14px; color: var(--ink-2); white-space: nowrap; text-decoration: none;
}
[data-xc="sub"] .nav__menu a:hover { color: var(--accent); background: var(--accent-weak); }
[data-xc="sub"] .nav__menu a::after { content: none; }
html[data-xc="sub"][data-theme="dark"] .nav__menu { box-shadow: 0 18px 40px -26px #000; }

[data-xc="sub"] .header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
[data-xc="sub"] .link-quiet { font-size: 14px; color: var(--muted); padding: 8px 10px; border-radius: 6px; text-decoration: none; white-space: nowrap; transition: color .18s, background .18s; }
[data-xc="sub"] .link-quiet:hover { color: var(--ink); background: var(--bg-soft); }
[data-xc="sub"] .head-search { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink-2); cursor: pointer; transition: color .18s, border-color .18s, background .18s; }
[data-xc="sub"] .head-search:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-weak); }
[data-xc="sub"] .head-search svg { width: 19px; height: 19px; }
html[data-xc="sub"][data-theme="dark"] .head-search { background: transparent; }
[data-xc="sub"] .head-mode { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink-2); cursor: pointer; transition: color .18s, border-color .18s, background .18s; }
[data-xc="sub"] .head-mode:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-weak); }
[data-xc="sub"] .head-mode .icon-mode { width: 19px; height: 19px; }
[data-xc="sub"] .head-mode .icon-mode--sun { display: none; }
html[data-xc="sub"][data-theme="dark"] .head-mode { background: transparent; }
html[data-xc="sub"][data-theme="dark"] .head-mode .icon-mode--moon { display: none; }
html[data-xc="sub"][data-theme="dark"] .head-mode .icon-mode--sun { display: block; }

[data-xc="sub"] .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 7px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .12s;
}
[data-xc="sub"] .btn:active { transform: translateY(1px); }
[data-xc="sub"] .btn--primary { background: var(--accent); color: #fff; }
[data-xc="sub"] .btn--primary:hover { background: var(--accent-hover); }
[data-xc="sub"] .btn--ghost { border-color: var(--line-strong); color: var(--ink-2); background: #fff; }
[data-xc="sub"] .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
html[data-xc="sub"][data-theme="dark"] .btn--primary { background: var(--accent-solid); color: #eef4fe; }
html[data-xc="sub"][data-theme="dark"] .btn--primary:hover { background: var(--brand-400); }
html[data-xc="sub"][data-theme="dark"] .btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
html[data-xc="sub"][data-theme="dark"] .btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(90, 142, 242, .08); }

[data-xc="sub"] .burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 7px; background: #fff; place-items: center; color: var(--ink); }
[data-xc="sub"] .burger svg { width: 20px; height: 20px; }
html[data-xc="sub"][data-theme="dark"] .burger { background: transparent; }

/* 子页移动端沿用底部栏，汉堡抽屉不扩散：有底栏的页面不显示汉堡 */
body:has(.xc-mobilebar) [data-xc="sub"] .burger { display: none; }

[data-xc="sub"] .mobile-nav {
  display: none; position: fixed; inset: calc(var(--header-h) + 0px) 0 0; z-index: 55;
  background: #fff; padding: 16px 20px 40px; overflow-y: auto;
}
[data-xc="sub"] .mobile-nav.is-open { display: block; }
[data-xc="sub"] .mobile-nav__grid { display: grid; grid-template-columns: 1fr; gap: 2px 12px; }
[data-xc="sub"] .mobile-nav__grid a { padding: 13px 10px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); text-decoration: none; }

/* 移动端「全部服务」分组 */
[data-xc="sub"] .mobile-nav__group { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
[data-xc="sub"] .mobile-nav__toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 10px; border: 0; background: none;
  font: inherit; font-size: 15px; color: var(--ink); cursor: pointer;
}
[data-xc="sub"] .mobile-nav__toggle svg { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform .2s var(--ease); }
[data-xc="sub"] .mobile-nav__group.is-open .mobile-nav__toggle svg { transform: rotate(180deg); }
[data-xc="sub"] .mobile-nav__sub { display: none; padding: 0 0 6px 10px; }
[data-xc="sub"] .mobile-nav__group.is-open .mobile-nav__sub { display: block; }
[data-xc="sub"] .mobile-nav__sub a {
  display: block; padding: 11px 10px; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2); text-decoration: none;
}
[data-xc="sub"] .mobile-nav__sub a:last-child { border-bottom: 0; }
[data-xc="sub"] .mobile-nav__actions { display: flex; gap: 10px; margin-top: 22px; }
[data-xc="sub"] .mobile-nav__actions .btn { flex: 1; }
html[data-xc="sub"][data-theme="dark"] .mobile-nav { background: var(--bg); }

/* ---------- 产品页购物车：纯图标入口（沿用 products.js 的 data-cart-open） ---------- */
[data-xc="sub"] .header__actions .cart-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
[data-xc="sub"] .header__actions .cart-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-weak); }
[data-xc="sub"] .header__actions .cart-btn .icon { width: 18px; height: 18px; }
html[data-xc="sub"][data-theme="dark"] .header__actions .cart-btn { background: transparent; }
[data-xc="sub"] .header__actions .cart-btn .cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--accent-solid);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
[data-xc="sub"] .header__actions .cart-btn .cart-count[hidden] { display: none; }

/* ---------------- 栏目副导航（保留工具页上下文内链） ---------------- */
.xc-subnav {
  background: var(--xc-bg);
  border-bottom: 1px solid var(--xc-line);
}
.xc-subnav__in {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-inline: var(--xc-gutter);
}
.xc-subnav__in::-webkit-scrollbar { display: none; }
.xc-subnav__label {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--xc-muted-2);
  padding-right: 10px;
  border-right: 1px solid var(--xc-line);
}
.xc-subnav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.xc-subnav__links a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--xc-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s, background .16s;
}
.xc-subnav__links a:hover { color: var(--xc-ink); background: var(--xc-soft); }
.xc-subnav__links a.is-on {
  color: var(--xc-brand);
  background: var(--xc-accent-weak);
  font-weight: 600;
}

/* ---------------- 页脚 ---------------- */
.xf-footer {
  border-top: 1px solid var(--xc-line);
  background: var(--xc-bg);
  padding: 52px 0 24px;
  color: var(--xc-ink);
}
.xf-footer *, .xc-subnav *, .xc-mobilebar * { box-sizing: border-box; }
.xh-wrap {
  width: 100%;
  margin: 0 auto;
  padding-inline: var(--xc-gutter);
}
/* 页脚上限只作用于子页；首页页脚跟首页正文（不设硬上限）保持一致 */
html[data-xc="sub"] .xh-wrap { max-width: 1280px; }
.xf-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 3fr);
  gap: 44px;
}
.xh-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  color: var(--xc-ink);
  text-decoration: none;
}
.xh-brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--xc-brand);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, .16);
}
.xh-brand__mark svg { width: 17px; height: 17px; }
.xh-brand__text {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.xf-brand__desc {
  margin: 14px 0 0;
  max-width: 30em;
  font-size: 13px;
  line-height: 1.75;
  color: var(--xc-muted);
}
.xf-tel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--xc-muted-2);
}
.xf-tel b,
.xf-tel__num {
  font-size: 21px;
  letter-spacing: .01em;
  color: var(--xc-ink);
}
.xf-tel__num {
  align-self: flex-start;
  text-decoration: none;
  transition: color .18s;
}
.xf-tel__num:hover { color: var(--xc-brand); }
.xf-tel small { font-size: 11.5px; }
.xf-contacts { margin-top: 16px; }

.xf-cols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 18px;
}
.xf-cols h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--xc-ink);
}
.xf-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.xf-links a {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--xc-muted);
  text-decoration: none;
  transition: color .16s;
}
.xf-links a:hover { color: var(--xc-brand); }

.xf-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--xc-line);
  font-size: 12px;
  color: var(--xc-muted-2);
}
.xf-pay__tag {
  padding: 3px 9px;
  border: 1px solid var(--xc-line);
  border-radius: 5px;
  font-size: 11.5px;
  color: var(--xc-muted);
  background: var(--xc-soft);
}

/* 友情链接：单行文字栏，随页脚一起注入；数据源 chrome.config.json → friendLinks */
.xf-friend {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--xc-muted-2);
}
.xf-friend__label { flex: none; color: var(--xc-muted); }
.xf-friend__list { display: flex; flex-wrap: wrap; gap: 6px 20px; min-width: 0; }
.xf-friend__group { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.xf-friend__group i { font-style: normal; color: var(--xc-muted-2); }
.xf-friend__group a {
  color: var(--xc-muted);
  text-decoration: none;
  transition: color .16s;
}
.xf-friend__group a:hover { color: var(--xc-brand); }

.xf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--xc-line);
}
.xf-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font-size: 11.5px;
  color: var(--xc-muted-2);
}
.xf-legal a {
  color: var(--xc-muted);
  text-decoration: none;
}
.xf-legal a:hover { color: var(--xc-brand); }
/* 资质项：小图标与文字基线对齐，不额外占行 */
.xf-legal .xf-legal__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--xc-muted-2);
  white-space: nowrap;
}
.xf-legal__item svg {
  flex: none;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a.xf-legal__item:hover { color: var(--xc-brand); }

/* ---------------- 移动端底栏 ---------------- */
.xc-mobilebar { display: none; }

@media (max-width: 73.75em) {              /* 1180px */
  [data-xc="sub"] .nav { margin-left: 4px; }
  [data-xc="sub"] .nav a { padding: 8px 6px; font-size: 13.5px; }
  [data-xc="sub"] .nav__trigger { padding: 8px 6px; font-size: 13.5px; }
  [data-xc="sub"] .logo { margin-right: 6px; }
  [data-xc="sub"] .logo__sub { display: none; }
  [data-xc="sub"] .header__actions { gap: 4px; }
  [data-xc="sub"] .header__actions .link-quiet { padding: 8px; }
}

@media (max-width: 70em) {                /* 1120px：子页多一个购物车，1080–1120 区间收紧防溢出 */
  [data-xc="sub"] .nav { margin-left: 2px; }
  [data-xc="sub"] .nav a { padding: 8px 4px; font-size: 13px; }
  [data-xc="sub"] .nav__trigger { padding: 8px 4px; font-size: 13px; }
}

@media (max-width: 67.5em) {              /* 1080px */
  [data-xc="sub"] .nav { display: none; }
  [data-xc="sub"] .header__actions .link-quiet { display: none; }
  [data-xc="sub"] .header__actions { gap: 8px; }
  [data-xc="sub"] .header .container { height: 58px; }
  [data-xc="sub"] { --header-h: 58px; }

  body:has(.xc-mobilebar) { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .xc-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: flex;
    align-items: stretch;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom, 0px));
    background: var(--xc-bg);
    border-top: 1px solid var(--xc-line);
    box-shadow: 0 -12px 30px -24px rgba(13, 21, 35, .55);
  }
  .xc-mobilebar a {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 9px 4px;
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--xc-muted);
    text-decoration: none;
    white-space: nowrap;
  }
  .xc-mobilebar a[aria-current="page"] {
    color: var(--xc-brand);
    background: var(--xc-accent-weak);
    font-weight: 600;
  }
  .xc-subnav { display: none; }
  .xf-top { grid-template-columns: 1fr; gap: 30px; }
  .xf-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
  .xf-footer { padding: 34px 0 28px; }
}

/* 公告条移动端：不整组隐藏，按优先级分段收起，任何宽度都保留帮助中心入口。
   优先级来自 build-chrome.js 生成的 class：--aux（备案查询/服务状态/提交工单/控制台）
   → --mid（工具）→ --keep（帮助中心，永不移除）。条高保持 36/34px，不折行、不跳高。 */
@media (max-width: 51.25em) {             /* 820px */
  [data-xc="sub"] .notice .container { gap: 12px; }
  [data-xc="sub"] .notice__links { gap: 14px; }
  [data-xc="sub"] .notice__link--aux { display: none; }
}

@media (max-width: 30em) {                /* 480px */
  [data-xc="sub"] .notice__links { gap: 12px; }
  [data-xc="sub"] .notice__link--mid { display: none; }
}

@media (max-width: 40em) {                /* 640px */
  .xf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xf-pay { margin-top: 28px; font-size: 11.5px; }
  .xf-tel b,
  .xf-tel__num { font-size: 19px; }
}

@media (max-width: 38.75em) {             /* 620px */
  [data-xc="sub"] .container { padding: 0 18px; }
  [data-xc="sub"] .notice .container { min-height: 34px; }
  [data-xc="sub"] .notice__text { font-size: 12px; }
  [data-xc="sub"] .header .container { height: 58px; }
  [data-xc="sub"] { --header-h: 58px; }
  [data-xc="sub"] .logo__mark { width: 27px; height: 27px; border-radius: 7px; }
  [data-xc="sub"] .logo__text { font-size: 17px; }
  [data-xc="sub"] .header__actions .btn--primary { height: 34px; padding: 0 12px; font-size: 13px; }
  [data-xc="sub"] .header__actions .btn--ghost { display: none; }
  [data-xc="sub"] .header__actions { gap: 5px; }
  [data-xc="sub"] .head-search { width: 34px; height: 34px; }
  [data-xc="sub"] .head-mode { width: 34px; height: 34px; }
  [data-xc="sub"] .header__actions .cart-btn { width: 34px; height: 34px; }
  [data-xc="sub"] .burger { width: 36px; height: 36px; }
}

/* ---------- auth 栏目：返回首页 / 帮助中心（并入原有 .auth-top 行） ---------- */
.auth-top__links { display: flex; align-items: center; }
.auth-top__sep { margin: 0 2px; color: var(--line); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  [data-xc="sub"] .header, [data-xc="sub"] .nav a, [data-xc="sub"] .btn,
  .xf-links a { transition: none; }
}

/* ============================================================
   全站内容配图统一规则
   全站只有这一处定义，各栏目页面不再各自约束图片：

   1) 兜底：任何图片都不超过所在容器的宽度，等比缩放，不拉伸变形。
      组件自有的尺寸规则（如商品详情 .ch-detail__media 的 460px 定宽）选择器权重更高，
      不会被这条兜底覆盖。
   2) 正文配图容器：宽度上限 --figure-max（与解决方案页 .sol-wrap 一致），居中。
      桌面端此前是满宽（--page-max/--container 都是 100%），一张 8:5 的示意图
      在 1440 视口下会被放大到 1366px 宽、854px 高，把版面撑开。
   3) 静态示意图：容器先按 1200×750 占位（与图片原始比例一致），
      图片加载前后占位不变，避免版面跳动；图片按容器等比缩放，不做裁切。
   ============================================================ */
:root { --figure-max: 1180px; }

img { max-width: 100%; height: auto; }

.intro-illus figure,
.dc-figure,
.dc__wrap > .dc-figure,
.sol-figure {
  width: 100%;
  max-width: var(--figure-max);
  margin-left: auto;
  margin-right: auto;
}

.intro-illus figure > picture,
.dc-figure > picture {
  display: block;
  background: radial-gradient(120% 120% at 50% 0%, rgba(58, 96, 153, .28), #0b1424 72%);
  border-radius: 10px;
  overflow: hidden;
}
/* 产品频道示意图已换成 1200×150 横条：容器按 8:5 撑高会在上下留大块深色背景，
   故单独收到 1200/150。数据中心 dc-figure 仍用原始 1200×750（另有 430px 限高规则），不受影响。 */
.intro-illus figure > picture { aspect-ratio: 1200 / 150; }
.dc-figure > picture { aspect-ratio: 1200 / 750; }
.intro-illus figure > picture > img,
.dc-figure > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
/* 数据中心机房示意图限高：源图 1200×750 烧了标题/图注，展示按 430px 居中裁切，
   图高从约 724px 降到 430px。仅覆盖 dc-figure，不影响 intro-illus。 */
.dc-figure > picture { aspect-ratio: auto; }
.dc-figure > picture > img {
  height: 430px;
  object-fit: cover;
  object-position: center 45%;
}

/* 运行时注入的配图（page-copy.js）：与静态示意图同一套尺寸与画幅。
   图片来自后台，比例不一定是 8:5，用 contain 保证不裁切、不拉伸。 */
.page-copy-figure {
  width: 100%;
  max-width: calc(var(--figure-max) + var(--xc-gutter) * 2);
  margin: 12px auto;
  padding: 0 var(--xc-gutter);
  box-sizing: border-box;
}
.page-copy-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 150;
  object-fit: contain;
  border-radius: 12px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(58, 96, 153, .28), #0b1424 72%);
}

/* ---------------------------------------------------------------
   「全部服务」= 真链接 + 独立展开按钮
   链接负责跳转 /products/，箭头按钮只负责展开面板，两者合成一个 hover 胶囊。
   这里故意不加 [data-xc="sub"] 前缀：首页页头样式写在 index.html 的内联 <style> 里，
   本文件最后加载，需要同时覆盖首页（无 data-xc）和子页。
   --------------------------------------------------------------- */
.nav__group { display: flex; align-items: center; border-radius: 6px; }
.nav__group:hover,
.nav__group.is-open { background: var(--bg-soft); }
.nav__group > a.nav__link { padding-right: 3px; }
.nav__group > a.nav__link::after { left: 10px; right: 3px; }
.nav__group > button.nav__trigger { padding-left: 3px; }
.nav__group > a.nav__link:hover,
.nav__group > button.nav__trigger:hover,
.nav__group.is-open > a.nav__link,
.nav__group.is-open > button.nav__trigger { background: transparent; }
/* 子页原有 [data-xc="sub"] .nav__group.is-open .nav__trigger 会再加一层底色，这里压掉 */
[data-xc="sub"] .nav__group.is-open > button.nav__trigger { background: transparent; }

/* 移动端同样拆分：左侧链接可点，右侧箭头单独控制展开 */
.mobile-nav__head { display: flex; align-items: center; }
.mobile-nav__head > a.mobile-nav__link {
  flex: 1; padding: 13px 10px; border-bottom: 0;
  font-size: 15px; color: var(--ink); text-decoration: none;
}
.mobile-nav__head > button.mobile-nav__toggle { width: auto; flex: none; padding: 13px 10px; }

/* ==================== v2 单产品入口 Mega 面板 ==================== */
[data-xc="sub"] .nav__link--v2 { position: relative; }
[data-xc="sub"] .nav__menu--mega {
  left: 50%; transform: translateX(-50%);
  width: min(1160px, calc(100vw - 40px)); min-width: 0; max-width: none;
  padding: 0; overflow: visible;
}
[data-xc="sub"] .nav__menu--mega a { white-space: normal; }
[data-xc="sub"] .nav__group--mega { position: static; }
[data-xc="sub"] .mnav2__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 22px; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--ink);
}
[data-xc="sub"] .mnav2__all {
  font-size: 12.5px !important; font-weight: 500 !important; color: var(--accent) !important;
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 4px 12px !important;
}
[data-xc="sub"] .mnav2__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px 8px 6px;
}
[data-xc="sub"] .mnav2__col { padding: 0 20px; border-right: 1px solid var(--line); min-width: 0; }
[data-xc="sub"] .mnav2__col:last-child { border-right: 0; }
[data-xc="sub"] .mnav2__colhead {
  display: inline-block !important; font-size: 14.5px !important; font-weight: 600 !important;
  color: var(--ink) !important; padding: 0 0 6px !important;
}
[data-xc="sub"] .mnav2__colhead:hover { color: var(--accent) !important; background: none !important; }
[data-xc="sub"] .mnav2__coldesc { margin: 0 0 10px; font-size: 11.8px; color: var(--muted); line-height: 1.5; }
[data-xc="sub"] .mnav2__group { margin-top: 12px; }
[data-xc="sub"] .mnav2__gtitle {
  margin: 0 0 3px; font-size: 10.8px; font-weight: 700; letter-spacing: .08em; color: var(--muted);
}
[data-xc="sub"] .mnav2__group a { padding: 3px 7px !important; margin: 0 -7px; font-size: 13.2px !important; line-height: 1.5; border-radius: 6px; }
[data-xc="sub"] .mnav2__foot {
  display: flex; gap: 22px; flex-wrap: wrap; border-top: 1px solid var(--line);
  padding: 11px 22px; font-size: 12.4px; color: var(--muted);
}
[data-xc="sub"] .mnav2__foot a { padding: 0 !important; color: var(--muted) !important; }
[data-xc="sub"] .mnav2__foot a:hover { color: var(--accent) !important; background: none !important; }

/* 移动端 v2 手风琴 */
[data-xc="sub"] .mobile-nav__link--v2 { font-size: 15px; }
[data-xc="sub"] .mobile-nav__family { padding: 10px 6px 6px; border-top: 1px dashed var(--line); }
[data-xc="sub"] .mobile-nav__family:first-child { border-top: 0; }
[data-xc="sub"] .mobile-nav__family .mobile-nav__link { color: var(--accent); font-weight: 600; }
[data-xc="sub"] .mnav2__msub { padding: 4px 0; }
[data-xc="sub"] .mnav2__msub a { padding: 7px 6px !important; font-size: 13.6px !important; }

@media (max-width: 820px) {
  [data-xc="sub"] .mnav2__grid { grid-template-columns: 1fr; }
  [data-xc="sub"] .mnav2__col { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; }
}


  /* ===== v2 产品卡片面板 · 双主题跟随（亮/暗） ===== */
  .nav__menu--mega:has(.v2cards) { padding: 0; background: var(--surface); left: 50%; width: min(1560px, calc(100vw - 48px)); }
  /* 子页内容容器上限 1280：面板边缘与子页正文对齐，避免比正文宽一圈显得错位 */
  [data-xc="sub"] .nav__menu--mega:has(.v2cards) { width: min(1280px, calc(100vw - 48px)); }
  .v2panel__inner { max-width: none; margin: 0 auto; padding: 26px 24px 28px; }
  .v2panel__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .v2panel__top h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
  .v2cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; width: 100%; }
  /* 提升选择器优先级：[data-xc="sub"] .nav__menu a / .mobile-nav__sub a 的基础规则
     （display:block、9~11px 内边距）会压过单类 .v2card，导致卡片图标与文字竖排。 */
  [data-xc="sub"] .nav__menu--mega .v2card, [data-xc="sub"] .mobile-nav__sub .v2card { position: relative; display: flex; gap: 14px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px; min-height: 104px; cursor: pointer; transition: border-color .16s, background .16s, transform .16s; text-decoration: none; font-size: 14.5px; color: var(--ink); white-space: normal; }
  [data-xc="sub"] .nav__menu--mega .v2card:hover, [data-xc="sub"] .mobile-nav__sub .v2card:hover { border-color: var(--accent-line); background: var(--accent-weak); transform: translateY(-1px); color: var(--ink); }
  [data-xc="sub"] .nav__menu--mega .v2tool { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border: 1px solid transparent; border-radius: 7px; font-size: 12.5px; color: var(--ink-2); text-decoration: none; transition: .15s; white-space: nowrap; }
  [data-xc="sub"] .nav__menu--mega .v2tool:hover { background: var(--accent-weak); border-color: var(--accent-line); color: var(--accent); }
  [data-xc="sub"] .nav__menu--mega .v2panel__top a { font-size: 12.5px; color: var(--accent); font-weight: 500; padding: 0; }
  [data-xc="sub"] .nav__menu--mega .v2panel__foot a { color: var(--muted); padding: 0; font-size: 12px; }
  [data-xc="sub"] .nav__menu--mega .v2panel__foot a:hover { color: var(--accent); }
  .v2card__ico { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; }
  .v2card__ico svg { width: 21px; height: 21px; }
  .v2card__body { min-width: 0; }
  .v2card__title { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 5px; flex-wrap: wrap; }
  .v2card__desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
  .v2card .tag { font-size: 9.5px; font-weight: 600; padding: 0 5px; border-radius: 3px; line-height: 15px; white-space: nowrap; border: 1px solid transparent; }
  /* 热销/NEW 标签：亮色深字保证对比度，暗色单独覆盖（与首页取值一致） */
  [data-xc="sub"] .v2card .tag--hot { background: #fdecea; color: #96261a; border-color: #f3d2c2; }
  [data-xc="sub"] .v2card .tag--new { background: #e8f0fe; color: #0842a0; border-color: #b8d1fb; }
  html[data-xc="sub"][data-theme="dark"] .v2card .tag--hot { background: rgba(240, 138, 122, .14); color: #ffb3a6; border-color: rgba(232, 162, 124, .34); }
  html[data-xc="sub"][data-theme="dark"] .v2card .tag--new { background: rgba(90, 142, 242, .16); color: #b8d1fb; border-color: rgba(90, 142, 242, .32); }
  .v2card--all { border-style: dashed; }
  .v2card--all .v2card__title { color: var(--accent); }
  .v2tools { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
  .v2tools__label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .05em; margin-bottom: 12px; }
  .v2tools__grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
  .v2tool svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
  .v2panel__foot { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
  .mobile-nav__sub .v2cards { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 8px; }
  @media (max-width: 820px) { .v2cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
  @media (max-width: 520px) { .v2cards { grid-template-columns: 1fr; } .mobile-nav__sub .v2cards { grid-template-columns: 1fr; } }
