/* 页面表层：只引用 tokens 变量；字号阶跃（非 clamp）。单主题 colorful。 */

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

@keyframes wash-shift {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

.hero {
  background: linear-gradient(
    135deg,
    var(--color-hero-from) 0%,
    var(--color-hero-via) 48%,
    var(--color-hero-to) 100%
  );
  background-size: 160% 160%;
  animation: wash-shift 14s ease-in-out infinite alternate;
  height: auto;
  min-height: 0;
  max-height: none;
  display: flex;
  align-items: stretch;
  /* 机身右下软影要落到 hero 下沿之外；压住下一栏的浅底，标题区仍在影的下方。 */
  position: relative;
  z-index: 1;
  overflow: visible;
  color: var(--color-text-on-deep);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 32px 0;
  width: 100%;
  min-width: 0;
  height: 100%;
}

.hero__copy {
  min-width: 0;
  max-width: 36rem;
  animation: hero-rise 0.7s ease-out both;
}

.hero h1,
.page-hero h1,
.band h2,
.section-head h2 {
  margin: 0;
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  overflow-wrap: normal;
  word-break: keep-all;
}

/* 首屏标语：限制行宽 + balance，避免「…消息必」/「达」孤字 */
.hero h1 {
  max-width: 11.5em;
  text-wrap: balance;
}

@supports not (text-wrap: balance) {
  .hero h1 {
    max-width: 9.5em;
  }
}

.hero h1,
.hero__lead {
  color: var(--color-text-on-deep);
}

.band h2,
.section-head h2,
.feature-split h2,
.feature-detail h2,
.download-card__title {
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__lead,
.band__lead,
.lead {
  margin: 1rem 0 0;
  color: var(--color-text-primary);
  font-size: 1.0625rem;
  line-height: 1.45;
  max-width: 36rem;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.94);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  background: var(--color-cta-bg);
  color: var(--color-cta-fg);
  text-decoration: none;
  border-radius: var(--radius-cta);
  font-weight: 700;
  border: 1px solid var(--color-cta-bg);
  box-shadow: 0 8px 20px var(--color-shadow);
}

.cta:hover,
.cta:focus-visible {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: var(--color-cta-fg);
}

.cta--secondary {
  background: var(--color-cta-secondary-bg);
  color: var(--color-cta-secondary-fg);
  border-color: var(--color-cta-secondary-border);
  box-shadow: 0 4px 14px var(--color-shadow);
}

.cta--secondary:hover,
.cta--secondary:focus-visible {
  color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  background: var(--color-cta-secondary-bg);
}

/*
 * 首屏 CTA 主次：
 * 主「下载」——金黄实心、发光+投影漂浮感（height 50 / pad 14×28 / 17px）
 * 次「了解特性」——浅描边降噪、矮一档（height 40 / pad 8×16 / 14px），不用橙实心
 */
.cta--primary-hero {
  min-height: 50px;
  height: 50px;
  padding: 14px 28px;
  font-size: 17px;
  line-height: 1;
  background: linear-gradient(180deg, var(--color-cta-hero-bg) 0%, var(--color-cta-hero-bg-2) 100%);
  color: var(--color-cta-hero-fg);
  border-color: var(--color-cta-hero-edge);
  box-shadow:
    inset 0 1px 0 var(--color-cta-hero-edge),
    0 8px 32px 0 var(--color-cta-hero-glow),
    0 18px 36px -2px var(--color-cta-hero-shadow);
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.cta--primary-hero:hover,
.cta--primary-hero:focus-visible {
  background: linear-gradient(180deg, var(--color-cta-hero-hover) 0%, var(--color-cta-hero-hover-2) 100%);
  border-color: var(--color-cta-hero-edge);
  color: var(--color-cta-hero-fg);
  box-shadow:
    inset 0 1px 0 var(--color-cta-hero-edge),
    0 12px 40px 2px var(--color-cta-hero-glow),
    0 22px 40px -2px var(--color-cta-hero-shadow);
  transform: translateY(-2px);
}

.cta--secondary-hero {
  min-height: 40px;
  height: 40px;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-brand-white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
  align-self: center;
}

.cta--secondary-hero:hover,
.cta--secondary-hero:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-brand-white);
  color: var(--color-brand-white);
}

