:root {
  color-scheme: light;
  --paper: #faf9f6;
  --paper-deep: #f3eee4;
  --ink: #1d1d1a;
  --muted: #626963;
  --line: rgba(53, 49, 40, 0.12);
  --coral: #f27d70;
  --yellow: #f2bd53;
  --blue: #dcebf5;
  --sage: #dce8d6;
  --shadow: 0 24px 70px rgba(58, 50, 38, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(55, 51, 43, 0.1) 0.85px, transparent 0.95px);
  background-size: 21px 21px;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); padding: 10px 14px; border-radius: 12px; background: var(--ink); color: white; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 20; padding: 12px 0; background: rgba(250, 249, 246, 0.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 7px 18px rgba(38, 34, 28, 0.14); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 650; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.app-store-badge { display: inline-flex; width: 190px; height: auto; border-radius: 10px; text-decoration: none; transition: transform 180ms ease, filter 180ms ease; }
.app-store-badge img { width: 100%; height: auto; }
.app-store-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 12px 18px rgba(29, 29, 26, 0.16)); }
.nav .nav-download { width: 132px; padding: 0; color: inherit; box-shadow: none; }
.nav .nav-download:hover { color: inherit; transform: translateY(-1px); box-shadow: none; }
.language-picker { position: relative; }
.language-trigger { display: inline-flex; min-width: 142px; min-height: 44px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 15px 0 17px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: rgba(255, 255, 255, 0.92); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 5px 16px rgba(50, 44, 35, 0.05); transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.language-trigger:hover { border-color: rgba(53, 49, 40, 0.2); background: white; box-shadow: 0 8px 22px rgba(50, 44, 35, 0.08); }
.language-trigger > img { width: 15px; height: 15px; transition: transform 180ms ease; }
.language-picker[data-open] .language-trigger > img { transform: rotate(180deg); }
.language-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; width: 218px; padding: 8px; border: 1px solid rgba(53, 49, 40, 0.12); border-radius: 20px; background: rgba(255, 255, 252, 0.98); box-shadow: 0 22px 55px rgba(48, 42, 34, 0.17), 0 3px 10px rgba(48, 42, 34, 0.08); backdrop-filter: blur(18px); }
.language-menu[hidden] { display: none; }
.language-option { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 11px; border-radius: 13px; color: #444b45 !important; font-size: 14px !important; font-weight: 650 !important; text-decoration: none; outline: none; }
.language-option:hover, .language-option:focus-visible { background: #f2f1ec; color: var(--ink) !important; }
.language-option[data-current] { background: #edf4ef; color: #315a4d !important; }
.language-option img { width: 16px; height: 16px; }
.menu-button { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 20px; }

.hero { padding: 26px 0 88px; }
.hero-surface { display: grid; min-height: 604px; place-items: center; padding: 56px 48px 60px; overflow: hidden; border: 1px solid rgba(53, 49, 40, 0.1); border-radius: 48px; background-color: rgba(255, 255, 252, 0.72); background-image: radial-gradient(circle, rgba(55, 51, 43, 0.09) 0.8px, transparent 0.9px); background-size: 21px 21px; box-shadow: 0 28px 80px rgba(61, 51, 37, 0.07); }
.hero-copy { max-width: 950px; margin: 0 auto; text-align: center; }
.app-icon { width: 104px; height: 104px; margin: 0 auto 27px; border-radius: 25px; box-shadow: 0 24px 58px rgba(58, 50, 38, 0.17); }
.eyebrow { margin: 0 0 15px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -0.045em; }
.hero h1 { max-width: 920px; margin: 0 auto 22px; font-size: clamp(54px, 6.35vw, 82px); line-height: 1.03; white-space: pre-line; text-wrap: balance; }
.hero-lead { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: clamp(19px, 2vw, 25px); line-height: 1.5; letter-spacing: -0.018em; text-wrap: balance; }
.store-meta { margin: 24px 0 0; color: #4d534e; font-size: 14px; font-weight: 700; letter-spacing: 0.015em; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 17px; background: var(--ink); color: white; font-weight: 750; text-decoration: none; box-shadow: 0 12px 30px rgba(29, 29, 26, 0.16); transition: transform 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 17px 36px rgba(29, 29, 26, 0.2); }
.button:focus-visible, .app-store-badge:focus-visible, .nav a:focus-visible, .brand:focus-visible, .language-trigger:focus-visible, .menu-button:focus-visible { outline: 3px solid rgba(32, 102, 178, 0.44); outline-offset: 4px; }
.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,0.88); color: var(--ink); box-shadow: none; }
.section { padding: 88px 0; }
.section-heading { max-width: 730px; margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 16px; font-size: clamp(40px, 5vw, 62px); }
.section-heading p { margin: 0; color: var(--muted); font-size: 20px; }
.paper-card { position: relative; overflow: hidden; padding: 30px; border: 1px solid rgba(89, 78, 61, 0.1); border-radius: 30px; background: rgba(255,255,252,0.92); box-shadow: 0 18px 50px rgba(61, 51, 37, 0.08); }
.paper-card::after { position: absolute; width: 84px; height: 84px; right: -22px; bottom: -24px; border-radius: 50%; background: var(--card-accent, var(--blue)); opacity: 0.62; content: ""; }
.paper-card h3 { margin-bottom: 12px; font-size: 24px; }
.paper-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); }
.paper-card:nth-child(2n) { --card-accent: var(--sage); }
.paper-card:nth-child(3n) { --card-accent: #f8dfda; }

.preview-section { padding: 34px 0 92px; overflow: hidden; }
.preview-heading { margin-bottom: 46px; }
.preview-heading h2 { max-width: 760px; margin: 0; font-size: clamp(44px, 5.7vw, 72px); text-wrap: balance; }
.gallery-shell { width: 100%; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 23vw, 320px); gap: 24px; margin: 0; padding: 10px max(20px, calc((100vw - 1180px) / 2)) 58px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-padding-inline: max(20px, calc((100vw - 1180px) / 2)); scroll-snap-type: inline proximity; scrollbar-color: rgba(53, 49, 40, 0.22) transparent; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.gallery figure { min-width: 0; margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; height: auto; object-fit: contain; border: 1px solid rgba(53, 49, 40, 0.08); border-radius: 30px; box-shadow: 0 22px 58px rgba(55, 48, 38, 0.13); transition: transform 240ms ease, box-shadow 240ms ease; }
.gallery img:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(55, 48, 38, 0.17); }
.privacy-note { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; align-items: center; max-width: 920px; margin-top: 30px; padding: 28px 32px; border: 1px solid rgba(63, 106, 92, 0.16); border-radius: 28px; background: rgba(240, 247, 242, 0.78); box-shadow: 0 18px 45px rgba(54, 77, 65, 0.07); }
.privacy-icon { width: 56px; height: 56px; }
.privacy-note h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.025em; }
.privacy-note p { margin: 0; color: #506158; font-size: 15px; line-height: 1.65; }
.final-cta { padding: 124px 30px 142px; text-align: center; }
.final-cta > img { width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 18px; box-shadow: 0 16px 38px rgba(58, 50, 38, 0.14); }
.final-cta h2 { max-width: 900px; margin: 0 auto 18px; font-size: clamp(46px, 6vw, 76px); text-wrap: balance; }
.final-cta p { margin: 0; color: var(--muted); font-size: 18px; }
.final-cta .actions { margin-top: 28px; }

.legal-hero { padding: 96px 0 46px; }
.legal-hero h1 { max-width: 880px; margin-bottom: 20px; font-size: clamp(48px, 7vw, 76px); }
.legal-intro { max-width: 820px; color: var(--muted); font-size: 20px; }
.updated { display: inline-flex; margin-top: 20px; padding: 8px 13px; border-radius: 999px; background: var(--paper-deep); color: var(--muted); font-size: 14px; font-weight: 700; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 54px; align-items: start; padding: 24px 0 110px; }
.legal-toc { position: sticky; top: 100px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,0.82); }
.legal-toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.legal-section { scroll-margin-top: 110px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.legal-section:first-child { padding-top: 0; }
.legal-section h2 { margin-bottom: 18px; font-size: 30px; }
.legal-section p { color: #454944; }
.legal-section li { margin-bottom: 9px; color: #454944; }
.inline-links { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-links a { font-weight: 750; text-underline-offset: 3px; }
.legal-callout { margin: 24px 0; padding: 22px 24px; border-left: 5px solid var(--coral); border-radius: 0 18px 18px 0; background: #fff8f5; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 20px 0 90px; }
.support-card { min-height: 220px; }
.support-card a { font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.site-footer { padding: 44px 0 58px; border-top: 1px solid var(--line); background: rgba(250,249,246,0.86); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.fine-print { color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .hero-surface { min-height: 600px; padding-inline: 36px; }
  .gallery { grid-auto-columns: clamp(240px, 34vw, 290px); }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1180px); }
  .menu-button { display: block; }
  .nav { position: absolute; top: calc(100% + 8px); left: 14px; right: 14px; display: none; align-items: stretch; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,252,0.98); box-shadow: var(--shadow); }
  .nav[data-open] { display: flex; }
  .nav a { padding: 10px 8px; }
  .nav .nav-download { width: 150px; margin: 8px auto 0; }
  .language-picker, .language-trigger { width: 100%; }
  .language-menu { position: static; width: 100%; margin-top: 8px; box-shadow: 0 12px 30px rgba(48, 42, 34, 0.11); }
  .section { padding: 70px 0; }
  .hero { padding: 22px 0 76px; }
  .hero-surface { min-height: auto; padding: 66px 14px 72px; border-radius: 30px; }
  .app-icon { width: 104px; height: 104px; margin-bottom: 30px; border-radius: 25px; }
  .hero h1 { margin-bottom: 20px; font-size: clamp(40px, 10.5vw, 48px); line-height: 1.07; white-space: pre-line; text-wrap: balance; }
  html:lang(zh-Hans) .hero h1, html:lang(zh-Hant) .hero h1 { font-size: 36px; line-height: 1.12; }
  .hero-lead { font-size: 18px; }
  .store-meta { margin-top: 20px; font-size: 13px; line-height: 1.5; }
  .support-grid { grid-template-columns: 1fr; }
  .preview-section { padding: 20px 0 68px; }
  .preview-heading { margin-bottom: 30px; }
  .preview-heading h2 { font-size: clamp(40px, 11vw, 54px); }
  .gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(76vw, 310px);
    gap: 16px;
    padding: 8px 14px 42px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 14px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery figure {
    display: block;
    width: 100%;
    transform: none;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .gallery img { width: 100%; height: auto; object-fit: contain; border-radius: 22px; }
  .privacy-note { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; width: min(100% - 28px, 920px); margin-top: 10px; padding: 22px 20px; border-radius: 24px; }
  .privacy-icon { width: 44px; height: 44px; }
  .privacy-note h2 { font-size: 19px; }
  .privacy-note p { font-size: 14px; }
  .final-cta { padding: 92px 18px 112px; }
  .final-cta > img { width: 64px; height: 64px; margin-bottom: 24px; border-radius: 16px; }
  .final-cta h2 { font-size: clamp(40px, 11vw, 56px); }
  .final-cta p { font-size: 16px; }
  .legal-hero { padding-top: 62px; }
  .legal-toc { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
  html:lang(zh-Hans) .hero h1, html:lang(zh-Hant) .hero h1 { font-size: 33px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
