html {
  font-size: 112.5%;
}

:root {
  --bg: #0f0f0f;
  /* 首屏地平线/地球裁切处的底色，与 #pillars 顶部衔接 */
  --hero-floor: #0a0a0c;
  /* 产品理念 → FAQ 渐变终点（略亮于全页底色） */
  --flow-end: #1a1c24;
  --bg-cosmic: #1a1c24;
  --bg-soft: #141416;
  --card: #1c1e28;
  --text: #e8e8ea;
  --muted: #9a9ca8;
  --accent: #94a1c2;
  --accent-soft: #7e86a9;
  --accent-rgb: 126, 134, 169;
  --glow: 148, 161, 194;
  --animation-iteration: infinite;
  --page-bg:
    radial-gradient(ellipse 125% 58% at 50% -6%, rgba(126, 134, 169, 0.38) 0%, rgba(126, 134, 169, 0.14) 32%, transparent 56%),
    radial-gradient(ellipse 95% 42% at 50% 0%, rgba(148, 161, 194, 0.16) 0%, transparent 48%),
    radial-gradient(circle at 12% 14%, rgba(var(--glow), 0.05), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(var(--glow), 0.04), transparent 30%),
    var(--bg);
  --font-pingfang-sc:
    "PingFang SC",
    "PingFangSC-Regular",
    "PingFangSC-Medium",
    "PingFangSC-Semibold",
    "苹方-简",
    "苹方",
    sans-serif;
  --font-pingfang-tc:
    "PingFang TC",
    "PingFangTC-Regular",
    "PingFangTC-Medium",
    "PingFangTC-Semibold",
    "苹方-繁",
    "苹方",
    sans-serif;
  --font-latin: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: normal;
  background: var(--page-bg);
  background-color: var(--bg);
  font-family: var(--font-pingfang-sc);
  scroll-behavior: smooth;
}

html[lang="zh-TW"],
html[lang="zh-TW"] body {
  font-family: var(--font-pingfang-tc);
}

html[lang="en"],
html[lang="en"] body {
  font-family: var(--font-latin), var(--font-pingfang-sc);
}

/* 英文页内嵌中文（如用户故事）仍走苹方 */
html[lang="en"] :lang(zh-Hans),
html[lang="en"] :lang(zh-Hant),
html[lang="en"] :lang(zh-CN),
html[lang="en"] :lang(zh-TW) {
  font-family: var(--font-pingfang-sc);
}

html[lang="en"] :lang(zh-Hant),
html[lang="en"] :lang(zh-TW) {
  font-family: var(--font-pingfang-tc);
}

body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 35% at 50% 0%, rgba(126, 134, 169, 0.1), transparent 55%),
    radial-gradient(circle at 14% 12%, rgba(var(--glow), 0.05), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(var(--accent-rgb), 0.08), transparent 34%);
}

.nav,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  /* 左：Cogi 实际宽度；中：两侧之间的条带；右：语言+下载实际宽度 → Tab 在左右内缘的正中央 */
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(var(--glow), 0.1);
}

.logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  border-radius: 7px;
}

a.logo:visited,
a.logo:link {
  color: var(--text);
}

a.logo:hover {
  color: #fff;
}

.menu {
  grid-column: 1 / -1;
  grid-row: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  /* 中文字形视觉重心偏下，略上移以与左右元素对齐 */
  transform: translate(-50%, calc(-50% - 6px));
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  justify-content: center;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
}

.menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.menu a:hover {
  color: #fff;
  text-shadow: 0 0 14px rgba(var(--glow), 0.55);
}

.nav-end {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  z-index: 2;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  justify-content: flex-end;
}

.actions .glass-btn {
  white-space: nowrap;
}

/* 顶栏右侧：语言与「下载」共用字号与内边距 */
.actions .glass-btn.lang-trigger,
.actions > .glass-btn.primary.nav-download {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  line-height: 1.25;
  padding: 9px 8px;
  flex-shrink: 0;
  max-width: 100%;
  text-decoration: none;
}

/* 语言切换：宽度与右侧下载键一致（不改动下载键样式） */
.actions .glass-btn.lang-trigger {
  width: 105px;
  white-space: nowrap;
  font-weight: 700;
}

/* 顶栏主下载：固定宽度；简/繁「下载 Cogi」可换行；白底黑字 */
.actions > .glass-btn.primary.nav-download {
  width: 105px; /* 126px 缩减 1/6 */
  white-space: normal;
  word-break: keep-all;
  background: #ffffff;
  color: #000000;
  border-color: rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
}

