/* ==========================================================================
   VivLink 官网 H5 — 样式表
   设计源：Ardot「VivLink 官网」file 723300948001791 / node 11:1
   设计基准：宽 1440，版心 1200（左右各 120 内边距）

   响应式策略：clamp() 连续缩放 + 网格断点，不引入框架与构建链。
   所有数值直接来自设计稿，token 名与设计语义一一对应。
   ========================================================================== */

:root {
  /* ---- 品牌色 ---- */
  --c-teal:      #00D4AA;  /* 主色 */
  --c-blue:      #00B4D8;  /* 辅色（渐变尾 / 电波 / 眉题） */
  --c-bg-dark:   #0A0E0C;  /* Hero、演示区、下载区、页脚底色 */
  --c-ink:       #0B2420;  /* 浅色区标题 */
  --c-ink-body:  #48706A;  /* 浅色区正文 */
  --c-ink-muted: #85A6A0;  /* 浅色区补充说明 / 深色区次要文字 */
  --c-hero-sub:  #9FB8B2;  /* Hero 副标 */
  --c-footer:    #C6D5D2;  /* 页脚标语 */
  --c-white:     #FFFFFF;

  /* ---- 版心与节奏 ---- */
  --shell-max: 1440px;
  --pad-x: clamp(20px, 8.3333vw, 120px);

  --pad-hero-top:    clamp(40px, 5vw, 72px);
  --pad-hero-bottom: clamp(56px, 6.6667vw, 96px);
  --pad-section:     clamp(56px, 5.5556vw, 80px);
  --pad-download:    clamp(64px, 6.6667vw, 96px);
  --pad-footer:      clamp(36px, 3.3333vw, 48px);

  --gap-hero:    22px;  /* Hero 纵向元素间距 */
  --gap-section: 32px;  /* 演示区 / 功能区的标题与内容间距 */
  --gap-scenes:  28px;  /* 使用场景区间距 */
  --gap-cards:   24px;  /* 网格间距 */
  --gap-download: 20px; /* 下载区纵向间距 */

  /* ---- 字体 ---- */
  --font-zh:    "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC",
                "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-latin: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text",
                "Helvetica Neue", Arial, sans-serif;

  /* PingFang 与 Inter 的默认行高，对应设计稿的 AUTO；
     正文 14px 在设计稿中显式指定了 22px 行高。 */
  --lh-zh:    1.4;
  --lh-latin: 1.22;
  --lh-body:  1.5714;

  /* ---- 字号（设计值 → 流体缩放） ---- */
  --fs-hero-title:  clamp(30px, 4.0278vw, 58px);
  --fs-hero-slogan: clamp(17px, 1.3889vw, 20px);
  --fs-hero-sub:    clamp(15px, 1.25vw, 18px);
  --fs-quote:       clamp(26px, 3.0556vw, 44px);
  --fs-h2:          clamp(26px, 2.7778vw, 40px);
  --fs-video-title: clamp(22px, 2.3611vw, 34px);
  --fs-dl-title:    clamp(20px, 1.6667vw, 24px);
  --fs-card-title:  clamp(17px, 1.3194vw, 19px);
  --fs-scene-title: clamp(16px, 1.25vw, 18px);
  --fs-cta:         17px;
  --fs-eyebrow:     16px;
  --fs-body-sm:     14px;   /* 卡片正文 */
  --fs-small:       13px;   /* 补充说明 / 版权 */
  --fs-tiny:        12px;   /* 下载卡小字 */

  /* ---- 圆角 ---- */
  --r-pill:   999px;
  --r-card:   20px;
  --r-scene:  16px;
  --r-tablet: 26px;

  /* ---- 阴影 / 描边（含设计稿的 spread 负值） ---- */
  --sh-btn:     0 8px 24px -6px rgba(0, 212, 170, .40);
  --sh-btn-sm:  0 8px 20px -6px rgba(0, 212, 170, .35);
  --sh-card:    0 8px 24px -8px rgba(0, 51, 46, .08);
  --sh-tablet:  0 20px 40px -10px rgba(0, 212, 170, .30);
  --sh-play:    0 0 30px -4px rgba(0, 212, 170, .50);

  --ring-light: rgba(255, 255, 255, .90);  /* 浅色卡片描边 */
  --ring-dark:  rgba(255, 255, 255, .15);  /* 深色卡片描边 */

  /* ---- 交互 ---- */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   基础
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg-dark);
  color: var(--c-white);
  font-family: var(--font-zh);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-zh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

