/* ========== 应用下载页 / page-products ========== */
.page-products {
  --pdl-panel: #16161B;
  --pdl-border: #2A2A30;
  --pdl-line: rgba(0, 229, 255, 0.28);
  --pdl-line-purple: rgba(212, 0, 255, 0.28);
  --pdl-acid-soft: rgba(182, 255, 0, 0.16);
  --pdl-purple-soft: rgba(212, 0, 255, 0.14);
  --pdl-blue-soft: rgba(0, 229, 255, 0.1);
  background:
    radial-gradient(ellipse at 90% 0%, var(--pdl-purple-soft), transparent 55%),
    radial-gradient(ellipse at 5% 65%, var(--pdl-blue-soft), transparent 45%),
    var(--black);
  color: var(--silver);
  line-height: 1.75;
}

.page-products .breadcrumb {
  padding-top: 26px;
}

.page-products__head {
  position: relative;
  padding: 30px 0 36px;
}

.page-products__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--blue) 60%, transparent);
  transform: skewX(-8deg);
}

.page-products__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  color: var(--blue);
  text-transform: uppercase;
}

.page-products .page-head__title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.65rem, 4.2vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--paper);
  transform: skewX(-4deg);
}

.page-products .page-head__title em {
  font-style: normal;
  color: var(--purple);
}

.page-products .page-head__lede {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--silver);
}

.page-products__head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue);
}

.page-products .section-head__desc {
  max-width: 680px;
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--silver);
}

/* ---------- 下载入口 ---------- */
.page-products .pdl-entry,
.page-products .pdl-terminal,
.page-products .pdl-install {
  position: relative;
}

.page-products .pdl-entry__hero {
  position: relative;
  margin-bottom: 36px;
  border: 1px solid var(--pdl-line);
  background: var(--ink);
  overflow: hidden;
}

.page-products .pdl-entry__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 229, 255, 0.045) 0 1px,
    transparent 1px 4px
  );
  pointer-events: none;
  mix-blend-mode: screen;
}

.page-products .pdl-entry__hero .img-frame {
  border: 0;
}

.page-products .pdl-entry__head {
  margin-bottom: 20px;
}

.page-products .pdl-platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 28px;
}

.page-products .pdl-platform {
  position: relative;
  padding: 22px 18px 20px;
  background: linear-gradient(150deg, rgba(26, 26, 30, 0.92), rgba(18, 18, 22, 1));
  border: 1px solid var(--pdl-border);
  border-left: 3px solid var(--blue);
  overflow: hidden;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.page-products .pdl-platform::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(212, 0, 255, 0.06), transparent 50%);
  pointer-events: none;
}

.page-products .pdl-platform:hover {
  border-color: var(--purple);
  border-left-color: var(--acid);
  box-shadow: var(--glow-purple);
  transform: translateY(-3px);
}

.page-products .pdl-platform__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 40px;
  margin-bottom: 14px;
  border: 1px solid var(--pdl-line);
  background: rgba(0, 229, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
  transform: skewX(-8deg) rotate(2deg);
}

.page-products .pdl-platform:nth-child(2) .pdl-platform__icon {
  color: var(--purple);
  border-color: var(--pdl-line-purple);
  background: rgba(212, 0, 255, 0.07);
}

.page-products .pdl-platform:nth-child(3) .pdl-platform__icon {
  color: var(--acid);
  border-color: rgba(182, 255, 0, 0.5);
  background: rgba(182, 255, 0, 0.06);
}

.page-products .pdl-platform:nth-child(4) .pdl-platform__icon {
  color: var(--paper);
  border-color: rgba(242, 232, 208, 0.45);
  background: rgba(242, 232, 208, 0.05);
}

.page-products .pdl-platform .card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--paper);
}

.page-products .pdl-platform .card__meta {
  margin: 0 0 8px;
  font-size: 0.82rem;
}

.page-products .pdl-platform .card__desc {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--silver);
}

.page-products .pdl-platform__tag {
  margin: 0 0 16px;
}

