/* App 公开下载页（蒲公英风格结构 + Baby 视觉） */

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

.dl-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--border);
}

.dl-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 10px 0;
}

.dl-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.dl-brand:hover {
  color: var(--pink);
}

.dl-platform-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
}

.dl-platform-tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.dl-platform-tab.is-active,
.dl-platform-tab:hover {
  color: #fff;
  background: var(--pink);
}

.dl-main {
  padding-bottom: 48px;
}

.dl-hero {
  padding: 48px 0 24px;
}

.dl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.dl-hero-info {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.dl-icon-wrap {
  flex-shrink: 0;
}

.dl-icon {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.dl-icon--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
}

.dl-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--text);
}

.dl-platform-hint {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.dl-tagline {
  color: var(--text-secondary);
  max-width: 42ch;
  margin-bottom: 18px;
}

.dl-empty-platform {
  max-width: 42ch;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(232, 137, 171, 0.4);
}

.dl-meta-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 22px;
}

.dl-meta-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 96px;
}

.dl-meta-list span {
  font-size: 12px;
  color: var(--text-secondary);
}

.dl-meta-list strong {
  font-size: 14px;
  font-weight: 650;
}

.dl-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.dl-install-btn {
  min-width: 168px;
  padding: 14px 28px;
}

.dl-install-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.dl-scan-hint {
  font-size: 13px;
  color: var(--text-secondary);
}

.dl-qr-panel {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 16px;
}

.dl-qr-card {
  width: 220px;
  padding: 16px 16px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.dl-qr-card img {
  display: block;
  width: 188px;
  height: 188px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: #fff;
}

.dl-qr-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.dl-section {
  padding: 28px 0;
}

.dl-section-title {
  font-size: 1.25rem;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.dl-about-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dl-about-item {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.dl-about-item span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.dl-about-item strong {
  font-size: 15px;
}

.dl-version-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-version-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.dl-version-main h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.dl-version-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.dl-version-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 68ch;
}

.dl-version-link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.dl-version-link:hover {
  border-color: rgba(106, 168, 224, 0.45);
  color: var(--blue-dark);
}

.dl-changelog {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--pink-soft);
  border: 1px solid rgba(232, 137, 171, 0.28);
}

.dl-changelog h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--pink);
}

.dl-richtext {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
  word-break: break-word;
}

.dl-intro.is-collapsed {
  max-height: 200px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
}

.dl-intro.is-expanded {
  max-height: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.dl-expand-btn {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
}

.dl-shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.dl-shot {
  flex: 0 0 auto;
  width: min(220px, 62vw);
  scroll-snap-align: start;
}

.dl-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.dl-shot figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.dl-disclaimer ol {
  padding-left: 1.2em;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
}

.dl-disclaimer li + li {
  margin-top: 6px;
}

@media (max-width: 860px) {
  .dl-hero-grid {
    grid-template-columns: 1fr;
  }

  .dl-qr-panel {
    justify-content: flex-start;
  }

  .dl-about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dl-topbar-inner {
    flex-wrap: wrap;
  }

  .dl-hero {
    padding-top: 28px;
  }

  .dl-hero-info {
    flex-direction: column;
    align-items: stretch;
  }

  .dl-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }

  .dl-about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dl-qr-card {
    width: 168px;
    padding: 12px;
  }

  .dl-qr-card img {
    width: 144px;
    height: 144px;
  }

  .dl-version-row {
    flex-direction: column;
  }
}