svg { display: block; }

img, svg { max-width: 100%; }

/* 版心：设计稿 1440 宽、左右各 120 内边距 → 内容 1200 */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* 键盘可达性：统一焦点环 */
:where(a, button):focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon { width: 28px; height: 28px; color: var(--c-teal); }

/* ==========================================================================
   1. Hero 首屏  (设计 1440×878, 内边距 120/72/120/96, 间距 22)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;              /* 对应设计稿 clipsContent */
  padding: var(--pad-hero-top) var(--pad-x) var(--pad-hero-bottom);
  background: var(--c-bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-hero);
}

/* 辉光：900×480 居中贴顶，径向渐变到透明 */
.hero__glow {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100%);
  aspect-ratio: 900 / 480;
  pointer-events: none;
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    rgba(0, 212, 170, .28) 0%,
    rgba(0, 180, 216, .12) 55%,
    rgba(0, 180, 216, 0) 100%
  );
}

/* 内容压在辉光之上 */
.hero > :not(.hero__glow) { position: relative; z-index: 1; }

/* ---- 品牌栏 ---- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__name {
  font-family: var(--font-latin);
  font-size: 22px;
  font-weight: 700;
  line-height: var(--lh-latin);
}

/* ---- 标题组 ---- */
.hero__title {
  align-self: stretch;
  text-align: center;
  font-size: var(--fs-hero-title);
  font-weight: 700;
  line-height: var(--lh-zh);
  text-wrap: balance;
}

.hero__slogan {
  align-self: stretch;
  text-align: center;
  font-size: var(--fs-hero-slogan);
  font-weight: 500;
  line-height: var(--lh-zh);
  color: var(--c-teal);
}

.hero__sub {
  align-self: stretch;
  text-align: center;
  font-size: var(--fs-hero-sub);
  line-height: var(--lh-zh);
  color: var(--c-hero-sub);
  text-wrap: balance;
}

/* ---- CTA 按钮行 ---- */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: var(--fs-cta);
  font-weight: 500;
  line-height: var(--lh-zh);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease);
}

.btn--primary {
  color: var(--c-white);
  background-image: linear-gradient(90deg, var(--c-teal) 0%, var(--c-blue) 100%);
  box-shadow: var(--sh-btn);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -6px rgba(0, 212, 170, .55); }

/* 设计稿描边是「居中」对齐，会向节点外溢出 1.5px；
   CSS 边框只向内占位，故内边距各减去描边宽度，
   才能和主按钮等高、文字同位（165×54 与 140×54）。 */
.btn--ghost {
  padding: 12px 31px;
  color: var(--c-teal);
  background-color: transparent;
  border: 3px solid rgba(0, 212, 170, .90);
}
.btn--ghost:hover { background-color: rgba(0, 212, 170, .10); transform: translateY(-1px); }

/* ---- 设备图形区：平板 + 电波 ---- */
.devices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 36px);
  width: min(636px, 100%);
  padding-top: 40px;
}

