/* ==================== 下载页面专属样式 ==================== */

/* Hero 区 */
.dl-hero {
  margin-top: var(--nav-height);
  background: var(--bg-card);
  padding: 100px 24px 100px;
  text-align: center;
  min-height: calc(100vh - var(--nav-height) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-hero-inner {
  max-width: 600px;
  margin: 0 auto;
}
.dl-hero-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 0 auto 28px;
}
.dl-hero-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.dl-hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 44px;
  line-height: 1.7;
}
.dl-hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.dl-hero-btns .dl-btn {
  cursor: pointer;
}

/* ==================== 弹窗蒙层 ==================== */
.dl-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.dl-modal.open {
  display: flex;
}
.dl-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dl-modal-content {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 40px;
  max-width: 720px;
  width: calc(100% - 48px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  animation: modalSlideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.dl-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-base);
  line-height: 1;
}
.dl-modal-close:hover {
  background: var(--bg-page);
  color: var(--text-primary);
}
.dl-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
  padding-right: 40px;
}

/* ==================== 横排行布局 ==================== */
.dl-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 24px;
  border-radius: var(--radius-base);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
}

/* Android 多行容器 */
.dl-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 商店名称 */
.dl-row-name {
  flex: 0 0 110px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

/* 按钮区域 */
.dl-row-btn {
  flex: 1;
}
.dl-big-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-primary);
  color: var(--text-inverse);
  border-radius: var(--radius-base);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-smooth);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.dl-big-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* 二维码区域 */
.dl-row-qr {
  flex: 0 0 auto;
  text-align: center;
}
.dl-qr-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.dl-qr {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.dl-qr img {
  width: 108px;
  height: 108px;
}

/* 导航 active 状态 */
.nav-link.active {
  color: #FFFFFF;
}
.nav-link.active::after {
  left: 0;
  right: 0;
  background: var(--color-accent);
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .dl-hero {
    padding: 64px 20px 64px;
    min-height: auto;
  }
  .dl-hero-logo {
    width: 68px;
    height: 68px;
  }
  .dl-hero-title {
    font-size: 30px;
  }
  .dl-modal-content {
    padding: 28px 20px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 48px);
  }
  .dl-modal-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .dl-row {
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
  }
  .dl-row-name {
    flex: 0 0 100%;
    text-align: center;
  }
  .dl-row-btn {
    flex: 0 0 100%;
    text-align: center;
  }
  .dl-row-qr {
    flex: 0 0 100%;
  }
  .dl-big-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
  .dl-qr {
    width: 108px;
    height: 108px;
    margin: 0 auto;
  }
  .dl-qr img {
    width: 96px;
    height: 96px;
  }
}
