/* Download Page Styles */

/* Hero Section（恢复原下载页样式，覆盖 home.css 的 hero-section） */
.hero-section {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  width: 100%;
  min-height: 350px;
  padding: 100px 20px 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
  opacity: 0.3;
  z-index: 0;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  text-align: center;
  color: white;
  z-index: 1;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 3px 6px rgba(0,0,0,0.12);
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 16px;
  line-height: 2;
  opacity: 0.95;
  font-weight: 400;
}

/* Main content width (keep header wider, keep below at 1200px) */
.download-container {
  max-width: 1200px;
  padding-left: 0;
  padding-right: 0;
}

.download-main {
  padding-top: var(--space-16);
  padding-bottom: 0px;
}

.download-section {
  margin-bottom: var(--space-16);
}

.download-section-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.download-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-glass);
  border: 1px solid rgba(0, 149, 255, 0.18);
  box-shadow: 0 14px 45px rgba(0, 149, 255, 0.18);
  color: var(--secondary-blue-dark);
  flex: 0 0 auto;
}

.download-section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.4px;
}

.download-section-subtitle {
  margin-top: 8px;
  color: var(--neutral-gray-600);
  line-height: 1.8;
  font-size: var(--text-sm);
}

.download-actions-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.download-action {
  grid-column: span 4;
  text-decoration: none;
  border: 1px solid var(--neutral-gray-200);
  position: relative;
}

.download-action::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.12) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.download-action:hover::before {
  opacity: 1;
}

.download-action-top {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8);
}

.download-action-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--neutral-white);
  background: var(--gradient-primary);
  box-shadow: 0 12px 30px rgba(0, 149, 255, 0.35);
  flex: 0 0 auto;
}

.download-action-badge-2 {
  background: var(--gradient-secondary);
  box-shadow: 0 12px 30px rgba(0, 149, 255, 0.25);
}

/* L5/L7：将 badge 改为 logo，图片贴合边框 */
.download-action-badge-logo {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 149, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 149, 255, 0.18);
  overflow: hidden;
  padding: 0;
}

.download-action-badge-logo img,
.download-action-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.download-action-badge-help {
  background: linear-gradient(135deg, rgb(54 105 224 / 92%) 0%, rgb(0 86 228 / 92%) 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.download-action-name {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--neutral-gray-900);
  letter-spacing: -0.2px;
}

.download-action-desc {
  margin-top: 6px;
  font-size: var(--text-sm);
  color: var(--neutral-gray-600);
  line-height: 1.6;
}

.download-action-cta {
  margin: 0 var(--space-8) var(--space-8);
  width: calc(100% - (var(--space-8) * 2));
  justify-content: center;
}

.download-action-help .download-action-cta {
  color: var(--neutral-gray-900);
  border-color: rgba(0, 149, 255, 0.15);
  background: rgba(0, 149, 255, 0.06);
  backdrop-filter: blur(10px);
}

.mirror-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.mirror-card {
  grid-column: span 3;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 22px 18px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(900px 180px at 50% -60px, rgba(0, 149, 255, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.80) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.mirror-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.14) 0%, transparent 55%);
  transform: translate3d(-10%, -10%, 0);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.mirror-card:hover::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.mirror-card:hover {
  border-color: rgba(0, 149, 255, 0.22);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.mirror-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.mirror-logo-wrap {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 26px rgba(0, 149, 255, 0.14);
}

.mirror-logo-svg {
  width: 44px;
  height: 44px;
  display: block;
}

.mirror-name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
  color: #0F172A;
  line-height: 1.2;
}

.download-video-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.download-video-card {
  grid-column: span 4;
  text-decoration: none;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #E8E8E8;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.download-video-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
}

.download-video-card > .btn-shift {
  display: block;
  transition: transform 0.3s ease;
}

.download-video-card:hover > .btn-shift {
  transform: translateY(-5px);
}

.download-video-thumbnail {
  position: relative;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  overflow: hidden;
}

.download-video-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.download-video-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  transition: all 0.3s ease;
  color: #4A90E2;
  font-size: 18px;
}

.download-video-card:hover .download-video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ffffff;
}

.download-video-info {
  padding: 20px;
}

.download-video-title {
  display: block;
  color: #2C3E50;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  transition: color 0.3s ease;
}

.download-video-card:hover .download-video-title {
  color: #4A90E2;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  background: #0095FF;
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.8);
  overflow: visible;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top.visible:hover {
  transform: translateY(0) scale(1);
  background: #1AA3FF;
  box-shadow: 0 10px 28px rgba(0, 149, 255, 0.45);
}

.back-to-top.visible:hover > .btn-shift {
  transform: translateY(-5px) scale(1.08);
}

.back-to-top.visible:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 6px 18px rgba(0, 149, 255, 0.35);
}

.back-to-top.visible:active > .btn-shift {
  transform: translateY(-2px) scale(1.02);
}

.back-to-top > .btn-shift {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top svg {
  position: relative;
  z-index: 1;
}

@keyframes back-to-top-ripple {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}

.back-to-top::before,
.back-to-top::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 149, 255, 0.5);
  pointer-events: none;
  animation: back-to-top-ripple 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.back-to-top::after {
  animation-delay: 1.2s;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Mobile side padding */
  .download-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-section {
    padding: 90px 20px 50px;
  }

  .download-section-header {
    gap: var(--space-3);
  }

  .download-actions-grid,
  .mirror-grid,
  .download-video-grid {
    gap: var(--space-4);
  }

  .download-action,
  .download-video-card {
    grid-column: span 12;
  }

  .mirror-card {
    grid-column: span 6;
  }

  .back-to-top {
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 30px;
  }
  
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-description {
    font-size: 14px;
  }
  
  .download-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  /* 网盘下载：移动端保持一行2个（两行展示4个） */
  .mirror-card {
    grid-column: span 6;
  }

  .download-action-top {
    padding: var(--space-6);
  }

  .download-action-cta {
    margin: 0 var(--space-6) var(--space-6);
    width: calc(100% - (var(--space-6) * 2));
  }

  .back-to-top {
    width: 46px;
    height: 46px;
    bottom: 20px;
    right: 20px;
  }
  
  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}

