/* ============================================================
   PAGE: /app-download/  APP下载与客户端说明
   Scope: .page-products
   ============================================================ */

.page-products {
  --pc-line: rgba(229, 231, 235, 0.14);
  --pc-card-bg: linear-gradient(160deg, rgba(15, 42, 74, 0.7) 0%, rgba(5, 11, 26, 0.78) 100%);
  --pc-radius: 2px;

  background: var(--color-abyss);
  color: var(--color-white);
  overflow-x: hidden;
}

/* ---------- 1. HERO / 下载入口 ---------- */

.page-products .products-hero {
  position: relative;
  padding: 40px 0 52px;
  background:
    radial-gradient(ellipse at 82% 8%, rgba(123, 47, 247, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse at 12% 94%, rgba(0, 207, 253, 0.14) 0%, transparent 48%),
    linear-gradient(180deg, var(--color-space) 0%, var(--color-abyss) 100%);
}

.page-products .products-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(229, 231, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 231, 235, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.page-products .products-hero .container {
  position: relative;
  z-index: 1;
}

.page-products .breadcrumb {
  margin-bottom: 36px;
  font-size: 13px;
  color: rgba(229, 231, 235, 0.55);
}

.page-products .hero-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-products .hero-copy .display-title {
  margin-top: 14px;
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 100;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-products .title-accent {
  background: linear-gradient(120deg, #00CFFD 0%, #7B2FF7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 300;
}

.page-products .hero-copy .lede {
  margin-top: 20px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(229, 231, 235, 0.8);
}

.page-products .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-products .hero-actions .btn {
  padding: 13px 26px;
  font-size: 14px;
}

.page-products .hero-actions .btn-primary {
  background: linear-gradient(120deg, #7B2FF7 0%, #5F1EE8 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-products .hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(123, 47, 247, 0.4);
}

.page-products .hero-actions .btn-ghost {
  border: 1px solid rgba(229, 231, 235, 0.3);
  background: transparent;
  color: var(--color-white);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.page-products .hero-actions .btn-ghost:hover {
  border-color: var(--color-cyan);
  background: rgba(0, 207, 253, 0.08);
}

.page-products .hero-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(0, 207, 253, 0.16) 0%, rgba(123, 47, 247, 0.28) 100%), var(--color-night);
  box-shadow: 0 24px 80px rgba(5, 11, 26, 0.65);
  border-radius: var(--pc-radius);
}

.page-products .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(255, 159, 28, 0.14));
  pointer-events: none;
}

.page-products .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- System Requirements ---------- */

.page-products .sys-requirements {
  margin-top: 44px;
  position: relative;
  background: linear-gradient(180deg, rgba(15, 42, 74, 0.75) 0%, rgba(5, 11, 26, 0.85) 100%);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  overflow: hidden;
  padding: 26px 24px;
}

.page-products .sys-requirements::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #7B2FF7 0%, #00CFFD 60%, transparent 100%);
}

.page-products .sys-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.page-products .sys-head h2 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0;
}

.page-products .sys-grid {
  display: grid;
  gap: 12px;
}

.page-products .sys-item {
  padding: 16px 18px;
  background: rgba(5, 11, 26, 0.5);
  border: 1px solid rgba(229, 231, 235, 0.07);
  transition: border-color 0.3s var(--ease);
}

.page-products .sys-item:hover {
  border-color: rgba(0, 207, 253, 0.35);
}

.page-products .sys-label {
  display: block;
  font-family: var(--font-accent);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 8px;
}

.page-products .sys-value {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- 2. VERSIONS / 版本档案 ---------- */

.page-products .products-versions {
  padding: 68px 0 52px;
  background: var(--color-abyss);
}

.page-products .section-head {
  margin-bottom: 36px;
  max-width: 720px;
}

.page-products .section-head .eyebrow {
  color: var(--color-gold);
  letter-spacing: 0.22em;
  font-size: 12px;
  text-transform: uppercase;
}

.page-products .section-head h2 {
  margin-top: 10px;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 200;
  line-height: 1.25;
}

.page-products .section-head .lede {
  margin-top: 14px;
  color: rgba(229, 231, 235, 0.68);
  font-size: 15px;
  line-height: 1.8;
}

.page-products .version-layout {
  display: grid;
  gap: 32px;
}

.page-products .version-timeline {
  position: relative;
  padding: 4px 0;
}

.page-products .timeline-item {
  position: relative;
  padding-left: 26px;
  padding-bottom: 30px;
  border-left: 1px solid rgba(229, 231, 235, 0.15);
}

.page-products .timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.page-products .timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-space);
  border: 2px solid var(--color-cyan);
  box-shadow: 0 0 12px rgba(0, 207, 253, 0.55);
}

.page-products .timeline-item.is-current::before {
  background: var(--color-violet);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.16);
}

.page-products .timeline-content {
  padding: 22px 24px;
  background: var(--pc-card-bg);
  border: 1px solid rgba(229, 231, 235, 0.09);
  border-radius: var(--pc-radius);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.page-products .timeline-item:hover .timeline-content {
  transform: translateX(4px);
  border-color: rgba(123, 47, 247, 0.5);
  box-shadow: 0 16px 40px rgba(5, 11, 26, 0.55);
}

.page-products .timeline-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.page-products .version-no {
  font-family: var(--font-accent);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-gold);
}

.page-products .version-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  margin: 0;
}

.page-products .version-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .version-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(229, 231, 235, 0.72);
}

