@font-face { font-family: "RedPackDownload"; src: url("/down/assets/download-ui.199b6aec0f4b.woff2") format("woff2"); font-style: normal; font-weight: 400 900; font-display: block; }
:root { color-scheme: light; font-family: "RedPackDownload", sans-serif; font-synthesis: none; color: #202832; background: #f4f6f8; --muted: #66717f; --blue: #56789d; --deep: #365675; --soft: #eaf0f7; --line: #e8ecf0; --dock-height: 100px; }
    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    html { min-width: 320px; scroll-padding-bottom: calc(var(--dock-height) + 32px); }
    body { margin: 0; min-width: 320px; min-height: 100svh; overflow-x: hidden; }
    button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
    button { font: inherit; cursor: pointer; }
    a { color: inherit; }
    :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
    .shell { width: min(100%, 540px); margin: auto; padding-bottom: calc(var(--dock-height) + 44px + env(safe-area-inset-bottom)); }
    .brand-header { display: flex; align-items: center; justify-content: space-between; padding: max(17px, env(safe-area-inset-top)) 22px 8px; background: #fff; }
    .brand { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
    .brand-mark { display: block; width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }
    .official { font-size: 11px; color: var(--muted); }
    .hero { padding: 12px 22px 8px; background: #fff; text-align: center; }
    h1 { margin: 0 0 8px; font-size: clamp(22px, 6.7vw, 30px); line-height: 1.35; font-weight: 600; white-space: nowrap; }
    .intro { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
    .gallery { padding-bottom: 14px; background: linear-gradient(#fff, var(--soft)); min-width: 0; }
    .gallery-tabs { display: flex; gap: 5px; padding: 8px 22px 11px; }
    .gallery-tabs button { flex: 1; min-height: 44px; padding: 8px 2px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; }
    .gallery-tabs button[aria-pressed="true"] { color: var(--deep); background: var(--soft); font-weight: 600; }
    .gallery-track { position: relative; display: flex; gap: 16px; padding: 8px 22px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 22px; scrollbar-width: none; overscroll-behavior-x: contain; }
    .gallery-track::-webkit-scrollbar { display: none; }
    /* 末尾留白使最后一张也能对齐起始位置，避免页签与实际滚动位置不一致。 */
    .gallery-track::after { content: ""; flex: 0 0 calc(24% - 16px); }
    .app-screen { flex: 0 0 52%; min-width: 0; margin: 0; scroll-snap-align: start; }
    .app-screen img { display: block; width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: contain; border-radius: 13px; background: #fff; box-shadow: 0 7px 18px #3656751f; user-select: none; -webkit-user-drag: none; }
    .gallery-nav { display: flex; justify-content: space-between; align-items: center; margin: 0 22px; gap: 12px; }
    .gallery-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--deep); font-size: 22px; }
    .gallery-arrow:disabled { opacity: .4; cursor: default; }
    .gallery-current { text-align: center; font-size: 12px; color: var(--deep); }
    .gallery-dots { display: flex; justify-content: center; gap: 5px; margin-top: 6px; }
    .gallery-dots span { width: 5px; height: 5px; background: #cad6e2; border-radius: 50%; }
    .gallery-dots .is-current { width: 14px; background: var(--blue); }
    .gallery-hint { margin: 8px 22px 0; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.6; }
    .section { margin-top: 8px; padding: 23px 22px; background: #fff; }
    .phone-download { text-align: center; padding-top: 25px; grid-row: 3; }
    .phone-download .lead { margin-bottom: 16px; }
    .phone-qr { width: 204px; height: 204px; margin: 0 auto 15px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
    .phone-qr svg { display: block; width: 100%; height: 100%; }
    .phone-steps { margin: 0 0 14px; color: var(--deep); font-size: 13px; line-height: 1.8; }
    .phone-invitation { margin: 0 0 12px; padding: 11px 14px; border-radius: 10px; background: var(--soft); font-size: 12px; color: var(--muted); }
    #phone-invite-code { margin-left: 10px; color: var(--deep); font: 600 18px/1.5 ui-monospace, monospace; letter-spacing: 3px; }
    .phone-invite-note { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
    .phone-link-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
    .phone-link { min-width: 0; flex: 1; color: var(--muted); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; user-select: all; text-underline-offset: 3px; }
    #phone-link-status { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
    .shell[data-device="desktop"] { padding-bottom: 24px; }
    .section h2 { font-size: 19px; line-height: 1.45; font-weight: 600; margin: 0 0 6px; }
    .lead { font-size: 12px; color: var(--muted); margin: 0 0 13px; line-height: 1.7; }
    .game { padding: 13px 0; border-top: 1px solid var(--line); }
    .game strong { display: block; font-size: 14px; font-weight: 500; color: var(--deep); }
    .game p { font-size: 12px; margin: 5px 0 0; color: var(--muted); line-height: 1.7; }
    .card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
    .card-heading h2 { margin: 0; }
    .status-pill { flex-shrink: 0; padding: 5px 9px; font-size: 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
    .status-pill[data-tone="success"] { color: #427057; border-color: #d1e2d8; }
    .status-pill[data-tone="danger"] { color: #b54848; }
    .version-row { display: flex; align-items: baseline; gap: 9px; }
    .version-name { font-size: 18px; color: var(--deep); }
    .version-code { color: var(--muted); font-size: 11px; }
    .metadata { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0; color: var(--muted); font-size: 12px; }
    .metadata div { display: flex; gap: 6px; } .metadata dt, .metadata dd { margin: 0; }
    details { font-size: 12px; color: var(--muted); }
    summary { cursor: pointer; min-height: 44px; padding: 12px 0; color: var(--deep); }
    .notes p { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.8; margin: 0 0 12px; }
    .trust-note { font-size: 11px; color: var(--muted); line-height: 1.8; margin: 8px 0 0; }
    .feedback-state { text-align: center; padding: 13px 0 3px; }
    .feedback-state h3 { font-size: 17px; margin: 5px 0 9px; }
    .feedback-state p { font-size: 12px; color: var(--muted); line-height: 1.7; }
    .secondary-button { min-height: 44px; padding: 8px 20px; border-radius: 10px; color: var(--deep); border: 1px solid var(--line); background: var(--soft); }
    .loading-state { color: var(--muted); font-size: 12px; }
    .skeleton { height: 22px; border-radius: 7px; margin-bottom: 12px; background: linear-gradient(90deg, #eaf0f755, #dce6f1bb, #eaf0f755); background-size: 200% 100%; animation: shine 1.6s ease-in-out infinite; }
    .skeleton-title { width: 42%; }
    .install-panel { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
    .install-panel h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
    .install-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
    .footer-brand { color: var(--muted); font-size: 11px; text-align: center; padding: 18px 22px; line-height: 1.8; }
    .download-dock { position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); width: min(calc(100% - 28px), 512px); max-height: calc(100svh - 28px - env(safe-area-inset-bottom)); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 -2px 20px #3656751a, 0 8px 24px #36567522; }
    .download-actions { display: flex; align-items: center; gap: 12px; }
    .platforms { display: flex; flex: 0 0 58%; min-width: 0; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); }
    .platforms button { flex: 1; min-width: 0; min-height: 44px; padding: 7px 3px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.4; white-space: nowrap; }
    .platforms button[aria-pressed="true"] { background: #fff; color: var(--deep); font-weight: 600; box-shadow: 0 2px 6px #3656751a; }
    .primary-button { display: flex; justify-content: center; align-items: center; flex: 1; min-height: 52px; min-width: 0; padding: 9px 5px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 500; line-height: 1.5; text-decoration: none; text-align: center; }
    .primary-button[aria-disabled="true"] { opacity: .65; cursor: default; }
    .invitation { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
    .invite-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .invite-title { display: flex; align-items: baseline; gap: 10px; }
    .invite-label { font-size: 12px; color: var(--muted); }
    #invite-code { color: var(--deep); font: 600 19px/1.3 ui-monospace, monospace; letter-spacing: 3px; user-select: all; }
    .copy-button { flex-shrink: 0; min-height: 44px; min-width: 64px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--deep); background: var(--soft); font-size: 12px; }
    .invite-help { color: var(--muted); font-size: 11px; margin: 3px 0 0; line-height: 1.6; }
    #clipboard-status { margin: 9px 0 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
    .manual-download { display: block; min-height: 44px; margin-top: 4px; padding: 10px 0; text-align: center; font-size: 12px; color: var(--deep); text-underline-offset: 3px; }
    .ios-install-actions { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
    #release-section { scroll-margin-top: 16px; }
    .trust-guide-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--soft); color: var(--deep); text-align: center; font-size: 14px; font-weight: 600; }
    #ios-install-start { border-color: var(--blue); background: var(--blue); color: #fff; text-decoration: none; }
    .settings-fallback { margin: 12px 0; padding: 12px; border-radius: 11px; background: var(--soft); border: 1px solid var(--line); }
    .settings-fallback p { margin: 0 0 9px; font-size: 13px; line-height: 1.65; }
    .settings-fallback a { display: block; padding: 11px; border-radius: 8px; background: var(--blue); color: #fff; text-align: center; font-size: 14px; }
    .step-badge { display: inline-grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; }
    #ios-install-first-step { margin-right: 5px; background: #fff; color: var(--deep); width: 18px; height: 18px; font-size: 10px; }
    .trust-settings-help { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
    .ios-trust { margin-top: 8px; }
    .ios-trust summary { font-size: 13px; font-weight: 600; }
    .ios-trust p { margin: 0 0 12px; font-size: 12px; line-height: 1.8; }
    .trust-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin: 0 0 15px; padding: 0; list-style: none; }
    .trust-step { min-width: 0; }
    .trust-step h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12px; line-height: 1.6; }
    .trust-step .step-badge { width: 20px; height: 20px; font-size: 11px; }
    .trust-screen { min-height: 152px; padding: 11px 8px; border: 1px solid #d9d8dd; border-radius: 14px; background: #f2f2f7; color: #25252a; }
    .trust-screen-title { margin: 0 0 12px; text-align: center; font-size: 12px; font-weight: 600; }
    .trust-screen-label { margin: 10px 4px 5px; color: #65656d; font-size: 10px; }
    .trust-screen-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 33px; padding: 7px 6px; border-radius: 6px; background: #fff; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
    .trust-screen-row + .trust-screen-row { margin-top: 7px; }
    .trust-screen-row::after { content: "›"; color: #92929a; font-size: 16px; }
    .trust-screen-row.is-target { outline: 2px solid var(--blue); outline-offset: 1px; }
    .trust-screen-row.is-confirm { justify-content: center; color: #007aff; text-align: center; }
    .trust-screen-row.is-confirm::after { content: none; }
    .trust-step p { margin: 8px 0 0; font-size: 11px; }
    .trust-final { padding: 11px 12px; border-radius: 9px; background: var(--soft); }
    .ios-trust .trust-illustration-note { font-size: 10px; }
    .wechat-guide { position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: #18222df2; color: #fff; padding: max(22px, env(safe-area-inset-top)) 24px 24px; }
    .wechat-guide-arrow { display: block; margin-left: auto; width: 100px; height: 110px; color: #b9d6f2; }
    .wechat-guide-content { width: min(100%, 360px); margin: 12px auto; text-align: center; }
    .wechat-guide h2 { margin: 0 0 16px; font-size: 24px; }
    .wechat-guide p { font-size: 16px; line-height: 1.9; }
    .wechat-guide strong { color: #b9d6f2; }
    .wechat-guide button { margin-top: 18px; min-height: 44px; padding: 10px 25px; border: 1px solid #b9d6f2; border-radius: 12px; color: #b9d6f2; background: transparent; }
    @keyframes shine { to { background-position: -200% 0; } }
    @media (max-width: 359px) { .hero, .section { padding-left: 16px; padding-right: 16px; } .download-actions { gap: 8px; } .primary-button { font-size: 13px; } .platforms button { font-size: 11px; } .invite-title { gap: 6px; } }
    @media (min-width: 900px) { .shell { width: min(960px, calc(100% - 48px)); display: grid; grid-template-columns: minmax(0, 510fr) minmax(0, 428fr); gap: 0 22px; padding-top: 24px; } .brand-header { grid-column: 1 / -1; border-radius: 18px 18px 0 0; } .hero { grid-column: 1 / -1; padding-bottom: 18px; } .gallery { grid-column: 1; grid-row: 3 / 6; border-radius: 0 0 18px 18px; } .section { grid-column: 2; margin-top: 0; margin-bottom: 8px; border-radius: 14px; } .footer-brand { grid-column: 2; } }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