.actions > .glass-btn.primary.nav-download:hover {
  background: #f2f2f2;
  color: #000000;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #f2f2f3;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav.menu-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.menu-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav.menu-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: stretch;
  z-index: 0;
  position: fixed;
  top: var(--nav-offset, 60px);
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav.menu-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lang-dropdown {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  box-sizing: border-box;
  width: 105px; /* 与 .actions .glass-btn.lang-trigger 同宽 */
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(15, 15, 18, 0.92);
  backdrop-filter: blur(10px);
}

.lang-dropdown.open .lang-menu {
  display: grid;
  gap: 4px;
}

.lang-item {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  width: 100%;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  white-space: normal;
  line-height: 1.35;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.glass-btn,
.cta,
.ghost,
.tab {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 11px 18px;
  line-height: 1.35;
  max-width: 100%;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.glass-btn:hover,
.cta:hover,
.ghost:hover,
.tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.glass-btn.primary,
.cta {
  background: rgba(var(--glow), 0.16);
  border-color: rgba(var(--glow), 0.28);
  color: #f2f2f4;
  font-weight: 700;
}

.glass-cta {
  border-color: rgba(var(--glow), 0.32);
  backdrop-filter: blur(12px);
}

main {
  width: min(1280px, 92vw);
  margin: 0 auto;
  padding: 0 0 80px;
}

.section {
  margin-top: 44px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(var(--accent-rgb), 0.14), rgba(15, 15, 15, 0.06));
  box-shadow: none;
}

#features.section,
#stories.section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding-inline: 0;
}

#hero {
  scroll-margin-top: calc(var(--nav-offset, 60px) + 20px);
}

/* 产品理念 → 用户故事 → FAQ：同一纵向渐变（深 → 浅） */
.page-flow {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-bottom: clamp(48px, 8vh, 80px);
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  background-color: var(--hero-floor);
  background-image:
    radial-gradient(ellipse 90% 45% at 50% 18%, rgba(126, 134, 169, 0.07), transparent 58%),
    radial-gradient(ellipse 70% 35% at 82% 62%, rgba(var(--glow), 0.04), transparent 52%),
    linear-gradient(
      180deg,
      var(--hero-floor) 0%,
      #0b0b10 14%,
      #0e0e13 28%,
      #111117 42%,
      #14141b 56%,
      #16161f 70%,
      #181a23 84%,
      var(--flow-end) 100%
    );
}

.page-flow > .section,
.page-flow > .hero-pillars,
.page-flow > .faq-section {
  background: none;
  border: none;
  box-shadow: none;
}

.page-flow > .section,
.page-flow > .faq-section {
  margin-top: clamp(36px, 6vh, 56px);
}

.page-flow > .hero-pillars {
  margin-top: 0;
}

#pillars {
  scroll-margin-top: calc(var(--nav-offset, 60px) + 20px);
}

.hero-pillars {
  --pillar-gutter: clamp(56px, 7vw, 96px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(48px, 8vh, 72px) var(--pillar-gutter) clamp(24px, 4vh, 40px);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.hero-pillars__row {
  --pillar-col-gap: var(--pillar-gutter);
  --pillar-col-width: calc((100% - 2 * var(--pillar-col-gap)) / 3);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--pillar-col-gap);
  width: 100%;
  max-width: min(1360px, 96vw);
  margin: 0 auto;
}

.pillar-item {
  --pillar-text-size: clamp(14px, 1.15vw, 15px);
  --pillar-title-size: clamp(21px, 2vw, 28px);
  position: relative;
  flex: 0 1 var(--pillar-col-width);
  width: var(--pillar-col-width);
  max-width: var(--pillar-col-width);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-align: center;
}

.pillar-item__title {
  margin: 0;
  font-size: var(--pillar-title-size);
  font-weight: 700;
  line-height: 1.45;
  color: #f3f3f5;
}

html[lang="en"] .pillar-item__title {
  letter-spacing: 0.04em;
}

html[lang="en"] .pillar-item--script .pillar-item__title {
  white-space: nowrap;
}

.pillar-item__tagline {
  margin: 0;
  font-size: var(--pillar-text-size);
  line-height: 1.55;
  font-weight: 500;
  color: var(--muted);
}

.pillar-item__body {
  margin: 0;
  font-size: var(--pillar-text-size);
  line-height: 1.55;
  color: var(--muted);
  opacity: 0.7;
}

.pillar-item--stillpoint .pillar-item__stillpoint,
.pillar-item--script .pillar-item__vortex,
.pillar-item--planet .pillar-item__planet {
  width: clamp(72px, 11vw, 104px);
  height: clamp(72px, 11vw, 104px);
  margin: 0 auto 8px;
  flex-shrink: 0;
}

.pillar-item__stillpoint-svg,
.pillar-item__stillpoint-img,
.pillar-item__vortex-svg,
.pillar-item__vortex-img,
.pillar-item__planet-svg,
.pillar-item__planet-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .hero-pillars {
    --pillar-gutter: clamp(48px, 6vw, 80px);
  }

  .hero-pillars__row {
    --pillar-col-gap: var(--pillar-gutter);
    --pillar-col-width: calc((100% - var(--pillar-col-gap)) / 2);
    width: 100%;
    flex-wrap: wrap;
    row-gap: 44px;
    column-gap: var(--pillar-col-gap);
  }

  .pillar-item {
    flex: 0 1 var(--pillar-col-width);
    width: var(--pillar-col-width);
    max-width: var(--pillar-col-width);
  }
}

