/* ==========================================================================
   嗨良官网 · 全站样式
   换色：修改 :root 里的 --brand-* 变量；或给 <html> 加 data-palette="teal" / "indigo"（备选配色与橙色 Logo 不搭，仅供对比）
   预览其他配色：在网址后加 ?palette=teal 或 ?palette=indigo
   ========================================================================== */

:root {
  /* 品牌色（默认：活力橙） */
  /* 取自 Logo：橙 #fd790a、青绿 #27d0cd、深蓝 #173b4d */
  --brand-strong: #c65000; /* 白底上的文字与按钮，对白对比度 4.6:1 */
  --brand-strong-hover: #a34200;
  --brand-hero-a: #c65000; /* 首屏渐变：文字所在的左侧最深，白字对比度 ≥4.5:1 */
  --brand-hero-b: #e8670a;
  --brand-hero-c: #fd790a;
  --brand-soft: #fff4ea;
  --brand-tint: #ffdcc2;
  --brand-glow: rgba(198, 80, 0, 0.28);
  --accent: #27d0cd; /* Logo 青绿，仅作装饰，不用于文字 */

  /* 中性色 */
  --ink: #1f1b18;
  --ink-muted: #6d655f;
  --line: #ece5df;
  --surface: #ffffff;
  --surface-alt: #faf7f4;
  --footer-bg: #173b4d;
  --footer-ink: #c7d5dd;

  /* 分类卡底色 */
  --cat-1: #fff1e8;
  --cat-2: #eef3ff;
  --cat-3: #fdeef5;
  --cat-4: #eaf7ef;

  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
  --topbar-h: 76px;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans CJK SC",
    "Source Han Sans SC", sans-serif;
}

:root[data-palette="teal"] {
  --brand-strong: #0f766e;
  --brand-strong-hover: #115e59;
  --brand-hero-a: #0b5a54;
  --brand-hero-b: #0f766e;
  --brand-hero-c: #14a08f;
  --brand-soft: #ecfaf7;
  --brand-tint: #c7efe7;
  --brand-glow: rgba(15, 118, 110, 0.28);
  --accent: #ffd166;
}

:root[data-palette="indigo"] {
  --brand-strong: #4338ca;
  --brand-strong-hover: #3730a3;
  --brand-hero-a: #312e81;
  --brand-hero-b: #4338ca;
  --brand-hero-c: #6d6af5;
  --brand-soft: #f0f0ff;
  --brand-tint: #dcdcfd;
  --brand-glow: rgba(67, 56, 202, 0.28);
  --accent: #ffc94a;
}

/* ---------- 基础 ---------- */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  color: #111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  transform: translateY(calc(-100% - 48px));
}

.skip:focus {
  transform: none;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(31, 27, 24, 0.06);
  color: var(--ink);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

body[data-screen="hero"] .topbar {
  background: transparent;
  box-shadow: none;
  color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand__mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.brand__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.2s ease;
}

/* 顶栏：白底用彩色 Logo，首屏橙底用白色 Logo */
.brand__logo--white,
body[data-screen="hero"] .topbar .brand__logo--color {
  opacity: 0;
}

body[data-screen="hero"] .topbar .brand__logo--white {
  opacity: 1;
}

.primary-nav ul {
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

/* ---------- 按钮与文字 ---------- */

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--brand-strong);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-strong-hover);
  box-shadow: 0 12px 26px var(--brand-glow);
}

.btn--light {
  background: #fff;
  color: var(--brand-strong);
}

.btn--light:hover {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker::before {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.headline {
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.02em;
}

.headline em {
  color: var(--brand-strong);
  font-style: normal;
}

.lede {
  max-width: 540px;
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.9;
}

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

.section-head .lede {
  max-width: 640px;
  margin-inline: auto;
}

/* ---------- 整屏结构 ---------- */

.screen {
  position: relative;
  overflow: hidden;
}

.screen--alt {
  background: var(--surface-alt);
}

.screen__inner {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  padding: calc(var(--topbar-h) + 72px) 0 88px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

/* 宽屏且足够高时才启用整屏吸附，矮屏幕保持自由滚动，避免内容被截断 */
@media (min-width: 901px) and (min-height: 700px) {
  .screens {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
  }

  .screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
  }

  .screen__inner {
    padding: calc(var(--topbar-h) + 28px) 0 40px;
  }

  .screens > .site-footer {
    scroll-snap-align: end;
  }
}

/* ---------- 手机样机 ---------- */

.device {
  position: relative;
  padding: 10px;
  border-radius: 44px;
  background: #15120f;
  box-shadow:
    inset 0 0 0 2px #2d2723,
    0 40px 80px rgba(40, 12, 0, 0.3);
}

.device::before {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 50%;
  width: 30%;
  height: 22px;
  border-radius: 999px;
  background: #15120f;
  content: "";
  transform: translateX(-50%);
}

.device img {
  width: 100%;
  height: auto;
  aspect-ratio: 644 / 1400;
  object-fit: cover;
  border-radius: 34px;
  background: #f3efeb;
}

/* ---------- 1 首屏 ---------- */

.hero {
  background: linear-gradient(
    115deg,
    var(--brand-hero-a) 0%,
    var(--brand-hero-b) 55%,
    var(--brand-hero-c) 100%
  );
  color: #fff;
}

.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 80%);
  mask-image: linear-gradient(100deg, transparent 35%, #000 80%);
}

.hero__glow {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(90px);
  opacity: 0.4;
}

.hero::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 13vh;
  background: var(--surface);
  clip-path: polygon(0 100%, 100% 30%, 100% 100%);
  content: "";
}

