/* Reset box-sizing inside download module scope */
.xqw-download * {
  box-sizing: border-box;
}

main.xqw-download {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.xqw-download {
  --blue: #3b82f6;
  --violet: #6338f6;
  --ink: #111827;
  --text: #344054;
  --muted: #667085;
  --line: #e5eaf2;
  
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(59,130,246,.15), transparent 28%),
    radial-gradient(circle at 88% 6%, rgba(99,56,246,.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 52%, #eef4fb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  position: relative;
}

.xqw-download a {
  color: inherit;
  text-decoration: none;
}

/* Fixed container width at exactly 1200px on PC viewports */
.xqw-wrap {
  width: 1200px;
  margin: 0 auto;
  padding: 46px 0 34px;
}

.xqw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--preview-width, 520px);
  gap: 40px;
  align-items: center;
  min-height: 550px;
}

.xqw-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px 0 8px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #f3f7ff;
  color: #2457c5;
  font-size: 14px;
  font-weight: 650;
}

.xqw-title {
  margin: 22px 0 0;
  max-width: 640px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 850;
}

.xqw-title span {
  color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
}

.xqw-desc {
  margin: 22px 0 0;
  max-width: 610px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.9;
}

.xqw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.xqw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 7px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.xqw-btn:hover {
  transform: translateY(-1px);
}

.xqw-btn-primary {
  min-width: 178px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 16px 34px rgba(59,130,246,.26);
}

.xqw-btn-plain {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.xqw-btn-plain:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.xqw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.xqw-meta span {
  display: flex;
  align-items: center;
}

.xqw-meta span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.xqw-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Adaptation of mobile phone style to a high-end PC client window frame */
.xqw-pc-client {
  width: var(--preview-width, 520px);
  max-width: 100%;
  height: 375px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(15,23,42,.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.xqw-pc-header {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.xqw-pc-dots {
  display: flex;
  gap: 6px;
}

.xqw-pc-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.xqw-pc-dots .dot.close { background: #ef4444; opacity: 0.8; }
.xqw-pc-dots .dot.minimize { background: #f59e0b; opacity: 0.8; }
.xqw-pc-dots .dot.maximize { background: #10b981; opacity: 0.8; }

.xqw-pc-title-text {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.xqw-pc-search-mock {
  margin-left: auto;
  width: 120px;
  height: 20px;
  border-radius: 999px;
  background: #edf1f6;
}

.xqw-pc-body {
  flex: 1;
  display: grid;
  grid-template-columns: 50px 1fr;
  background: #f8fafc;
}

.xqw-pc-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
}

.xqw-pc-sidebar .xqw-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6338f6);
}

.xqw-pc-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.xqw-pc-menu .menu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
}

.xqw-pc-menu .menu-dot.active {
  background: var(--blue);
}

.xqw-pc-feed {
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.xqw-compose {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15,23,42,.03);
  margin-bottom: 12px;
}

.xqw-compose .xqw-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6338f6);
}

.xqw-placeholder {
  flex: 1;
  height: 20px;
  border-radius: 999px;
  background: #f1f5f9;
}

.xqw-post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15,23,42,.03);
  padding: 12px;
}

.xqw-post-head {
  display: flex;
  gap: 9px;
  margin-bottom: 10px;
}

.xqw-post-head .xqw-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6338f6);
}

.xqw-lines {
  flex: 1;
  padding-top: 3px;
}

.xqw-line {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  margin-bottom: 6px;
}

.xqw-line.s { width: 42%; }
.xqw-line.m { width: 72%; }
.xqw-line.l { width: 92%; }

.xqw-image {
  height: 110px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(99,56,246,.1)), #eef4ff;
  border: 1px solid #e5eaf2;
}

.xqw-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.xqw-actions-row i {
  width: 32px;
  height: 7px;
  border-radius: 999px;
  background: #edf1f6;
  display: inline-block;
}

/* Platforms Grid */
.xqw-platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.xqw-platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15,23,42,.03);
}

.xqw-platform strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--ink);
}

.xqw-platform p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.xqw-badge {
  padding: 7px 10px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.xqw-badge.soon {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ede9fe;
}


/* Specs & Update Timeline Card Layout */
.xqw-specs-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.xqw-spec-card,
.xqw-changelog-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 12px rgba(15,23,42,.01);
}

.xqw-spec-card b,
.xqw-changelog-card b {
  display: block;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
}

.xqw-spec-table {
  width: 100%;
  border-collapse: collapse;
}

.xqw-spec-table th,
.xqw-spec-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: left;
}

.xqw-spec-table th {
  width: 100px;
  font-weight: 600;
  color: var(--text);
}