@media (max-width: 560px) {
  .hero-pillars {
    --pillar-gutter: clamp(28px, 6vw, 40px);
    padding: 40px var(--pillar-gutter) 4px;
  }

  .hero-pillars__row {
    --pillar-col-gap: 0px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    row-gap: 36px;
  }

  .pillar-item {
    flex: none;
    width: 100%;
    max-width: 28rem;
  }

  .pillar-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: clamp(40px, 12vw, 56px);
    height: 1px;
    background: rgba(var(--glow), 0.28);
  }
}

#features {
  /* keep the section top visible above sticky nav */
  scroll-margin-top: calc(var(--nav-offset, 60px) + 20px);
}

#features.section {
  padding: 8px clamp(32px, 6vw, 88px);
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  box-sizing: border-box;
}

#stories {
  /* keep the section top visible above sticky nav */
  scroll-margin-top: calc(var(--nav-offset, 60px) + 20px);
}

#stories.section {
  min-height: calc(100svh - var(--nav-offset, 60px) - 28px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8px 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  box-sizing: border-box;
}

#stories h2 {
  flex-shrink: 0;
  width: min(72rem, 100%);
  margin: 12px auto 0;
  text-align: left;
  padding-inline: clamp(16px, 3vw, 32px);
  box-sizing: border-box;
}

#faq .faq-heading {
  text-align: left;
}

#faq {
  scroll-margin-top: calc(var(--nav-offset, 60px) + 20px);
}

#faq.section,
.faq-section.section {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  box-sizing: border-box;
}

#faq.faq-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

.page-flow #faq.faq-section {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-bottom: clamp(32px, 5vh, 48px);
}

#faq .faq-container {
  width: min(72rem, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

.hero {
  /* 全宽背景图（突破 main 宽度限制） */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  /* 首屏高度固定为一屏，背景图随区域 cover 裁切 */
  min-height: 100dvh;
  max-height: 100dvh;
  /* 背景延伸至顶栏下方，内容仍避开 sticky 导航 */
  margin-top: calc(-1 * var(--nav-offset, 60px));
  padding: calc(var(--nav-offset, 60px) + 24px) 20px 48px;
  background: transparent;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  justify-content: center;
}

/* Cosmic parallax background — 底色由全页 --page-bg 提供，此处只叠星空与地平线 */
.hero-cosmic.cosmic-parallax-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.cosmic-stars,
.cosmic-stars-medium,
.cosmic-stars-large {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  background: transparent;
  box-shadow: var(--star-shadow, none);
}

.cosmic-stars::after,
.cosmic-stars-medium::after,
.cosmic-stars-large::after {
  content: "";
  position: absolute;
  top: 2000px;
  left: 0;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  background: transparent;
  box-shadow: var(--star-shadow, none);
}

.cosmic-stars {
  animation: cosmic-anim-star 50s linear var(--animation-iteration, infinite);
}

.cosmic-stars-medium {
  animation: cosmic-anim-star 100s linear var(--animation-iteration, infinite);
}

.cosmic-stars-large {
  animation: cosmic-anim-star 150s linear var(--animation-iteration, infinite);
}

@media (prefers-reduced-motion: reduce) {
  .cosmic-stars,
  .cosmic-stars-medium,
  .cosmic-stars-large,
  .hero h1,
  .hero-fixed-en,
  .hero .subtitle,
  .hero-cta {
    animation: none;
  }
}

@keyframes cosmic-anim-star {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-2000px);
  }
}

