/* 品牌 token 与静态语义排版；不下载外部字体，以系统中文字体保证境内首屏。 */
:root {
  color-scheme: light;
  --ink: #202c38;
  --ink-soft: #586979;
  --blue: #528fbd;
  --blue-deep: #326b94;
  --sky: #eaf4fb;
  --paper: #fbfcfd;
  --warm: #eeb086;
  --line: rgb(75 107 132 / 16%);
  --page: min(1180px, calc(100vw - 48px));
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 30px rgb(39 75 100 / 18%);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  /* 透明底色配合背景模糊，让吸顶导航保留页面色彩与空间感。 */
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  height: 88px;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(255 255 255 / 58%);
  background: rgb(248 251 253 / 76%);
  box-shadow: 0 8px 30px rgb(47 80 101 / 7%);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
  backdrop-filter: blur(24px) saturate(1.22);
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: opacity 180ms ease;
}

.brand:hover,
.brand:focus-visible {
  opacity: .72;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.brand-name {
  color: #46515b;
  font-size: 22px;
  font-weight: 560;
  letter-spacing: .04em;
  line-height: 1;
}

.site-header-controls,
.legal-header-actions {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  border-radius: 9px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  color: #61727f;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .06em;
}

.site-header nav a {
  padding: 12px 0;
  white-space: nowrap;
  transition: color 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--ink);
}

/* 原生 details 让语言菜单在禁用脚本时仍可展开；链接始终保留当前页面类型。 */
.header-language {
  position: relative;
  flex: none;
  color: #526572;
  font-size: 14px;
  letter-spacing: 0;
}