.cta--on-hero {
  background: var(--color-brand-white);
  color: var(--color-brand-blue-ink);
  border-color: transparent;
}

.cta--on-hero:hover,
.cta--on-hero:focus-visible {
  background: var(--color-brand-highlight);
  color: var(--color-brand-blue-ink);
  border-color: transparent;
}

.cta--mark {
  background: var(--color-cta-mark-bg);
  border-color: var(--color-cta-mark-bg);
  color: var(--color-cta-mark-fg);
  box-shadow: 0 8px 20px rgba(160, 88, 16, 0.28);
}

.cta--mark:hover,
.cta--mark:focus-visible {
  background: var(--color-cta-mark-hover);
  border-color: var(--color-cta-mark-hover);
  color: var(--color-cta-mark-fg);
}

.hero__phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 1.25rem;
  overflow: visible;
  animation: hero-rise 0.85s ease-out 0.12s both;
}

/*
 * 叠压组：舞台即 iPad 外框（3:4）。iPhone 落在右下前景，宽约为舞台 50.7%，
 * 压住 iPad 右半部；机身高约为 iPad 的 0.8（iPad ≈ 1.25×）。
 * 窄屏用 vmin 缩小，≥900 整组靠右。iPhone 姿态是平面 6° 顺时针，不用透视。
 */
.device-stage {
  position: relative;
  width: min(92%, 72vmin);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  flex: 0 0 auto;
  min-width: 0;
}

.iphone-viewer,
.ipad-viewer {
  container-type: inline-size;
}

.ipad-viewer {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 22px var(--color-shadow));
}

.iphone-viewer {
  /* pen3：顺时针 6°，顶边右高。尺寸仍由宽度百分比决定，不另乘 scale。 */
  --iphone-pose: rotate(6deg);
  position: absolute;
  z-index: 2;
  right: 2%;
  bottom: 0;
  width: 50.7%;
  aspect-ratio: 100 / 210.5;
  transform: var(--iphone-pose);
  transform-origin: 50% 50%;
  transition: transform 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
  .iphone-viewer:hover {
    --iphone-pose: rotate(6deg) scale(1.03);
  }
}

.iphone-viewer__fit,
.ipad-viewer__fit {
  position: relative;
  width: 100%;
  height: 100%;
}

.iphone-viewer__fit {
  font-size: calc(100cqw / 100);
}

.ipad-viewer__fit {
  font-size: calc(100cqw / 104);
}

.iphone-viewer__keys {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.iphone-viewer__key,
.ipad-viewer__key {
  position: absolute;
  display: block;
  background: linear-gradient(
    90deg,
    var(--color-device-key-edge) 0%,
    var(--color-device-key) 42%,
    var(--color-device-metal-1) 100%
  );
  box-shadow:
    inset 0 0.16em 0 rgba(255, 255, 255, 0.72),
    inset 0 -0.16em 0 rgba(8, 24, 48, 0.28);
}

.iphone-viewer__key {
  /* 厚度按 XS 的 3px/376，并给 4px 下限，窄屏上金属侧键才看得清。 */
  width: max(0.8em, 4px);
  border-radius: 0.28em 0 0 0.28em;
}

/* 侧键位置按 XS 屏（376×812）折到外壳：静音 110 / 音量 170·250 / 电源 180。 */
.iphone-viewer__key--silent {
  left: calc(-1 * max(0.8em, 4px));
  top: 30.2em;
  height: 7.6em;
}

.iphone-viewer__key--vol-up {
  left: calc(-1 * max(0.8em, 4px));
  top: 45.4em;
  height: 16.5em;
}

.iphone-viewer__key--vol-down {
  left: calc(-1 * max(0.8em, 4px));
  top: 65.7em;
  height: 16.5em;
}

.iphone-viewer__key--power {
  right: calc(-1 * max(0.8em, 4px));
  left: auto;
  top: 48em;
  height: 24.1em;
  border-radius: 0 0.28em 0.28em 0;
  background: linear-gradient(
    270deg,
    var(--color-device-key-edge) 0%,
    var(--color-device-key) 42%,
    var(--color-device-metal-1) 100%
  );
}

.iphone-viewer__shell,
.ipad-viewer__shell {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    var(--color-device-metal-0) 0%,
    var(--color-device-metal-1) 26%,
    var(--color-device-metal-2) 58%,
    var(--color-device-metal-3) 100%
  );
  box-shadow:
    inset 0 0 0 0.22em rgba(255, 255, 255, 0.62),
    inset 0 0 0 0.5em rgba(8, 28, 56, 0.28);
}