.hero-horizon {
  position: absolute;
  left: 50%;
  bottom: -42%;
  z-index: 2;
  width: 140%;
  height: 62%;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: visible;
}

.hero-horizon__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-earth {
  position: absolute;
  left: 50%;
  bottom: -42%;
  z-index: 1;
  width: 140%;
  height: 62%;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse 88% 28% at 50% 0%, rgba(148, 161, 194, 0.42), rgba(126, 134, 169, 0.14) 38%, transparent 58%),
    radial-gradient(ellipse 100% 100% at 50% 100%, #1c1e26 0%, #141418 38%, #0a0a0c 72%, #060608 100%);
  box-shadow:
    inset 0 16px 72px rgba(126, 134, 169, 0.14),
    0 -8px 48px rgba(0, 0, 0, 0.55);
}

@keyframes cosmic-title-in {
  0% {
    opacity: 0;
    transform: translateY(28px);
    letter-spacing: 0.28em;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: normal;
  }
}

@keyframes cosmic-subtitle-in {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 底部轻遮罩：柔化地平线/地球边缘，并收束到与产品理念区相同的底色 */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(40vh, 300px);
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 10, 12, 0.35) 50%,
    var(--hero-floor) 100%
  );
}

.kicker {
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 4.2vw, 62px);
}

/* 主标题单行：fit-content + 左右 auto；在 flex 子项上需 align-self:center，避免被 stretch 拉满宽度 */
.hero h1 {
  align-self: center;
  display: block;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 12px;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
  animation: cosmic-title-in 2.2s ease-out both;
  font-size: clamp(15px, 3.55vw, 62px);
  font-family: var(--font-pingfang-sc);
  font-weight: 600;
  color: #f8f8fa;
  text-shadow:
    0 0 28px rgba(var(--glow), 0.32),
    0 2px 12px rgba(0, 0, 0, 0.65);
}

.hero h1[lang="zh-Hant"] {
  font-family: var(--font-pingfang-tc);
  font-weight: 600;
}

