/* 官网独立令牌：中性背景、原始橙色品牌素材；按钮为胶囊，内容面板为 24px。 */
:root { color-scheme: light; --bg: #fafaf8; --surface: #f0f0ec; --card: #fefefd; --text: #242522; --muted: #676962; --line: #dcddd6; --accent: #a64b12; --art: #eeeee6; --button: #252622; --on-button: #fafaf8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --bg: #131512; --surface: #1c1f19; --card: #242820; --text: #f3f4ec; --muted: #b2b7aa; --line: #3a4034; --accent: #ffb76b; --art: #252c20; --button: #f3f4ec; --on-button: #20231c; } }
:root[data-theme="dark"] { color-scheme: dark; --bg: #131512; --surface: #1c1f19; --card: #242820; --text: #f3f4ec; --muted: #b2b7aa; --line: #3a4034; --accent: #ffb76b; --art: #252c20; --button: #f3f4ec; --on-button: #20231c; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.6; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button, summary { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--accent); }
button, .download-link, .nav-web { transition: transform 180ms ease, background-color 180ms ease; }
button:active, .download-link:active, .nav-web:active { transform: scale(.97); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px 20px; background: var(--button); color: var(--on-button); z-index: 2; }
.skip-link:focus { top: 12px; }
.header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand, .header nav, .nav-web { display: flex; align-items: center; }
.brand { gap: 6px; flex-shrink: 0; }
.brand-icon { object-fit: contain; }
.wordmark { width: 96px; height: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark { filter: invert(1); } }
:root[data-theme="dark"] .wordmark { filter: invert(1); }
.header nav { gap: 28px; font-size: 13px; font-weight: 550; }
.header nav a:hover, .footer a:hover { color: var(--accent); }
.nav-web { gap: 16px; }
.language, .theme { color: var(--text); background: transparent; border: 1px solid var(--line); height: 42px; min-width: 42px; border-radius: 50%; padding: 0 9px; }
.header nav .theme { margin-left: -16px; font-size: 20px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding-block: 64px 88px; }
.intro { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
h1 { font-size: clamp(42px, 4.25vw, 62px); letter-spacing: -.045em; line-height: 1.27; font-weight: 650; }
h1 > span { display: block; }
.accent-line { color: var(--accent); }
.hero-description { max-width: 390px; color: var(--muted); font-size: 16px; line-height: 1.9; margin-top: 23px; }
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; max-width: 474px; }
.download-card { display: grid; grid-template-columns: 1fr; justify-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.qr { width: 128px; height: 128px; background: white; border-radius: 8px; margin-bottom: 14px; image-rendering: pixelated; }
.download-info { width: 100%; }
.download-info h2 { font-size: 18px; letter-spacing: -.025em; font-weight: 600; }
.testflight { font-size: 11px; font-weight: 450; margin-left: 3px; color: var(--muted); }
.download-info p { color: var(--muted); font-size: 12px; margin: 4px 0 16px; }
.download-link { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 44px; padding: 10px 14px; border-radius: 40px; background: var(--button); color: var(--on-button); font-size: 13px; font-weight: 550; }
.download-link:hover { transform: translateY(-2px); }
.hero-art { align-self: center; margin-top: -20px; }
.mascot-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.mascot-stage::before { content: ""; position: absolute; width: 91%; aspect-ratio: 1; background: var(--art); border-radius: 50%; }
.mascot { position: relative; width: 100%; height: auto; transform: rotate(-9deg); }
figcaption { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 34px; color: var(--muted); font-size: 13px; }
.caption-line { width: 25px; height: 1px; background: var(--muted); }
.how { border-top: 1px solid var(--line); padding-block: 64px 72px; }
.how .section-heading > p { max-width: 650px; }
.how-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 40px 0 0; }
.how-flow li { border-top: 2px solid var(--line); padding-top: 20px; }
.how-flow h3 { font-size: 22px; font-weight: 550; color: var(--accent); margin-bottom: 12px; }
.how-flow p { font-size: 14px; color: var(--muted); line-height: 1.9; }
.possibilities { background: var(--surface); padding-block: 82px 48px; }
.section-heading h2, .faq h2 { font-size: clamp(26px, 2.5vw, 36px); letter-spacing: -.035em; font-weight: 600; line-height: 1.4; }
.section-heading > p { margin-top: 14px; color: var(--muted); font-size: 15px; }
.scenario-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; margin-top: 48px; align-items: center; }
.scenario-tabs { display: flex; flex-direction: column; }
.scenario-tabs button { display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 16px; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); padding: 23px 4px; min-height: 64px; font-size: 20px; }
.scenario-tabs button[aria-selected="true"] { color: var(--text); font-weight: 600; }
.scenario-tabs button[aria-selected="true"] > span:last-child { color: var(--accent); transform: rotate(45deg); }
.scenario-tabs button > span:last-child { transition: transform 180ms ease; }
.scenario-panels { min-width: 0; }
.scenario-tabs[hidden] + .scenario-panels { grid-column: 1 / -1; }
.scenario-panel { padding: 36px 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); min-height: 370px; }
.example-label { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.scenario-panel h3 { max-width: 530px; font-size: clamp(24px, 2.15vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.55; text-wrap: pretty; }
.scenario-description { margin-top: 20px; max-width: 470px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.scenario-result { display: block; margin-top: 26px; font-size: 12px; color: var(--accent); }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 52px; }
.principles p { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.principles p > span:first-child { font-weight: 600; }
.principles p > span:last-child { color: var(--muted); font-size: 13px; }
.faq { display: grid; grid-template-columns: 1fr 1.2fr; gap: 100px; padding-block: 88px; }
.faq h2 { max-width: 330px; }
.questions { min-width: 0; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 28px; padding-block: 22px; font-size: 15px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 21px; font-weight: 300; line-height: 1.15; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); font-size: 14px; line-height: 1.9; padding: 0 25px 24px 0; }
details p a { text-decoration: underline; text-underline-offset: 4px; }
.footer { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 20px; margin-right: auto; }
.footer-brand .wordmark { width: 75px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer small { font-size: 11px; }
html[lang="en"] h1 { font-size: clamp(40px, 3.5vw, 50px); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > .intro, .hero-copy > h1, .hero-description, .downloads, .hero-art {
    animation: enter 850ms cubic-bezier(.16, 1, .3, 1) backwards;
  }
  .hero-copy > h1 { animation-delay: 70ms; }
  .hero-description { animation-delay: 140ms; }
  .downloads { animation-delay: 210ms; }
  .hero-art { animation-delay: 140ms; }
  .scenario-panel:not([hidden]) { animation: enter 480ms cubic-bezier(.16, 1, .3, 1) backwards; }
  details[open] > p { animation: enter 350ms cubic-bezier(.16, 1, .3, 1) backwards; }
  .download-card { transition: transform 250ms ease, border-color 250ms ease; }
  @media (hover: hover) {
    .download-card:hover { transform: translateY(-4px); border-color: var(--muted); }
  }
  @keyframes enter {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }
  /* 支持滚动时间轴的浏览器按滚动进度移动吉祥物，其余浏览器保留静态品牌图。 */
  @supports (animation-timeline: view()) {
    .mascot-stage { view-timeline-name: --mascot; view-timeline-axis: block; }
    .mascot {
      animation: mascot-scroll linear both;
      animation-timeline: --mascot;
      animation-range: entry 0% exit 100%;
    }
    @keyframes mascot-scroll {
      from { transform: translateY(18px) rotate(-13deg) scale(.96); }
      to { transform: translateY(-24px) rotate(-3deg) scale(.96); }
    }
  }
}
@media (max-width: 1100px) { .wrap { width: calc(100% - 64px); } .hero { gap: 24px; padding-top: 36px; } .how-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .scenario-layout { gap: 40px; } .faq { gap: 48px; } .footer-brand { width: 100%; } }
@media (max-width: 767px) {
  .wrap { width: calc(100% - 40px); }
  .header { min-height: 80px; gap: 12px; }
  .brand-icon { width: 34px; height: 34px; }
  .wordmark { width: 77px; }
  .header nav { gap: 12px; }
  .header .nav-story { display: none; }
  .nav-web { gap: 6px; font-size: 12px; }
  .language, .theme { height: 40px; min-width: 40px; }
  .header nav .theme { margin-left: -6px; }
  .hero { grid-template-columns: 1fr; gap: 16px; padding-block: 34px 48px; }
  .hero-copy { display: contents; }
  .intro { margin-bottom: 0; font-size: 13px; }
  h1, html[lang="en"] h1 { font-size: clamp(38px, 8.8vw, 58px); }
  .hero-description { margin-top: 0; max-width: 450px; font-size: 15px; }
  .downloads { margin-top: 10px; max-width: none; width: 100%; gap: 10px; }
  .download-card { padding: 14px; }
  .qr { width: 112px; height: 112px; }
  .download-link { padding-inline: 11px; }
  .hero-art { margin: 20px 0 0; width: min(88%, 380px); justify-self: center; }
  figcaption { margin-top: 16px; font-size: 12px; }
  .possibilities { padding-block: 48px 32px; }
  .how { padding-block: 40px 48px; }
  .how-flow { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .how-flow li { display: grid; grid-template-columns: 55px 1fr; gap: 18px; padding-top: 20px; }
  .how-flow h3 { font-size: 20px; margin: 0; }
  html[lang="en"] .how-flow li { grid-template-columns: 78px 1fr; }
  .section-heading h2, .faq h2 { font-size: 27px; }
  .scenario-layout { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .scenario-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .scenario-tabs button { flex: 1; font-size: 13px; padding: 12px 0; justify-content: center; min-height: 48px; }
  .scenario-tabs button > span:last-child { display: none; }
  .scenario-tabs button[aria-selected="true"] { border-color: var(--accent); }
  .scenario-panel { min-height: 300px; padding: 26px; }
  .scenario-panel h3 { font-size: 24px; }
  .principles { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .faq { grid-template-columns: 1fr; gap: 20px; padding-block: 48px; }
  .faq h2 { max-width: none; }
  .footer { gap: 20px; padding-block: 28px; }
  .footer-brand { flex-wrap: wrap; gap: 12px; }
  .footer nav { gap: 18px; }
  .footer small { width: 100%; }
}
@media (max-width: 370px) { .wrap { width: calc(100% - 32px); } .header .brand-icon { display: none; } .header nav { gap: 10px; } .downloads { grid-template-columns: 1fr; } .download-card { grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px; } .qr { width: 96px; height: 96px; margin-bottom: 0; } .download-info p { margin-bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