.tablet {
  flex: 1 1 auto;
  max-width: 520px;
  aspect-ratio: 900 / 639;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 3px solid rgba(0, 212, 170, .80);
  border-radius: var(--r-tablet);
  background: #0D1413;
  box-shadow: var(--sh-tablet);
}
.tablet__screen {
  /* 原来是 520 / 340（≈1.529），而截图是 900×639（≈1.408） */
  flex: 1;
  background: url('https://dl.hanhan.pro/hm/vivlink/web/tablet-20260918.png') center / cover no-repeat,
    radial-gradient(ellipse 50% 50% at 50% 50%, #263852 0%, #121A29 100%);
}

.wave {
  flex: none;
  width: clamp(36px, 5.5556vw, 80px);
  aspect-ratio: 80 / 120;
  color: var(--c-blue);
}

/* ==========================================================================
   2. 演示视频区  (设计 1440×904, 内边距 120/80, 间距 32)
   ========================================================================== */

.demo {
  padding: var(--pad-section) var(--pad-x);
  background: var(--c-bg-dark);
  display: flex;
  flex-direction: column;
  gap: var(--gap-section);
}

.demo__title {
  text-align: center;
  font-size: var(--fs-video-title);
  font-weight: 700;
  line-height: var(--lh-zh);
}

.video {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  aspect-ratio: 1180 / 664;
  display: grid;
  place-items: center;
  border: 2px solid rgba(0, 212, 170, .40);
  border-radius: var(--r-card);
  /* 封面图（七牛 CDN）+ 原径向渐变兜底。
    写成**两层 background-image**（图在上、渐变在下） */
  background:
    url('https://dl.hanhan.pro/hm/vivlink/web/video-cover-20260918.jpg') center / cover no-repeat,
    radial-gradient(ellipse 50% 50% at 50% 50%, #192826 0%, #0C1411 100%);
  overflow: hidden;
}

.video__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .50);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: var(--lh-zh);
}

.video__play {
  width: clamp(52px, 7.46%, 88px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--c-white);
  background-image: linear-gradient(
    90deg,
    rgba(0, 212, 170, .95) 0%,
    rgba(0, 180, 216, .95) 100%
  );
  box-shadow: var(--sh-play);
  transition: transform .18s var(--ease);
}
.video__play:hover { transform: scale(1.06); }
.video__play svg { width: 40%; margin-left: 4.5%; }   /* 三角视觉居中 */

.video video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ==========================================================================
   3. 功能特点区  (设计 1440×742, 浅色径向底)
   ========================================================================== */

.features {
  padding: var(--pad-section) var(--pad-x);
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    #E3FFF7 0%,
    #FFFFFF 100%
  );
  display: flex;
  flex-direction: column;
  gap: var(--gap-section);
  color: var(--c-ink);
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  line-height: var(--lh-zh);
  color: var(--c-blue);
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-zh);
  color: var(--c-ink);
}

.features__note {
  font-size: var(--fs-small);
  line-height: var(--lh-zh);
  color: var(--c-ink-muted);
}

/* ---- 卡片网格：3 列 → 2 列 → 1 列 ---- */
.grid {
  display: grid;
  gap: var(--gap-cards);
  align-items: start;
}
.grid--features { grid-template-columns: repeat(3, 1fr); }
.grid--scenes   { grid-template-columns: repeat(4, 1fr); }

/* 注意：设计稿的描边居中绘制、不占布局宽度，而 CSS 边框会。
   故凡带描边的容器，内边距都减去描边宽度，保证内容宽度与设计稿一致
   （否则正文会因少 4px 而多折一行）。 */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 2px solid var(--ring-light);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--sh-card);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(0, 51, 46, .14);
}

.card__title {
  font-size: var(--fs-card-title);
  font-weight: 600;
  line-height: var(--lh-zh);
  color: var(--c-ink);
}

.card__body {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--c-ink-body);
}

/* ==========================================================================
   4. 使用场景区  (设计 1440×467, 内边距 120/80, 间距 28)
   ========================================================================== */

.scenes {
  padding: var(--pad-section) var(--pad-x);
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    #FFFFFF 0%,
    #EBFFFA 100%
  );
  display: flex;
  flex-direction: column;
  gap: var(--gap-scenes);
  color: var(--c-ink);
}

.scene {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;      /* 设计稿 26/24，减去 2px 描边 */
  border: 2px solid var(--ring-light);
  border-radius: var(--r-scene);
  background: rgba(255, 255, 255, .50);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.scene:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(0, 51, 46, .12);
}

.scene__title {
  font-size: var(--fs-scene-title);
  font-weight: 600;
  line-height: var(--lh-zh);
  color: var(--c-ink);
}

