/* ==========================================================================
   BIGCAPYBARA's — 首页
   设计令牌与视觉规则见 DESIGN.md
   ========================================================================== */

:root {
  /* 色板（用户指定） */
  --midnight: #02070A;
  --electric: #0297DE;
  --orange:   #FC734D;
  --white:    #FFFFFF;

  /* 字体 */
  --font-display: "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --font-script:  "Segoe Script", "Bradley Hand", cursive;
  --font-cn:      "Alibaba PuHuiTi 3.0", "阿里巴巴普惠体 3.0 35 Thin",
                  "AlibabaPuHuiTi-3-35-Thin", "Microsoft YaHei", sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
}

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

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--midnight);
  color: var(--white);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- 背景：静态，无入场动画 ---------- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    /* 收尾层：把背景图底部的纯黑过渡成站内黑 #02070A——
       蓝→黑顺下来，和页面其余部分（底栏/工具页章节）无缝相接 */
    linear-gradient(180deg,
      rgba(2, 7, 10, 0) 76%,
      rgba(2, 7, 10, .5) 89%,
      var(--midnight) 100%),
    url("assets/background.png") center / cover no-repeat,
    linear-gradient(180deg,
      #00A7FF 0%, #00A7FF 40%,
      #0080C8 55%, #005C95 68%, #003862 80%, #02070A 92%, #02070A 100%);
}

/* ---------- 主标题 ---------- */
.hero__title {
  position: absolute;
  z-index: 1;
  top: 1.927vw;   /* 37 / 1920 */
  left: 3.177vw;  /* 61 / 1920 */
  width: 93.646vw; /* 1798 / 1920 */
  /* 高度硬下限：任何窗口下都 ≥ 主页面高度的 60%（宽屏时按宽度驱动可更高） */
  height: max(30vw, 60vh);
  height: max(30vw, 60dvh);
  margin: 0;
  animation: title-in 1.05s var(--ease-out) .05s both;
}

.hero__title-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* 子页面大字标题：同一套拉伸构造，靠左上，宽度=屏宽 50% */
.hero__title--sub {
  top: 3.4vh;
  left: 3.177vw;
  width: 50vw;
  height: var(--sub-title-h);
}

