:root {
  --ll-page-surface: #f6f8fb;
  --ll-brand-hero-background-gradient: linear-gradient(180deg, #070d18 0%, #08111f 14%, #0a1629 25%, #102c53 38%, #255f9b 53%, #4080C0 66%, #6fa0cf 76%, #aecbe5 84%, #d8e7f3 91%, rgba(246, 248, 251, 0.88) 96%, rgba(246, 248, 251, 0) 100%);
  --ll-brand-hero-background-softener: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.018) 38%, rgba(255, 255, 255, 0.04) 68%, rgba(255, 255, 255, 0.02) 100%);
  --ll-brand-strong: #2f6fa8;
  --ll-brand-soft: #e7f1fb;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: #fff;
  background: var(--ll-page-surface);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; height: 100dvh; display: grid; grid-template-rows: 100% auto; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus, a:focus { outline: none; }
[data-focus-ring] button:focus-visible, [data-focus-ring] a:focus-visible { outline: 3px solid #fff7d9; outline-offset: 6px; }
.landing {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow: clip;
  background: var(--ll-brand-hero-background-softener), var(--ll-brand-hero-background-gradient), var(--ll-page-surface);
}
.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(64px, 10dvh, 108px);
  flex-shrink: 0;
  padding: 0 5.5%;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.7px; }
.brand > img { object-fit: contain; }

.hero { position: relative; flex: 1; min-height: 0; width: 100%; max-width: 1800px; margin: 0 auto; display: flex; align-items: center; justify-content: flex-end; }
.hero-copy { position: relative; z-index: 2; width: 44%; margin: 0 5.5% 0 0; padding: 0 0 5dvh; text-align: center; }
.tagline { margin: 0; font-size: clamp(26px, min(4.3vw, 6.6dvh), 68px); font-weight: 300; line-height: 1.48; letter-spacing: .025em; }

