/* ================= 客户端下载页 · page-products ================= */
.page-products {
  --accent-glow: rgba(100, 255, 218, 0.14);
  --orange-glow: rgba(255, 107, 53, 0.22);
  --gold-line: rgba(212, 175, 55, 0.35);
  --card-border: rgba(100, 255, 218, 0.14);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(61, 46, 109, 0.35), transparent 42%),
    var(--c-deep);
  color: var(--c-text);
  font-family: var(--font-body);
}

/* ----- 面包屑 ----- */
.page-products__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-size: 13px;
  color: var(--c-muted);
}
.page-products__crumb a {
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--trans-fast);
}
.page-products__crumb a:hover {
  color: var(--c-neon);
}

/* ----- Hero 区域 ----- */
.page-products__hero {
  position: relative;
  padding: 52px 0 88px;
}
.page-products__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 75% 18%, rgba(61, 46, 109, 0.42), transparent 55%),
    linear-gradient(130deg, var(--c-deep) 28%, var(--c-jewel) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.page-products__hero > .container {
  position: relative;
  z-index: 1;
}
.page-products__hero-inner {
  display: grid;
  gap: 56px;
  align-items: center;
}
.page-products__hero-copy {
  max-width: 620px;
}
.page-products__hero-label {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid rgba(100, 255, 218, 0.32);
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--c-neon);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.page-products__hero h1 {
  margin: 22px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--c-text);
}
.page-products__hero-lead {
  max-width: 560px;
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-muted);
}
.page-products__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.page-products__hero-actions .btn--orange {
  box-shadow: 0 10px 30px var(--orange-glow);
}
.page-products__hero-actions .btn--ghost {
  border-color: rgba(100, 255, 218, 0.4);
  color: var(--c-neon);
}
.page-products__hero-actions .btn--ghost:hover {
  background: var(--accent-glow);
}
.page-products__hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid rgba(229, 234, 240, 0.12);
}
.page-products__hero-points li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--c-muted);
}
.page-products__hero-points strong {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-neon);
}

/* ----- 手机模型 ----- */
.page-products__hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.page-products__hero-orbit {
  position: absolute;
  right: 2%;
  top: 50%;
  width: 310px;
  height: 310px;
  border: 1px dashed rgba(100, 255, 218, 0.28);
  border-radius: 50%;
  transform: translateY(-50%);
  display: none;
}
.page-products__phone-shell {
  position: relative;
  width: min(268px, 66vw);
  padding: 10px;
  border-radius: 40px;
  background: linear-gradient(150deg, #1c3f62, #0a2342 55%, #0d3b4f);
  border: 1px solid rgba(100, 255, 218, 0.3);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    0 0 50px var(--accent-glow);
  transform: rotate(1.5deg);
}
.page-products__phone-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
  object-fit: cover;
  background: var(--c-deep);
}
.page-products__phone-notch {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: var(--c-deep);
  opacity: 0.92;
}
.page-products__phone-home {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: rgba(229, 234, 240, 0.45);
}

/* ----- 小节通用 ----- */
.page-products__section-tag {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 14px;
  border-left: 3px solid var(--c-gold);
  background: rgba(212, 175, 55, 0.1);
  color: var(--c-gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.page-products__features,
.page-products__download,
.page-products__compat,
.page-products__changelog {
  padding: 56px 0;
}
.page-products__features h2,
.page-products__download h2,
.page-products__compat h2,
.page-products__changelog h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--c-text);
}
.page-products__features .section__header p,
.page-products__download .section__header p,
.page-products__compat-copy > p,
.page-products__changelog-copy > p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
  max-width: 600px;
  margin: 0 0 10px;
}

/* ----- 版本亮点网格 ----- */
.page-products__features-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.page-products__feature-card {
  position: relative;
  padding: 26px 22px;
  background: var(--c-deep-light);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color var(--trans-base),
    transform var(--trans-base),
    box-shadow var(--trans-base);
}
.page-products__feature-card::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 20px;
  height: 20px;
  border-left: 1px solid rgba(212, 175, 55, 0.6);
  border-bottom: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 0 0 0 8px;
  opacity: 0.55;
}
.page-products__feature-card:hover {
  border-color: rgba(100, 255, 218, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}
.page-products__feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--c-neon);
}
.page-products__feature-icon svg {
  width: 22px;
  height: 22px;
}
.page-products__feature-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
}
.page-products__feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}
.page-products__feature-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-right: 4px;
  color: var(--c-orange);
}

/* ----- 亮点横幅 ----- */
.page-products__features-banner {
  position: relative;
  min-height: 240px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--c-deep-light);
}
.page-products__features-banner img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}
.page-products__features-banner-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 24px 22px;
  background: linear-gradient(to top, rgba(10, 35, 66, 0.94) 10%, transparent);
}
.page-products__features-banner-copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text);
}
.page-products__features-banner-copy p {
  margin: 0;
  font-size: 14px;
  color: rgba(229, 234, 240, 0.75);
}

