/* 多平台下载区域。 */
.hero-mobile-downloads{gap:10px;margin-top:12px}
.hero-mobile-card{position:relative;min-height:70px;gap:10px;padding:10px 11px;border:1px solid #71a8c366;border-radius:15px;background:linear-gradient(125deg,#173b56ed,#0a2039f5);box-shadow:inset 0 1px 0 #d7f6ff1f,0 8px 18px #000b;overflow:hidden}
.hero-mobile-card::before{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,#6ed7e9aa,transparent 72%)}
.hero-mobile-card:hover{border-color:#86dce7;background:linear-gradient(125deg,#1c4b65,#0d2a43);box-shadow:0 8px 24px #0009,0 0 16px #51cbdb25}
.hero-mobile-card img{width:34px;height:34px;padding:6px;box-sizing:border-box;border-radius:10px;background:transparent;filter:invert(1);opacity:.95}
.hero-mobile-copy{gap:3px}.hero-mobile-copy strong{font-size:13px;color:#f3faff}.hero-mobile-copy small{font-size:11px;color:#9ebbc9}
.hero-mobile-badge{display:none!important}
.download-strip.wrap{gap:24px;padding:18px 24px;border:1px solid #70c4d95e;border-radius:22px;background:radial-gradient(ellipse at 7% 0%,#33748b4d,transparent 32%),linear-gradient(110deg,#0e334d,#071e36 75%);box-shadow:inset 0 1px 0 #defbff24,0 12px 30px #00111d80}
.game-qr{gap:6px;padding:10px 12px 9px;border:1px solid #a9dfdf52;border-radius:15px;background:linear-gradient(145deg,#1c4d62,#0d3047);box-shadow:inset 0 1px 0 #ffffff25,0 7px 16px #0004;color:#d9f7ff}
.game-qr .qr-heading{align-self:stretch;color:#b9dce2;font-size:10px;letter-spacing:2px;text-align:center;font-weight:800}
.game-qr img{width:96px;height:96px;padding:6px;box-sizing:content-box;border-radius:8px;background:#fff}
.game-qr small{color:#d2e9ea;font-size:10px;letter-spacing:.3px}
.download-platforms{min-width:0;padding:0 0 0 24px;border-left:1px solid #86bdc849;border-right:0}
.download-platforms h2{margin:0 0 12px;color:#f1f8fa;font-size:17px;letter-spacing:.5px}
.download-platforms h2:before{content:'✦';color:#ffcf78;font-size:15px;margin-right:9px}
.platform-grid{gap:10px;grid-template-columns:repeat(4,minmax(0,1fr))}
.platform-grid button{position:relative;min-width:0;min-height:62px;gap:10px;padding:10px 12px;border:1px solid #71b5c459;border-radius:13px;background:linear-gradient(135deg,#1a4b62,#10344d);color:#f2f9fb;box-shadow:inset 0 1px 0 #d4f9ff21,0 4px 9px #00121e4d}
.platform-grid button::after{content:'›';flex:none;color:#aad4d9;font-size:22px;font-weight:400;line-height:1}
.platform-grid button:hover{border-color:#a4e8e8;background:linear-gradient(135deg,#23677a,#164761);box-shadow:0 7px 18px #0007,0 0 16px #66e2df25}
.platform-grid button:focus-visible{outline:2px solid #ffd47c;outline-offset:3px}
.platform-grid .platform-icon{width:30px;height:30px;flex:none}.platform-grid span{min-width:0;font-size:13px}.platform-grid img.platform-icon{filter:invert(1);opacity:.94}.platform-grid svg.platform-icon{filter:none;color:#c0f5f0}
.platform-grid img.store-brand-icon,.hero-mobile-card img.store-brand-icon{filter:none;opacity:1}
[data-recharge-open],[data-recharge-open]::before,[data-recharge-open]::after{animation:none!important}
.platform-assurance{margin:11px 0 0;text-align:left}.download-platforms p.platform-message{text-align:left;color:#a8c2cd;font-size:11px;letter-spacing:.2px}.download-platforms p.platform-message strong{color:#f5cf87}
@media(max-width:1100px){.download-strip.wrap{flex-wrap:nowrap}.download-platforms{min-width:0}.platform-grid button{gap:7px;padding:9px}.platform-grid span{font-size:12px}.platform-grid .platform-icon{width:25px;height:25px}}
@media(max-width:820px){.download-strip.wrap{align-items:flex-start;gap:16px;padding:16px}.download-platforms{padding-left:16px}.platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-qr{margin:0}.platform-grid button{min-height:54px}.download-platforms p.platform-message{line-height:1.55}}
@media(max-width:480px){.download-strip.wrap{flex-wrap:wrap}.game-qr{flex-direction:row;width:100%;justify-content:flex-start;gap:12px;padding:10px}.game-qr .qr-heading{align-self:auto;width:3em;flex:none;line-height:1.5}.game-qr img{width:76px;height:76px}.game-qr small{white-space:normal}.download-platforms{flex-basis:100%;padding:0;border:0}.platform-grid button{white-space:normal}.hero-mobile-card{gap:6px;padding:8px}.hero-mobile-card img{width:28px;height:28px;padding:5px}.hero-mobile-copy strong{font-size:11px}.hero-mobile-badge{padding:3px 5px}}
@media(prefers-reduced-motion:reduce){.hero-mobile-card,.platform-grid button{transition:none}}


/* 紧凑扫码布局。 */
.download-strip.wrap{padding:14px 20px;gap:20px;align-items:center}
.game-qr{display:grid;grid-template-columns:76px auto;grid-template-rows:auto auto;align-items:center;column-gap:10px;row-gap:2px;width:185px;padding:9px 11px;box-sizing:border-box}
.game-qr img{grid-column:1;grid-row:1 / 3;width:68px;height:68px;padding:4px}
.game-qr .qr-heading{grid-column:2;grid-row:1;align-self:end;width:auto;text-align:left;font-size:11px;letter-spacing:.8px;white-space:nowrap}
.game-qr small{grid-column:2;grid-row:2;align-self:start;white-space:normal;line-height:1.4;font-size:10px}
.download-platforms h2{margin-bottom:8px}.platform-grid button{min-height:54px}.platform-assurance{margin-top:8px}
.hero-mobile-card{overflow:visible;isolation:isolate}
.hero-mobile-card::before{z-index:-1}
.hero-mobile-card img{width:36px;height:36px;padding:4px}
.hero-mobile-copy strong{font-size:13px}.hero-mobile-copy small{font-size:11px}
@media(max-width:820px){.download-strip.wrap{flex-wrap:wrap}.game-qr{width:185px}.download-platforms{flex:1;min-width:250px}.platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.download-strip.wrap{gap:12px}.game-qr{width:100%}.download-platforms{flex-basis:100%;border:0;padding:0;min-width:0}.platform-grid button{min-height:50px}.hero-mobile-card img{width:30px;height:30px}.hero-mobile-copy strong{font-size:11px}}
/* 移动平台下载卡片。 */
.hero-mobile-card{min-height:76px;padding:10px 10px 12px;border:1px solid #8fd5df7a;border-radius:12px 18px 12px 18px;background:linear-gradient(155deg,#25536b,#0d293f);box-shadow:inset 0 1px #efffff33,0 7px 16px #0008}
.hero-mobile-card::before{inset:auto 12px 0;height:3px;background:linear-gradient(90deg,#ffcf78,#8fe9e9,transparent);border-radius:4px}
.hero-mobile-card img{filter:invert(1) drop-shadow(0 0 3px #d4f8ff);background:transparent}
.hero-mobile-copy{gap:5px}.hero-mobile-copy small{color:#b5d8df}.hero-mobile-badge{align-self:flex-start;margin-top:1px;padding:3px 6px;border:1px solid #f4c97780;background:#c7903229;color:#ffe4a3;font-size:9px}

@media(max-width:480px){.hero-mobile-card{padding:8px 7px;gap:5px}.hero-mobile-card img{width:25px;height:25px;padding:3px}.hero-mobile-copy strong{font-size:11px;letter-spacing:-.25px}.hero-mobile-badge{position:absolute;right:7px;top:auto;bottom:6px;margin:0;font-size:9px;padding:2px 5px}}

/* 精简二维码包装，让二维码自然融入下载栏。 */
.game-qr{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.game-qr img{border-radius:6px}
.hero-mobile-copy{align-self:center;margin:0}

/* 扫码说明独立置于二维码下方，与平台互通说明底部对齐。 */
.download-strip.wrap{align-items:flex-end}
.game-qr{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;margin:0}
.game-qr small{display:block;align-self:center;margin:0;max-width:100%;text-align:center;font-size:11px;line-height:1.45;white-space:normal}
@media(max-width:600px){.game-qr{width:100%;align-items:flex-start}.game-qr small{align-self:flex-start;text-align:left}}

/* Keep platform identities visible while their links are awaiting configuration. */
.game-qr:not([data-download-state]) img,
.game-qr:not([data-download-state]) small { visibility: hidden; }
.game-qr img[hidden], .platform-assurance[hidden] { display: none !important; }
.download-strip .game-qr[data-download-state="pending"] {
  justify-content: center;
  align-items: center;
  align-self: stretch;
  gap: 4px;
  padding: 12px 8px;
  text-align: center;
}
.game-qr .download-qr-label { color: #e6e9ed; font-size: .83rem; }
.game-qr[data-download-state="pending"] small { align-self: center; color: #c6d2dd; }
.platform-grid button[data-download-pending] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 3px;
  align-content: center;
}
.platform-grid button[data-download-pending] .platform-icon { grid-row: 1 / 3; align-self: center; }
.platform-grid button[data-download-pending] > span,
.platform-grid button[data-download-pending] > .platform-pending-label {
  grid-column: 2;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.18;
}
.platform-grid button[data-download-pending]::after,
.hero-mobile-card[data-download-pending]::before,
.hero-mobile-card[data-download-pending]::after { display: none !important; }
.platform-pending-label, .hero-mobile-card[data-download-pending] .hero-mobile-copy small {
  color: #c6d2dd;
  font-size: .75rem;
  font-weight: 700;
}
.download-option[data-download-pending] em { margin-inline-start: auto; }

#home .hero-primary .button[data-launch]:disabled {
  cursor: default;
  color: #d2d3d7 !important;
  background: #30333b !important;
  box-shadow: none !important;
  transform: none !important;
}
#home .hero-primary .button[data-launch]:disabled::before,
#home .hero-primary .button[data-launch]:disabled::after { display: none !important; }