.page-products .pdl-entry__foot {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--dark-gray);
}

.page-products .pdl-entry__note {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  max-width: 720px;
}

.page-products .pdl-entry__arrow {
  width: 132px;
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px dashed rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.04);
}

.page-products .pdl-entry__arrow img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .pdl-entry__note p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--silver);
}

/* ---------- 终端：版本记录 + 兼容矩阵 ---------- */
.page-products .pdl-terminal {
  padding: 52px 0 42px;
  border-top: 1px solid var(--dark-gray);
  border-bottom: 1px solid var(--dark-gray);
}

.page-products .pdl-terminal__inner {
  display: grid;
  gap: 42px;
}

.page-products .pdl-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid var(--pdl-border);
  border-bottom: 0;
  background: rgba(0, 229, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.page-products .pdl-toolbar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px rgba(182, 255, 0, 0.5);
}

.page-products .pdl-toolbar__label {
  flex: 1;
}

.page-products .pdl-toolbar__status {
  color: var(--acid);
}

.page-products .pdl-version__scroll {
  overflow-x: auto;
  border: 1px solid var(--pdl-border);
  background: rgba(13, 13, 15, 0.85);
}

.page-products .pdl-version__scroll:focus {
  outline: 2px dashed var(--blue);
  outline-offset: 2px;
}

.page-products .pdl-version {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.page-products .pdl-version th {
  padding: 12px 14px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--blue);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.page-products .pdl-version td {
  padding: 12px 14px;
  border-top: 1px solid rgba(42, 42, 48, 0.7);
  color: var(--silver);
  vertical-align: top;
}

.page-products .pdl-version tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.page-products .pdl-version tbody tr:hover {
  background: rgba(212, 0, 255, 0.06);
}

.page-products .pdl-version tr.pdl-version__current td {
  background: rgba(212, 0, 255, 0.07);
  box-shadow: inset 3px 0 0 var(--purple);
}

.page-products .pdl-version__no {
  position: relative;
  font-weight: 600;
  color: var(--acid);
  white-space: nowrap;
}

@media (hover: hover) {
  .page-products .pdl-version__no::before,
  .page-products .pdl-version__no::after {
    content: attr(data-ver);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    opacity: 0;
  }
  .page-products .pdl-version__no::before {
    color: var(--purple);
  }
  .page-products .pdl-version__no::after {
    color: var(--blue);
  }
  .page-products .pdl-version tbody tr:hover .pdl-version__no::before {
    opacity: 0.75;
    transform: translate(-3px, 1px);
    clip-path: inset(0 0 45% 0);
    animation: pdl-glitch-a 0.45s steps(2) infinite;
  }
  .page-products .pdl-version tbody tr:hover .pdl-version__no::after {
    opacity: 0.75;
    transform: translate(3px, -1px);
    clip-path: inset(45% 0 0 0);
    animation: pdl-glitch-b 0.4s steps(2) infinite;
  }
}

.page-products .pdl-version__aside {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--pdl-border);
  background: rgba(26, 26, 30, 0.6);
}

.page-products .pdl-version__aside .img-frame {
  margin: 0;
}

.page-products .pdl-version__aside p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--silver);
}

.page-products .pdl-version__aside a {
  color: var(--blue);
  text-decoration: underline;
  transition: color 0.25s var(--ease);
}

.page-products .pdl-version__aside a:hover {
  color: var(--purple);
}

.page-products .pdl-device__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.page-products .pdl-device {
  position: relative;
  padding: 16px 14px 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 60%),
    var(--pdl-panel);
  border: 1px solid var(--pdl-border);
  overflow: hidden;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.page-products .pdl-device::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 229, 255, 0.32) 50%);
  opacity: 0.4;
  transition: opacity 0.3s var(--ease);
}

.page-products .pdl-device:hover {
  border-color: var(--blue);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

.page-products .pdl-device:hover::after {
  opacity: 1;
}

.page-products .pdl-device__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 8px;
}