.hero-fixed-en,
html[lang="en"] .hero .subtitle {
  font-family: "Hahmlet", Georgia, "Times New Roman", ui-serif, serif;
  font-weight: 430;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-fixed-en {
  margin: 0 0 10px;
  width: 100%;
  text-align: center;
  font-size: clamp(15px, 1.85vw, 19px);
  line-height: 1.45;
  color: rgba(235, 235, 238, 0.92);
  letter-spacing: normal;
  text-transform: none;
  animation: cosmic-subtitle-in 2.4s ease-out 0.35s both;
  text-shadow:
    0 0 18px rgba(var(--glow), 0.22),
    0 1px 6px rgba(0, 0, 0, 0.55);
}

.hero .subtitle {
  width: 100%;
  text-align: center;
  color: rgba(220, 220, 224, 0.9);
  animation: cosmic-subtitle-in 2.6s ease-out 0.65s both;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

html[lang="en"] .hero .subtitle {
  font-size: clamp(15px, 1.85vw, 19px);
  line-height: 1.45;
  letter-spacing: normal;
  color: rgba(235, 235, 238, 0.92);
  text-shadow:
    0 0 18px rgba(var(--glow), 0.22),
    0 1px 6px rgba(0, 0, 0, 0.55);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  justify-content: center;
  width: 100%;
  animation: cosmic-subtitle-in 2.8s ease-out 0.95s both;
}

/* App Store 官方风格徽章：白底黑字、浅描边、圆角、左苹果标、右两行英文 */
.app-store-badge {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 18px;
  min-height: 48px;
  border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  color: #000;
  text-decoration: none;
  overflow: visible;
  isolation: isolate;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.app-store-badge:hover {
  border-color: rgba(0, 0, 0, 0.32);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
  color: #000;
}

.app-store-badge:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.45);
  outline-offset: 3px;
}

.app-store-badge__mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* 官方扁平苹果标（与用户提供的素材一致） */
.apple-mark {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

.apple-mark--badge {
  width: 28px;
  height: 28px;
}

/* 单行下载文案（首页 hero / 页脚）；固定宽度，切换语言不改变按钮尺寸 */
.app-store-badge--single,
.app-store-badge--footer {
  box-sizing: border-box;
  flex-shrink: 0;
  justify-content: center;
}

.app-store-badge--single {
  width: 178px;
}

.app-store-badge--footer {
  width: 166px;
}

.app-store-badge--single .app-store-badge__label,
.app-store-badge--footer .app-store-badge__label {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.app-store-badge__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  line-height: 1.05;
}

.app-store-badge__l1 {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.98;
}

.app-store-badge__l2 {
  margin-top: 2px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0 clamp(12px, 3vw, 24px) clamp(72px, 14vh, 140px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  flex: 1;
  min-height: 0;
}

@media (max-width: 520px) {
  .hero-content {
    padding-bottom: clamp(64px, 12vh, 108px);
  }

  .hero h1 {
    font-size: clamp(12px, 3.8vw, 34px);
  }
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  text-wrap: balance;
}

h3 {
  text-wrap: balance;
}

.subtitle,
.section-desc,
.feature-copy p,
.scene-copy p,
.blog-card p,
.story-testimonial-card__text {
  color: var(--muted);
  line-height: 1.7;
}

.subtitle.en {
  margin-top: 0;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.placeholder {
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.08) 16px,
      rgba(255, 255, 255, 0.05) 16px,
      rgba(255, 255, 255, 0.05) 32px
    );
  color: #dadadc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 15px;
}

.feature-stack {
  margin-top: 0;
  display: grid;
  gap: 0;
}

#features .feature-block {
  min-height: calc(100svh - var(--nav-offset, 60px) - 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 12px;
  box-sizing: border-box;
}

.feature-block {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.feature-block-header {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto 18px;
  padding: 0 clamp(12px, 2.5vw, 24px);
}

.feature-lead-title {
  position: relative;
  top: -44px;
  margin: 0;
  /* 与全站 h2（含「用户故事」区块标题）一致 */
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--text);
}

/* 入场用 transition，避免 keyframes 与多段 stagger 带来的「一顿一顿」感 */
#features .feature-block:not(.is-feature-visible) .feature-block-header .feature-lead-title,
#features .feature-block:not(.is-feature-visible) .feature-phone-stage .feature-phone-bob,
#features .feature-block:not(.is-feature-visible) .feature-copy--detail {
  opacity: 0;
  transform: translateY(12px);
}

#features .feature-block.is-feature-visible .feature-block-header .feature-lead-title,
#features .feature-block.is-feature-visible .feature-phone-stage .feature-phone-bob,
#features .feature-block.is-feature-visible .feature-copy--detail {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-height: 0;
  align-items: center;
}

.feature-row > * {
  min-width: 0;
}

.feature-phone-stage {
  display: grid;
  place-items: center;
  padding: 8px 0;
}

.feature-phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(8px, 2.2vw, 16px);
  padding: 4px 0 8px;
}

.feature-phone-bob {
  flex: 0 0 auto;
}

.feature-phone {
  --phone-radius: 32px;
  width: min(168px, 42vw);
  max-width: 100%;
  margin: 0;
  aspect-ratio: 9 / 19.5;
  border-radius: var(--phone-radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(165deg, rgba(56, 58, 64, 0.55), rgba(34, 36, 40, 0.72));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  clip-path: inset(0 round var(--phone-radius));
  isolation: isolate;
  min-height: 0;
  transition: box-shadow 0.25s ease;
}

/* 入场 transition 结束后再开极轻浮动；同向、同周期，第二台仅错开相位，避免 reverse 造成突兀对冲 */
#features .feature-block.is-feature-visible .feature-phone-stage .feature-phone-bob:nth-child(1) .feature-phone {
  animation: featurePhoneFloat 7s ease-in-out 0.85s infinite;
}

#features .feature-block.is-feature-visible .feature-phone-stage .feature-phone-bob:nth-child(2) .feature-phone {
  animation: featurePhoneFloat 7s ease-in-out 1.6s infinite;
}

