/* ========== APP下载 · page-products 专属样式 ========== */
.page-products {
  --pd-blue: #00E5FF;
  --pd-orange: #FF6B00;
  --pd-panel: rgba(17, 24, 38, 0.72);
  --pd-panel-2: rgba(14, 21, 34, 0.92);
  --pd-border: rgba(192, 200, 216, 0.14);
  --pd-radius: 24px;
  --pd-gap: 24px;
  background:
    radial-gradient(ellipse at 88% 0%, rgba(0, 229, 255, 0.09), transparent 42%),
    radial-gradient(ellipse at 6% 34%, rgba(255, 107, 0, 0.06), transparent 38%),
    var(--color-bg);
}

/* ---------- Hero ---------- */
.page-products .pd-hero {
  position: relative;
  padding: 36px 0 56px;
}
.page-products .pd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.12) 0%, transparent 46%),
    linear-gradient(315deg, rgba(255, 107, 0, 0.08) 0%, transparent 46%);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  pointer-events: none;
}
.page-products .pd-hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
.page-products .pd-hero h1 {
  display: block;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--color-white);
  font-weight: 900;
}
.page-products .pd-hero-accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-products .pd-hero-lead {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--color-silver);
}
.page-products .pd-hero-lead strong {
  color: var(--color-white);
  font-weight: 600;
}
.page-products .pd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.page-products .pd-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid var(--pd-border);
  border-bottom: 1px solid var(--pd-border);
}
.page-products .pd-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.page-products .pd-hero-stat dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-silver-dim);
}
.page-products .pd-hero-stat dd {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  color: var(--color-primary);
}
.page-products .pd-hero-stat:last-child dd {
  color: var(--color-accent);
}

/* 手机设备模型 */
.page-products .pd-hero-visual {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-products .pd-device {
  position: relative;
  width: 250px;
  max-width: 100%;
  padding: 14px;
  background: linear-gradient(160deg, #1a2333 0%, #0B0F1A 100%);
  border-radius: 38px;
  border: 1px solid rgba(192, 200, 216, 0.24);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 5px rgba(0, 0, 0, 0.24),
    0 0 52px rgba(0, 229, 255, 0.1);
}
.page-products .pd-device-screen {
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 1 / 2;
  background: var(--color-bg-panel);
}
.page-products .pd-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.page-products .pd-device-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 22px;
  background: #0B0F1A;
  border-radius: 16px;
  z-index: 2;
}
.page-products .pd-device-side {
  position: absolute;
  background: #384257;
  border-radius: 2px;
}
.page-products .pd-device-side--power {
  right: -3px;
  top: 150px;
  width: 4px;
  height: 34px;
}
.page-products .pd-device-side--volume {
  left: -3px;
  top: 110px;
  width: 4px;
  height: 28px;
}
.page-products .pd-hero-visual figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-silver-dim);
  text-align: center;
}

/* ---------- 通用章节头 ---------- */
.page-products .pd-section-head {
  margin-bottom: 38px;
}
.page-products .pd-section-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.12;
  margin: 12px 0 14px;
  color: var(--color-white);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.page-products .pd-section-lead {
  max-width: 640px;
  margin: 0;
  color: var(--color-silver);
  line-height: 1.66;
}
.page-products .pd-section-lead strong {
  color: var(--color-white);
}