@keyframes title-in {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 水豚主视觉 ---------- */
.hero__capy {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 68.4vw;
  height: auto;
  translate: -50% 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  animation: capy-in 1.15s var(--ease-out) .18s both;
}

@keyframes capy-in {
  from { opacity: 0; transform: translateY(52px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 子页面：水豚居中于右侧空白半屏（50vw–100vw 的中线 = 75vw） */
.hero__capy--side {
  top: 17vh;
  left: 75vw;
  right: auto;
  width: 54vw;
  translate: -50% 0;
}

/* ---------- 关于页信息区 ---------- */
.about {
  position: absolute;
  z-index: 3;
  left: 3.177vw;
  /* 锚定在大字下方，永不被大字压住 */
  top: calc(3.4vh + var(--sub-title-h) + 1.4vh);
  width: 40vw;
  transition: opacity .4s ease;
}

.about__intro {
  margin: 0 0 clamp(6px, .6vw, 12px);
  font-family: var(--font-cn);
  font-weight: 100;
  /* 一律比信息行的值小一档：上限 22px < 值 26px（移动端 3.4vw < 4vw） */
  font-size: clamp(12px, 1.15vw, 22px);
  line-height: 1.55;
  letter-spacing: .05em;
  color: var(--white);
  opacity: .88;
  text-wrap-style: pretty;
  animation: nav-in .8s var(--ease-out) .55s both;
}

.about__list {
  margin: 0;
  padding: 0;
  /* 标签列宽 = 最宽的那个标签（中英文各自自适应），三行的值共用一条左基准线 */
  display: grid;
  grid-template-columns: minmax(5.2em, max-content) 1fr;
  column-gap: 1vw;
}

.about__row {
  display: grid;
  grid-template-columns: 5.2em 1fr;   /* 回退：不支持 subgrid 的浏览器 */
  grid-template-columns: subgrid;      /* 行与行共用同一列宽，Contact 不会挤到值上 */
  grid-column: 1 / -1;
  align-items: baseline;
  gap: 1vw;
  padding: clamp(5px, .5vw, 9px) 0;
  animation: nav-in .8s var(--ease-out) both;
}

.about__row:nth-child(1) { animation-delay: .66s; }
.about__row:nth-child(2) { animation-delay: .74s; }
.about__row:nth-child(3) { animation-delay: .82s; }

.about__row dt {
  font-family: var(--font-cn);
  font-weight: 100;
  /* 与介绍行同字号（见「字号层级」） */
  font-size: clamp(12px, 1.15vw, 22px);
  letter-spacing: .18em;
  color: var(--orange);
}

.about__row dd {
  margin: 0;
  font-family: var(--font-cn);
  font-weight: 100;
  font-size: clamp(13px, 1.3vw, 26px);
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--white);
  /* 字号一律同档：不再为某一行单独收小，放不下就自然换行 */
  white-space: normal;
  overflow-wrap: break-word;
  /* 折行时把各行拉匀，避免末行只剩一两个字 */
  text-wrap-style: balance;
}

/* 联系行：两段各自不拆，整行放不下时「邮箱」那一段另起一行 */
.about__row--contact dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1.4em;
}

.about__row--contact dd > span {
  white-space: nowrap;
}

/* 关于页离场：信息区跟大字一起上浮淡出 */
.hero.is-leaving .about { animation: leave-up .32s var(--ease-in) both; }

/* ---------- 手写副标题 ---------- */
.hero__script {
  position: absolute;
  z-index: 3;
  top: 13.21vw;   /* 254 / 1920 */
  left: 79.46vw;  /* 1526 / 1920 */
  margin: 0;
  translate: -50% -50%;
  rotate: 18deg;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(22px, 4.115vw, 90px);
  line-height: 1;
  color: var(--orange);
  white-space: nowrap;
  animation: script-in 1s var(--ease-out) .42s both;
}

/* 子页面：手写点缀，压在 ABOUT 粗体的左上角，向左倾 */
.hero__script--sub {
  top: 9vh;
  left: 10.5vw;
  font-size: clamp(20px, 3.2vw, 70px);
  rotate: -18deg;
}

/* 手写短语已是矢量轮廓（不依赖 Segoe Script 字体文件），尺寸由内联 width/height（em）跟随字号 */
.hero__script-svg { display: block; }

@keyframes script-in {
  from { opacity: 0; transform: translateY(30px) rotate(-4deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* ---------- 底部导航（等间距：空隙平均分配） ---------- */
.hero__nav {
  position: absolute;
  z-index: 4;
  left: 3.07vw;   /* 59 / 1920 */
  right: 2.809vw; /* 54 / 1920 */
  bottom: 3.71vh;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  transition: opacity .4s ease;   /* 切换语言时底栏与信息区一起淡出淡入 */
}

.hero__nav.is-switching,
.about.is-switching { opacity: 0; }

.nav__item,
.nav__lang {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-cn);
  font-weight: 100;
  font-size: clamp(14px, 1.93vw, 38px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease;
  animation: nav-in .8s var(--ease-out) both;
  -webkit-tap-highlight-color: transparent;
}

/* 点击热区：字就这么小（用户定的视觉），但可点范围至少 44px 高、左右各多 12px，
   手指/鼠标点在字外面一点点也能命中——不然容易「点了没反应」 */
.nav__item::before,
.nav__lang::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

.nav__item:hover,
.nav__item:focus-visible,
.nav__lang:hover,
.nav__lang:focus-visible { color: var(--orange); }

/* 子页底栏的「首页」常驻点缀色（只有子页才有这一格，主页没有，所以无需再排除主页）。
   hover / 焦点时反过来变白，保证仍有反馈。 */
.nav__item[data-i18n="home"] { color: var(--orange); }
.nav__item[data-i18n="home"]:hover,
.nav__item[data-i18n="home"]:focus-visible { color: var(--white); }

.nav__item:focus-visible,
.nav__lang:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 8px;
  border-radius: 2px;
}

/* 错峰延迟按顺序给：首页 → … → 语言键 */
.hero__nav > :nth-child(1) { animation-delay: .60s; }
.hero__nav > :nth-child(2) { animation-delay: .70s; }
.hero__nav > :nth-child(3) { animation-delay: .80s; }
.hero__nav > :nth-child(4) { animation-delay: .90s; }

@keyframes nav-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 预告占位提示 ----------
   点「预告」不跳转，页面顶部淡入小框，1.5s 后淡出（停留时长在 app.js 的 SOON_MS） */
.nav-soon {
  position: fixed;
  top: 5vh;
  left: 50%;
  translate: -50% 0;
  z-index: 20;
  padding: .58em 1.15em;
  /* 黑色圆角半透明磨砂小框：压在大字/水豚上也读得清 */
  background: rgba(2, 7, 10, .58);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  font-family: var(--font-cn);
  font-weight: 300;
  font-size: clamp(12px, 1.15vw, 22px);   /* 与介绍行同档，层级不越级 */
  letter-spacing: .04em;
  line-height: 1.3;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  box-shadow: 0 2px 14px rgba(2, 7, 10, .45);
}

.nav-soon.is-on { opacity: 1; }

/* ---------- 子页面：底栏 首页 / 另外两页 / 语言 ---------- */
/* 子页大字标题高度：50vw 等比高 36.9vw，上限 62vh 给信息区留白 */
.hero--sub {
  --sub-title-h: min(36.9vw, 62vh);
  --sub-title-h: min(36.9vw, 62dvh);
}

.hero--sub .hero__nav > :nth-child(1) { animation-delay: .12s; }
.hero--sub .hero__nav > :nth-child(2) { animation-delay: .22s; }
.hero--sub .hero__nav > :nth-child(3) { animation-delay: .32s; }
.hero--sub .hero__nav > :nth-child(4) { animation-delay: .42s; }

/* bfcache 返回时重放入场动画（app.js 会短暂挂上 .no-anim 再摘掉） */
.no-anim .hero__title,
.no-anim .hero__capy,
.no-anim .hero__script,
.no-anim .nav__item,
.no-anim .nav__lang { animation: none !important; }

/* ---------- 无障碍 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 入场动画刻意不跟系统「动画效果」开关联动：
   本机 ClientAreaAnimation=False 时 Chrome 会报 prefers-reduced-motion:reduce，
   加了这条媒体查询会把全部入场动画关掉（已实测），所以这里不写降级规则。 */

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  .hero__title {
    top: 5.5vh;
    left: 3vw;
    right: auto;
    width: 94vw;
  }

  .hero__capy {
    top: 26vh;
    bottom: auto;
    width: 128vw;
  }

  .hero__script {
    top: 24vh;
    left: 68vw;
    font-size: 6.6vw;
  }

  .hero__nav {
    left: 4vw;
    right: 4vw;
    bottom: 3.2vh;
  }

  .nav__item,
  .nav__lang {
    font-size: 4.6vw;
  }

  /* 子页面大字标题：宽度=屏宽 50%，高度给内容让位（≥60% 规则只对主页 BIGCAPYBARA's） */
  .hero__title--sub {
    top: 4.5vh;
    left: 3vw;
    width: 50vw;
    height: 33vh;
  }

  .hero__script--sub {
    top: 10vh;
    left: 22vw;
  }

  .hero__capy--side {
    top: 62vh;
    left: 75vw;
    right: auto;
    width: 68vw;
  }

  .about {
    top: auto;
    left: 4vw;
    right: 4vw;
    bottom: 21vh;
    width: auto;
  }

  .about__intro {
    margin-bottom: 3.2vh;
    font-size: 3.4vw;
  }

  .about__list {
    grid-template-columns: minmax(4.6em, max-content) 1fr;
    column-gap: 3vw;
  }

  .about__row {
    grid-template-columns: 4.6em 1fr;   /* 回退 */
    grid-template-columns: subgrid;
    gap: 3vw;
    padding: 1.7vh 0;
  }

  .about__row dt { font-size: 3.4vw; }
  .about__row dd { font-size: 4vw; }

  .nav-soon { font-size: 3.4vw; top: 4vh; }
}

/* ---------- 离场：点击底栏跳转前整页淡出 ---------- */
@keyframes leave-up    { to { opacity: 0; transform: translateY(-22px); } }
@keyframes leave-up-lg { to { opacity: 0; transform: translateY(-34px); } }
@keyframes leave-down  { to { opacity: 0; transform: translateY(14px); } }

.hero.is-leaving .hero__title  { animation: leave-up .32s var(--ease-in) both; }
.hero.is-leaving .hero__script { animation: leave-up .32s var(--ease-in) .06s both; }
.hero.is-leaving .hero__nav    { animation: leave-down .28s var(--ease-in) both; }
/* 水豚不淡出不位移：交给跨页滑行，全程可见 */
.hero.is-leaving .hero__capy   { animation: none; }

/* 去往没有水豚的页面（工具页）：水豚下移淡出，不走滑行 */
@keyframes capy-out-down {
  to { opacity: 0; transform: translateY(46px); }
}

.hero.is-leaving .hero__capy.is-fading-out {
  animation: capy-out-down .32s var(--ease-in) both;
}

/* ---------- 跨页水豚滑行（View Transitions 共享元素） ----------
   点击跳转后水豚不淡出、新页不淡入，而是一条连续轨迹挪到新位置。 */
@view-transition {
  navigation: auto;
}

/* 页面其余部分不做整体交叉淡入（离场/入场动画照旧负责）。
   注意：不能写 animation:none —— 视图过渡图层靠「动画结束」来清理，
   部分浏览器上没有动画就没有结束时机，图层会残留成一个空框盖在页面上。
   这里用等值关键帧显式收尾：旧层全程透明、新层全程可见，750ms 后一定清理。 */
@keyframes vt-old-hidden { from { opacity: 0; } to { opacity: 0; } }
@keyframes vt-new-shown  { from { opacity: 1; } to { opacity: 1; } }

::view-transition-old(root) {
  animation: vt-old-hidden .75s both;
}

::view-transition-new(root) {
  animation: vt-new-shown .75s both;
}

.hero__capy {
  view-transition-name: capybara;
}

::view-transition-group(capybara) {
  animation-duration: .75s;
  animation-timing-function: cubic-bezier(.45, .02, .2, 1);
}

/* 新旧快照同图不同尺寸：都铺满组框且不透明度恒 1，纯位移+缩放，无淡入淡出 */
::view-transition-image-pair(capybara) {
  height: 100%;
}

::view-transition-old(capybara),
::view-transition-new(capybara) {
  height: 100%;
  animation: vt-new-shown .75s both;
}

/* 飞行到达的那一页（app.js 打标记）不再播水豚入场，避免叠播 */
.no-capy-in .hero__capy { animation: none; }


/* ==========================================================================
   工具页（Stand-up Box）—— 瑞士排版公式：网格 / 对齐 / 层级 / 字体 / 留白
   长页、可滚动；没有水豚
   ========================================================================== */

:root {
  /* 重一级的中文字体，只给工具页的大标题用 */
  --font-cn-heavy: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
                   "Alibaba PuHuiTi 3.0", "Microsoft YaHei", sans-serif;
  /* 细规则线：瑞士排版全靠它分栏 */
  --rule: rgba(255, 255, 255, .22);
  --rule-soft: rgba(255, 255, 255, .13);
}

/* 这一页要滚动 */
body.page--scroll {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.hero--tools {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  /* 首屏之外是近黑底：文字全是白/橙，读得清 */
  background: var(--midnight);
}

/* 渐变只在首屏铺一屏，随页面滚走；下面的章节落在近黑底上 */
.hero--tools .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 首屏顶部压一层很轻的暗角，让顶部小字在亮蓝上也读得清 */
.sb-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 58vh;
  background: linear-gradient(to bottom, rgba(2, 7, 10, .42), rgba(2, 7, 10, 0));
  z-index: 1;
  pointer-events: none;
}

/* 首屏内容压在背景与暗角之上 */
.sb-hero > *:not(.hero__bg) {
  position: relative;
  z-index: 2;
}

/* 底栏固定在视口底部，滚到哪儿都能导航 */
.hero--tools .hero__nav {
  position: fixed;
  bottom: 3.71vh;
  z-index: 6;
}

/* 内容会从底栏底下滑过（含浅色截图），压一层近乎实心的渐变，保证底栏始终读得清。
   首屏不压（首屏底部本来就是近黑，压了反而把按钮弄脏），滚起来才出现。 */
.hero--tools .hero__nav::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 21vh;
  background: linear-gradient(to top,
    rgba(2, 7, 10, .99) 0%,
    rgba(2, 7, 10, .97) 42%,
    rgba(2, 7, 10, 0) 100%);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}

body.is-scrolled .hero--tools .hero__nav::before { opacity: 1; }

.sb-page {
  position: relative;
  z-index: 1;
  padding: 0 0 17vh;
  /* 切换语言时正文跟底栏一起淡出淡入 */
  transition: opacity .4s ease;
}

.sb-page.is-switching { opacity: 0; }

/* 横向留白放在「节」上，首屏背景才能通到屏幕两边 */
.sb-hero,
.sb-section {
  padding-left: 3.177vw;
  padding-right: 3.177vw;
}

/* ---------- 首屏 ---------- */
.sb-hero {
  position: relative;
  min-height: 100dvh;
  padding-top: 5vh;
  padding-bottom: 6vh;
  display: flex;
  flex-direction: column;
}

/* 顶部信息条：四项，两端对齐，一条细线收口 */
.sb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6vw 2vw;
  padding-bottom: 1vw;
  border-bottom: 1px solid rgba(255, 255, 255, .38);
  font-family: var(--font-cn);
  font-weight: 300;
  font-size: clamp(9px, .66vw, 13px);
  letter-spacing: .16em;
  color: var(--white);
  text-transform: uppercase;
  animation: nav-in .8s var(--ease-out) .1s both;
}

.sb-meta > span { opacity: .72; white-space: nowrap; }
.sb-meta__a { opacity: 1 !important; }
.sb-meta__b { margin-left: auto; }

/* 左大字 / 右简介 */
.sb-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26vw;
  column-gap: 4vw;
  align-items: start;
  align-content: center;
  flex: 1;
  padding-top: 4vh;
}