/* ==========================================================================
   5. 下载区  (设计 1440×601, 内边距 120/96, 间距 20)
   ========================================================================== */

.download {
  padding: var(--pad-download) var(--pad-x);
  background: var(--c-bg-dark);
  display: flex;
  flex-direction: column;
  gap: var(--gap-download);
}

.download__quote {
  text-align: center;
  font-size: var(--fs-quote);
  font-weight: 700;
  line-height: var(--lh-zh);
  text-wrap: balance;
}

.download__sub {
  text-align: center;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  line-height: var(--lh-zh);
  color: var(--c-teal);
}

/* 两张卡：设计稿中垂直居中对齐（两卡高度不同） */
.download__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: var(--gap-cards);
  padding-top: 24px;
}

.dl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 30px;           /* 设计稿 32，减去 2px 描边 */
  border: 2px solid var(--ring-dark);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, .06);
}

.dl-card__title {
  font-size: var(--fs-dl-title);
  font-weight: 700;
  line-height: var(--lh-zh);
}

.dl-card__sub {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-zh);
  color: var(--c-ink-muted);
}

.dl-card__note {
  font-family: var(--font-latin);
  font-size: var(--fs-tiny);
  line-height: var(--lh-latin);
  color: var(--c-ink-muted);
}

/* 下载卡内按钮：字号与内边距单独收一档 */
.btn--sm {
  padding: 13px 30px;
  font-size: var(--fs-eyebrow);
  box-shadow: var(--sh-btn-sm);
}
.btn--ghost-sm {
  padding: 10px 27px;      /* 同上：补偿 3px 描边 */
  font-size: var(--fs-eyebrow);
  color: var(--c-teal);
  background-color: transparent;
  border: 3px solid rgba(0, 212, 170, .90);
}
.btn--ghost-sm:hover { background-color: rgba(0, 212, 170, .10); }

.download__steps {
  text-align: center;
  font-size: var(--fs-small);
  line-height: var(--lh-zh);
  color: var(--c-ink-muted);
}

/* ==========================================================================
   6. 页脚  (设计 1440×219, 内边距 120/48, 间距 20)
   ========================================================================== */

.footer {
  padding: var(--pad-footer) var(--pad-x);
  background: var(--c-bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-download);
}