/* ---------- 下载区 ---------- */
.page-products .pd-download {
  position: relative;
  padding: 48px 0 60px;
}
.page-products .pd-download::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-bar);
  opacity: 0.62;
  transform: rotate(-1.2deg) scaleX(1.04);
  transform-origin: left center;
}
.page-products .pd-platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pd-gap);
  margin-bottom: 48px;
}
.page-products .pd-platform-card {
  position: relative;
  background: var(--pd-panel);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
  padding: 28px 24px 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.page-products .pd-platform-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  width: 64px;
  height: 3px;
  background: var(--gradient-bar);
  border-radius: 0 0 4px 4px;
}
.page-products .pd-platform-card--pc::after {
  background: linear-gradient(90deg, var(--pd-orange), var(--pd-blue));
}
.page-products .pd-platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.34);
  box-shadow: var(--shadow-blue), var(--shadow-panel);
}
.page-products .pd-platform-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.page-products .pd-platform-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  color: var(--color-primary);
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
}
.page-products .pd-platform-card--android .pd-platform-badge {
  color: var(--color-accent-soft);
  border-color: rgba(255, 180, 77, 0.42);
  background: rgba(255, 184, 77, 0.07);
}
.page-products .pd-platform-card--pc .pd-platform-badge {
  color: var(--color-white);
  border-color: rgba(192, 200, 216, 0.3);
}
.page-products .pd-platform-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-silver-dim);
}
.page-products .pd-platform-card h3 {
  font-size: 1.3rem;
  margin: 0 0 16px;
  color: var(--color-white);
  font-weight: 800;
}
.page-products .pd-platform-meta {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.page-products .pd-platform-meta li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-silver);
  background: rgba(192, 200, 216, 0.07);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  border: 1px solid var(--pd-border);
}
.page-products .pd-platform-desc {
  color: var(--color-silver);
  font-size: 0.95rem;
  line-height: 1.66;
  margin: 0 0 20px;
}
.page-products .pd-detail {
  border-top: 1px solid var(--pd-border);
  padding-top: 16px;
}
.page-products .pd-detail summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  list-style: none;
  transition: color 0.2s ease;
}
.page-products .pd-detail summary:hover {
  color: var(--color-primary-soft);
}
.page-products .pd-detail summary::-webkit-details-marker {
  display: none;
}
.page-products .pd-detail summary::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.page-products .pd-detail[open] summary::before {
  content: "–";
}
.page-products .pd-detail-body {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--color-bg-panel-alt);
  border: 1px solid var(--pd-border);
}
.page-products .pd-detail-body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-silver);
  margin: 0;
}
.page-products .pd-qr {
  width: 96px;
  height: 96px;
  display: block;
  background: var(--color-white);
  border-radius: 10px;
  padding: 8px;
  box-sizing: border-box;
  margin-bottom: 14px;
}
.page-products .pd-pc-shot {
  margin: 0;
}
.page-products .pd-pc-shot figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-silver-dim);
}

/* ---------- 功能特性 ---------- */
.page-products .pd-features {
  position: relative;
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg) 100%);
}
.page-products .pd-features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-bar);
  opacity: 0.55;
  transform: rotate(1.1deg) scaleX(1.02);
  transform-origin: left center;
}
.page-products .pd-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
.page-products .pd-feature-card {
  position: relative;
  padding: 24px 22px;
  background: var(--pd-panel-2);
  border: 1px solid var(--pd-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.page-products .pd-feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.page-products .pd-feature-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
}
.page-products .pd-feature-card:hover::before {
  opacity: 1;
}
.page-products .pd-feature-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--pd-orange);
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.page-products .pd-feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--color-white);
  font-weight: 800;
}
.page-products .pd-feature-card p {
  margin: 0;
  color: var(--color-silver);
  font-size: 0.92rem;
  line-height: 1.62;
}
.page-products .pd-sync-shot {
  margin: 0;
}
.page-products .pd-sync-shot figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-silver-dim);
  text-align: center;
}

/* ---------- 资源下载区 ---------- */
.page-products .pd-resources {
  position: relative;
  padding: 56px 0 64px;
}
.page-products .pd-resources::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-bar);
  opacity: 0.5;
  transform: rotate(-0.9deg) scaleX(1.03);
  transform-origin: left center;
}
.page-products .pd-resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.page-products .pd-resource-list {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-products .pd-resource-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--pd-panel);
  border: 1px solid var(--pd-border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--color-silver);
}
.page-products .pd-resource-list span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-silver-dim);
}
.page-products .pd-resource-list strong {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-white);
  white-space: nowrap;
}
.page-products .pd-resource-list li:nth-child(1) strong { color: var(--color-primary); }
.page-products .pd-resource-list li:nth-child(2) strong { color: var(--color-accent); }
.page-products .pd-resource-list li:nth-child(3) strong { color: var(--color-accent-soft); }
.page-products .pd-resource-list li:nth-child(4) strong { color: var(--color-primary); }
.page-products .pd-resource-shot {
  margin: 0;
  box-shadow: var(--shadow-panel);
}
.page-products .pd-resource-shot figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-silver-dim);
}