.sb-wordmark {
  margin: 0;
  width: 100%;
  animation: title-in 1.05s var(--ease-out) both;
}

.sb-wordmark__svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1647 / 558.2;
  overflow: visible;
}

/* 第二级：标语 */
.sb-tagline {
  margin: 2.2vh 0 0;
  font-family: var(--font-cn-heavy);
  font-weight: 900;
  font-size: clamp(26px, 5.6vw, 108px);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--white);
  animation: nav-in .9s var(--ease-out) .28s both;
}

/* ---------- 下载按钮 ---------- */
.sb-dl {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.1vw;
  margin-top: 4.2vh;
  animation: nav-in .9s var(--ease-out) .44s both;
}

.sb-btn {
  display: inline-flex;
  flex-direction: column;
  gap: .18em;
  padding: 1.05vw 1.7vw;
  border: 1px solid rgba(255, 255, 255, .55);
  background: transparent;
  color: var(--white);
  font-family: var(--font-cn);
  font-weight: 300;
  font-size: clamp(13px, 1.06vw, 20px);
  letter-spacing: .04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

/* 主按钮：橙底白字；悬停时反转为白底橙字（点缀色） */
.sb-btn--solid {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.sb-btn--solid:hover,
.sb-btn--solid:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--orange);
}

.sb-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.sb-btn__meta {
  font-size: .72em;
  letter-spacing: .1em;
  opacity: .72;
}

