/* ==========================================================================
   知物 Trace — 官网 / 用户手册 共用样式
   设计基调：简约、优雅。以留白、细描边与克制的蓝色主色组织信息层级。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
  /* 表单控件、滚动条跟随系统配色；深浅两套值见下方 1b 段 */
  color-scheme: light dark;

  /* 品牌色：与应用内主色一致，白底上降一档保证对比度 */
  --brand-600: #0a6cf0;
  --brand-500: #1677f5;
  --brand-400: #4b95f8;
  --brand-100: #e6f0fe;
  --brand-050: #f2f7ff;

  /* 中性色阶 */
  --ink-900: #0d1420;
  --ink-800: #1c2735;
  --ink-700: #38455a;
  --ink-500: #64748b;
  --ink-400: #8b98ab;
  --ink-300: #b6c0cd;
  --line: #e4e9f0;
  --line-soft: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;

  /* 语义色 */
  --danger: #e84026;
  --warn: #ff8f1f;
  --ok: #2f9e44;

  /* 排版：系统中文字体栈，不引入 webfont（托管包零外链依赖） */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans CJK SC',
    sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* 尺度 */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(13, 20, 32, 0.04), 0 1px 3px rgba(13, 20, 32, 0.03);
  --shadow: 0 2px 8px rgba(13, 20, 32, 0.05), 0 8px 24px rgba(13, 20, 32, 0.05);
  --shadow-lg: 0 8px 24px rgba(13, 20, 32, 0.08), 0 24px 56px rgba(13, 20, 32, 0.08);

  /* 半透明浮层：深色模式必须整体反转，否则吸顶导航/悬浮卡片会留下刺眼的白底 */
  --header-bg: rgba(255, 255, 255, 0.88);
  --hover: rgba(13, 20, 32, 0.05);
  --float-card-bg: rgba(255, 255, 255, 0.96);

  /* 渐变收尾色：与 --brand-100 / --brand-050 同色相但 alpha 为 0，供径向光晕淡出 */
  --glow-brand-100: rgba(230, 240, 254, 0);
  --glow-brand-050: rgba(242, 247, 255, 0);

  /* 语义底色（警告块） */
  --warn-line: #ffe0c2;
  --warn-bg: #fff8f0;

  /* 全站正文统一用这一个宽度：协议中心曾用 --wrap-narrow(760px)，
     从手册跳过去正文块窄一截，看着像另一个站点，已改回。 */
  --wrap: 1120px;
  --gutter: 24px;
}

/* --------------------------------------------------------------------------
   1b. 深色模式
   -------------------------------------------------------------------------- */
/* 三态：跟随系统（默认）/ 浅色 / 深色。开关在地球图标左边（nav.js 的 initThemeToggle），
   选择写入 <html data-theme>，auto 时该属性移除——于是「深色」有两个触发条件：
     ① 用户手动选了深色            → :root[data-theme='dark']
     ② 没手动指定，且系统为深      → @media 块内的 :root:not([data-theme='light'])
   浏览器没法在选择器里跨媒体查询做 OR，只能把深色令牌写两遍；
   **两块的令牌必须逐字一致**，check_site_links.ps1 的「深色令牌双写一致」就是防它们漂移。
   品牌蓝在深底上整体提亮——浅底用的 #0a6cf0 直接搬到深底会糊成一片、读不出层级。
   --bg 刻意取 #0d1420，与各页 theme-color 的深色值一致，浏览器地址栏跟着变。 */