.iphone-viewer__shell {
  border-radius: 12.2em;
  padding: 2.35em;
  /*
   * pen3 双层软影，按机身宽度等比（参考机身 375px，1px → 1/3.75 em）。
   * 负扩展把影收在右下，避免四周光晕。接触影贴着机身，补一层悬浮。
   * 1em = 机身宽度的 1%（见 .iphone-viewer__fit）。
   */
  box-shadow:
    1.8em 3.6em 4.8em -0.9em rgba(13, 13, 13, 0.62),
    5.33em 10.67em 20em -9.33em rgba(13, 13, 13, 0.45),
    6.67em 16em 33.33em -6.67em rgba(13, 13, 13, 0.55),
    inset 0 0 0 0.22em rgba(255, 255, 255, 0.62),
    inset 0 0 0 0.5em rgba(8, 28, 56, 0.28);
}

.ipad-viewer__shell {
  border-radius: 7.4em;
  padding: 1.45em;
}

.iphone-viewer__screen,
.ipad-viewer__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-device-screen);
}

.iphone-viewer__screen {
  border-radius: 9.9em;
}

.ipad-viewer__screen {
  border-radius: 5.2em;
}

.ipad-viewer .shot-slide {
  object-position: center top;
}

/*
 * 刘海几何回到 R2：屏宽 54.8% × 屏高 3.7%，贴屏幕顶边居中。
 * 直隐：填充与肩角透明，扬声器/镜头不绘制，状态栏整行不被黑块挡住。
 */
.iphone-viewer__notch {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  width: 54.8%;
  height: 3.7%;
  transform: translateX(-50%);
  border-radius: 0 0 9.7% 9.7% / 0 0 67% 67%;
  background: transparent;
  pointer-events: none;
}

.iphone-viewer__speaker,
.iphone-viewer__lens {
  display: none;
}

.ipad-viewer__camera {
  position: absolute;
  z-index: 4;
  top: 0.48em;
  left: 50%;
  width: 1.35em;
  height: 1.35em;
  margin-left: -0.67em;
  border-radius: 50%;
  background: var(--color-device-island);
  box-shadow: inset 0 0 0 0.22em var(--color-device-metal-1);
}

.ipad-viewer__key {
  top: 12%;
  right: -1.55em;
  width: 1.85em;
  height: 9.5em;
  border-radius: 0 0.4em 0.4em 0;
}

.shot-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.shot-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.shot-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.35em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.05em;
  margin: 0;
  padding: 0.15em 0.45em;
  border-radius: 999px;
  background: rgba(8, 18, 36, 0.62);
  transform: translateX(-50%);
}

.shot-dot {
  appearance: none;
  width: 7px;
  height: 7px;
  box-sizing: content-box;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.55);
  background-clip: content-box;
  cursor: pointer;
}

.shot-dot.is-active {
  background-color: var(--color-brand-white);
}

.shot-dot:hover,
.shot-dot:focus-visible {
  background-color: var(--color-brand-white);
}

.iphone-viewer .shot-dots {
  transition: opacity 0.45s ease;
}

.iphone-viewer.is-locked .shot-dots {
  opacity: 0;
}

/*
 * 锁屏盖在截图之上、圆点之下。圆点在锁屏期间保持可点（透明度 0），
 * 点击即解锁进入对应一帧。背景是纯 CSS 渐变与星点，不引外链壁纸。
 */
.iphone-lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  color: var(--color-brand-white);
  text-align: center;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    transform 0.85s cubic-bezier(0.22, 0.8, 0.3, 1),
    opacity 0.7s ease;
}

.iphone-viewer.is-open .iphone-lock {
  opacity: 0;
  transform: translateY(-42%);
  visibility: hidden;
  transition:
    transform 0.85s cubic-bezier(0.22, 0.8, 0.3, 1),
    opacity 0.7s ease,
    visibility 0s linear 0.85s;
}