.footer__rule {
  align-self: stretch;
  height: 1px;
  background: rgba(255, 255, 255, .08);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__brand svg { width: 24px; height: 24px; flex: none; }
.footer__tagline {
  font-size: 15px;
  font-weight: 500;
  line-height: var(--lh-zh);
  color: var(--c-footer);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.footer__links a {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-zh);
  color: var(--c-ink-muted);
  transition: color .18s var(--ease);
}
.footer__links a:hover { color: var(--c-teal); }

.footer__copy {
  text-align: center;
  font-size: var(--fs-small);
  line-height: var(--lh-zh);
  color: var(--c-ink-muted);
}
.footer__copy a { transition: color .18s var(--ease); }
.footer__copy a:hover { color: var(--c-teal); }

/* ---- 语言切换：自绘外观，原生 select 在深色底上箭头几乎看不见 ---- */
.lang {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang__label {
  font-size: var(--fs-small);
  line-height: var(--lh-zh);
  color: var(--c-ink-muted);
}
.lang__box {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang__select {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 36px 8px 16px;
  border: 1px solid var(--ring-dark);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  color: var(--c-footer);
  font: inherit;
  font-size: var(--fs-small);
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.lang__select:hover {
  border-color: rgba(0, 212, 170, .55);
  background: rgba(255, 255, 255, .09);
}
.lang__select:focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 2px;
}
/* 展开的列表由系统绘制，深色底需显式指定配色，否则是白底黑字 */
.lang__select option {
  background: var(--c-ink);
  color: var(--c-white);
}
.lang__arrow {
  position: absolute;
  right: 15px;
  width: 12px;
  height: 8px;
  color: var(--c-teal);
  pointer-events: none;
}

/* ==========================================================================
   响应式断点
   —— 流体缩放已覆盖字号与留白，下面只处理「结构必须变」的地方
   ========================================================================== */

/* 中等屏：卡片网格降列 */
@media (max-width: 1024px) {
  .grid--features { grid-template-columns: repeat(2, 1fr); }
  .grid--scenes   { grid-template-columns: repeat(2, 1fr); }
}

/* 窄屏：单列 + 按钮撑满 + Hero 收紧 */
@media (max-width: 900px) {
  .download__cards { grid-template-columns: 1fr; align-items: stretch; }
}

@media (max-width: 640px) {
  .grid--features,
  .grid--scenes { grid-template-columns: 1fr; }

  .card   { padding: 24px; }
  .scene  { padding: 24px; }
  .dl-card { padding: 26px; }

  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; }

  .devices { padding-top: 28px; }

  .video__badge { top: 14px; left: 14px; }
}

/* 超窄屏：再收一档内边距与间距 */
@media (max-width: 400px) {
  .hero { gap: 18px; }
  .card, .scene { padding: 20px; }
  .footer__links { gap: 18px; }
}

/* ---------------------------------------------------------------------------
   轻提示：只在「设备不对」这类需要解释一句的场景出现
   --------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: clamp(24px, 4vw, 40px);
  z-index: 100;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 20px;
  transform: translate(-50%, 12px);
  border-radius: 12px;
  background: rgba(11, 36, 32, .95);
  color: var(--c-white);
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 无障碍：尊重系统的减少动态效果设置 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   使用说明页 guide.html （2026-09-18 新增，Plan.md §E）
   设计纪律：沿用本文件顶部 :root 的全部令牌 —— 品牌色 / 版心 / 字号 / 圆角 / 阴影，
   **不新造视觉**。本页只补「长文排版」需要的结构类，一律 g- 前缀（guide）。
   ========================================================================== */

.page-guide { background: var(--c-bg-dark); }

/* ---- 顶部条：品牌 + 返回官网 ---- */
.g-top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 14, 12, .88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--ring-dark);
}
.g-top__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.g-top__brand { display: inline-flex; align-items: center; gap: 8px; }
.g-top__brand svg { width: 24px; height: 24px; }
.g-top__name {
  font-family: var(--font-latin);
  font-size: 18px; font-weight: 700; line-height: var(--lh-latin);
}
.g-top__back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-body-sm); color: var(--c-ink-muted);
  transition: color .18s var(--ease);
}
.g-top__back:hover { color: var(--c-teal); }
.g-top__back svg { width: 18px; height: 18px; }

/* ---- 正文容器与标题 ---- */
.g-main { padding-block: clamp(32px, 4.1667vw, 60px) clamp(56px, 6.6667vw, 96px); }
.g-head { max-width: 760px; }
.g-head__title {
  font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-zh);
  text-wrap: balance;
}
.g-head__lede {
  margin-top: 14px;
  font-size: var(--fs-hero-sub); line-height: var(--lh-zh);
  color: var(--c-hero-sub); text-wrap: pretty;
}

/* ---- 目录 ---- */
.g-toc {
  margin-top: 32px; padding: 20px 24px;
  max-width: 760px;
  border: 1px solid var(--ring-dark);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, .02);
}
.g-toc__title {
  font-size: var(--fs-card-title); font-weight: 600;
  color: var(--c-ink-muted); margin-bottom: 12px;
}
.g-toc__list {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 8px 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.g-toc__list a {
  font-size: var(--fs-body-sm); color: var(--c-teal);
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease);
}
.g-toc__list a:hover { border-bottom-color: currentColor; }

/* ---- 章节 ---- */
.g-sec {
  max-width: 760px;
  margin-top: clamp(40px, 4.8611vw, 64px);
  scroll-margin-top: 76px;              /* 锚点跳转时避开 sticky 顶栏 */
}
.g-sec__title {
  font-size: var(--fs-dl-title); font-weight: 700; line-height: var(--lh-zh);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ring-dark);
  margin-bottom: 20px;
}
.g-sec--new .g-sec__title { border-bottom-color: rgba(0, 212, 170, .45); }
.g-sub {
  font-size: var(--fs-card-title); font-weight: 600;
  color: var(--c-teal);
  margin: 28px 0 12px;
}
.g-sec p {
  font-size: var(--fs-body-sm); line-height: var(--lh-body);
  color: var(--c-footer); margin-bottom: 12px; text-wrap: pretty;
}
.g-sec b { color: var(--c-white); font-weight: 600; }