:root[data-theme='light'] {
  color-scheme: light;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --brand-600: #6fb0ff;
  --brand-500: #2f80e6;
  --brand-400: #6fb0ff;
  --brand-100: #17324e;
  --brand-050: #10233a;

  --ink-900: #e8edf5;
  --ink-800: #d5dce6;
  --ink-700: #b0bccd;
  --ink-500: #8695a9;
  --ink-400: #6b7a8d;
  --ink-300: #556374;
  --line: #22303f;
  --line-soft: #1a2431;
  --bg: #0d1420;
  --bg-soft: #121b27;

  --danger: #ff7059;
  --warn: #ffa94d;
  --ok: #57d06a;

  --header-bg: rgba(13, 20, 32, 0.82);
  --hover: rgba(255, 255, 255, 0.08);
  --float-card-bg: rgba(18, 27, 39, 0.96);
  --glow-brand-100: rgba(23, 50, 78, 0);
  --glow-brand-050: rgba(16, 35, 58, 0);

  --warn-line: #4a3a20;
  --warn-bg: #241c12;

  /* 深色下阴影几乎看不见，改用更实的黑来撑起层次 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5), 0 24px 56px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --brand-600: #6fb0ff;
    --brand-500: #2f80e6;
    --brand-400: #6fb0ff;
    --brand-100: #17324e;
    --brand-050: #10233a;

    --ink-900: #e8edf5;
    --ink-800: #d5dce6;
    --ink-700: #b0bccd;
    --ink-500: #8695a9;
    --ink-400: #6b7a8d;
    --ink-300: #556374;
    --line: #22303f;
    --line-soft: #1a2431;
    --bg: #0d1420;
    --bg-soft: #121b27;

    --danger: #ff7059;
    --warn: #ffa94d;
    --ok: #57d06a;

    --header-bg: rgba(13, 20, 32, 0.82);
    --hover: rgba(255, 255, 255, 0.08);
    --float-card-bg: rgba(18, 27, 39, 0.96);
    --glow-brand-100: rgba(23, 50, 78, 0);
    --glow-brand-050: rgba(16, 35, 58, 0);

    --warn-line: #4a3a20;
    --warn-bg: #241c12;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5), 0 24px 56px rgba(0, 0, 0, 0.45);
  }
}

/* --------------------------------------------------------------------------
   2. 基础重置
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--brand-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul,
ol {
  margin: 0;
  padding-left: 1.25em;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  border-radius: 5px;
  background: var(--brand-050);
  color: var(--brand-600);
  word-break: break-all;
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   跨页过渡（横向）
   首页 / 用户手册 / 协议中心 三个页面之间跳转时做水平滑动，代替生硬的白屏切换。
   用 CSS 的跨文档 View Transitions，零 JS：
     - 支持（Chromium 126+ / Safari 18+）→ 新页自右滑入、旧页向左滑出；
     - 不支持 → 原样整页跳转，等价于改动前的行为，不会更差。
   必须**两端页面都声明** @view-transition，所以只对加载了本文件的三个页面生效；
   四份协议正文是独立文档、未声明，跳过去即无过渡（符合预期）。
   -------------------------------------------------------------------------- */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: site-page-out 260ms cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  ::view-transition-new(root) {
    animation: site-page-in 260ms cubic-bezier(0.4, 0, 0.2, 1) both;
  }
}

@keyframes site-page-out {
  to {
    transform: translateX(-14%);
    opacity: 0;
  }
}

@keyframes site-page-in {
  from {
    transform: translateX(14%);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   3. 布局工具
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  background: var(--brand-500);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  text-decoration: none;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.section-head h2 {
  font-size: clamp(24px, 4vw, 32px);
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-500);
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   4. 顶部导航
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-900);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  /* 官方 logo 底色接近纯白，小尺寸下需描边才有轮廓 */
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.brand .brand-en {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-400);
  text-transform: uppercase;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  transition: background 0.18s ease, color 0.18s ease;
}

/* 悬停用**中性灰底 + 深色字**，刻意不用蓝色。
   原来悬停用 --brand-050(#f2f7ff)、选中用 --brand-100(#e6f0fe)，两个色几乎分不出来，
   鼠标扫过时看着像选中，"当前在哪一节"就失效了。 */
.site-nav a:hover {
  background: var(--hover);
  color: var(--ink-900);
  text-decoration: none;
}

/* 选中：蓝色填充胶囊 + 蓝字。真实页面链接用 aria-current="page"，页内锚点用 "true"。 */
.site-nav a[aria-current] {
  background: var(--brand-100);
  color: var(--brand-600);
}

/* 键盘可达性：只对键盘聚焦出焦点环，且与选中态不混淆 */
.site-nav a:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
}

/* 外观开关（跟随系统 / 浅色 / 深色）+ 语言切换，两者一起靠右。
   两者都刻意放在 .site-nav **外面**、.nav-toggle 前面：
   ① nav.js 的 initSectionSpy 用 `.site-nav a` 判定「当前页链接」，把切换器塞进去会被
      当成第一个真实页面链接（pageLink），滚动高亮就会跟着语言链接跑；
   ② 放在 nav 外，窄屏抽屉收起时这两个入口依然可见，用户不必先展开菜单才能换语言/换外观。 */
.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* 外观按钮与语言按钮共用同一套胶囊外观 */
.theme-toggle,
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-700);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.theme-toggle:hover,
.lang-toggle:hover {
  background: var(--hover);
  color: var(--ink-900);
}

.theme-toggle:focus-visible,
.lang-toggle:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
}

.header-tools svg {
  flex-shrink: 0;
}

/* 两个图标都在按钮里，靠 data-theme-state 显示其中一个：切图标不用碰 DOM。
   只有浅/深两态——「跟随系统」不是一档，用户没动过按钮时外观本来就随系统。 */
.theme-toggle svg {
  display: none;
}

.theme-toggle[data-theme-state='light'] .icon-sun,
.theme-toggle[data-theme-state='dark'] .icon-moon {
  display: block;
}

.lang-switch {
  position: relative;
}