.iphone-lock__sky {
  position: absolute;
  inset: -14%;
  background:
    radial-gradient(1.6px 1.6px at 12% 20%, rgba(255, 255, 255, 0.95) 50%, transparent 52%),
    radial-gradient(1.1px 1.1px at 22% 46%, rgba(255, 255, 255, 0.7) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 33% 14%, rgba(255, 255, 255, 0.85) 50%, transparent 52%),
    radial-gradient(1px 1px at 41% 62%, rgba(255, 255, 255, 0.55) 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 58% 26%, rgba(255, 255, 255, 0.92) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 67% 74%, rgba(255, 255, 255, 0.65) 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 78% 16%, rgba(255, 255, 255, 0.8) 50%, transparent 52%),
    radial-gradient(1px 1px at 88% 48%, rgba(255, 255, 255, 0.6) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 16% 82%, rgba(255, 255, 255, 0.7) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 48% 88%, rgba(255, 255, 255, 0.5) 50%, transparent 52%),
    radial-gradient(1px 1px at 92% 78%, rgba(255, 255, 255, 0.55) 50%, transparent 52%),
    radial-gradient(ellipse at 50% 40%, rgba(64, 192, 240, 0.42), transparent 46%),
    radial-gradient(ellipse at 80% 10%, rgba(80, 112, 240, 0.5), transparent 38%),
    radial-gradient(ellipse at 16% 72%, rgba(12, 48, 120, 0.72), transparent 42%),
    linear-gradient(188deg, #041028 0%, #0a2a66 48%, #14367a 100%);
  animation: iphone-lock-drift 16s ease-in-out infinite alternate;
}

.iphone-lock__mark {
  position: relative;
  z-index: 1;
  width: 18em;
  height: auto;
  margin-top: auto;
  margin-bottom: auto;
  animation: iphone-lock-glow 5.5s ease-in-out infinite;
}

.iphone-lock__time,
.iphone-lock__date,
.iphone-lock__swipe {
  position: relative;
  z-index: 1;
  margin: 0;
}

.iphone-lock__time {
  /* 星标移走后接替其占位。本元素 font-size 为 18em（相对机身），
     1em 等于原星标边长，0.12em 是原时钟顶距，16% 是原星标顶距。 */
  margin-top: calc(16% + 1.12em);
  font-size: 18em;
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.iphone-lock__date {
  margin-top: 0.28em;
  font-size: 5.2em;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.iphone-lock__swipe {
  margin-top: 0;
  margin-bottom: 5.6em;
  font-size: 4.5em;
  font-weight: 500;
  line-height: 1.2;
  animation: iphone-lock-swipe 3.6s ease-in-out infinite;
}

.iphone-lock__bar {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 2.1em;
  width: 32em;
  height: max(4px, 1.2em);
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  animation: iphone-lock-bar 3.6s ease-in-out infinite;
}

@keyframes iphone-lock-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-3%, -2.4%, 0) scale(1.05);
  }
}

@keyframes iphone-lock-glow {
  0%,
  100% {
    opacity: 0.9;
    filter: drop-shadow(0 0 0.6em rgba(64, 192, 240, 0.35));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 1.4em rgba(186, 230, 255, 0.85));
  }
}

@keyframes iphone-lock-swipe {
  0%,
  18% {
    opacity: 0;
    transform: translateY(0.45em);
  }
  42%,
  68% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-0.2em);
  }
}

@keyframes iphone-lock-bar {
  0%,
  18% {
    transform: translateY(0);
  }
  46% {
    transform: translateY(-2.4em);
  }
  62% {
    transform: translateY(0.35em);
  }
  78%,
  100% {
    transform: translateY(0);
  }
}

/*
 * 初始化序列盖在锁屏之上：Loader（静态）→ Action（mp4）→ 锁屏。
 * Logo 在屏幕正中；进度条在其下沿再留一小段。1% 宽度 = 进度条与 Logo 的间距单位。
 */
.iphone-viewer__loader,
.iphone-viewer__action {
  position: absolute;
  inset: 0;
  background: #000;
}

.iphone-viewer__loader {
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.iphone-viewer.is-init .iphone-viewer__loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.iphone-viewer.is-init .iphone-viewer__loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.iphone-viewer__loader-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28%;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.iphone-viewer__loader-track {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 2px;
  margin-top: 18%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
}

.iphone-viewer__loader-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.iphone-viewer__loader-track::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  animation: iphone-loader-sheen 1.15s ease-in-out infinite;
}