/* mac 按钮：变暗、不可点，hover / 键盘聚焦出提示 */
.sb-btn--off {
  opacity: .34;
  border-style: dashed;
  cursor: not-allowed;
}

.sb-btn-wrap {
  position: relative;
  display: inline-block;
}

.sb-tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  padding: .5em .8em;
  background: var(--white);
  color: #02070A;
  font-family: var(--font-cn);
  font-size: clamp(11px, .78vw, 15px);
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.sb-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 1.2em;
  border: 6px solid transparent;
  border-top-color: var(--white);
}

.sb-btn-wrap:hover .sb-tip,
.sb-btn-wrap:focus-within .sb-tip {
  opacity: 1;
  transform: translateY(0);
}

/* 下载区小字提示（SmartScreen 等），细字级 */
.sb-dlnote {
  margin: 1vw 0 0;
  font-family: var(--font-cn);
  font-weight: 300;
  font-size: clamp(9px, .66vw, 13px);
  letter-spacing: .06em;
  line-height: 1.6;
  color: var(--white);
  opacity: .68;
}

/* ---------- 右侧简介 ---------- */
.sb-hero__side {
  padding-top: .4vw;
  animation: nav-in .9s var(--ease-out) .36s both;
}

.sb-kicker {
  display: inline-block;
  margin: 0 0 1.1vw;
  padding: .42em .72em;
  background: var(--orange);
  color: #0A0400;
  font-family: var(--font-cn);
  /* 字重跟正文一致（100/300）：用 400 会让浏览器换一张字面，跟全站字体对不上 */
  font-weight: 300;
  font-size: clamp(10px, .7vw, 14px);
  letter-spacing: .16em;
}