/* ----- 下载与安装 ----- */
.page-products__download {
  position: relative;
  padding: 72px 0 80px;
}
.page-products__download-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(100, 255, 218, 0.12), transparent 40%),
    linear-gradient(115deg, var(--c-deep-light), var(--c-jewel) 72%, var(--c-deep));
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}
.page-products__download > .container {
  position: relative;
  z-index: 1;
}
.page-products__download-layout {
  display: grid;
  gap: 28px;
  align-items: start;
  margin-top: 32px;
}
.page-products__download-cards {
  display: grid;
  gap: 16px;
}
.page-products__download-card {
  padding: 28px 24px;
  background: var(--c-deep);
  border: 1px solid rgba(100, 255, 218, 0.16);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--trans-base);
}
.page-products__download-card:hover {
  box-shadow:
    0 0 0 1px rgba(100, 255, 218, 0.15),
    0 18px 40px rgba(0, 0, 0, 0.3);
}
.page-products__download-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.page-products__platform {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-glow);
  color: var(--c-neon);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.page-products__version-badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--c-gold);
  font-size: 12px;
}
.page-products__download-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
}
.page-products__download-card p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}
.page-products__download-card .btn {
  width: 100%;
  justify-content: center;
}

/* ----- 二维码卡片 ----- */
.page-products__download-qr {
  padding: 32px 24px;
  background: var(--c-deep);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.page-products__qr-frame {
  position: relative;
  width: min(200px, 78%);
  margin: 0 auto 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(100, 255, 218, 0.18);
  border-radius: var(--radius-md);
}
.page-products__qr-frame::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  border: 1px dashed rgba(100, 255, 218, 0.25);
  pointer-events: none;
}
.page-products__qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.page-products__qr-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
}
.page-products__qr-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-muted);
}

/* ----- 兼容性说明 ----- */
.page-products__compat-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}
.page-products__compat-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-products__compat-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(18, 59, 94, 0.5);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--trans-fast),
    background var(--trans-fast);
}
.page-products__compat-list li:hover {
  border-color: rgba(100, 255, 218, 0.35);
  background: rgba(18, 59, 94, 0.8);
}
.page-products__compat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--c-neon);
}
.page-products__compat-icon svg {
  width: 20px;
  height: 20px;
}
.page-products__compat-list strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--c-text);
}
.page-products__compat-list li span {
  font-size: 13px;
  color: var(--c-muted);
}
.page-products__compat-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.page-products__compat-visual img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
}
.page-products__compat-float {
  position: absolute;
  bottom: 10%;
  left: 6%;
  padding: 14px 18px;
  background: var(--c-deep);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  text-align: center;
}
.page-products__compat-float .mono {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-neon);
}
.page-products__compat-float p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--c-muted);
}

/* ----- 更新日志 ----- */
.page-products__changelog-inner {
  display: grid;
  gap: 48px;
  align-items: start;
}
.page-products__timeline {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  position: relative;
}
.page-products__timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-neon), var(--c-gold) 60%, rgba(212, 175, 55, 0.2));
}
.page-products__timeline-item {
  position: relative;
  padding: 0 0 26px 30px;
}
.page-products__timeline-item:last-child {
  padding-bottom: 0;
}
.page-products__timeline-marker {
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-neon);
  border: 2px solid var(--c-deep);
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.35);
}
.page-products__timeline-body {
  transition: transform var(--trans-base);
}
.page-products__timeline-item:hover .page-products__timeline-body {
  transform: translateX(4px);
}
.page-products__timeline-version {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--c-orange);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-products__timeline-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
}
.page-products__timeline-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-muted);
}
.page-products__changelog-help {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(100, 255, 218, 0.14);
}
.page-products__changelog-help p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--c-muted);
}
.page-products__changelog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-products__changelog-actions .btn--ghost {
  border-color: rgba(100, 255, 218, 0.32);
  color: var(--c-neon);
}
.page-products__changelog-actions .btn--ghost:hover {
  background: var(--accent-glow);
}
.page-products__changelog-visual img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}
.page-products__changelog-note {
  margin: 14px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--gold-line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-muted);
  max-width: 340px;
}
.page-products__related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  max-width: 340px;
}
.page-products__related a {
  font-size: 13px;
  color: var(--c-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(100, 255, 218, 0.2);
  transition:
    color var(--trans-fast),
    border-color var(--trans-fast);
}
.page-products__related a:hover {
  color: var(--c-neon);
  border-color: var(--c-neon);
}

/* ----- 平板断点 ----- */
@media (min-width: 640px) {
  .page-products__features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-products__features-banner,
  .page-products__feature-card--wide,
  .page-products__feature-card--mid {
    grid-column: span 2;
  }
  .page-products__download-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* ----- 桌面断点 ----- */
@media (min-width: 900px) {
  .page-products__hero {
    padding: 64px 0 120px;
  }
  .page-products__hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 32px;
  }
  .page-products__hero-orbit {
    display: block;
  }
  .page-products__features,
  .page-products__download,
  .page-products__compat,
  .page-products__changelog {
    padding: 84px 0;
  }
  .page-products__features-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .page-products__feature-card {
    grid-column: span 4;
  }
  .page-products__features-banner {
    grid-column: span 7;
    min-height: 320px;
  }
  .page-products__feature-card--mid {
    grid-column: span 5;
  }
  .page-products__feature-card--wide {
    grid-column: span 6;
  }
  .page-products__download-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 40px;
  }
  .page-products__download-card--web .btn {
    width: auto;
  }
  .page-products__compat-inner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
    gap: 32px;
  }
  .page-products__changelog-inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
    gap: 56px;
  }
  .page-products__changelog-visual {
    padding-top: 56px;
  }
}
