/* ===== QuickQ 下载页样式 ===== */

.download-hero {
  padding: 160px 0 60px;
}

/* ===== 下载卡片区 ===== */
.download-section {
  padding: 20px 0 80px;
  position: relative;
  z-index: 1;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.download-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: var(--transition);
}

.download-card:hover {
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.download-card.featured-platform {
  border-color: rgba(0, 102, 255, 0.35);
  position: relative;
}

.download-card.featured-platform::before {
  content: '推荐';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

.dc-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.dc-icon {
  width: 72px;
  height: 72px;
  background: rgba(0, 102, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
  transition: var(--transition);
}

.download-card:hover .dc-icon {
  background: var(--gradient-hero);
  color: #fff;
}

.dc-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dc-version {
  display: block;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.dc-date {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dc-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(0, 102, 255, 0.05);
  border-radius: var(--radius-md);
}

.dc-meta-item {
  text-align: center;
}

.meta-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-value {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.dc-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.dc-actions .btn {
  width: 100%;
}

.dc-hash {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Consolas', 'Courier New', monospace;
  word-break: break-all;
  text-align: center;
}

/* ===== 安装指引 ===== */
.download-guide {
  padding: 80px 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}

.guide-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.guide-step {
  text-align: center;
  padding: 32px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex: 1;
  max-width: 260px;
  transition: var(--transition);
}

.guide-step:hover {
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: var(--shadow-lg);
}

.step-number {
  font-size: 40px;
  font-weight: 900;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.guide-step h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.guide-arrow {
  color: var(--primary-light);
  flex-shrink: 0;
  padding: 0 8px;
  animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

/* ===== 更新日志 ===== */
.changelog {
  padding: 80px 0 100px;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}

.changelog-list {
  max-width: 720px;
  margin: 0 auto;
}

.changelog-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.changelog-item:last-child {
  border-bottom: none;
}

.cl-version {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-light);
  min-width: 80px;
}

.cl-date {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 100px;
  padding-top: 2px;
}

.cl-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
  margin: 0;
}

/* ===== 下载弹窗 ===== */
.download-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.download-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  max-width: 440px;
  width: 90%;
  animation: modalIn 0.4s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.1);
}

.modal-icon {
  margin-bottom: 24px;
}

.modal-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-content > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.modal-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-hero);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  min-width: 36px;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.modal-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.modal-dl-btn {
  width: 100%;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .download-grid {
    grid-template-columns: 1fr;
  }

  .guide-steps {
    flex-direction: column;
    gap: 20px;
  }

  .guide-step {
    max-width: 100%;
  }

  .guide-arrow {
    transform: rotate(90deg);
  }

  @keyframes arrowBounce {
    0%, 100% { transform: rotate(90deg) translateX(0); }
    50% { transform: rotate(90deg) translateX(8px); }
  }

  .dc-meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 12px;
  }

  .changelog-item {
    flex-direction: column;
    gap: 8px;
  }

  .cl-version, .cl-date {
    min-width: auto;
  }

  .modal-content {
    padding: 36px 24px;
  }
}

@media (max-width: 480px) {
  .dc-top {
    flex-direction: column;
    text-align: center;
  }

  .dc-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