.header-language summary {
  min-height: 44px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.header-language summary::-webkit-details-marker { display: none; }

.header-language summary:hover,
.header-language summary:focus-visible,
.header-language[open] summary {
  color: var(--ink);
  background: rgb(226 239 246 / 58%);
}

.header-language-globe,
.header-language-chevron {
  flex: none;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-language-chevron { transition: transform 180ms ease; }
.header-language[open] .header-language-chevron { transform: rotate(180deg); }

.header-language-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  min-width: 154px;
  padding: 7px;
  border: 1px solid rgb(75 107 132 / 14%);
  border-radius: 15px;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 18px 48px rgb(39 75 100 / 16%);
}

.header-language-menu a {
  padding: 10px 12px;
  display: block;
  border-radius: 9px;
  color: #596b78;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.header-language-menu a:hover,
.header-language-menu a:focus-visible {
  color: var(--ink);
  background: #edf5f8;
}

.header-language-menu a[aria-current="page"] {
  color: var(--blue-deep);
  background: #e9f3f8;
  font-weight: 650;
}

:focus-visible {
  outline: 3px solid rgb(50 107 148 / 38%);
  outline-offset: 4px;
}

.hero {
  position: relative;
  /* 页头进入文档流后扣除同等高度，保持首屏整体高度和原有构图。 */
  min-height: max(692px, calc(96svh - 88px));
  overflow: hidden;
  display: grid;
  align-items: center;
  background: #f3f7fa;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: var(--page);
  margin: 0 auto;
  padding: 18px 0 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(52px, 5.2vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 650;
}

.hero-lead {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.hero-actions {
  --download-control-height: 80px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 徽章和缩略码共用高度变量，保持严格等高；点击缩略码查看可扫码的大图。 */
.app-store-badge,
.download-qr {
  display: block;
  flex: none;
  line-height: 0;
}

.app-store-badge img {
  display: block;
  width: auto;
  height: var(--download-control-height);
}

.download-qr {
  width: var(--download-control-height);
  height: var(--download-control-height);
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px rgb(58 106 142 / 13%);
  cursor: zoom-in;
}

.download-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.download-qr-dialog {
  width: min(368px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 24px;
  background: #fbfcfd;
  box-shadow: 0 34px 90px rgb(17 40 58 / 25%);
  color: var(--ink);
  text-align: center;
}

.download-qr-dialog::backdrop {
  background: rgb(23 41 56 / 50%);
  backdrop-filter: blur(8px);
}

.download-qr-dialog-content {
  position: relative;
  padding: 38px 28px 30px;
}

.download-qr-dialog h2 {
  margin: 0 34px 22px;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 620;
}

.download-qr-dialog-content > img {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
}

.download-qr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf4f8;
  color: var(--ink-soft);
  font: inherit;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.download-qr-store {
  display: inline-block;
  margin-top: 22px;
  padding: 10px;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 650;
}

.launch-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgb(50 107 148 / 14%);
  border-radius: 999px;
  background: rgb(255 255 255 / 74%);
  box-shadow: 0 12px 34px rgb(63 112 148 / 11%);
  color: #315e7e;
  font-size: 15px;
  backdrop-filter: blur(12px);
}

.launch-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 5px rgb(238 176 134 / 16%);
}

/* 49svh 来自原图约 832:1700 的宽高比，短屏桌面仍完整露出 App 底部功能。 */
.hero-device {
  position: absolute;
  z-index: 2;
  right: max(7vw, calc((100vw - 1180px) / 2));
  bottom: 32px;
  width: min(30vw, 342px, calc(49svh - 93px));
  margin: 0;
  pointer-events: none;
  filter: drop-shadow(0 38px 42px rgb(44 66 88 / 18%));
}

.hero-device img {
  display: block;
  width: 100%;
  height: auto;
}

.moments {
  width: var(--page);
  margin: 0 auto;
  padding: 88px 0 100px;
}

.moment-heading {
  max-width: 900px;
  margin-bottom: 38px;
}

.moment-heading h2 {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.25;
  letter-spacing: -0.04em;
  font-weight: 580;
}

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

.moment-card {
  overflow: hidden;
  min-width: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgb(42 69 87 / 7%);
}

.moment-photo {
  display: block;
  width: 100%;
  height: 252px;
  object-fit: cover;
}

/* Portrait photo needs its lower half in frame so the chair stays visible. */
.moment-photo--sit {
  object-position: center 66%;
}

.moment-copy {
  padding: 24px 24px 28px;
}

.moment-number {
  color: var(--blue-deep);
  font: 550 12px/1 ui-monospace, "SFMono-Regular", monospace;
  letter-spacing: .13em;
}

.moments h3 {
  margin: 14px 0 0;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 580;
  letter-spacing: -0.035em;
}

.moment-copy p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.product-showcase {
  overflow: hidden;
  padding: 138px max(24px, calc((100vw - 1180px) / 2)) 100px;
  background: linear-gradient(#eef6fa, #f8fafb 20%, #f8fafb 80%, #eef5f8);
  color: var(--ink);
}

.showcase-heading {
  max-width: 900px;
  margin-bottom: 78px;
}

.showcase-heading .section-kicker {
  color: var(--blue-deep);
}

.showcase-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.24;
  letter-spacing: -0.045em;
  font-weight: 560;
}

.story-list {
  max-width: 1180px;
  margin: 0 auto;
}

.story {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  padding: 56px clamp(28px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 100px);
  border-top: 1px solid var(--line);
}

.story-copy {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.story-number {
  margin: 0 0 24px;
  color: var(--blue-deep);
  font: 500 13px/1 ui-monospace, "SFMono-Regular", monospace;
  letter-spacing: .16em;
}

.story h3 {
  max-width: 10em;
  margin: 0;
  font-size: clamp(35px, 4.1vw, 59px);
  font-weight: 580;
  line-height: 1.18;
  letter-spacing: -.045em;
}

.story-copy > p:last-child {
  max-width: 440px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.85;
}

.story-visual {
  position: relative;
  width: min(100%, 330px);
  margin: 0 auto;
  padding: 20px 0;
}

.story-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 19%;
  left: -18%;
  width: 136%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(188 222 236 / 70%), rgb(188 222 236 / 0%) 69%);
}

.story:nth-child(3n + 2) .story-visual::before {
  background: radial-gradient(circle, rgb(249 218 197 / 76%), rgb(249 218 197 / 0%) 69%);
}

.story:nth-child(3n) .story-visual::before {
  background: radial-gradient(circle, rgb(206 231 219 / 70%), rgb(206 231 219 / 0%) 69%);
}

.story-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 27px rgb(38 57 70 / 14%));
}

.story:nth-child(even) .story-copy {
  grid-column: 2;
  grid-row: 1;
}

.story:nth-child(even) .story-visual {
  grid-column: 1;
  grid-row: 1;
}

.closing {
  min-height: 620px;
  padding: 120px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 44%, rgb(255 209 165 / 26%), transparent 24%),
    linear-gradient(145deg, #f5f9fc, #e8f3fa);
}

.closing > img {
  border-radius: 15px;
}

footer {
  width: 100%;
  margin: 0;
  padding: 44px max(24px, calc((100vw - 1180px) / 2)) 36px;
  display: block;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
}

.footer-main,
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-main {
  align-items: flex-start;
}

footer p {
  margin: 0;
}

.footer-brand p {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.footer-brand:hover p,
.footer-brand:focus-visible p {
  color: var(--blue-deep);
}

.footer-groups {
  width: min(820px, 72%);
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 36px 48px;
}

.footer-group {
  display: block;
}

.footer-group h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.footer-download-entry {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-store-badge,
.footer-download-qr {
  display: block;
  flex: none;
  line-height: 0;
  transition: opacity 180ms ease;
}

.footer-store-badge img { display: block; width: auto; height: 44px; }

.footer-download-qr,
.footer-download-qr img {
  width: 44px;
  height: 44px;
  border-radius: 7px;
}

.footer-download-qr {
  cursor: zoom-in;
  background: #fff;
  box-shadow:
    0 7px 18px rgb(30 66 91 / 20%),
    0 1px 3px rgb(30 66 91 / 14%);
  transition: opacity 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.footer-store-badge:hover,
.footer-store-badge:focus-visible,
.footer-download-qr:hover,
.footer-download-qr:focus-visible { opacity: .72; }

.footer-download-qr:hover,
.footer-download-qr:focus-visible {
  box-shadow:
    0 10px 24px rgb(30 66 91 / 24%),
    0 2px 5px rgb(30 66 91 / 16%);
  transform: translateY(-1px);
}

.footer-language-links a[aria-current="page"] {
  color: var(--blue-deep);
  font-weight: 650;
}

.footer-legal {
  align-items: center;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgb(75 107 132 / 10%);
}

.footer-legal a,
.footer-links a {
  text-underline-offset: 3px;
}

.footer-legal a:hover,
.footer-links a:hover {
  color: var(--blue-deep);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-groups {
    width: 100%;
    margin-top: 18px;
    gap: 32px 24px;
  }
}

@media (max-width: 760px) {
  :root {
    --page: calc(100vw - 40px);
  }

  footer { padding-inline: 20px; }

  .site-header {
    height: 68px;
    padding-inline: 20px;
  }

  .site-header nav {
    gap: 18px;
    font-size: 14px;
  }

  .site-header-controls { gap: 10px; }
  .header-language summary { padding-right: 7px; padding-left: 7px; }

  .site-header nav a:nth-child(2) {
    display: none;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 19px;
  }

  .hero {
    min-height: 0;
    align-items: start;
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    padding: 24px 0 0;
  }

  .hero-actions {
    --download-control-height: 60px;
    gap: 16px;
  }

  h1 {
    font-size: clamp(42px, 7.5vw, 52px);
  }

  .hero-device {
    position: relative;
    align-self: flex-end;
    right: auto;
    bottom: auto;
    width: min(31vw, 205px);
    margin: 26px 5% 24px 0;
  }

  .moments {
    padding: 70px 0 76px;
  }

  .moment-heading {
    margin-bottom: 28px;
  }

  .moment-heading h2 br {
    display: none;
  }

  .moment-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .moment-card {
    display: grid;
    grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
    min-height: 174px;
  }

  .moment-photo {
    height: 100%;
  }

  .moment-copy {
    align-self: center;
    padding: 20px;
  }

  .moments h3 {
    font-size: clamp(21px, 5vw, 28px);
  }

  .moment-copy p {
    font-size: 14px;
  }

  .footer-main,
  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-groups {
    width: 100%;
    margin-top: 18px;
    gap: 32px 24px;
  }

  .product-showcase {
    padding: 100px 20px 78px;
  }

  .showcase-heading h2 br {
    display: none;
  }

  .showcase-heading {
    margin-bottom: 48px;
  }

  .story {
    min-height: 0;
    padding: 58px 0 68px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .story:nth-child(even) .story-copy,
  .story:nth-child(even) .story-visual {
    grid-column: 1;
    grid-row: auto;
  }

  .story-visual {
    width: min(64vw, 280px);
  }

  .story-copy > p:last-child {
    margin-top: 20px;
  }

  .story h3 {
    max-width: none;
    font-size: clamp(30px, 8vw, 40px);
  }

  .closing {
    min-height: 480px;
    padding: 84px 20px;
  }
}

@media (max-width: 560px) {
  .hero-copy { padding-top: 96px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 46px); }
  .hero-lead { margin-top: 20px; font-size: 16px; }
  .hero-actions { margin-top: 24px; }
  .hero-device { width: min(50vw, 190px); margin-top: 28px; }
}

/* 只有支持观察器且允许动效时才渐显；禁用 JS 时内容仍完整可读。 */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .story.reveal {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 850ms ease, transform 850ms cubic-bezier(.2, .7, .25, 1);
  }

  .motion-ready .story.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

}

.legal-header {
  /* 法务页沿用同一玻璃质感，长文阅读时始终保留返回与语言入口。 */
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgb(255 255 255 / 58%);
  background: rgb(248 251 253 / 76%);
  box-shadow: 0 8px 30px rgb(47 80 101 / 7%);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
  backdrop-filter: blur(24px) saturate(1.22);
  font-size: 15px;
}

.legal-header-actions { gap: 18px; }

@media (max-width: 760px) {
  .legal-header {
    min-height: 68px;
    padding-inline: 20px;
  }
}

@media (max-width: 380px) {
  .site-header nav a:not(.nav-download) {
    display: none;
  }

  /* 品牌字标已返回首页，极窄法务页优先保留语言切换。 */
  .legal-header-actions > a { display: none; }
}

/* 法务页使用稳定的分语言 URL；页内导航让 App Store 用户无需回首页即可核对相关文件。 */
.legal-document-nav {
  width: min(760px, calc(100% - 40px));
  margin-top: 18px;
  margin-right: auto;
  margin-left: auto;
  padding: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(234 244 251 / 56%);
  font-size: 13px;
}

.legal-document-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
}

.legal-document-nav a[aria-current="page"] {
  background: #fff;
  box-shadow: 0 5px 16px rgb(50 107 148 / 10%);
  color: var(--blue-deep);
  font-weight: 650;
}

.legal-content {
  width: min(760px, calc(100% - 40px));
  margin: 60px auto 100px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.legal-content h1 {
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -.035em;
  line-height: 1.25;
}

.legal-content h2 {
  font-size: 21px;
  line-height: 1.5;
  margin: 38px 0 14px;
}

.legal-content h3 {
  margin: 24px 0 10px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.legal-content p {
  margin: 0 0 18px;
}

/* 中文法务正文按字符分配行内余量，避免普通换行在右侧留下明显参差。 */
.legal-content p,
.policy-summary li {
  text-align: justify;
  text-justify: inter-character;
  line-break: strict;
  word-break: normal;
}

.legal-content a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-dates {
  margin: 22px 0 30px;
  color: var(--ink-soft);
  font-size: 14px;
}

.policy-summary {
  border-radius: 20px;
  padding: 24px;
  background: var(--sky);
  margin: 30px 0;
}

.policy-summary h2 {
  margin-top: 0;
}

.policy-summary ul {
  padding-left: 22px;
  margin-bottom: 0;
}

.policy-summary li + li {
  margin-top: 8px;
}

@media (max-width: 560px) {
  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-download { grid-column: 1 / -1; }

  .legal-document-nav {
    border-radius: 22px;
  }

  .legal-content {
    margin-top: 44px;
  }
}

.error-title {
  font-size: clamp(28px, 5vw, 54px);
  margin-bottom: 32px;
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
