:root { color-scheme: dark; }
body { min-width: 320px; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: 2px solid #ffb76e; outline-offset: 3px; }
.download-hero { background: radial-gradient(circle at 70% 38%, #172c42 0%, #0b1322 58%); }
.download-title { font-size: clamp(2.1rem, 3.8vw, 3.5rem); line-height: 1.16; }
.platform-card { min-height: 94px; display: flex; align-items: center; gap: 14px; border: 1px solid #405267; border-radius: 16px; padding: 16px 18px; transition: transform .18s ease, background-color .18s ease, border-color .18s ease; }
.platform-card:not(.platform-card-disabled):hover { transform: translateY(-2px); }
.platform-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.platform-card small { font-size: .74rem; opacity: .76; }
.platform-card strong { font-size: 1rem; line-height: 1.35; font-weight: 750; }
.platform-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; font-size: 1.3rem; font-weight: 700; }
.platform-arrow { margin-left: auto; align-self: flex-start; font-size: 1.15rem; }
.platform-card-primary { color: #fff; border-color: #d9701d; background: #c45c08; box-shadow: 0 16px 35px rgba(153,66,2,.2); }
.platform-card-primary:hover { background: #a94804; }
.platform-card-primary .platform-icon { background: rgba(255,255,255,.16); }
.platform-card-secondary { color: #fff; background: #1c2b3e; }
.platform-card-secondary:hover { border-color: #788ca2; background: #263a51; }
.platform-card-secondary .platform-icon { background: rgba(255,255,255,.08); }
.platform-card-disabled { color: #8997a7; border-color: #354457; background: #182638; }
.platform-card-disabled .platform-icon { background: rgba(255,255,255,.06); }
.platform-card.is-recommended { outline: 2px solid rgba(255,183,110,.8); outline-offset: 3px; }
.download-preview-stage { position: relative; min-height: 610px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(147,171,196,.18); border-radius: 32px; background: linear-gradient(145deg,rgba(44,65,83,.65),rgba(13,22,36,.9)); }
.download-preview-stage:before { position: absolute; inset: 0; content: ''; background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom,#000,transparent); }
.download-preview-caption { position: absolute; z-index: 2; top: 28px; left: 28px; display: flex; align-items: center; gap: .7rem; color: #d6e0e9; font-size: .8rem; font-weight: 700; }
.download-phone { position: relative; width: 260px; height: 555px; margin-top: 72px; overflow: hidden; border: 7px solid #26364a; border-radius: 29px; background: #05080d; box-shadow: 0 35px 70px rgba(0,0,0,.45); transform: rotate(4deg); }
.download-phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.download-preview-note { position: absolute; z-index: 2; left: 20px; bottom: 48px; display: grid; gap: 2px; min-width: 145px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 15px; background: #1d2b3d; box-shadow: 0 15px 35px rgba(0,0,0,.3); }
.download-preview-note span { color: #ffb76e; font-size: .72rem; font-weight: 800; }
.download-preview-note strong { font-size: .9rem; }
.download-preview-note small { color: #aebccd; font-size: .72rem; }
.download-step { border-top: 1px solid #41556a; padding-top: 16px; }
.download-step b { display: block; margin-bottom: 14px; color: #ffb76e; font-size: .78rem; }
.download-step strong { font-size: 1rem; }
.download-step p { margin-top: 8px; color: #a8b7c8; font-size: .86rem; line-height: 1.7; }
.download-qr-card { width: 244px; border-radius: 20px; padding: 20px; background: #fff; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.download-qr { width: 180px; height: 180px; margin: auto; }
.download-qr img, .download-qr canvas { display: block; width: 180px; height: 180px; }
.wechat-guide { position: fixed; z-index: 50; inset: 0; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: max(90px, env(safe-area-inset-top)) 20px 30px; background: rgba(5,10,18,.94); backdrop-filter: blur(8px); }
.wechat-guide[aria-hidden="false"] { display: flex; }
body.wechat-browser { overflow: hidden; }
.guide-arrow { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 22px; color: #ff982f; font-size: 3.5rem; transform: rotate(-17deg); }
.guide-card { width: min(100%,390px); border: 1px solid #405267; border-radius: 22px; padding: 28px; background: #18283a; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.guide-card > img { margin-bottom: 20px; }
.guide-kicker { color: #ffb76e; font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.guide-card h2 { margin-top: 8px; font-size: 1.7rem; font-weight: 750; letter-spacing: -.03em; }
.guide-card h2 strong { color: #ffb76e; }
.guide-card > p:not(.guide-kicker) { margin-top: 14px; color: #b6c5d3; font-size: .9rem; line-height: 1.8; }
.guide-card ol { display: grid; gap: 9px; margin-top: 22px; }
.guide-card li { display: flex; min-height: 44px; align-items: center; gap: 11px; border-radius: 10px; padding: 0 12px; background: #24374a; color: #e5edf4; font-size: .84rem; }
.guide-card li span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #c45c08; color: #fff; font-size: .7rem; font-weight: 800; }
@media (max-width: 1023px) {
    .download-preview { width: min(100%,570px); margin: auto; }
    .download-qr-card { margin: auto; }
}
@media (max-width: 639px) {
    .download-title { font-size: clamp(2.05rem, 8.5vw, 2.5rem); }
    .download-preview-stage { min-height: 500px; }
    .download-preview-caption { top: 20px; left: 20px; }
    .download-phone { width: 210px; height: 450px; }
    .download-preview-note { left: 10px; bottom: 30px; min-width: 115px; padding: 11px; }
    .platform-card { min-height: 76px; }
}
@media (prefers-reduced-motion: reduce) { .platform-card { transition: none; } }