.sb-intro {
  margin: 0;
  font-family: var(--font-cn);
  font-weight: 100;
  font-size: clamp(13px, .98vw, 19px);
  line-height: 1.85;
  letter-spacing: .02em;
  color: var(--white);
  opacity: .92;
  text-wrap-style: pretty;
}

/* ---------- 章节通用 ---------- */
.sb-section {
  margin-top: 8vh;
  padding-top: 2.4vw;
  border-top: 1px solid var(--rule);
}

.sb-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24vw;
  column-gap: 3vw;
  align-items: start;
  padding-bottom: 3.6vh;
}

.sb-head__n {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 36px);
  line-height: 1;
  color: var(--orange);
  letter-spacing: .04em;
}

.sb-head__t {
  margin: 0;
  font-family: var(--font-cn-heavy);
  font-weight: 900;
  font-size: clamp(20px, 2.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.sb-head__d {
  margin: 0;
  font-family: var(--font-cn);
  font-weight: 100;
  font-size: clamp(12px, .92vw, 17px);
  line-height: 1.75;
  opacity: .82;
  text-wrap-style: pretty;
}

/* ---------- 六格 ---------- */
.sb-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 2.6vw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-cell {
  padding: 1.5vw 0 2.2vw;
  border-top: 1px solid var(--rule);
}

.sb-cell:nth-child(3n + 2),
.sb-cell:nth-child(3n) {
  border-left: 1px solid var(--rule);
  padding-left: 2.2vw;
}

.sb-cell:nth-child(-n + 3) { border-top: none; }

.sb-cell__n {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.35vw, 26px);
  line-height: 1;
  color: var(--orange);
  margin-bottom: .9vw;
}

.sb-cell__t {
  margin: 0 0 .55vw;
  font-family: var(--font-cn-heavy);
  font-weight: 900;
  font-size: clamp(19px, 1.95vw, 38px);
  line-height: 1.1;
}

.sb-cell__d {
  margin: 0;
  font-family: var(--font-cn);
  font-weight: 100;
  font-size: clamp(12px, .88vw, 17px);
  line-height: 1.6;
  opacity: .82;
}

/* ---------- 公式带 ---------- */
.sb-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5em;
  margin: 4vh 0 0;
  padding-top: 2.2vw;
  border-top: 1px solid var(--rule);
  font-family: var(--font-cn-heavy);
  font-weight: 900;
  font-size: clamp(20px, 2.9vw, 56px);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.sb-formula__eq { color: var(--orange); }
.sb-formula strong { color: var(--orange); }

.sb-formula__note {
  margin: 1.2vw 0 0;
  font-family: var(--font-cn);
  font-weight: 100;
  font-size: clamp(12px, .92vw, 17px);
  letter-spacing: .04em;
  opacity: .78;
}

/* ---------- 界面截图 ---------- */
.sb-plate {
  margin: 0 0 4.5vw;
}

.sb-plate__cap {
  display: flex;
  align-items: baseline;
  gap: 1.1vw;
  padding: .9vw 0 1.1vw;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 1.6vw;
  font-family: var(--font-cn);
  font-weight: 100;
  font-size: clamp(12px, .95vw, 18px);
  line-height: 1.5;
}

.sb-plate__n {
  font-family: var(--font-display);
  font-size: 1em;
  color: var(--orange);
  letter-spacing: .06em;
}

.sb-plate__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76vh;
  /* 两张截图同大同左缘，跟标题/说明共用同一条左边线 */
  margin: 0;
  outline: 1px solid rgba(255, 255, 255, .2);
  outline-offset: 0;
}