@keyframes featurePhoneFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  /* 特異性需蓋過 :not(.is-feature-visible)，否則未觸發區塊仍 opacity:0 */
  #features .feature-block:not(.is-feature-visible) .feature-lead-title,
  #features .feature-block.is-feature-visible .feature-lead-title,
  #features .feature-block:not(.is-feature-visible) .feature-copy--detail,
  #features .feature-block.is-feature-visible .feature-copy--detail,
  #features .feature-block:not(.is-feature-visible) .feature-phone-bob,
  #features .feature-block.is-feature-visible .feature-phone-bob,
  #features .feature-block.is-feature-visible .feature-phone {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .feature-phones--quad .feature-phone--shot {
    transform: none !important;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  }

  .story-column__track {
    animation: none !important;
    transform: none !important;
  }

  .story-column {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-y: auto;
  }
}

.feature-phone:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 14px 32px rgba(0, 0, 0, 0.4);
}

.feature-phone > span {
  padding: 20px 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #b9b9be;
}

.feature-phone--shot {
  aspect-ratio: auto;
  width: min(189px, 45vw);
  background: none;
  border: none;
  box-shadow: none;
  clip-path: none;
}

/* 产品功能一、三：截图宽高等比放大至 1.5 倍 */
.feature-stack > .feature-block:first-child .feature-phone--shot,
.feature-stack > .feature-block:nth-child(3) .feature-phone--shot {
  width: min(283.5px, 67.5vw);
}

.feature-phone--shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.feature-phone--shot:hover {
  box-shadow: none;
}

/* 功能二：四张截图一排扇形堆叠 */
.feature-phones--quad {
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: clamp(20px, 4vw, 32px) clamp(8px, 2vw, 16px) clamp(12px, 2.5vw, 20px);
  max-width: 100%;
  overflow: visible;
}

.feature-alt-layout .feature-phone-stage {
  overflow: visible;
}

/* 功能二：四图整体略向左偏（相对右栏居中基准） */
.feature-alt-layout .feature-phones--quad {
  position: relative;
  left: clamp(-24px, -3vw, -38px);
}

.feature-phones--quad .feature-phone-bob {
  flex: 0 0 auto;
  margin-left: clamp(-59px, -14.14vw, -41px);
  position: relative;
  transition:
    z-index 0s,
    margin 0.35s ease;
}

.feature-phones--quad .feature-phone-bob:first-child {
  margin-left: 0;
}

.feature-phones--quad .feature-phone-bob:nth-child(1) {
  z-index: 1;
}

.feature-phones--quad .feature-phone-bob:nth-child(2) {
  z-index: 2;
}

.feature-phones--quad .feature-phone-bob:nth-child(3) {
  z-index: 3;
}

.feature-phones--quad .feature-phone-bob:nth-child(4) {
  z-index: 4;
}

.feature-phones--quad .feature-phone--shot {
  /* 在 1.5× 基础上再缩小 1/7（×6/7） */
  width: min(190.3px, 23.14vw);
  transform-origin: 50% 92%;
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.35s ease;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.42));
}

.feature-phones--quad .feature-phone-bob:nth-child(1) .feature-phone--shot {
  transform: rotate(-8deg);
}

.feature-phones--quad .feature-phone-bob:nth-child(2) .feature-phone--shot {
  transform: rotate(-3deg);
}

.feature-phones--quad .feature-phone-bob:nth-child(3) .feature-phone--shot {
  transform: rotate(3deg);
}

.feature-phones--quad .feature-phone-bob:nth-child(4) .feature-phone--shot {
  transform: rotate(8deg);
}

.feature-phones--quad .feature-phone-bob:hover {
  z-index: 12;
}

.feature-phones--quad .feature-phone-bob:nth-child(1):hover .feature-phone--shot {
  transform: rotate(-5deg) translateY(-8px) scale(1.02);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
}

.feature-phones--quad .feature-phone-bob:nth-child(2):hover .feature-phone--shot {
  transform: rotate(-1.5deg) translateY(-8px) scale(1.02);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
}

.feature-phones--quad .feature-phone-bob:nth-child(3):hover .feature-phone--shot {
  transform: rotate(1.5deg) translateY(-8px) scale(1.02);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
}

.feature-phones--quad .feature-phone-bob:nth-child(4):hover .feature-phone--shot {
  transform: rotate(5deg) translateY(-8px) scale(1.02);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
}

/* 扇形堆叠的轻浮动加在 bob 上，避免覆盖子元素旋转 */
.feature-phones--quad .feature-phone-bob .feature-phone {
  animation: none !important;
}

