/* 官网 (ADR 0036). Colours and type are the app's tokens (design/tokens.json, docs/DESIGN.md); no build step. */
@font-face { font-family: "Noto Sans SC"; font-weight: 500; font-display: swap; src: url(/fonts/NotoSansSC-500.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans SC"; font-weight: 900; font-display: swap; src: url(/fonts/NotoSansSC-900.woff2) format("woff2"); }

:root {
  --cream: #F5F1E4; --ink: #2C2E2A; --ink-soft: #3D3F38; --moss: #3D4A2E; --divider: #E4DECB; --white: #FFFFFF;
  --lawn: #8ED462; --yellow: #F5E211; --lilac: #EBC1FF; --bath: #4FA6E3; --peach: #FFB49F;
  --dashed: #B9B29C; /* dashed-unknown: only for what is not known yet */
  --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--cream); color: var(--ink); font: 500 16px/1.5 "Noto Sans SC", "PingFang SC", sans-serif; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100dvh; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 12px; }
.ph { display: inline-block; } /* a clause never splits, so a line never ends on one lone character */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 6.6vw, 96px); }

/* Top land: the app's lawn with its irregular coastline */
.land { background: var(--lawn); border-radius: 0 0 50% 50% / 0 0 22% 30%; padding: 28px 0 150px; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 22px; letter-spacing: -.02em; text-decoration: none; min-height: 44px; }
.brand img { width: 48px; height: 48px; border-radius: 12px; }
.links { display: flex; gap: 28px; }
.links a { font-weight: 900; font-size: 15px; text-decoration: underline 2px; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }
h1 { margin-top: 44px; font-weight: 900; font-size: clamp(36px, 4.7vw, 68px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.lead { margin-top: 16px; font-size: clamp(15px, 1.35vw, 19px); color: var(--moss); max-width: 34em; }

/* Four doors */
.doors { display: grid; grid-template-columns: 1.55fr 1.1fr 1fr 1fr; gap: 20px; align-items: end; margin-top: -120px; min-height: 520px; }
.door { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 96px 30px 34px; transition: transform .45s var(--spring); }
.door:has(a):hover { transform: translateY(-6px); }
.door:has(a):active { transform: scale(.98); transition-duration: .12s; }
.door b { font-weight: 900; }
.door h2 { font-weight: 900; font-size: 34px; line-height: 1.05; letter-spacing: -.03em; white-space: nowrap; }
.door p { font-size: 16px; max-width: 18em; }
.door .peek { position: absolute; width: 112px; height: 112px; object-fit: contain; transition: transform .45s var(--spring); }
.door:has(a):hover .peek { transform: translateY(-10px) rotate(-4deg); }
.d-web { background: var(--yellow); min-height: 520px; border-radius: 46% 54% 38% 42% / 30% 34% 22% 26%; padding: 0 48px 56px; }
.d-web h2 { font-size: 46px; }
.d-web .peek { top: 44px; right: 56px; width: 150px; height: 150px; }
.d-mp { background: var(--lilac); min-height: 460px; border-radius: 52% 48% 40% 44% / 26% 30% 24% 22%; }
.d-mp .peek { top: -18px; right: 24px; }
.d-and { background: var(--bath); min-height: 385px; border-radius: 44% 56% 46% 40% / 30% 26% 26% 30%; }
.d-and .peek { top: -30px; left: 26px; }
.d-ios { background: var(--peach); min-height: 415px; border-radius: 56% 44% 42% 48% / 28% 32% 22% 26%; }
.d-ios .peek { top: -26px; right: 30px; }
.go { display: inline-flex; align-items: center; gap: 18px; height: 56px; padding: 0 8px 0 24px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 900; font-size: 18px; text-decoration: none; width: max-content; transition: transform .2s var(--ease); }
.go::after { content: ""; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); transition: transform .35s var(--ease); }
.go:hover::after { transform: translateX(4px); }
.go:active { transform: scale(.97); }
.web-row { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.web-qr { width: 88px; height: 88px; padding: 8px; border-radius: 18px; background: var(--white); }
.addr { font-size: 14px; font-variant-numeric: tabular-nums; }
.code { width: 132px; height: 132px; border-radius: 22px; background: var(--white); border: 2px dashed var(--dashed); display: grid; place-items: center; text-align: center; font-weight: 900; font-size: 13px; line-height: 1.4; }
.tag { display: inline-flex; flex-wrap: wrap; column-gap: .3em; align-items: center; min-height: 36px; padding: 4px 16px; border-radius: 999px; background: var(--cream); font-weight: 900; font-size: 14px; width: max-content; }
.on-phone { display: none; }
.tlink { font-weight: 900; text-decoration: underline 2px; text-underline-offset: 5px; } /* inline in a sentence */

/* Behind the doors */
.how { padding: 120px 0 40px; }
.how > .wrap > h2 + .feat { margin-top: 32px; }
.how > .wrap > h2, .close h2 { font-weight: 900; font-size: clamp(28px, 3.2vw, 46px); letter-spacing: -.04em; line-height: 1.08; }
.feat { display: grid; align-items: center; gap: 56px; margin-top: 72px; }
.feat h3 { font-weight: 900; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.03em; line-height: 1.15; }
.feat p { margin-top: 12px; font-size: 17px; color: var(--ink-soft); max-width: 26em; }
.phone { width: 300px; border: 10px solid var(--ink); border-radius: 46px; overflow: hidden; background: var(--cream); }
.phone img { width: 100%; height: auto; }
figure figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-soft); text-align: center; }
.f-due { grid-template-columns: 1fr 1fr; background: var(--lawn); border-radius: 48% 52% 44% 56% / 18% 22% 16% 20%; padding: 64px 72px; }
.f-due p { color: var(--moss); }
.f-due figure { justify-self: center; margin-bottom: -120px; }
/* 哪家便宜 and 大促囤货 side by side: text over phone, two differently shaped masses (no left/right zigzag) */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 160px; align-items: start; }
.pair .feat { margin-top: 0; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 32px; padding: 56px 40px 48px; }
.pair .feat p { margin-left: auto; margin-right: auto; }
.f-price { background: var(--peach); border-radius: 62% 38% 46% 54% / 14% 20% 12% 18%; }
.f-stock { background: var(--yellow); border-radius: 36% 64% 58% 42% / 20% 12% 22% 14%; }
.pair .f-stock { margin-top: 96px; } /* staggered, not a row of twins */
.f-saved { grid-template-columns: 1fr; justify-items: center; text-align: center; margin-top: 200px; background: var(--lawn); border-radius: 50% 50% 46% 54% / 16% 14% 18% 16%; padding: 72px 48px 0; overflow: hidden; }
.f-saved p { color: var(--moss); }
.f-saved figcaption { color: var(--moss); padding-bottom: 28px; }
.f-saved p { margin-left: auto; margin-right: auto; }
.f-saved .phone { height: 420px; }
.estimate { display: inline-flex; margin-top: 14px; min-height: 30px; align-items: center; padding: 2px 12px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 900; font-size: 13px; }