/* ---------- 版本日志 ---------- */
.page-products .pd-changelog {
  position: relative;
  padding: 64px 0 72px;
  background: var(--color-bg-deep);
}
.page-products .pd-changelog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-bar);
  opacity: 0.6;
  transform: rotate(1.4deg) scaleX(1.04);
}
.page-products .pd-changelog-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.16;
  pointer-events: none;
}
.page-products .pd-changelog-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75);
}
.page-products .pd-changelog .container {
  position: relative;
  z-index: 1;
}
.page-products .pd-changelog-list {
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
  position: relative;
}
.page-products .pd-changelog-list::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  opacity: 0.35;
  border-radius: 2px;
}
.page-products .pd-changelog-item {
  position: relative;
  padding: 0 0 34px 40px;
}
.page-products .pd-changelog-item:last-child {
  padding-bottom: 6px;
}
.page-products .pd-changelog-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-bg-deep);
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12);
}
.page-products .pd-changelog-item:nth-child(even)::before {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12);
}
.page-products .pd-changelog-ver {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary);
  display: inline-block;
  margin-right: 12px;
}
.page-products .pd-changelog-item:nth-child(even) .pd-changelog-ver {
  color: var(--color-accent);
}
.page-products .pd-changelog-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-silver-dim);
  background: rgba(192, 200, 216, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--pd-border);
  vertical-align: 3px;
}
.page-products .pd-changelog-body {
  margin-top: 10px;
}
.page-products .pd-changelog-body h3 {
  font-size: 1.05rem;
  color: var(--color-white);
  margin: 0 0 6px;
  font-weight: 800;
}
.page-products .pd-changelog-body p {
  color: var(--color-silver);
  font-size: 0.92rem;
  line-height: 1.66;
  margin: 0;
  max-width: 640px;
}
.page-products .pd-changelog-more {
  margin-top: 24px;
  border: 1px solid var(--pd-border);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 38, 0.5);
  padding: 18px 20px;
}
.page-products .pd-changelog-more summary {
  cursor: pointer;
  color: var(--color-primary-soft);
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
}
.page-products .pd-changelog-more summary::-webkit-details-marker {
  display: none;
}
.page-products .pd-changelog-more summary::before {
  content: "+";
  font-family: var(--font-mono);
  margin-right: 8px;
}
.page-products .pd-changelog-more[open] summary::before {
  content: "–";
}
.page-products .pd-changelog-legacy {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-products .pd-changelog-legacy li {
  font-size: 0.9rem;
  color: var(--color-silver);
  line-height: 1.62;
  padding-left: 14px;
  position: relative;
}
.page-products .pd-changelog-legacy li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}
.page-products .pd-changelog-legacy span {
  font-family: var(--font-mono);
  color: var(--color-white);
  margin-right: 10px;
  font-weight: 700;
}

/* ---------- 安装帮助 ---------- */
.page-products .pd-help {
  position: relative;
  padding: 56px 0 72px;
}
.page-products .pd-help::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-bar);
  opacity: 0.5;
  transform: rotate(-1.2deg) scaleX(1.02);
  transform-origin: left center;
}
.page-products .pd-help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.page-products .pd-help-item {
  border-bottom: 1px solid var(--pd-border);
  padding: 16px 4px;
}
.page-products .pd-help-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-white);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.2s ease;
}
.page-products .pd-help-item summary:hover {
  color: var(--color-primary-soft);
}
.page-products .pd-help-item summary::-webkit-details-marker {
  display: none;
}
.page-products .pd-help-item summary::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--color-primary);
  background: rgba(0, 229, 255, 0.08);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.page-products .pd-help-item[open] summary::before {
  content: "–";
  color: var(--color-accent);
  background: rgba(255, 107, 0, 0.12);
}
.page-products .pd-help-item p {
  margin: 14px 0 6px 40px;
  color: var(--color-silver);
  font-size: 0.95rem;
  line-height: 1.72;
}
.page-products .pd-help-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}
.page-products .pd-help-card {
  background: var(--pd-panel);
  border: 1px solid var(--pd-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-panel);
}
.page-products .pd-help-card h3 {
  font-size: 1.2rem;
  color: var(--color-white);
  margin: 0 0 12px;
  font-weight: 800;
}
.page-products .pd-help-card p {
  color: var(--color-silver);
  font-size: 0.95rem;
  line-height: 1.64;
  margin: 0 0 20px;
}
.page-products .pd-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-products .pd-help-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 180, 77, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 184, 77, 0.05);
}
.page-products .pd-help-note-pin {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 8px;
  background: var(--color-accent-soft);
  box-shadow: 0 0 0 4px rgba(255, 184, 77, 0.15);
  flex-shrink: 0;
}
.page-products .pd-help-note p {
  margin: 0;
  color: var(--color-silver);
  font-size: 0.85rem;
  line-height: 1.64;
}

/* ---------- 平板 ---------- */
@media (min-width: 768px) {
  .page-products .pd-hero {
    padding: 48px 0 64px;
  }
  .page-products .pd-hero-container {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
  .page-products .pd-device {
    width: 280px;
  }
  .page-products .pd-platform-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-products .pd-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-products .pd-resources-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .page-products .pd-help-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
  }
  .page-products .pd-changelog-item {
    padding-left: 48px;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 1024px) {
  .page-products .pd-hero {
    padding: 64px 0 80px;
  }
  .page-products .pd-hero-container {
    gap: 64px;
  }
  .page-products .pd-feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .page-products .pd-platform-grid {
    gap: 28px;
  }
  .page-products .pd-changelog-list {
    max-width: 880px;
  }
}