/* 展开时箭头翻转，和 .nav-toggle 的汉堡同属「这个按钮开了个东西」的反馈 */
.lang-caret {
  transition: transform 0.18s ease;
}

.lang-toggle[aria-expanded='true'] .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 172px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow);
}

/* hidden 属性必须显式兜住：下面 .lang-menu a 之外的 display 设定会盖掉 UA 默认的 [hidden] */
.lang-menu[hidden] {
  display: none;
}

.lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  white-space: nowrap;
}

.lang-menu a:hover {
  background: var(--hover);
  color: var(--ink-900);
  text-decoration: none;
}

/* 当前语言：沿用 .site-nav 选中态的蓝，全站两处「你在哪」读起来一致 */
.lang-menu a[aria-current='true'] {
  background: var(--brand-050);
  color: var(--brand-600);
  font-weight: 600;
}

.lang-menu a:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: -2px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-800);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded='true'] span {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] span::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span::after {
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 119, 245, 0.28);
}

.btn-primary:hover {
  background: var(--brand-600);
}

.btn-ghost {
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink-800);
}

.btn-ghost:hover {
  border-color: var(--brand-400);
  color: var(--brand-600);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   6. 卡片
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card-hover:hover {
  border-color: var(--brand-400);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-500);
  font-size: 15px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-2 {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

/* 图标徽标 */
.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--brand-050);
  font-size: 22px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   7. 设备样张
   -------------------------------------------------------------------------- */
.shot {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
  display: block;
}

.shot figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-500);
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

/* 手机样张：真实机身外框（device-shell.png）+ 内嵌屏幕内容
   几何来自 tools/split_device_shell.ps1 对 1424x2931 带壳渲染图的实测：
   屏幕区 x=50 y=50 w=1316 h=2832，四周有 9px 纯黑内边框，屏幕角为直角（半径≈0）。
   壳图中空，所以下面这张壳图可复用于任意张截图。 */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1424 / 2931;
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(15, 23, 42, 0.22));
}

/* 屏幕内容层：按实测百分比精确内缩到壳的屏幕区。
   这里**故意不设 border-radius**：壳的挖孔是沿实测屏边界描出来的（不是几何圆角），
   壳又在最上层，裁切完全由壳负责。再叠一层圆角反而会把截图四角多切掉一点，
   在与孔形状不一致处露出页面底色。 */
.phone-screen {
  position: absolute;
  left: 3.511%;
  top: 1.706%;
  width: 92.416%;
  height: 96.622%;
  overflow: hidden;
  background: #fff;
}

/* 状态栏摄像头开孔（Mate 系列顶部三个圈）。
   模拟器截图本身不含开孔（实测顶部中央暗像素为 0），由壳图渲染图抠出后单独叠回，
   这样各图自己的时间/电量得以保留。 */
.phone-cam {
  position: absolute;
  left: 39.817%;
  top: 3.275%;
  width: 19.733%;
  height: 2.456%;
  background: url("../img/device-camera.png") no-repeat center / 100% 100%;
  pointer-events: none;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* 机身外壳叠加层（含黑内边框、侧键、听筒槽） */
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/device-shell.png") no-repeat center / 100% 100%;
  pointer-events: none;
}

.phone figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30px;
  font-size: 13px;
  color: var(--ink-400);
  text-align: center;
}

/* --------------------------------------------------------------------------
   8. 提示条 / 标签
   -------------------------------------------------------------------------- */
.notice {
  /* 之前完全没有外边距，贴在上一块（如 .adapt 卡片组）下面，看着像没做完 */
  margin: 24px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--brand-100);
  border-left: 3px solid var(--brand-500);
  border-radius: var(--radius);
  background: var(--brand-050);
  font-size: 15px;
  color: var(--ink-700);
}

.notice strong {
  color: var(--ink-900);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-600);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   9. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 40px;
  padding: 44px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 14px;
  color: var(--ink-500);
}

.site-footer .footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 28px;
}

.site-footer h4 {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--ink-900);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--ink-500);
}

.site-footer a:hover {
  color: var(--brand-600);
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-400);
}

/* ICP 备案号：工信部要求在网站底部显著位置展示并链接备案系统 */
.footer-bottom .icp {
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
}

.footer-bottom .icp:hover {
  color: var(--brand-600);
}

/* --------------------------------------------------------------------------
   10. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .section {
    padding: 56px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* 窄屏下 .site-nav 脱离文档流，语言切换的 margin-left:auto 顶到右侧，
     汉堡按钮紧随其后即可，这里撤掉它自己的 auto，否则两端各分一份空白。 */
  .nav-toggle {
    margin-left: 0;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 15.5px;
  }

  .section {
    padding: 44px 0;
  }

  .card {
    padding: 20px;
    border-radius: var(--radius);
  }

  .brand .brand-en {
    display: none;
  }
}