#features .feature-block.is-feature-visible .feature-phones--quad .feature-phone-bob:nth-child(1) {
  animation: featureQuadFloat 7s ease-in-out 0.85s infinite;
}

#features .feature-block.is-feature-visible .feature-phones--quad .feature-phone-bob:nth-child(2) {
  animation: featureQuadFloat 7s ease-in-out 1.25s infinite;
}

#features .feature-block.is-feature-visible .feature-phones--quad .feature-phone-bob:nth-child(3) {
  animation: featureQuadFloat 7s ease-in-out 1.65s infinite;
}

#features .feature-block.is-feature-visible .feature-phones--quad .feature-phone-bob:nth-child(4) {
  animation: featureQuadFloat 7s ease-in-out 2.05s infinite;
}

@keyframes featureQuadFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.feature-copy {
  padding: 12px 14px;
  min-width: 0;
}

.feature-copy.feature-copy--detail {
  padding-inline: clamp(40px, 7.5vw, 72px);
}

.feature-copy--detail p {
  margin: 0;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.85;
  color: var(--muted);
}

.glass-filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* 液态玻璃（Liquid Glass） */
.glass-surface {
  --glass-ease: cubic-bezier(0.175, 0.885, 0.32, 2.2);
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  box-shadow:
    0 6px 6px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.7s var(--glass-ease),
    box-shadow 0.7s var(--glass-ease);
}

.glass-surface__layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.glass-surface__blur {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  filter: url(#glass-distortion);
  isolation: isolate;
}

.glass-surface__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.12);
}

.glass-surface__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow:
    inset 2px 2px 1px 0 rgba(255, 255, 255, 0.42),
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.22);
}

.glass-surface__content {
  position: relative;
  z-index: 3;
  min-height: 0;
  height: 100%;
}

.glass-surface:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 20px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(0, 0, 0, 0.14);
}

/* 用户故事：三列纵向无限滚动（TestimonialsColumn 风格） */
#stories .story-columns {
  flex: 1 1 0;
  min-height: 0;
  margin-top: 28px;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: max(16px, calc((100vw - min(1080px, 92vw)) / 2));
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(16px, 2.5vw, 28px);
  overflow: hidden;
}

.story-column {
  flex: 1 1 0;
  max-width: 20rem;
  min-width: 0;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

.story-column__track {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  background: transparent;
  animation: storyColumnScroll var(--story-scroll-duration, 10s) linear infinite;
  will-change: transform;
}

.story-column--reverse .story-column__track {
  animation-direction: reverse;
}

.story-column:hover .story-column__track {
  animation-play-state: paused;
}

@keyframes storyColumnScroll {
  to {
    transform: translateY(-50%);
  }
}

.story-testimonial-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
  padding: clamp(28px, 4vh, 40px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card);
  box-shadow: none;
  text-align: left;
  isolation: isolate;
}

.story-testimonial-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.story-testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.story-testimonial-card__avatar {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--glow), 0.2);
}

.story-testimonial-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-testimonial-card__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.story-testimonial-card__name {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.story-testimonial-card__role {
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--muted);
  opacity: 0.6;
  font-size: 14px;
}

@media (max-width: 900px) {
  #stories .story-columns {
    gap: 14px;
    padding-inline: 20px;
  }

  .story-column:nth-child(3) {
    display: none;
  }
}

@media (max-width: 560px) {
  #stories .story-columns {
    padding-inline: 24px;
  }

  .story-column:nth-child(2),
  .story-column:nth-child(3) {
    display: none;
  }

  .story-column {
    max-width: min(20rem, 100%);
  }

  .story-testimonial-card {
    padding: 24px;
  }
}

.faq-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  margin: 10px 0 2px;
  color: var(--muted);
}

.site-footer {
  width: min(1280px, 92vw);
  margin: 0 auto 40px;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px) 20px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(235, 235, 240, 0.38);
}

.footer-download {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 16px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.footer-download .app-store-badge--footer {
  margin-left: auto;
  align-self: center;
}

.footer-download__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: min(520px, 100%);
}

.footer-download__tagline {
  margin: 0;
  white-space: normal;
  text-align: left;
}

.footer-download__tagline--title {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(248, 248, 250, 0.92);
}

.footer-download__tagline--title-zh {
  font-family: var(--font-pingfang-sc);
}

.footer-download__tagline--title-zh[lang="zh-Hant"] {
  font-family: var(--font-pingfang-tc);
}

