/* Exact Figma artwork; only interaction overlays are rendered above it. */
*, *::before, *::after { box-sizing: border-box; }
:root { --landing-poster-bg: #160818; }
html, body { margin: 0; min-height: 100%; background: var(--landing-poster-bg); }
body { font-family: "Arial", "PingFang SC", "Microsoft YaHei", sans-serif; color: #100a10; overflow-x: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
.landing { min-height: 100vh; min-height: 100svh; }
.landing[data-layout="h5"] { padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.landing[data-layout="pending"] { visibility: hidden; }
.landing[data-layout="pc"] { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.poster-shell { position: relative; }
.poster-img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.poster-pc { display: none; width: min(100vw, calc(100vh * 16 / 9)); height: min(100vh, calc(100vw * 9 / 16)); }
/* The new artwork has no simulated status/home bars. Keep the full source canvas. */
.poster-mobile { display: none; width: 100%; max-width: 540px; margin: 0 auto; }
.mobile-artwork { position: relative; }
.landing[data-layout="pc"] .poster-pc, .landing[data-layout="h5"] .poster-mobile { display: block; }
.poster-hot { position: absolute; display: block; z-index: 3; border: 0; padding: 0; background: transparent; cursor: pointer; text-decoration: none; }
.poster-hot:focus-visible, .mobile-header button:focus-visible { outline: 3px solid #ffd66b; outline-offset: 2px; }
.debug-hotspots .poster-hot { outline: 2px solid #ff2080; background: #ff208033; }
.qr-overlay { position: absolute; z-index: 4; background: white; padding: 3px; pointer-events: none; }
.qr-overlay canvas, .qr-overlay img, .qr-overlay table { display: block; width: 100% !important; height: 100% !important; }
.pc-pause[aria-pressed="true"] { background: #2b1b23; color: #f3d7aa; font-size: clamp(9px, 1.2vw, 24px); }
.poster-mobile .poster-hot { min-height: 44px; }
.poster-mobile .mobile-service, .poster-mobile .mobile-group, .poster-mobile .mobile-business { left: auto !important; right: 2.4%; min-width: 44px; }
.mobile-header { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4.25%; min-height: 56px; background: var(--header-bg, #130b1a); }
.mobile-brand { display: block; width: 28%; height: auto; object-fit: contain; }
.mobile-download-actions { display: flex; align-items: center; gap: 8px; }
.mobile-header button { min-height: 44px; border: 0; border-radius: 6px; padding: 0 clamp(10px, 3.2vw, 16px); font-size: clamp(11px, 3.2vw, 15px); font-weight: 700; white-space: nowrap; }
.mobile-primary { background: var(--download-color, #ff217f); color: white; }
.mobile-backup { background: #fff; color: #151017; }
.mobile-bottom-download { background: var(--download-color, #ff217f); color: white; border: 3px solid #100a10; font-weight: 700; font-size: clamp(10px, 3vw, 15px); white-space: nowrap; }
body:has(dialog[open]) { overflow: hidden; }
body.landing-dialog-open { overflow: hidden; }
dialog { color: #100a10; }
.install-dialog, .service-dialog { overflow: visible; width: min(500px, calc(100vw - 42px)); max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); padding: 30px 28px; background: #fff; border: 7px solid #0d070c; box-shadow: 14px 14px 0 #ff2080; }
.install-dialog::backdrop, .service-dialog::backdrop { background: #08030abf; }
.install-dialog h1 { font-size: 30px; margin: 0 35px 16px 0; letter-spacing: -1px; }
.install-dialog p, .service-dialog p { font-size: 17px; color: #665563; line-height: 1.65; margin: 0 0 18px; }
.install-sticker { position: absolute; top: -28px; left: -16px; padding: 3px 9px; background: #ffd66b; color: #ff2080; border: 5px solid #0d070c; font-size: 27px; font-weight: 1000; font-style: italic; transform: rotate(7deg); }
.install-close { position: absolute; top: 25px; right: 25px; width: 38px; height: 38px; padding: 0; border: 4px solid #0d070c; border-radius: 50%; background: #ff2080; box-shadow: 3px 3px 0 #0d070c; color: #fff; font-size: 28px; line-height: 26px; }
.install-options { display: grid; gap: 18px; position: relative; z-index: 1; }
.install-options button { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; min-height: 64px; padding: 12px 17px; border: 4px solid #0d070c; background: #ffd66b; box-shadow: 6px 6px 0 #0d070c; text-align: left; font-size: 22px; font-weight: 900; }
.install-options button + button { background: #fff; }
.install-options span { font-size: 30px; }
.install-enter { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 60px; margin: 20px 7px 10px; border: 3px solid #fff; outline: 3px solid #ff2080; background: linear-gradient(110deg, #ff1680, #ff649e); box-shadow: 5px 5px 0 #ffadcd; color: white; text-decoration: none; font-size: 22px; font-weight: 900; transform: skew(-12deg); position: relative; z-index: 1; }
.install-dialog::after { content: ''; pointer-events: none; position: absolute; bottom: 6px; right: 0; width: 170px; height: 150px; background: radial-gradient(circle, #ffbed9 4px, transparent 5px) 0 0 / 18px 18px; }
.service-dialog h2 { padding-right: 38px; }
@media (max-width: 420px) { .install-dialog, .service-dialog { padding: 25px 18px; border-width: 5px; } .install-dialog h1 { font-size: 25px; } .install-dialog p { font-size: 14px; } .install-options button { font-size: 17px; min-height: 56px; padding: 9px 12px; } .install-close { top: 20px; right: 15px; width: 32px; height: 32px; font-size: 24px; line-height: 22px; } }

/* Keep actions reachable on short landscape screens without changing the portrait artwork. */
@media (max-height: 600px) {
  .install-dialog, .service-dialog { overflow-y: auto; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); }
  .install-sticker { position: relative; display: inline-block; top: auto; left: auto; margin: -12px 0 12px -8px; }
}

.auto-download-fallback {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(20, 20, 20, .88);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .32);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  transform: translateX(-50%);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.auto-download-fallback[hidden] { display: none; }
.auto-download-fallback button {
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: #08b857;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.auto-download-fallback button:active { opacity: .78; }

/* ========== 安卓「安装包报毒解决方案」弹层 ========== */
.android-modal {
  position: fixed; inset: 0;
  background: #f5f5f5;
  color: #222;
  z-index: 100;
  overflow-y: auto;
}
.android-modal[hidden] { display: none; }
.android-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky; top: 0; z-index: 2;
}
.android-modal-back {
  width: 32px; height: 32px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
}
.android-modal-back img { width: 100%; height: 100%; object-fit: contain; }
.android-modal-title { font-size: 16px; font-weight: 600; flex: 1; text-align: center; }
.android-modal-spacer { width: 32px; }

.android-modal-list { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.android-modal-cell {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}
.android-modal-cell img { width: 100%; display: block; }

.android-modal-detail { padding: 12px; }
.android-modal-detail[hidden] { display: none; }
.android-modal-pic { background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.android-modal-pic img { width: 100%; display: block; }

/* Fallback for mobile browsers without native dialog support. */
dialog:not([open]) { display: none; }
dialog.dialog-fallback[open] { display: block; position: fixed; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%); z-index: 102; }
.landing-dialog-backdrop { position: fixed; inset: 0; z-index: 101; background: #08030abf; }
@media (max-width: 359px) {
  .install-options button { font-size: 15px; line-height: 1.4; }
  .install-enter { font-size: 19px; }
}

/* The shared installation dialog must keep the current surface destination. */
.landing[data-layout="pc"] .access-web-h5,
.landing[data-layout="h5"] .access-web-pc,
.landing[data-layout="pc"] .install-enter-h5,
.landing[data-layout="h5"] .install-enter-pc { display: none; }

.access-dialog { width: min(720px, calc(100vw - 42px)); padding: 38px; }
.access-options { display: grid; gap: 20px; position: relative; z-index: 1; }
.access-options a, .access-options button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 82px; padding: 16px 24px; border: 4px solid #0d070c; box-shadow: 5px 5px 0 #0d070c; font: inherit; font-size: 22px; font-weight: 900; text-decoration: none; cursor: pointer; }
.access-options .access-web { background: #ff2080; color: white; }
.access-options button { background: #ffda70; color: #0d070c; }
.access-options span { font-size: 18px; }
@media (max-width: 540px) { .access-dialog { padding: 25px 18px; } .access-options a, .access-options button { padding: 12px; font-size: 18px; } .access-options span { font-size: 15px; } }

.access-options .access-secondary { background:#fff; color:#0d070c; }
.access-options { max-height:calc(100vh - 250px); max-height:calc(100dvh - 250px); overflow-y:auto; padding:0 8px 8px 0; }

.download-label-ios, .download-label-unknown { display: none; }
.landing[data-platform="ios"] .download-label-android, .landing[data-platform="unknown"] .download-label-android,
.landing[data-platform="ios"] .mobile-backup, .landing[data-platform="unknown"] .mobile-backup { display: none; }
.landing[data-platform="ios"] .download-label-ios, .landing[data-platform="unknown"] .download-label-unknown { display: inline; }

.mobile-brand img { display: block; width: 100%; height: auto; }