/* Close and footer */
.close { padding: 96px 0 72px; }
.mini-doors { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; margin-top: 28px; align-items: center; }
.mini { display: flex; flex-direction: column; gap: 8px; padding: 28px 26px; font-size: 15px; }
.mini b { font-weight: 900; font-size: 22px; letter-spacing: -.02em; }
.mini .go { margin-top: auto; }
.mini.d-web { min-height: 0; border-radius: 44% 56% 40% 60% / 34% 30% 38% 32%; padding: 30px 40px; }
.mini.d-mp { min-height: 0; border-radius: 52% 48% 44% 56% / 30% 36% 30% 34%; }
.mini.d-and { min-height: 0; border-radius: 48% 52% 56% 44% / 36% 30% 34% 30%; }
.mini.d-ios { min-height: 0; border-radius: 56% 44% 50% 50% / 30% 34% 32% 36%; }
footer { border-top: 1.5px solid var(--divider); padding: 32px 0 48px; font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
footer a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }

/* 404 */
.gone { min-height: 72dvh; }
.gone h1 { margin-top: 64px; }

/* One entrance: the doors drop in, under a second, from an already-visible layout */
@media (prefers-reduced-motion: no-preference) {
  /* backwards, not both: a held end transform would override the hover and press transforms */
  .door { animation: drop .7s var(--ease) backwards; animation-delay: calc(var(--i) * 80ms); }
  @keyframes drop { from { transform: translateY(36px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .door, .door .peek, .go, .go::after { transition: none; } }

@media (max-width: 767px) {
  .land { border-radius: 0 0 50% 50% / 0 0 12% 16%; padding: 16px 0 72px; }
  .brand { font-size: 18px; } .brand img { width: 36px; height: 36px; border-radius: 12px; }
  .links a[href="#how"] { display: none; }
  h1 { margin-top: 18px; }
  .doors { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: -40px; min-height: 0; padding: 0 16px; }
  .door { padding: 56px 18px 22px; gap: 6px; }
  .door h2 { font-size: 20px; } .door p { font-size: 13px; text-wrap: pretty; }
  .door .peek { width: 64px; height: 64px; }
  .d-web, .d-ios { grid-column: 1 / 3; min-height: 0; }
  .d-web { padding: 28px 24px 26px; } .d-web h2 { font-size: 28px; } .d-web .peek { top: 14px; right: 22px; width: 84px; height: 84px; }
  .d-mp, .d-and { min-height: 250px; }
  .d-mp .peek { top: -14px; right: 8px; } .d-and .peek { top: -18px; left: auto; right: 6px; } .d-ios .peek { top: -16px; right: 22px; }
  .d-ios { padding: 22px 24px; }
  .web-qr, .on-desk { display: none; } .on-phone { display: revert; }
  .go { font-size: 16px; }
  .code { width: 96px; height: 96px; font-size: 12px; }
  .tag { font-size: 12px; padding: 4px 12px; width: auto; border-radius: 16px; } /* wraps inside a half-width door */
  .how { padding-top: 72px; }
  .feat, .f-due, .f-price, .f-stock, .f-saved { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; padding: 36px 24px; justify-items: center; text-align: center; border-radius: 48% 52% 44% 56% / 10% 12% 10% 12%; }
  .f-saved { padding-bottom: 0; }
  .feat p { margin-left: auto; margin-right: auto; font-size: 15px; }
  .f-due figure, .f-stock figure, .f-price figure { margin: 0; justify-self: center; }
  .pair { grid-template-columns: 1fr; gap: 0; margin-top: 48px; } .pair .feat { margin-top: 48px; padding: 36px 24px; } .pair .f-stock { margin-top: 48px; }
  .mini-doors { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mini { padding: 20px 18px; font-size: 13px; }
  .mini.d-web { grid-column: 1 / 3; min-height: 0; padding: 24px 28px; }
  .mini b { font-size: 18px; }
  footer .wrap, footer nav { flex-direction: column; align-items: flex-start; }
  .phone { width: 240px; border-width: 8px; border-radius: 38px; }
  .f-saved .phone { height: 340px; }
  .close { padding: 64px 0 48px; }
}
