.download-page { background: var(--paper); }

/* 首屏下载区：居中标语 + 平台按钮 + 手机矩阵 */
.download-hero { background: linear-gradient(180deg, #eaf1ee 0%, #f5f6f2 46%, #f5f6f2 100%); overflow: hidden; padding: 88px 0 0; position: relative; text-align: center; }
.download-hero::before { background: radial-gradient(ellipse at 50% 40%, rgba(102, 221, 235, .2), transparent 62%); content: ""; inset: 0; pointer-events: none; position: absolute; }
.download-hero-inner { position: relative; z-index: 1; }
.download-hero .section-kicker { margin-bottom: 26px; }
.download-hero h1 { color: var(--ink); font-size: clamp(50px, 5.8vw, 78px); font-weight: 500; letter-spacing: -.075em; line-height: 1.08; margin: 0; }
.download-hero h1 em { color: var(--cyan-deep); font-family: var(--serif); font-style: normal; font-weight: 500; letter-spacing: -.02em; }
.download-subtitle { color: #53636d; font-size: 15px; letter-spacing: .06em; margin: 24px 0 0; }
.download-note { color: #8b979f; font-size: 12px; line-height: 1.9; margin: 18px auto 0; max-width: 660px; }

.platform-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.platform-button { align-items: center; background: transparent; border: 1px solid rgba(16, 33, 49, .34); border-radius: 999px; color: var(--ink); display: inline-flex; font-size: 14px; gap: 10px; justify-content: center; min-width: 220px; padding: 13px 27px; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.platform-button:hover, .platform-button:focus-visible { background: #fff; border-color: var(--ink); box-shadow: 0 12px 26px rgba(16, 33, 49, .09); transform: translateY(-1px); }
.platform-icon { display: inline-flex; }
.platform-icon svg { display: block; fill: currentColor; height: 17px; width: 17px; }
.platform-name { font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.platform-badge { background: var(--cyan-deep); border-radius: 999px; color: #fff; display: none; font-size: 10px; letter-spacing: .02em; padding: 3px 8px; }
.platform-button.is-disabled { border-color: rgba(16, 33, 49, .14); color: #9aa7ae; cursor: default; }
.platform-button.is-disabled:hover { background: transparent; border-color: rgba(16, 33, 49, .14); box-shadow: none; transform: none; }
.platform-flag { border: 1px solid currentColor; border-radius: 3px; font-size: 10px; letter-spacing: .03em; padding: 1px 5px; }

/* 微信内引导：箭头指向右上角菜单 */
.wechat-guide { background: rgba(7, 17, 31, .9); inset: 0; position: fixed; z-index: 100; }
.wechat-guide[hidden] { display: none; }
body.is-guide-open { overflow: hidden; }
.wechat-guide-arrow { color: #fff; position: absolute; right: 8px; top: calc(4px + env(safe-area-inset-top, 0px)); width: 104px; }
.wechat-guide-arrow svg { animation: wechat-arrow 1.8s ease-in-out infinite; display: block; height: auto; width: 100%; }
.wechat-guide-panel { left: 50%; position: absolute; text-align: center; top: 34%; transform: translateX(-50%); width: min(320px, calc(100% - 64px)); }
.wechat-guide-title { color: #fff; font-size: 19px; font-weight: 600; letter-spacing: .02em; margin: 0 0 14px; }
.wechat-guide-desc { color: #c7d6db; font-size: 13px; line-height: 2; margin: 0; }
.wechat-guide-dots { border: 1px solid rgba(255, 255, 255, .4); border-radius: 4px; color: #fff; display: inline-block; letter-spacing: 1px; margin: 0 4px; padding: 0 7px; }
.wechat-guide-close { background: transparent; border: 1px solid rgba(209, 239, 242, .5); color: #eaf7f9; font-size: 13px; margin-top: 30px; padding: 11px 26px; transition: border-color .2s ease, color .2s ease; }
.wechat-guide-close:hover { border-color: var(--cyan); color: var(--cyan); }
@keyframes wechat-arrow { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(5px, -5px); } }

/* 手机矩阵：三列等高，底部渐隐裁切 */
.device-mobile { display: none; }
.device-stage { display: grid; gap: clamp(14px, 2.4vw, 32px); grid-template-columns: repeat(3, 1fr); height: clamp(480px, 46vw, 620px); margin: clamp(44px, 5.5vw, 72px) auto 0; max-width: 980px; overflow: hidden; position: relative; }
.device-stage::after { background: linear-gradient(180deg, rgba(245, 246, 242, 0), var(--paper) 80%); bottom: 0; content: ""; height: 26%; left: 0; pointer-events: none; position: absolute; right: 0; z-index: 2; }
.device { align-self: start; background: #0b1118; border: 9px solid #141d26; border-radius: 40px; box-shadow: 0 26px 60px rgba(7, 17, 31, .16); overflow: hidden; position: relative; width: 100%; }
.device::before { background: #141d26; border-radius: 0 0 13px 13px; content: ""; height: 20px; left: 50%; position: absolute; top: 0; transform: translateX(-50%); width: 34%; z-index: 2; }
.device img { display: block; height: auto; width: 100%; }
.device-left, .device-right { transform: translateY(clamp(24px, 3vw, 44px)); }
.device-center { aspect-ratio: 390 / 844; background: #07111f; display: flex; }
.device-qr { align-items: center; display: flex; flex-direction: column; gap: 16px; justify-content: center; padding: 0 20px; width: 100%; }
.device-qr-brand { color: #9aeaf2; font-size: 11px; letter-spacing: .2em; }
.device-qr img { background: #fff; border-radius: 12px; height: auto; padding: 8px; width: 58%; }
.device-qr p { color: #c7d6db; font-size: 11px; letter-spacing: .12em; margin: 0; }

/* 安装指引 */
.download-steps { background: var(--paper); padding: 108px 0 104px; }
.steps-heading { align-items: end; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.steps-heading h2 { color: var(--ink); font-size: clamp(40px, 4.2vw, 60px); font-weight: 500; letter-spacing: -.075em; line-height: 1.16; margin: 0; }
.steps-heading h2 em { color: var(--cyan-deep); font-family: var(--serif); font-style: normal; font-weight: 500; letter-spacing: -.06em; }
.steps-intro { color: var(--body); font-size: 14px; line-height: 2; margin: 0 0 8px; max-width: 430px; }
.steps-grid { border-top: 1px solid var(--line-light); display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 58px 0 0; padding: 0; }
.step { border-right: 1px solid var(--line-light); padding: 32px 34px 0 0; }
.step + .step { padding-left: 34px; }
.step:last-child { border-right: 0; padding-right: 0; }
.step-index { color: var(--cyan-deep); font-size: 12px; letter-spacing: .12em; }
.step h3 { color: var(--ink); font-size: 21px; font-weight: 600; letter-spacing: -.04em; margin: 20px 0 12px; }
.step p { color: var(--body); font-size: 13px; line-height: 1.95; margin: 0; }
.steps-note { border-top: 1px solid var(--line-light); color: var(--muted); font-size: 12px; line-height: 1.9; margin: 54px 0 0; padding-top: 22px; }

@media (max-width: 1100px) {
  .download-hero { padding-top: 76px; }
  .download-note { max-width: 560px; }
  .steps-heading { gap: 32px; }
  .step { padding-right: 26px; }
  .step + .step { padding-left: 26px; }
}

@media (max-width: 760px) {
  .download-hero { padding: 58px 0 56px; }
  .download-hero .section-kicker { margin-bottom: 18px; }
  .download-hero h1 { font-size: clamp(44px, 12.2vw, 56px); }
  .download-subtitle { font-size: 13px; letter-spacing: .04em; margin-top: 18px; }
  .download-note { font-size: 11px; margin-top: 14px; }
  .platform-actions { flex-direction: column; gap: 10px; margin: 26px auto 0; max-width: 420px; }
  .platform-button { background: #fff; border-color: rgba(16, 33, 49, .14); border-radius: 14px; font-size: 15px; justify-content: flex-start; min-width: 0; padding: 15px 18px; width: 100%; }
  .platform-button.is-recommended { border-color: var(--cyan-deep); order: -1; }
  .platform-button.is-recommended .platform-badge { display: inline-block; }
  .platform-badge { margin-left: auto; }
  .platform-button.is-disabled { background: transparent; }
  .platform-flag { margin-left: auto; }
  .wechat-guide-arrow { width: 92px; }
  .device-stage { display: none; }
  .device-mobile { display: flex; justify-content: center; margin-top: 34px; }
  .device-mobile .device { width: clamp(196px, 56vw, 236px); }
  .download-steps { padding: 72px 0 76px; }
  .steps-heading { display: block; }
  .steps-heading h2 { font-size: 40px; }
  .steps-intro { font-size: 13px; margin-top: 26px; max-width: none; }
  .steps-grid { display: block; margin-top: 38px; }
  .step, .step + .step { border-bottom: 1px solid var(--line-light); border-right: 0; padding: 24px 0; }
  .step:last-child { border-bottom: 0; }
  .step h3 { font-size: 19px; margin: 14px 0 9px; }
  .steps-note { margin-top: 32px; }
}