.xqw-spec-table td {
  color: var(--ink);
}

.spec-hash {
  font-family: Consolas, Monaco, monospace;
  font-size: 11px;
  color: var(--blue);
  line-height: 1.5;
}

/* Timeline updates list */
.xqw-timeline-item {
  position: relative;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.v-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  padding: 2px 6px;
  border-radius: 4px;
}

.v-date {
  font-size: 12px;
  color: var(--muted);
}

.xqw-changelog-card ul {
  margin: 0;
  padding-left: 16px;
}

.xqw-changelog-card li {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 6px;
}

/* Note block */
.xqw-note {
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.8);
  color: #475467;
  font-size: 13px;
  line-height: 1.8;
  box-shadow: 0 4px 12px rgba(15,23,42,.01);
}
/* Features Grid */
.xqw-features-section {
  margin-top: 24px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 12px rgba(15,23,42,.01);
}

.xqw-features-section .xqw-section-head {
  text-align: center;
  margin-bottom: 30px;
}

.xqw-features-section .xqw-section-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.xqw-features-section .xqw-section-head p {
  margin: 10px auto 0;
  max-width: 680px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.xqw-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.xqw-feature-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15,23,42,.02);
  transition: all 0.25s ease;
}

.xqw-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15,23,42,.04);
}

.xqw-feature-card b {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--ink);
}

.xqw-feature-card b i {
  color: var(--blue);
  margin-right: 6px;
  font-size: 16px;
  vertical-align: -1px;
}

.xqw-feature-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* Custom Preview Image Container */
.xqw-preview-image-container {
  width: var(--preview-width, 520px);
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(15,23,42,.12);
  overflow: hidden;
}

.xqw-preview-image-container img {
  display: block;
  width: 100%;
  height: auto;
}

/* Multi-Image Carousel Component */
.xqw-carousel-container {
  position: relative;
  width: var(--preview-width, 520px);
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(15,23,42,.14);
  overflow: hidden;
  background: #0f172a;
}

.xqw-carousel-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.xqw-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s ease;
  transform: scale(1.02);
}

.xqw-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.xqw-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xqw-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(0deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 60%, transparent 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.xqw-slide-caption strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.xqw-slide-caption span {
  font-size: 12px;
  opacity: 0.82;
}

.xqw-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 10;
}

.xqw-carousel-container:hover .xqw-carousel-btn {
  opacity: 0.9;
}

.xqw-carousel-btn:hover {
  opacity: 1 !important;
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.xqw-carousel-btn.prev { left: 12px; }
.xqw-carousel-btn.next { right: 12px; }

.xqw-carousel-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.xqw-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
}

.xqw-dot.active {
  width: 22px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* Download Matrix Section (全终端客户端官方下载通道) */
.xqw-download-matrix-section {
  margin-top: 24px;
}

.xqw-download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.xqw-dl-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,23,42,.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.xqw-dl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15,23,42,.07);
  border-color: #cbd5e1;
}

.xqw-dl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.xqw-dl-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--blue);
}

.xqw-dl-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
}

.xqw-dl-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.xqw-dl-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.xqw-dl-points {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.xqw-dl-points li {
  font-size: 12px;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.xqw-dl-points li i {
  color: var(--blue);
  font-size: 14px;
}

.xqw-dl-card-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xqw-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(59,130,246,.2);
  transition: all 0.2s ease;
}

.xqw-dl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(59,130,246,.3);
}

.xqw-dl-size {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* Quick Start Installation Guides (3秒快速上手指南) */
.xqw-guides-section {
  margin-top: 24px;
  padding: 36px 40px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.xqw-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.xqw-guide-card {
  position: relative;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.xqw-guide-step {
  font-size: 26px;
  font-weight: 900;
  color: var(--blue);
  opacity: 0.3;
  margin-bottom: 4px;
}

.xqw-guide-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.xqw-guide-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* Responsive adjustment (fallback) */
@media (max-width: 1240px) {
  .xqw-wrap {
    width: 100%;
    padding: 20px 18px 22px;
  }
}

@media (max-width: 920px) {
  .xqw-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 30px;
  }
  
  .xqw-title {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.08;
  }
  
  .xqw-desc {
    font-size: 15px;
    line-height: 1.8;
  }
  
  .xqw-actions {
    flex-direction: column;
  }
  
  .xqw-btn {
    width: 100%;
    min-height: 50px;
  }
  
  .xqw-platforms,
  .xqw-download-grid,
  .xqw-guides-grid,
  .xqw-specs-section,
  .xqw-features-grid {
    grid-template-columns: 1fr;
  }
  
  .xqw-platform {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px;
  }
}