/* ---- 列表 ---- */
.g-list, .g-steps {
  margin: 0 0 16px; padding-left: 1.4em;
  font-size: var(--fs-body-sm); line-height: var(--lh-body);
  color: var(--c-footer);
}
.g-list li, .g-steps li { margin-bottom: 8px; }
.g-steps { counter-reset: gstep; list-style: none; padding-left: 0; }
.g-steps li {
  counter-increment: gstep;
  position: relative; padding-left: 34px;
}
.g-steps li::before {
  content: counter(gstep);
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  font-size: var(--fs-tiny); font-weight: 700;
  color: var(--c-bg-dark);
  background-image: linear-gradient(90deg, var(--c-teal) 0%, var(--c-blue) 100%);
}

/* ---- 表格 ---- */
.g-table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--ring-dark);
  border-radius: var(--r-scene);
}
.g-table { width: 100%; border-collapse: collapse; font-size: var(--fs-body-sm); }
.g-table th, .g-table td {
  text-align: left; vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ring-dark);
  line-height: var(--lh-body);
  color: var(--c-footer);
}
.g-table th {
  white-space: nowrap;
  font-weight: 600; color: var(--c-ink-muted);
  background: rgba(255, 255, 255, .03);
}
.g-table tr:last-child td { border-bottom: 0; }
.g-table td:first-child { color: var(--c-white); }
.g-table--faq td:first-child { min-width: 12em; }

/* ---- 提示块 ---- */
.g-note {
  padding-left: 14px;
  border-left: 3px solid var(--ring-dark);
  color: var(--c-ink-muted) !important;
  font-size: var(--fs-small) !important;
}
.g-warn {
  margin: 0 0 20px; padding: 14px 18px;
  border: 1px solid rgba(255, 176, 32, .35);
  border-radius: var(--r-scene);
  background: rgba(255, 176, 32, .06);
}
.g-warn__t { font-weight: 600; color: #FFB020 !important; margin-bottom: 6px !important; }
.g-warn p:last-child { margin-bottom: 0 !important; }
.g-callout {
  margin: 0 0 14px; padding: 14px 18px;
  border: 1px solid var(--ring-dark);
  border-radius: var(--r-scene);
  background: rgba(255, 255, 255, .03);
}
.g-callout__t { font-weight: 600; color: var(--c-teal) !important; margin-bottom: 6px !important; }
.g-callout p:last-child { margin-bottom: 0 !important; }

/* ---- 代码 ---- */
.g-code {
  margin: 10px 0 0; padding: 12px 16px;
  overflow-x: auto;
  border: 1px solid var(--ring-dark);
  border-radius: var(--r-scene);
  background: rgba(0, 0, 0, .35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--fs-small); line-height: 1.6;
  color: var(--c-teal);
}

/* ---- 配图位（🔴 图未产出时显示占位；补图 = 在 <figure> 里加一个 <img>） ---- */
.g-fig { margin: 0 0 16px; }
.g-fig__box {
  display: grid; place-items: center;
  min-height: 160px; padding: 24px;
  border: 1px dashed var(--ring-dark);
  border-radius: var(--r-scene);
  background: rgba(255, 255, 255, .015);
  color: var(--c-ink-muted);
  font-size: var(--fs-small);
}
.g-fig figcaption {
  margin-top: 8px;
  font-size: var(--fs-small); line-height: var(--lh-body);
  color: var(--c-ink-muted); text-align: center;
}
/* 补图后：把 .g-fig__box 换成 <img class="g-fig__img"> 即可 */
.g-fig__img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--ring-dark);
  border-radius: var(--r-scene);
}

@media (max-width: 640px) {
  .g-toc__list { grid-template-columns: 1fr; }
  .g-sec { scroll-margin-top: 64px; }
}