.page-products .version-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--color-cyan);
  transform: rotate(45deg);
}

.page-products .version-file-link {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(229, 231, 235, 0.6);
}

.page-products .version-file-link a {
  color: var(--color-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 207, 253, 0.35);
  transition: border-color 0.3s, color 0.3s;
}

.page-products .version-file-link a:hover {
  color: var(--color-gold);
  border-color: rgba(255, 159, 28, 0.5);
}

.page-products .version-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-products .version-figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(229, 231, 235, 0.1);
  border-radius: var(--pc-radius);
  box-shadow: 0 20px 60px rgba(5, 11, 26, 0.5);
  background: var(--color-night);
}

.page-products .version-figure--narrow {
  aspect-ratio: 7 / 4;
  margin-left: auto;
  max-width: 92%;
}

.page-products .version-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-products .version-figure figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(5, 11, 26, 0.75);
  border-left: 2px solid var(--color-gold);
  backdrop-filter: blur(4px);
}

/* ---------- 3. STEPS / 安装步骤 ---------- */

.page-products .products-steps {
  padding: 56px 0 64px;
  background:
    radial-gradient(ellipse at 10% 40%, rgba(123, 47, 247, 0.1) 0%, transparent 50%),
    var(--color-space);
}

.page-products .steps-layout {
  display: grid;
  gap: 36px;
  align-items: start;
}

.page-products .steps-visual {
  aspect-ratio: 5 / 3;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(229, 231, 235, 0.1);
  border-radius: var(--pc-radius);
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.3) 0%, rgba(0, 207, 253, 0.12) 100%), var(--color-night);
}

.page-products .steps-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-products .steps-visual figcaption {
  padding: 8px 4px 0;
  font-size: 13px;
  color: rgba(229, 231, 235, 0.6);
}

.page-products .steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-products .step-card {
  background: linear-gradient(160deg, rgba(15, 42, 74, 0.6), rgba(5, 11, 26, 0.7));
  border: 1px solid rgba(229, 231, 235, 0.12);
  border-radius: var(--pc-radius);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-products .step-card[open] {
  border-color: rgba(0, 207, 253, 0.45);
  box-shadow: 0 10px 30px rgba(5, 11, 26, 0.4);
}

.page-products .step-card summary {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
}

.page-products .step-card summary::-webkit-details-marker {
  display: none;
}

.page-products .step-card summary::after {
  content: "+";
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
  color: var(--color-cyan);
  transition: transform 0.3s var(--ease);
}

.page-products .step-card[open] summary::after {
  content: "−";
}

.page-products .step-index {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-cyan);
  border: 1px solid rgba(0, 207, 253, 0.4);
  background: rgba(0, 207, 253, 0.07);
}

.page-products .step-card[open] .step-index {
  background: rgba(0, 207, 253, 0.2);
  color: var(--color-white);
}

.page-products .step-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
}

.page-products .step-detail {
  padding: 2px 20px 20px 68px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(229, 231, 235, 0.7);
}

.page-products .step-detail p {
  margin: 0;
}

/* ---------- 4. FAQ / 常见下载问题 ---------- */

.page-products .products-faq {
  padding: 64px 0 20px;
  background: var(--color-abyss);
}

.page-products .faq-visual {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  margin: 0 0 28px;
  border: 1px solid rgba(229, 231, 235, 0.08);
  border-radius: var(--pc-radius);
  background: var(--color-night);
}

.page-products .faq-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-products .faq-grid {
  display: grid;
  gap: 16px;
}

.page-products .faq-card {
  padding: 24px;
  background: linear-gradient(160deg, rgba(15, 42, 74, 0.45) 0%, rgba(5, 11, 26, 0.8) 100%);
  border: 1px solid rgba(229, 231, 235, 0.1);
  border-radius: var(--pc-radius);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.page-products .faq-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 207, 253, 0.4);
  box-shadow: 0 16px 40px rgba(5, 11, 26, 0.6);
}

.page-products .faq-question {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  margin: 0 0 12px;
  line-height: 1.5;
}

.page-products .faq-question::before {
  content: "";
  flex: 0 0 4px;
  width: 4px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--color-gold), var(--color-violet));
}

.page-products .faq-answer {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(229, 231, 235, 0.7);
}

.page-products .faq-cta {
  margin-top: 40px;
  padding: 28px 24px;
  background: linear-gradient(120deg, rgba(123, 47, 247, 0.14) 0%, rgba(0, 207, 253, 0.08) 100%), rgba(5, 11, 26, 0.7);
  border: 1px solid rgba(229, 231, 235, 0.12);
  border-radius: var(--pc-radius);
  position: relative;
  overflow: hidden;
}

.page-products .faq-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-aurora);
}

.page-products .faq-cta h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 400;
}

.page-products .faq-cta p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(229, 231, 235, 0.75);
}

.page-products .faq-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.page-products .faq-cta-actions .btn {
  padding: 12px 22px;
  font-size: 14px;
}

.page-products .faq-cta-meta {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(229, 231, 235, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ---------- MEDIA QUERIES ---------- */

@media (min-width: 768px) {
  .page-products .sys-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-products .products-hero {
    padding: 56px 0 64px;
  }

  .page-products .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }

  .page-products .sys-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .version-layout {
    grid-template-columns: 1fr 0.55fr;
    gap: 56px;
  }

  .page-products .steps-layout {
    grid-template-columns: 0.65fr 1.35fr;
    gap: 56px;
  }

  .page-products .steps-visual {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .page-products .faq-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