.page-products .pdl-device:nth-child(2n) .pdl-device__num {
  color: var(--purple);
}

.page-products .pdl-device:nth-child(3n) .pdl-device__num {
  color: var(--acid);
}

.page-products .pdl-device h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  color: var(--paper);
}

.page-products .pdl-device p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--silver);
}

.page-products .pdl-device__img {
  margin-top: 18px;
}

/* ---------- 安装与更新说明 ---------- */
.page-products .pdl-install {
  padding: 52px 0 40px;
}

.page-products .pdl-install__grid {
  display: grid;
  gap: 38px;
}

.page-products .pdl-steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  position: relative;
}

.page-products .pdl-steps::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--purple), var(--blue));
  opacity: 0.28;
}

.page-products .pdl-steps li {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 18px 0;
}

.page-products .pdl-steps__index {
  position: relative;
  z-index: 1;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  border: 1px solid var(--dark-gray);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--acid);
  transform: skewX(-6deg);
}

.page-products .pdl-steps__index::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px dashed rgba(0, 229, 255, 0.25);
}

.page-products .pdl-steps__body h3 {
  margin: 2px 0 4px;
  font-size: 1rem;
  color: var(--paper);
}

.page-products .pdl-steps__body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--silver);
}

.page-products .pdl-install__aside {
  display: grid;
  align-content: start;
  gap: 18px;
}

.page-products .pdl-install__callout {
  padding: 22px 18px;
  border-left: 3px solid var(--purple);
  background: linear-gradient(135deg, rgba(212, 0, 255, 0.1), rgba(0, 229, 255, 0.05));
}

.page-products .pdl-install__callout h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--paper);
}

.page-products .pdl-install__callout p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--silver);
}

.page-products .pdl-install__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.page-products .pdl-install__support {
  padding: 18px;
  border: 1px solid var(--dark-gray);
  background: rgba(13, 13, 15, 0.6);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue);
}

.page-products .pdl-install__support .version-line {
  margin: 2px 0;
  overflow-wrap: anywhere;
}

.page-products .pdl-install__support-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 229, 255, 0.25);
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--silver);
}

/* ---------- 关键帧 ---------- */
@keyframes pdl-glitch-a {
  0%, 100% {
    transform: translate(-3px, 1px);
    clip-path: inset(0 0 55% 0);
  }
  25% {
    transform: translate(-1px, -1px);
    clip-path: inset(20% 0 30% 0);
  }
  50% {
    transform: translate(-4px, 2px);
    clip-path: inset(45% 0 10% 0);
  }
  75% {
    transform: translate(-2px, 0);
    clip-path: inset(5% 0 70% 0);
  }
}

@keyframes pdl-glitch-b {
  0%, 100% {
    transform: translate(3px, -1px);
    clip-path: inset(50% 0 0 0);
  }
  25% {
    transform: translate(1px, 1px);
    clip-path: inset(70% 0 0 0);
  }
  50% {
    transform: translate(4px, -2px);
    clip-path: inset(10% 0 0 0);
  }
  75% {
    transform: translate(2px, 0);
    clip-path: inset(80% 0 0 0);
  }
}

/* ---------- 响应式增强 ---------- */
@media (min-width: 640px) {
  .page-products .pdl-platforms {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-products .pdl-entry__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-products .pdl-entry__note {
    flex-direction: row;
    align-items: center;
  }

  .page-products .pdl-entry__arrow {
    width: 150px;
  }

  .page-products .pdl-install__callout,
  .page-products .pdl-install__support {
    padding: 24px;
  }
}

@media (min-width: 960px) {
  .page-products .pdl-device__grid {
    gap: 12px;
  }

  .page-products .pdl-install__grid {
    grid-template-columns: 1.4fr 0.9fr;
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .page-products .pdl-platforms {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  .page-products .pdl-terminal__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 44px;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pdl-version__no::before,
  .page-products .pdl-version__no::after {
    animation: none !important;
    opacity: 0 !important;
  }
}