@keyframes iphone-loader-sheen {
  from {
    transform: translateX(-130%);
  }
  to {
    transform: translateX(280%);
  }
}

.iphone-viewer__action {
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.iphone-viewer.is-action .iphone-viewer__action {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.iphone-viewer__action video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.iphone-viewer[data-init="off"] .iphone-viewer__loader,
.iphone-viewer[data-init="off"] .iphone-viewer__action {
  display: none !important;
}

.iphone-viewer.is-skip .iphone-viewer__loader,
.iphone-viewer.is-skip .iphone-viewer__action {
  transition: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.band {
  padding-block: 72px;
  background: var(--color-page-bg);
}

.band--tint {
  background: linear-gradient(
    180deg,
    var(--color-wash-sky) 0%,
    var(--color-wash-mist) 100%
  );
}

.band--surface {
  background: var(--color-surface);
}

.band--deep {
  background: linear-gradient(
    120deg,
    var(--color-brand-navy) 0%,
    var(--color-band-deep) 100%
  );
  color: var(--color-text-on-deep);
}

.band--deep h2,
.band--deep .band__lead,
.band--deep .section-head h2 {
  color: var(--color-text-on-deep);
}

.band--accent {
  background: linear-gradient(
    90deg,
    var(--color-brand-orange-deep) 0%,
    var(--color-brand-orange-mid) 100%
  );
  color: var(--color-text-on-deep);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-head .band__lead {
  margin-inline: auto;
}

.feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.feature-card {
  min-width: 0;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(10, 70, 140, 0.08);
}

.feature-card:nth-child(2n) {
  background: linear-gradient(
    160deg,
    var(--color-wash-mist) 0%,
    var(--color-wash-cyan) 100%
  );
}

.feature-card:nth-child(3n) {
  background: linear-gradient(
    160deg,
    var(--color-wash-warm) 0%,
    var(--color-wash-mist) 100%
  );
}

.feature-card__art {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.feature-card__art img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.feature-card h2 {
  margin: 0;
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-secondary);
}

.feature-split {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin: 0 0 4rem;
  min-width: 0;
  padding: 1.5rem;
  border-radius: 24px;
  background: var(--color-surface);
}

.feature-split:nth-child(even) {
  background: linear-gradient(
    120deg,
    var(--color-wash-sky) 0%,
    var(--color-surface) 70%
  );
}

.feature-split:last-child {
  margin-bottom: 0;
}

.feature-split__art {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.feature-split__art img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.feature-split h2 {
  margin: 0 0 0.75rem;
}

.feature-split p {
  margin: 0 0 0.75rem;
  color: var(--color-text-secondary);
}

.feature-how {
  color: var(--color-text-primary);
}

.feature-how__label {
  color: var(--color-mark);
  font-weight: 700;
}

.page {
  padding-block: 48px 72px;
  min-width: 0;
}

.page-hero {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.page-hero__art {
  width: min(420px, 100%);
  margin: 1.5rem 0 0;
  aspect-ratio: 1 / 1;
}

.page-hero__art img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.draft-notice {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--color-mark);
  background: var(--color-band-bg);
  color: var(--color-text-primary);
  font-weight: 700;
}

.legal-effective {
  margin: 0 0 1.5rem;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.legal-body,
.contact-line {
  margin: 0 0 1.25rem;
  color: var(--color-text-secondary);
}

.contact-line__label {
  margin-right: 0.5rem;
  color: var(--color-text-tertiary);
}

.section-title {
  margin: 2rem 0 0.75rem;
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  font-weight: 800;
}

.faq-list {
  margin: 0;
}

.faq-item {
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-divider);
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.faq-item dt {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.faq-item dd {
  margin: 0;
  color: var(--color-text-secondary);
}

.fact-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-secondary);
}

.fact-list li {
  margin-bottom: 0.85rem;
}

.page--error {
  text-align: center;
  padding-block: 72px;
}

.page--error .error-code {
  margin: 0;
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-brand-navy);
  line-height: 1;
}

.page--error .page-hero__art {
  margin-inline: auto;
}

/* Download cards */
.channel-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1.75rem;
}

.channel-switch__label {
  color: var(--color-text-secondary);
  margin-right: 0.25rem;
}

.channel-switch__link {
  color: var(--color-link);
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-cta);
}

.channel-switch__link.is-active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  font-weight: 700;
}

.download-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.download-card {
  padding: 1.25rem;
  border: 1px solid var(--color-divider);
  border-radius: 12px;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  box-shadow: 0 8px 20px rgba(10, 70, 140, 0.06);
  /* 查询容器：按卡内容宽（非视口）降档标题。Chrome 105+ / Safari 16+；不支持时标题保持 --h2-size。 */
  container-type: inline-size;
}

.download-card__heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.download-card__title {
  margin: 0;
  color: var(--color-text-primary);
  /* Windows 40px 实测 191px ⇒ 宽/字号 ≈ 4.78。20cqi 在 ≥200px 卡上贴回 --h2-size（40px）。
   * cqi 无效时整条声明丢弃，回退到 grouped 规则的 --h2-size。 */
  font-size: min(var(--h2-size), 20cqi);
  line-height: 1.1;
}

/* 无 cqi 的容器查询浏览器（Chrome 105–107）离散档：阈值按 Windows 191px@40px 反推，Chrome 实测微调。 */
@container (max-width: 190px) {
  .download-card__title {
    font-size: 1.875rem; /* 30px → Windows 实测 ≈144px；1440 卡内容 150px */
    line-height: 1.1;
  }
}

@container (max-width: 145px) {
  .download-card__title {
    font-size: 1.625rem; /* 26px → Windows 实测 124px；1280 卡内容 134px */
    line-height: 1.1;
  }
}

.download-card__subtitle {
  margin: 0;
  color: var(--color-text-tertiary);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
}

.download-card__status {
  margin: 0;
  font-weight: 700;
}

.download-card__status.is-available {
  color: var(--color-accent);
}

.download-card__status.is-soon {
  color: var(--color-text-secondary);
}

.download-card__status.is-recruiting {
  color: var(--color-mark);
}

.download-card__meta {
  margin: 0;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

.download-card__meta dt {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.download-card__meta dd {
  margin: 0.125rem 0 0;
  color: var(--color-text-primary);
  word-break: break-word;
}

.download-card__howto {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.download-card .cta,
.download-card .cta--disabled {
  align-self: flex-start;
  margin-top: auto;
}

button.cta {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.cta--ghost {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-divider);
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.cta--ghost:hover,
.cta--ghost:focus-visible {
  background: transparent;
  color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* column-reverse：DOM 里主按钮在前，视觉上贴卡片底部，与另外三张卡的按钮同基线。 */
.download-card__actions {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: auto;
}

/* 窄卡（4 列内容约 150–190px）：撑满卡内宽，字号收到 0.8125rem，长文案最多 2 行。禁止 nowrap。 */
.download-card__actions .cta {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  font-size: 0.8125rem;
  line-height: 1.2;
  padding-inline: 0.5rem;
}

/* 下载按钮与市场入口同一行；窄卡折行，不把卡片撑出横向滚动。留白 ≥ 徽章高度的 1/4（40px → 10px）。 */
.download-card__primary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: auto;
}

.download-card__actions .download-card__primary-row {
  margin-top: 0;
}

.download-card .download-card__primary-row > .cta,
.download-card .download-card__primary-row > .cta--disabled {
  width: auto;
  max-width: 100%;
  min-width: 0;
  align-self: center;
  margin-top: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.store-entry {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.35rem;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--color-surface);
  color: var(--color-link);
  text-decoration: none;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-cta);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.store-entry:hover,
.store-entry:focus-visible {
  color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.store-entry__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  color: currentColor;
}

.store-entry__name {
  min-width: 0;
  white-space: nowrap;
}

/* 官方徽章：不换色、不加滤镜、不裁切；高 40px，宽按原始比例。点击区用 padding 补到 44px。 */
.store-entry--badge,
.store-entry--badge:hover,
.store-entry--badge:focus-visible {
  gap: 0;
  padding: 2px 0;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.store-entry__badge {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.download-card__url {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
  user-select: text;
}

/* 公开链接文本默认与所有状态均隐藏。 */
.download-card__url[hidden] {
  display: none !important;
}

.download-card__live {
  margin: 0;
  min-height: 1.25rem;
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
}

.link-dialog {
  width: min(28rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: min(32rem, calc(100dvh - 2rem));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--color-divider);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text-primary);
  box-shadow: 0 18px 40px var(--color-shadow);
}

.link-dialog::backdrop {
  background: rgba(12, 39, 72, 0.48);
}

.link-dialog__panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1.25rem;
}

.link-dialog__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.link-dialog__url {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-cta);
  background: var(--color-wash-mist);
  color: var(--color-text-primary);
  font-size: 0.9375rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

.link-dialog__url:focus-visible {
  outline: 3px solid var(--color-brand-orange);
  outline-offset: 2px;
}

.link-dialog__status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.link-dialog__status.is-ok {
  color: var(--color-nav-badge);
}

.link-dialog__status.is-fail {
  color: var(--color-mark);
}

.link-dialog__close {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  box-shadow: none;
}

.cta--disabled {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-cta);
  font-weight: 700;
  cursor: not-allowed;
  opacity: 0.85;
}

.icon {
  display: block;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* 星与 H1 成一组：行前标记，左对齐、光学贴齐首行 */
.hero__title-group {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 100%;
}

.brand-hero-mark {
  width: 40px;
  height: auto;
  flex-shrink: 0;
  margin: 0.12em 0 0;
  filter: drop-shadow(0 8px 16px rgba(0, 40, 100, 0.35));
}

@media (min-width: 641px) and (max-width: 899px) {
  .device-stage {
    width: min(68%, 48vmin);
  }
}

@media (min-width: 900px) {
  .hero__phones {
    justify-content: flex-end;
  }

  .device-stage {
    width: min(100%, 40vmin);
    margin-left: auto;
    /* 右缘留出软影，避免贴边被视口裁掉。 */
    margin-right: 1.75rem;
  }
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr 1fr;
  }

  .download-card__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  /* 与参考物一致：≥1024 全程锁定 680，避免宽屏手机图把 hero 撑高 */
  .hero {
    height: var(--hero-min-h);
    min-height: var(--hero-min-h);
    max-height: var(--hero-min-h);
  }

  .hero__inner {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    /* 略加大顶距、收紧底距 → 内容整体下沉，右下留白收窄 */
    padding-block: 56px 20px;
    height: 100%;
  }

  .hero__copy {
    flex: 1 1 48%;
    max-width: 34rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 3.25rem;
  }

  .hero__title-group {
    gap: 0.85rem;
  }

  .brand-hero-mark {
    width: 48px;
    margin-top: 0.18em;
  }

  .hero__phones {
    flex: 1 1 46%;
    min-height: 0;
    align-self: stretch;
    justify-content: flex-end;
    align-items: flex-end;
    padding-bottom: 0;
  }

  .device-stage {
    width: min(100%, 420px);
    height: auto;
    margin-left: auto;
    margin-right: 2rem;
  }

  .feature-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .feature-split--flip .feature-split__art {
    order: 2;
  }

  .feature-split--flip .feature-split__copy {
    order: 1;
  }

  .page-with-art {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
    gap: 2.5rem;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  /* 四列只在够宽时启用：1024 + 侧栏插画会把卡内容压到 ~76px，标题必溢 */
  .download-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .device-stage {
    width: min(100%, 460px);
    margin-right: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero__copy,
  .hero__phones {
    animation: none;
  }

  .iphone-viewer,
  .iphone-viewer:hover {
    --iphone-pose: rotate(6deg);
    transition: none;
  }

  .shot-slide {
    transition: none;
  }

  .iphone-viewer .shot-dots,
  .iphone-lock,
  .iphone-lock__sky,
  .iphone-lock__mark,
  .iphone-lock__swipe,
  .iphone-lock__bar {
    animation: none;
    transition: none;
  }

  .iphone-viewer.is-open .iphone-lock {
    transform: none;
    opacity: 0;
    visibility: hidden;
    transition: none;
  }

  .iphone-viewer__loader,
  .iphone-viewer__action,
  .iphone-viewer__loader-bar,
  .iphone-viewer__loader-track::after {
    animation: none;
    transition: none;
  }

  .iphone-viewer__loader,
  .iphone-viewer__action {
    display: none !important;
  }

  .cta--primary-hero,
  .cta--primary-hero:hover,
  .cta--primary-hero:focus-visible {
    transform: none;
    transition: none;
  }
}
