/* 满益官网共享样式：页头、页尾、信息页与「获取 App」按钮。
   颜色取自 App Icon 的品牌红；首页专属的区块在 home.css。 */

:root {
  color-scheme: light;
  --ink: #1d1b18;
  --muted: #6b6560;
  --brand: #b4231c;
  --brand-bright: #d4241b;
  --brand-deep: #8f1711;
  --brand-soft: #f9dcd8;
  --brand-line: #efcfca;
  --amber: #f4b43a;
  --paper: #fbfaf7;
  --card: #f2efe9;
  --line: #e8e2da;
  --content: 1160px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { color: #3a1613; background: #f5c9c4; }
.skip-link { position: absolute; z-index: 40; top: -70px; left: 18px; padding: 12px 18px; border-radius: 10px; background: #fff; }
.skip-link:focus { top: 10px; }
.content-width { max-width: var(--content); padding-inline: 28px; margin-inline: auto; }

/* Header ----------------------------------------------------------------- */

.site-header { position: relative; z-index: 10; display: flex; align-items: center; gap: 32px; max-width: 1720px; height: 84px; margin-inline: auto; padding: 0 clamp(20px, 3.4vw, 48px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 750; letter-spacing: -.03em; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; flex: none; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1px #0000000d, 0 4px 12px #8f171118; }
.header-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 550; }
.header-nav a { transition: color .2s; }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--ink); }
.header-cta { padding: 9px 16px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 650; transition: transform .2s var(--spring); }
.header-cta:hover { transform: scale(1.04); }
.header-cta span { margin-left: 6px; }
.header-nav + .header-cta { margin-left: 0; }

.eyebrow { margin: 0; color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .04em; }

/* Buttons ---------------------------------------------------------------- */

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 99px; font-size: 16px; font-weight: 650; transition: transform .25s var(--spring), background .2s; }
.button:hover { transform: scale(1.04); }
.button-dark { background: var(--brand-bright); color: #fff; }
.button-dark:hover { background: var(--brand); }
.button-outline { border: 1.5px solid var(--line); background: #fff; }

/* Get the app: a red capsule. With a mouse (or keyboard focus) it grows into
   a card holding the QR code for /get/; on touch screens it is a plain link. */

.cta-shell { position: relative; z-index: 5; width: 176px; height: 56px; margin-inline: auto; }
.cta { position: absolute; right: 50%; bottom: 0; display: inline-flex; width: 176px; height: 56px; align-items: center; justify-content: center; overflow: hidden; color: #fff; background: var(--brand-bright); border-radius: 1000px; white-space: nowrap; isolation: isolate; transform: translateX(50%); box-shadow: 0 8px 22px #d4241b38; transition: width 300ms var(--spring), height 300ms var(--spring), border-radius 240ms var(--ease-out), box-shadow 300ms ease, background .2s; }
.cta-text { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; letter-spacing: .01em; transition: opacity 140ms ease; }
.cta-icon { width: 19px; height: 19px; flex: none; }
.cta-qr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 160ms ease 80ms; }
.qr-tile { display: block; padding: 10px; border-radius: 16px; background: #fff; }
.qr-tile img { display: block; width: 168px; height: 168px; }
.cta-caption { color: #fff; font-size: 14px; font-weight: 650; }

@media (hover: hover) and (pointer: fine) {
  .cta:hover { background: var(--brand); }
  .cta-shell:hover .cta, .cta-shell:has(:focus-visible) .cta {
    width: 244px; height: 288px; border-radius: 30px; background: var(--brand-bright);
    box-shadow: 0 50px 120px -20px #1d1b1852, 0 24px 60px -10px #1d1b1833, 0 6px 20px #d4241b40;
  }
  .cta-shell:hover .cta-text, .cta-shell:has(:focus-visible) .cta-text { opacity: 0; }
  .cta-shell:hover .cta-qr, .cta-shell:has(:focus-visible) .cta-qr { opacity: 1; }
  .cta-shell:has(:focus-visible) .cta { outline: 3px solid var(--ink); outline-offset: 3px; }
}

/* Footer ------------------------------------------------------------------ */

.footer { display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; padding-top: 40px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.footer .brand { grid-column: 1; font-size: 17px; }
.footer .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.footer p { grid-column: 1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.footer > div { display: flex; flex-wrap: wrap; gap: 8px 22px; grid-column: 2; grid-row: 1; align-items: center; color: var(--muted); font-size: 13px; font-weight: 550; }
.footer > div a { transition: color .2s; }
.footer > div a:hover { color: var(--brand); }
.footer small { grid-column: 2; grid-row: 2; align-self: end; color: #a29a93; font-size: 12px; text-align: right; }

/* Info pages (privacy, support, apply, get, 404) -------------------------- */

.info-page { max-width: 780px; padding-top: 64px; padding-bottom: 110px; }
.info-page h1 { margin: 14px 0 26px; font-size: clamp(38px, 5vw, 56px); font-weight: 750; line-height: 1.18; letter-spacing: -.045em; }
.info-lead { color: #4a4440; font-size: 18px; line-height: 1.85; }
.info-notice { margin: 32px 0 18px; padding: 20px 24px; border-radius: 18px; background: var(--brand-soft); color: #6f2722; line-height: 1.85; }
.info-notice a { color: var(--brand); font-weight: 700; }
.info-page section { padding: 30px 0 22px; border-bottom: 1px solid var(--line); }
.info-page h2 { margin: 0 0 14px; font-size: 23px; font-weight: 720; letter-spacing: -.02em; }
.info-page section p, .info-page li { color: #57504b; font-size: 15px; line-height: 1.9; }
.info-page section p { margin: 0 0 14px; }
.info-page ul, .info-page ol { margin: 8px 0; padding-left: 24px; }
.info-page li + li { margin-top: 10px; }
.info-page section a { color: var(--brand); font-weight: 680; text-decoration: underline; text-underline-offset: 3px; }
.info-updated { margin-top: 26px; color: var(--muted); font-size: 12px; }

@media (max-width: 640px) {
  .content-width { padding-inline: 20px; }
  .site-header { height: 68px; gap: 14px; padding-inline: 20px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; }
  .header-nav { gap: 16px; font-size: 13px; }
  .header-nav a:not(:last-child) { display: none; }
  .header-cta { padding: 8px 12px; font-size: 12px; }
  .info-page { padding-top: 44px; padding-bottom: 76px; }
  .info-page h1 { font-size: 34px; }
  .info-lead { font-size: 16px; }
  .info-notice { padding: 17px; }
  .footer { grid-template-columns: 1fr; gap: 12px; padding-top: 30px; padding-bottom: 40px; }
  .footer .brand, .footer p, .footer > div, .footer small { grid-column: 1; grid-row: auto; }
  .footer > div { margin-top: 6px; }
  .footer small { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* /get/ — where the QR code lands ---------------------------------------- */

.get-page { text-align: left; }
.get-wechat { margin: 0 0 26px; padding: 16px 18px; color: var(--brand-deep); font-weight: 600; line-height: 1.6; background: var(--brand-soft); border-radius: 16px; }
.get-wechat[hidden] { display: none; }
.get-mark { display: block; width: 88px; height: 88px; margin-bottom: 26px; border-radius: 22px; box-shadow: 0 16px 36px #8f171133; }
.get-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 14px; }
.get-desktop { display: flex; align-items: center; gap: 28px; margin-top: 30px; padding: 26px !important; border: 0 !important; border-radius: 24px; background: var(--card); }
.get-desktop img { width: 148px; height: 148px; flex: none; padding: 10px; border-radius: 16px; background: #fff; }
.get-desktop h2 { font-size: 20px; }
.get-desktop p { margin: 0 !important; }
@media (hover: none), (max-width: 640px) { .get-desktop { display: none; } }