.hero .split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero__badge b {
  padding: 2px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-strong);
  letter-spacing: 0.12em;
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(46px, 5.2vw, 80px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.04em;
}

.hero__title span {
  display: block;
  white-space: nowrap;
}

.hero__title .u {
  position: relative;
  display: inline-block;
  font-style: normal;
  isolation: isolate;
}

.hero__title .u::after {
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: 0.1em;
  left: -0.04em;
  height: 0.2em;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  opacity: 0.85;
}

.hero__note {
  max-width: 470px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__visual {
  position: relative;
  height: min(640px, 76vh);
}

.hero__visual .device {
  position: absolute;
  width: min(270px, 22vw, 36vh);
}

.hero__visual .device--back {
  top: 0;
  left: 8%;
  transform: rotate(-8deg);
}

.hero__visual .device--front {
  z-index: 2;
  top: 56px;
  right: 4%;
  transform: rotate(6deg);
}

.chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(40, 12, 0, 0.22);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}

.chip b {
  display: block;
  font-size: 14px;
}

.chip small {
  color: var(--ink-muted);
  font-size: 12px;
}

.chip__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.chip--a {
  bottom: 18%;
  left: -4%;
}

.chip--b {
  top: 10%;
  right: -6%;
}

@media (prefers-reduced-motion: no-preference) {
  .chip {
    animation: float 6s ease-in-out infinite;
  }

  .chip--b {
    animation-delay: -3s;
  }
}

@keyframes float {
  50% {
    translate: 0 -10px;
  }
}

/* ---------- 2 优惠与会员 ---------- */

.media {
  position: relative;
  display: grid;
  place-items: center;
}

.media .device {
  z-index: 1;
  width: min(290px, 25vw, 36vh);
}

.rewards .media::before {
  position: absolute;
  inset: 6% 12% 2%;
  border-radius: 48px;
  background: var(--brand-soft);
  content: "";
  transform: rotate(8deg);
}