.footer-download__tagline--title-en {
  font-family: "Hahmlet", Georgia, "Times New Roman", ui-serif, serif;
  font-weight: 430;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="en"] .footer-download__tagline--title-zh {
  display: none;
}

html:not([lang="en"]) .footer-download__tagline--title-en {
  display: none;
}

.footer-download__tagline--subtitle {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(235, 235, 240, 0.62);
}

html[lang="en"] .footer-download__tagline--subtitle {
  font-family: "Hahmlet", Georgia, "Times New Roman", ui-serif, serif;
  font-weight: 430;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(235, 235, 238, 0.72);
}

.footer-download__contact {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(235, 235, 240, 0.62);
}

.footer-contact-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.footer-contact-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-download__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: -12px;
  margin-bottom: 22px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.footer-download__brand-icon {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.footer-download__brand:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 1px solid rgba(235, 235, 240, 0.1);
}

.footer-links a:not(:first-child)::before {
  content: "|";
  margin: 0 12px;
  color: rgba(235, 235, 240, 0.22);
  font-weight: 400;
  pointer-events: none;
}

.footer-links a {
  color: rgba(235, 235, 240, 0.48);
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--accent);
}

.cta-qr-float {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.2s ease;
}

.cta-qr-float.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mini-qr-box {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.1) 6px,
      rgba(255, 255, 255, 0.03) 6px,
      rgba(255, 255, 255, 0.03) 12px
    ),
    #151517;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}

.mini-qr-box span {
  font-size: 13px;
  line-height: 1.25;
  color: #e6e6e8;
  text-align: center;
  white-space: normal;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .logo,
  .menu,
  .nav-end {
    grid-column: unset;
    grid-row: unset;
    justify-self: unset;
    z-index: unset;
    max-width: none;
  }

  .nav-backdrop {
    grid-column: unset;
    grid-row: unset;
    align-self: unset;
    z-index: 18;
    order: 99;
    width: 0;
    height: 0;
    overflow: visible;
    flex: 0 0 0;
  }

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

  .menu {
    position: fixed;
    top: var(--nav-offset, 60px);
    left: 0;
    right: 0;
    z-index: 19;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 16px 16px;
    margin: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    max-height: min(72vh, 440px);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav.menu-open .menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .menu a {
    font-size: 16px;
    padding: 12px 12px;
    border-radius: 10px;
  }

  .menu a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-end {
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 25;
  }

  .logo {
    position: relative;
    z-index: 25;
  }

  .hero,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row {
    min-height: 0;
  }

  .feature-phone {
    /* 较原占位宽度放大 1/8，高度随 aspect-ratio 等比例 */
    width: min(148.5px, 40.5vw);
  }

  .feature-phone--shot {
    width: min(167px, 45.5vw);
  }

  .feature-stack > .feature-block:first-child .feature-phone--shot,
  .feature-stack > .feature-block:nth-child(3) .feature-phone--shot {
    width: min(250.5px, 68.25vw);
  }

  .feature-phones--quad {
    padding-inline: 4px;
  }

  .feature-alt-layout .feature-phones--quad {
    left: clamp(-17px, -4.3vw, -27px);
  }

  .feature-phones--quad .feature-phone--shot {
    width: min(151.7px, 30.86vw);
  }

  .feature-phones--quad .feature-phone-bob {
    margin-left: clamp(-49px, -12.86vw, -33px);
  }

  .feature-phones--quad .feature-phone-bob:nth-child(1) .feature-phone--shot {
    transform: rotate(-6deg);
  }

  .feature-phones--quad .feature-phone-bob:nth-child(2) .feature-phone--shot {
    transform: rotate(-2deg);
  }

  .feature-phones--quad .feature-phone-bob:nth-child(3) .feature-phone--shot {
    transform: rotate(2deg);
  }

  .feature-phones--quad .feature-phone-bob:nth-child(4) .feature-phone--shot {
    transform: rotate(6deg);
  }

  /* 第二段桌面为「文左图右」，窄屏仍保持「标题 → 手机 → 正文」 */
  .feature-alt-layout .feature-phone-stage {
    order: -1;
  }

  .lang-dropdown,
  .cta-row,
  .footer-download,
  .footer-links {
    flex-wrap: wrap;
  }

}

@media (max-width: 420px) {
  .nav {
    padding: 10px 12px;
  }
}
