/* ============================================================
   万川官网 · 客户端下载
   浅色工具页，明确三个系统与安装后的连接步骤。
   ============================================================ */

.device-mark { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(47, 94, 201, .14); border-radius: 11px; background: linear-gradient(145deg, var(--bg-card), var(--bg-sunken)); box-shadow: 0 10px 24px -18px rgba(20, 59, 151, .55); }
.device-mark::before { content: ""; width: 13px; height: 13px; border: 1.5px solid #6f8de0; border-radius: 3px; }
.device-mark--mac::before { border-radius: 50% 50% 45% 45%; }
.device-mark--win::before { border-radius: 1px; box-shadow: inset 5px 0 0 transparent; }
.device-mark--win::after { content: ""; position: absolute; width: 13px; height: 1px; background: #6f8de0; box-shadow: 0 -6px 0 transparent; }
.device-mark--linux::before { border-radius: 50% 50% 42% 42%; }
.device-mark--linux::after { content: ""; position: absolute; bottom: 7px; width: 15px; height: 3px; border-bottom: 1px solid #6f8de0; border-radius: 50%; }

.download-options { position: relative; overflow: hidden; padding: 70px 0 88px; background: radial-gradient(circle at 50% 2%, rgba(89, 130, 230, .065), transparent 32%); }
.download-options::after { content: ""; position: absolute; top: 192px; left: 50%; width: min(980px, 76vw); height: 190px; border-radius: 50%; background: rgba(78, 117, 221, .07); filter: blur(76px); transform: translateX(-50%); pointer-events: none; }
.download-options .container { position: relative; z-index: 1; }
.download-options .section-head { margin: 0 auto 36px; text-align: center; }
.download-options .section-title,
.download-next .section-title { font-size: clamp(27px, 3vw, 36px); font-weight: 600; letter-spacing: -.025em; }
.download-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: hidden; border: 1px solid rgba(52, 92, 178, .16); border-radius: 20px; background: color-mix(in srgb, var(--bg-card) 82%, transparent); box-shadow: 0 26px 72px -54px rgba(29, 59, 128, .52), inset 0 1px color-mix(in srgb, var(--text) 10%, transparent); backdrop-filter: blur(16px); }
.download-grid::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent 5%, rgba(75, 121, 229, .56) 34%, rgba(247, 177, 78, .62) 66%, transparent 95%); pointer-events: none; }
.download-grid .card { position: relative; z-index: 1; min-height: 296px; display: flex; flex-direction: column; align-items: stretch; padding: 32px; border: 0; border-right: 1px solid rgba(52, 92, 178, .11); border-radius: 0; color: var(--text); background: linear-gradient(160deg, color-mix(in srgb, var(--bg-card) 76%, transparent), color-mix(in srgb, var(--bg-subtle) 58%, transparent)); box-shadow: none; text-decoration: none; cursor: pointer; transition: background .25s ease, box-shadow .25s ease; }
.download-grid .card:hover { z-index: 2; background: var(--bg-subtle); box-shadow: inset 0 -2px #3d6fde; }
.download-grid .card:focus-visible { z-index: 3; outline: 2px solid #3166d5; outline-offset: -3px; }
.download-grid .card:last-child { border-right: 0; }
.download-card-head { display: flex; align-items: center; justify-content: space-between; }
.download-card-head > span { padding: 5px 8px; border: 1px solid rgba(53, 94, 188, .11); border-radius: 6px; color: var(--text-muted); background: var(--bg-sunken); font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .055em; }
.download-grid .claim-title { margin-top: 40px; color: var(--text); font-size: 19px; font-weight: 600; }
.download-grid .claim-body { margin-top: 12px; color: var(--text-soft); font-size: 13.5px; line-height: 1.75; }
.download-link { display: inline-flex; align-items: center; gap: 10px; width: fit-content; margin-top: auto; color: var(--accent); font-size: 14px; font-weight: 650; text-decoration: none; transition: gap .2s ease, color .2s ease; }
.download-link::after { content: "\2197"; display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(34, 80, 182, .17); border-radius: 50%; font-size: 12px; }
.download-card:hover .download-link { gap: 14px; color: var(--accent-hover); }

.download-next { padding: 88px 0; }
.download-next-layout { display: block; }
.download-next .section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.download-next .section-head .eyebrow { justify-content: center; }
.download-next .section-lede { font-size: 14px; }
.download-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.download-steps li { min-height: 190px; padding: 27px; border-right: 1px solid var(--border-soft); }
.download-steps li:last-child { border-right: 0; }
.download-steps li > span { color: var(--moon-500); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.download-steps h3 { font-size: 16px; font-weight: 600; }
.download-steps li > div { margin-top: 44px; }
.download-steps p { margin-top: 8px; color: var(--text-soft); font-size: 13.5px; line-height: 1.7; }

.download-help { padding: 72px 0; }
.download-help-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 46px; align-items: center; padding: 34px 38px; border: 1px solid var(--border); border-radius: 17px; background: var(--bg-card); }
.download-help-card .eyebrow { margin-bottom: 10px; }
.download-help-card h2 { font-size: 24px; font-weight: 600; }
.download-help-card p:not(.eyebrow) { margin-top: 8px; color: var(--text-soft); font-size: 13.5px; }
.download-help-card .btn { grid-column: 2; grid-row: 1; }

@media (max-width: 980px) {
  .download-grid { grid-template-columns: minmax(0, 1fr); }
  .download-grid .card { min-height: 230px; border-right: 0; border-bottom: 1px solid rgba(52, 92, 178, .11); }
  .download-grid .card:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  .download-steps { grid-template-columns: minmax(0, 1fr); }
  .download-steps li { min-height: 150px; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .download-steps li:last-child { border-bottom: 0; }
  .download-steps li > div { margin-top: 28px; }
  .download-help-card { grid-template-columns: minmax(0, 1fr); }
  .download-help-card .btn { grid-column: 1; grid-row: auto; width: 100%; }
}

@media (max-width: 580px) {
  .download-options, .download-next { padding: 72px 0; }
  .download-grid .card { min-height: 220px; padding: 26px; }
  .download-grid .claim-title { margin-top: 32px; }
  .download-help-card { padding: 28px 24px; }
}