.rewards .device {
  transform: rotate(-4deg);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.icon-box {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.feature-list strong {
  display: block;
  font-size: 16px;
}

.feature-list span {
  color: var(--ink-muted);
  font-size: 14px;
}

.rewards .btn {
  margin-top: 30px;
}

/* ---------- 3 一站式流程 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 18px 18px 18px 66px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 27, 24, 0.05);
}

.steps li::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-strong);
  color: #fff;
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  font-size: 13px;
  font-weight: 800;
}

.steps strong {
  display: block;
  font-size: 16px;
}

.steps span {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
}

.journey .media::before {
  position: absolute;
  width: min(460px, 38vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand-tint);
  content: "";
  opacity: 0.6;
}

.journey .media::after {
  position: absolute;
  right: 8%;
  bottom: 6%;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 32px;
  background: var(--accent);
  content: "";
  opacity: 0.5;
  transform: rotate(18deg);
}

.journey .device {
  transform: rotate(5deg);
}

/* ---------- 4 分类好物 ---------- */

.cat-stage {
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 20px;
  margin-inline: auto;
}

.cat-card {
  position: relative;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  background: var(--cat-1);
  transition: translate 0.2s ease;
}

.cat-card:hover {
  translate: 0 -8px;
}

.cat-card::after {
  position: absolute;
  top: -36px;
  right: -36px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  content: "";
}

.cat-card:nth-child(1),
.cat-card:nth-child(5) {
  height: 200px;
  margin-top: 60px;
}

.cat-card:nth-child(2) {
  background: var(--cat-2);
}

.cat-card:nth-child(4) {
  background: var(--cat-3);
}

.cat-card:nth-child(5) {
  background: var(--cat-4);
}

.cat-card .icon-box {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 22px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
}

.cat-card strong {
  font-size: 18px;
}

.cat-card small {
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.cat-stage .device {
  width: min(210px, 26vh);
}

/* ---------- 5 服务优势 ---------- */

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.adv-card {
  position: relative;
  padding: 28px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.adv-card:hover {
  border-color: var(--brand-tint);
  box-shadow: 0 18px 40px rgba(31, 27, 24, 0.08);
  transform: translateY(-4px);
}

.adv-card .icon-box {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
}

.adv-card h3 {
  font-size: 19px;
  font-weight: 700;
}

.adv-card p {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.8;
}

.adv-card__tag {
  position: absolute;
  top: 30px;
  right: 28px;
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* ---------- 6 服务能力 ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  transition: background-color 0.2s ease;
}

.svc:hover {
  background: var(--brand-soft);
}

.svc__no {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.svc strong {
  font-size: 18px;
}

.svc span {
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* ---------- 7 下载 ---------- */

.store-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store-btn {
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}

.store-btn[aria-disabled="true"] {
  opacity: 0.8;
}

.store-btn small,
.store-btn strong {
  display: block;
}

.store-btn small {
  font-size: 11px;
  opacity: 0.75;
}

.store-btn strong {
  font-size: 15px;
}

.store-note {
  margin-top: 12px;
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--brand-strong);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.download .media::before {
  position: absolute;
  width: min(520px, 42vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--brand-tint), transparent);
  content: "";
}

.download .device {
  transform: rotate(-10deg);
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  font-size: 14px;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer__company {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.9;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

/* ---------- 右侧屏幕指示 ---------- */

.pager {
  position: fixed;
  z-index: 90;
  top: 50%;
  right: 26px;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.pager a {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  color: var(--ink-muted);
  opacity: 0.35;
  transition:
    height 0.2s ease,
    opacity 0.2s ease;
}

.pager a[aria-current="true"] {
  height: 26px;
  color: var(--brand-strong);
  opacity: 1;
}

body[data-screen="hero"] .pager a {
  color: #fff;
}

/* ---------- 法务与说明页 ---------- */

.doc-page {
  background: var(--surface-alt);
}

.doc-wrap {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 44px) 0 80px;
}

.crumbs {
  margin-bottom: 16px;
  color: var(--ink-muted);
  font-size: 13px;
}

.crumbs a:hover {
  color: var(--brand-strong);
}

.doc {
  padding: clamp(24px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
}

.doc__icon {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
}

.doc h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.3;
}

.doc__meta {
  margin: 12px 0 28px;
  color: var(--ink-muted);
  font-size: 14px;
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: 21px;
  line-height: 1.5;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.doc p,
.doc li {
  color: #4a433e;
  font-size: 15px;
  line-height: 1.95;
}

.doc p + p {
  margin-top: 10px;
}

.doc ul,
.doc ol {
  margin: 10px 0;
  padding-left: 1.4em;
}

.doc a {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-note {
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid var(--brand-tint);
  border-radius: 14px;
  background: var(--brand-soft);
  font-size: 15px;
  line-height: 1.85;
}

.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc .doc-toc a {
  display: block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.doc .doc-toc a:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.table-wrap {
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.doc-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
}

.doc-table th,
.doc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  background: var(--surface-alt);
  white-space: nowrap;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.info-grid div {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.info-grid dt {
  color: var(--ink-muted);
  font-size: 13px;
}

.info-grid dd {
  margin: 4px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.info-grid .span-2 {
  grid-column: 1 / -1;
}

/* ---------- 响应式 ---------- */

/* 两侧留白不足以放下屏幕指示时隐藏，避免压住内容 */
@media (max-width: 1239px) {
  .pager {
    display: none;
  }
}

@media (max-width: 1100px) {
  .svc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .chip--b {
    right: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --topbar-h: 62px;
  }

  .container,
  .screen__inner {
    width: calc(100% - 40px);
  }

  .brand {
    font-size: 19px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    align-content: center;
    gap: 5px;
    margin-right: -10px;
    padding: 0 11px;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
  }

  .nav-toggle span {
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .primary-nav {
    position: fixed;
    inset: var(--topbar-h) 0 auto;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    color: var(--ink);
    transition: max-height 0.25s ease;
  }

  .primary-nav.is-open {
    max-height: 420px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
  }

  .primary-nav ul {
    display: block;
    padding: 4px 20px 16px;
  }

  .primary-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a::after {
    display: none;
  }

  .screen__inner {
    padding: calc(var(--topbar-h) + 44px) 0 68px;
  }

  .split,
  .hero .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split > .media {
    order: 2;
    margin-top: 12px;
  }

  .hero {
    text-align: center;
  }

  .hero__title {
    font-size: clamp(40px, 11vw, 60px);
  }

  .hero__note {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    height: auto;
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
  }

  .hero__visual .device--back {
    display: none;
  }

  .hero__visual .device--front {
    position: relative;
    top: auto;
    right: auto;
    width: min(240px, 62vw);
    transform: rotate(4deg);
  }

  .chip {
    padding: 8px 12px 8px 8px;
  }

  .chip--a {
    bottom: 22%;
    left: 0;
  }

  .chip--b {
    top: 8%;
    right: 0;
  }

  .hero::after {
    height: 64px;
  }

  .media .device {
    width: min(240px, 62vw);
  }

  .journey .media::before,
  .download .media::before {
    width: min(360px, 90vw);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .cat-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cat-stage .device {
    grid-row: 1;
    grid-column: 1 / -1;
    justify-self: center;
    width: 200px;
    margin-bottom: 12px;
  }

  .cat-card,
  .cat-card:nth-child(1),
  .cat-card:nth-child(5) {
    height: 150px;
    margin-top: 0;
  }

  .adv-grid,
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pager {
    display: none;
  }

  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .headline {
    font-size: 30px;
  }

  .lede,
  .hero__note {
    font-size: 15px;
  }

  .chip--b {
    display: none;
  }

  .adv-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-list {
    display: grid;
  }

  .site-footer__main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .screens {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