.primary-cta { margin-top: clamp(22px, 4dvh, 40px); display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 17px 24px; border: 0; border-radius: 40px; color: var(--ll-brand-strong); background: var(--ll-brand-soft); font-size: 17px; font-weight: 600; box-shadow: 0 8px 20px #24598720; transition: transform .2s, box-shadow .2s; }
.primary-cta img { opacity: .7; }
.primary-cta .cta-arrow { margin-left: 12px; }
.primary-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px #24598730; }

.hero-art { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: min(55vw, calc(100dvh - 145px), 980px); aspect-ratio: 1; pointer-events: none; -webkit-touch-callout: none; }
.wallet { position: absolute; width: 96%; max-width: none; bottom: 0; left: -13%; clip-path: inset(0 0 33% 0); transform: translateY(33%); filter: drop-shadow(12px 22px 18px #235e8c14); }
.badge { position: absolute; width: var(--size); aspect-ratio: 1; filter: drop-shadow(7px 13px 10px #28598724); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
/* 命中层：贴着圆盘本身（徽章素材四周仅约 4.7% 透明留白），不占大块透明区域，也不位移。 */
.badge::before { content: ""; position: absolute; inset: 4.7%; border-radius: 50%; pointer-events: auto; }
/* 动画层：外层 .badge 负责定位/尺寸/命中，这里只负责弹跳与轻微倾斜。 */
.badge-pop { position: relative; display: block; width: 100%; height: 100%; transform: rotate(var(--angle)); }
.badge-base { width: 100%; height: 100%; display: block; }
.badge-logo { position: absolute; left: 22%; top: 21%; width: 56%; height: 53%; object-fit: contain; }
.badge-cathay { --size: 22%; --angle: -17deg; left: 15%; top: 14%; z-index: 2; --pop-scale: 0.9; --pop-dur: 600ms; --pop-rebound: .26; --pop-dir: -1; }
.badge-air-china { --size: 17%; --angle: 13deg; left: 41%; top: 2%; --pop-scale: 1.05; --pop-dur: 540ms; --pop-rebound: .32; --pop-dir: 1; }
.badge-american { --size: 14%; --angle: 18deg; left: 65%; top: 12%; --pop-scale: 1.2; --pop-dur: 500ms; --pop-rebound: .3; --pop-dir: -1; }
.badge-china-southern { --size: 17%; --angle: -12deg; left: 77%; top: 33%; --pop-scale: 1; --pop-dur: 580ms; --pop-rebound: .28; --pop-dir: 1; }
.badge-marriott { --size: 20%; --angle: 9deg; left: 44%; top: 29%; z-index: 2; --pop-scale: .95; --pop-dur: 560ms; --pop-rebound: .34; --pop-dir: -1; }
.badge-hilton { --size: 15%; --angle: -9deg; left: 69%; top: 58%; z-index: 2; --pop-scale: 1.15; --pop-dur: 520ms; --pop-rebound: .26; --pop-dir: 1; }
.badge-hyatt { --size: 17%; --angle: -14deg; left: 29%; top: 49%; z-index: 2; --pop-scale: 1.08; --pop-dur: 600ms; --pop-rebound: .3; --pop-dir: -1; }

/* 徽章轻弹：向上弹起 → 自然回落 → 一次很轻的回弹 → 回到原位。 */
.hero-art { --badge-pop-rise: 20px; --badge-pop-tilt: 3deg; }
@media (hover: hover) and (pointer: fine) {
  .hero-art { --badge-pop-rise: 26px; }
}
.badge-pop.is-popping { animation: badge-pop var(--pop-dur, 560ms) both; }
@keyframes badge-pop {
  0% { transform: translateY(0) rotate(var(--angle)); animation-timing-function: cubic-bezier(.2, .75, .3, 1); }
  14% { transform: translateY(calc(-1 * var(--badge-pop-rise) * var(--pop-scale, 1))) rotate(calc(var(--angle) + var(--pop-dir, 1) * var(--badge-pop-tilt))); animation-timing-function: cubic-bezier(.5, 0, .9, .45); }
  42% { transform: translateY(0) rotate(var(--angle)); animation-timing-function: cubic-bezier(.2, .75, .3, 1); }
  60% { transform: translateY(calc(-1 * var(--pop-rebound, .3) * var(--badge-pop-rise) * var(--pop-scale, 1))) rotate(calc(var(--angle) + .5 * var(--pop-dir, 1) * var(--badge-pop-tilt))); animation-timing-function: cubic-bezier(.5, 0, .9, .45); }
  78%, 100% { transform: translateY(0) rotate(var(--angle)); }
}
@media (prefers-reduced-motion: reduce) {
  .badge-pop.is-popping { animation: none; }
}
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 5.5%; background: var(--ll-page-surface); color: #667085; font-size: 10px; line-height: 1.8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a:hover { text-decoration: underline; }
.public-security-record { display: inline-flex; align-items: center; gap: 5px; }
.miniapp-dialog { width: min(400px, calc(100% - 40px)); max-height: calc(100svh - 48px); overflow: auto; padding: 38px 28px 28px; border: 0; border-radius: 26px; color: #244c70; background: #f2f8fd; text-align: center; box-shadow: 0 30px 100px #14395540; -webkit-user-select: none; user-select: none; }
.miniapp-dialog::backdrop { background: #173d6266; backdrop-filter: blur(9px); }
.miniapp-dialog:focus { outline: none; }
.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--ll-brand-soft); }
[data-focus-ring] .miniapp-dialog button:focus-visible { outline-color: #4080c0; }
.miniapp-dialog p { font-size: 14px; line-height: 1.8; }
.miniapp-code-frame { position: relative; width: min(280px, 100%); aspect-ratio: 1; margin: 20px auto 0; overflow: hidden; background: #fff; }
.miniapp-code { display: block; width: 100%; height: auto; }
.miniapp-code-frame[hidden], .code-fallback[hidden] { display: none; }
.code-fallback { width: min(280px, 100%); aspect-ratio: 1; margin: 20px auto 0; display: grid; place-items: center; padding: 24px 16px; border-radius: 16px; background: var(--ll-brand-soft); }
body:has(dialog[open]) { overflow: hidden; }
.noscript-note { margin: 0; padding: 16px; text-align: center; }
@media (max-width: 760px) and (orientation: portrait) {
  .topbar { height: 70px; padding: env(safe-area-inset-top) 20px 0; }
  .brand { gap: 7px; font-size: 17px; }
  .brand > img { width: 26px; height: 26px; }

  .hero { flex-direction: column; justify-content: flex-start; }
  .hero-copy { flex-shrink: 0; width: 100%; margin: 0; padding: clamp(8px, 2dvh, 20px) 20px 0; text-align: center; }
  .tagline { font-size: clamp(26px, min(7.6vw, 4.7dvh), 40px); line-height: 1.35; }

  .primary-cta { min-height: 48px; margin-bottom: 32px; padding: 12px 20px; font-size: 14px; }

  .hero-art { position: relative; flex: 1; top: auto; left: auto; transform: none; width: min(100%, calc(100dvh - 310px), 460px); aspect-ratio: auto; margin-top: 12px; }
  .wallet { width: 100%; left: calc(-10% - 14px); bottom: 0; }
  .badge-cathay { --size: 23%; left: 11%; top: 12%; }
  .badge-air-china { --size: 18%; left: 40%; top: 0; }
  .badge-american { --size: 15%; left: 66%; top: 9%; }
  .badge-china-southern { --size: 19%; left: 77%; top: 31%; }
  .badge-marriott { --size: 22%; left: 45%; top: 23%; }
  .badge-hilton { --size: 17%; left: 77%; top: 64%; }
  .badge-hyatt { --size: 18%; left: 23%; top: 45%; }
  .footer { justify-content: center; gap: 3px; padding: 8px 16px max(8px, env(safe-area-inset-bottom)); text-align: center; font-size: 9px; }
  .footer-links { justify-content: center; gap: 3px 12px; }
}
@media (min-width: 761px) and (orientation: portrait) {
  .wallet { clip-path: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .topbar { height: 54px; }
  .brand { font-size: 16px; }
  .hero-copy { padding-bottom: 0; }
  .tagline { font-size: 24px; line-height: 1.25; }

  .primary-cta { min-height: 40px; padding: 8px 16px; font-size: 12px; }

  .footer { padding-block: 6px; font-size: 9px; }
}