/* ---------- 下载区 ---------- */
.sb-section--last { padding-bottom: 2vh; }

.sb-dl--wide { margin-top: 0; animation: none; }

.sb-spec {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 2.6vw;
  margin: 4vh 0 0;
  padding-top: 1.6vw;
  border-top: 1px solid var(--rule);
}

.sb-spec div { padding-bottom: .4vw; }

.sb-spec dt {
  font-family: var(--font-cn);
  font-weight: 100;
  font-size: clamp(9px, .66vw, 13px);
  letter-spacing: .2em;
  color: var(--orange);
  margin-bottom: .5vw;
  text-transform: uppercase;
}

.sb-spec dd {
  margin: 0;
  font-family: var(--font-cn);
  font-weight: 300;
  font-size: clamp(12px, .95vw, 18px);
  letter-spacing: .02em;
}

/* ---------- 工具页：移动端 ---------- */
@media (max-width: 860px) {
  .sb-page {
    padding: 0 0 14vh;
  }

  .sb-hero,
  .sb-section {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .sb-hero {
    padding-top: 4vh;
    padding-bottom: 4vh;
  }

  .sb-meta {
    gap: 1.6vw 4vw;
    font-size: 2.6vw;
    padding-bottom: 2.4vw;
  }

  .sb-meta__b { margin-left: 0; }

  .sb-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4vh;
    padding-top: 4vh;
  }

  .sb-tagline {
    margin-top: 2vh;
    font-size: 9.4vw;
  }

  .sb-hero__side {
    order: 2;
    padding-top: 0;
  }

  .sb-kicker { font-size: 2.8vw; margin-bottom: 2.4vw; }

  .sb-intro {
    font-size: 3.7vw;
    line-height: 1.75;
  }

  .sb-dl {
    gap: 3vw;
    margin-top: 3.4vh;
    order: 1;
  }

  .sb-btn {
    padding: 3.2vw 4.6vw;
    font-size: 3.6vw;
  }

  .sb-tip { font-size: 3vw; }

  .sb-dlnote { font-size: 2.6vw; margin-top: 2.4vw; }

  .sb-section {
    margin-top: 6vh;
    padding-top: 5vw;
  }

  .sb-head {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.6vh;
    padding-bottom: 3vh;
  }

  .sb-head__n { font-size: 4.4vw; }
  .sb-head__t { font-size: 6.6vw; }
  .sb-head__d { font-size: 3.5vw; }

  .sb-cells {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  .sb-cell,
  .sb-cell:nth-child(3n + 2),
  .sb-cell:nth-child(3n) {
    border-left: none;
    padding: 3.4vw 0 3.8vw;
  }

  .sb-cell:nth-child(-n + 3) { border-top: 1px solid var(--rule); }
  .sb-cell:first-child { border-top: none; }

  .sb-cell__n { font-size: 3.4vw; margin-bottom: 1.4vw; }
  .sb-cell__t { font-size: 5.6vw; margin-bottom: 1vw; }
  .sb-cell__d { font-size: 3.4vw; }

  .sb-formula {
    font-size: 6.4vw;
    margin-top: 3vh;
    padding-top: 5vw;
  }

  .sb-formula__note { font-size: 3.4vw; margin-top: 3vw; }

  .sb-plate { margin-bottom: 8vw; }
  .sb-plate__cap { font-size: 3.4vw; gap: 2.4vw; padding: 3vw 0 3vw; }

  .sb-spec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4vw;
    row-gap: 4vw;
    margin-top: 4vh;
  }

  .sb-spec dt { font-size: 2.6vw; margin-bottom: 1.4vw; }
  .sb-spec dd { font-size: 3.4vw; }
}
