.page-products {
  --p-gold: #F5B842;
  --p-purple: #9C4DFF;
  --p-deep: #0B0E14;
  --p-blue: #101B2E;
  --p-steel: #7BF0E0;
  --p-moon: #EAF0F8;
  --p-gray: #8B9BB4;
  --p-ink: #1B1035;
  --p-orange: #FF7A45;
  --p-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--p-deep);
  color: var(--p-moon);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-products .container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.page-products .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 20px 20px 0;
  max-width: var(--max-width);
  margin-inline: auto;
  font-size: 14px;
  color: var(--p-gray);
}

.page-products .breadcrumb a {
  color: var(--p-gray);
  text-decoration: none;
  transition: color 0.3s var(--p-ease);
}

.page-products .breadcrumb a:hover {
  color: var(--p-gold);
}

.page-products .breadcrumb__sep {
  color: var(--p-purple);
}

.page-products h1,
.page-products h2,
.page-products h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.page-products .section-heading {
  margin-bottom: 36px;
}

.page-products .section-heading__kicker {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--p-purple);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  padding: 4px 14px 4px 10px;
  background: linear-gradient(90deg, transparent, rgba(156, 77, 255, 0.18));
  border-left: 3px solid var(--p-purple);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.page-products .section-heading h2 {
  font-size: clamp(28px, 5vw, 44px);
  color: var(--p-moon);
  margin: 0 0 14px;
}

.page-products .section-heading__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--p-gray);
  max-width: 720px;
  margin: 0;
}

.page-products .btn {
  --btn-bg: var(--p-gold);
  --btn-color: #0B0E14;
  --btn-pad: 16px 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--btn-bg);
  color: var(--btn-color);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: var(--btn-pad);
  text-decoration: none;
  border: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: opacity 0.3s var(--p-ease), transform 0.3s var(--p-ease), filter 0.3s var(--p-ease);
  cursor: pointer;
  min-height: 44px;
}

.page-products .btn--gold {
  background: linear-gradient(135deg, var(--p-gold) 0%, #D49A24 100%);
  box-shadow: 0 0 24px rgba(245, 184, 66, 0.4);
}

.page-products .btn--ghost {
  background: transparent;
  color: var(--p-moon);
  border: 2px solid rgba(156, 77, 255, 0.6);
  box-shadow: inset 0 0 20px rgba(156, 77, 255, 0.15);
}

.page-products .btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-products .btn--ghost:hover {
  box-shadow: 0 0 28px rgba(156, 77, 255, 0.35);
}

.page-products .tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  background: rgba(245, 184, 66, 0.12);
  border: 1px solid rgba(245, 184, 66, 0.4);
  color: var(--p-gold);
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
}

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

.page-products [data-reveal] {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .page-products [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--p-ease), transform 0.6s var(--p-ease);
  }
  .page-products [data-revealed="true"] {
    opacity: 1;
    transform: none;
  }
}

/* ===== 首屏 hero ===== */
.page-products .p-hero {
  position: relative;
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(156, 77, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(245, 184, 66, 0.08) 0%, transparent 60%),
    var(--p-deep);
}

.page-products .p-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p-gold) 0%, var(--p-purple) 50%, transparent 100%);
  opacity: 0.7;
}

.page-products .p-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent, rgba(16, 27, 46, 0.6));
  pointer-events: none;
}

.page-products .p-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.page-products .p-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-products .p-hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  margin: 20px 0 20px;
  max-width: 12em;
  color: var(--p-moon);
}

.page-products .p-hero__version {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}

.page-products .p-hero__version-num {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 140px);
  line-height: 0.95;
  background: linear-gradient(135deg, var(--p-gold) 0%, #FFE29E 45%, var(--p-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 0 20px rgba(245, 184, 66, 0.3));
}

.page-products .p-hero__version-caption {
  font-size: 15px;
  color: var(--p-gray);
  letter-spacing: 0.08em;
}

.page-products .p-hero__lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--p-gray);
  max-width: 42em;
  margin: 0 0 28px;
}

.page-products .p-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.page-products .p-hero__facts {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(139, 155, 180, 0.2);
  width: 100%;
}

.page-products .p-hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-products .p-hero__facts strong {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--p-gold);
}

.page-products .p-hero__facts span {
  font-size: 13px;
  color: var(--p-gray);
  letter-spacing: 0.06em;
}

.page-products .p-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-products .p-hero__visual::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(156, 77, 255, 0.14) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.page-products .p-hero__img {
  width: 100%;
  height: auto;
  clip-path: polygon(8% 0, 100% 0, 100% 82%, 92% 100%, 0 100%, 0 12%);
  border: 1px solid rgba(245, 184, 66, 0.25);
  position: relative;
  z-index: 1;
}

/* ===== 当前稳定版 ===== */
.page-products .p-version-section {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--p-deep) 0%, var(--p-blue) 50%, var(--p-deep) 100%);
}

.page-products .p-version-tabs {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.page-products .p-ver-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-products .p-ver-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--p-gray);
  background: rgba(16, 27, 46, 0.8);
  border: 1px solid rgba(139, 155, 180, 0.25);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
  cursor: pointer;
  transition: color 0.3s var(--p-ease), border-color 0.3s var(--p-ease), background 0.3s var(--p-ease);
}

.page-products .p-ver-tab:hover {
  color: var(--p-moon);
  border-color: var(--p-purple);
}

.page-products #ver-421:checked ~ label[for="ver-421"],
.page-products #ver-420:checked ~ label[for="ver-420"],
.page-products #ver-410:checked ~ label[for="ver-410"],
.page-products #ver-400:checked ~ label[for="ver-400"] {
  color: #0B0E14;
  background: linear-gradient(135deg, var(--p-gold), #D49A24);
  border-color: var(--p-gold);
  box-shadow: 0 0 20px rgba(245, 184, 66, 0.35);
}

.page-products .p-ver-panel {
  display: none;
  width: 100%;
  margin-top: 24px;
  padding: 28px;
  background: rgba(16, 27, 46, 0.55);
  border: 1px solid rgba(156, 77, 255, 0.18);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 100%, 24px 100%);
  backdrop-filter: blur(4px);
}

.page-products #ver-421:checked ~ .p-ver-panel--421,
.page-products #ver-420:checked ~ .p-ver-panel--420,
.page-products #ver-410:checked ~ .p-ver-panel--410,
.page-products #ver-400:checked ~ .p-ver-panel--400 {
  display: block;
}

.page-products .p-ver-panel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-products .p-ver-table {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.page-products .p-ver-table > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(139, 155, 180, 0.15);
}

.page-products .p-ver-table dt {
  color: var(--p-gray);
  font-size: 14px;
}

.page-products .p-ver-table dd {
  margin: 0;
  font-size: 15px;
  color: var(--p-moon);
  font-weight: 500;
}

.page-products .p-ver-note {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-products .p-ver-note p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--p-gray);
  margin: 0;
}

/* ===== 功能清单 ===== */
.page-products .p-features {
  padding: 72px 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(156, 77, 255, 0.1), transparent),
    var(--p-deep);
}

.page-products .p-features__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.page-products .p-features__img-wrap {
  position: sticky;
  top: 100px;
}

.page-products .p-features__img {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  display: block;
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
  border: 1px solid rgba(156, 77, 255, 0.25);
  box-shadow: 0 0 40px rgba(156, 77, 255, 0.1);
}

.page-products .p-features__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-products .p-feature-item {
  position: relative;
  padding: 28px 28px 28px 60px;
  background: rgba(16, 27, 46, 0.45);
  border-left: 2px solid var(--p-purple);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.3s var(--p-ease), border-color 0.3s var(--p-ease);
}

.page-products .p-feature-item:hover {
  transform: translateX(4px);
  border-left-color: var(--p-gold);
}

.page-products .p-feature-item__num {
  position: absolute;
  left: 16px;
  top: 24px;
  font-family: var(--font-display);
  font-size: 24px;
  color: rgba(245, 184, 66, 0.3);
}

.page-products .p-feature-item h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--p-moon);
}

.page-products .p-feature-item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--p-gray);
  margin: 0;
}

/* ===== 更新日志 ===== */
.page-products .p-changelog {
  padding: 72px 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(156, 77, 255, 0.12) 0%, transparent 60%),
    var(--p-deep);
}

.page-products .p-changelog__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.page-products .p-changelog__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-products .p-changelog__timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34px;
  width: 2px;
  background: linear-gradient(180deg, var(--p-gold) 0%, var(--p-purple) 60%, transparent 100%);
  opacity: 0.5;
}

.page-products .p-changelog__item {
  position: relative;
  padding: 0 0 32px 74px;
}

.page-products .p-changelog__item:last-child {
  padding-bottom: 8px;
}

.page-products .p-changelog__item::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--p-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(245, 184, 66, 0.6);
  border-radius: 1px;
}

.page-products .p-changelog__ver {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  background: rgba(245, 184, 66, 0.15);
  border: 1px solid rgba(245, 184, 66, 0.35);
  color: var(--p-gold);
  padding: 4px 12px;
  margin-bottom: 10px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 100%, 6px 100%);
  letter-spacing: 0.04em;
}

.page-products .p-changelog__body h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--p-moon);
}

.page-products .p-changelog__body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--p-gray);
  margin: 0;
}

.page-products .p-changelog__more {
  margin-top: 16px;
  border: 1px solid rgba(156, 77, 255, 0.25);
  background: rgba(16, 27, 46, 0.4);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 14px 100%);
  padding: 0;
}

.page-products .p-changelog__more summary {
  padding: 18px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--p-purple);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.page-products .p-changelog__more summary::-webkit-details-marker {
  display: none;
}

.page-products .p-changelog__more summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 22px;
  color: var(--p-gold);
  transition: transform 0.3s var(--p-ease);
}

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

.page-products .p-changelog__more p {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--p-gray);
  margin: 0;
  border-top: 1px solid rgba(139, 155, 180, 0.1);
  padding-top: 16px;
}

.page-products .p-changelog__visual {}

.page-products .p-changelog__img {
  width: 100%;
  height: auto;
  clip-path: polygon(20% 0, 100% 0, 100% 71%, 80% 100%, 0 100%, 0 29%);
  border: 1px solid rgba(156, 77, 255, 0.2);
  box-shadow: 0 0 30px rgba(156, 77, 255, 0.08);
}

/* ===== 下载指引 ===== */
.page-products .p-download {
  padding: 72px 0;
  background:
    linear-gradient(115deg, rgba(245, 184, 66, 0.06) 0%, transparent 30%),
    linear-gradient(300deg, rgba(156, 77, 255, 0.08) 0%, transparent 40%),
    var(--p-blue);
}

.page-products .p-download__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.page-products .p-download__step {
  position: relative;
  padding: 28px 24px 24px 80px;
  background: rgba(11, 14, 20, 0.7);
  border: 1px solid rgba(139, 155, 180, 0.15);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
}

.page-products .p-download__step-num {
  position: absolute;
  left: 20px;
  top: 20px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  color: var(--p-gold);
  text-shadow: 0 0 16px rgba(245, 184, 66, 0.4);
}

.page-products .p-download__step h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--p-moon);
}

.page-products .p-download__step p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--p-gray);
  margin: 0;
}

.page-products .p-download__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 36px 28px;
  background: rgba(11, 14, 20, 0.85);
  border: 1px solid rgba(245, 184, 66, 0.2);
  border-left: 4px solid var(--p-gold);
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  position: relative;
}

.page-products .p-download__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, var(--p-gold), var(--p-purple));
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.page-products .p-download__panel-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.page-products .p-download__panel-copy h3 {
  font-size: 24px;
  margin: 0;
  color: var(--p-moon);
}

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

.page-products .p-download__meta li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--p-gray);
}

.page-products .p-download__meta li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--p-gold);
  font-size: 11px;
  top: 4px;
}

.page-products .p-download__meta code {
  color: var(--p-steel);
  font-size: 13px;
  background: rgba(123, 240, 224, 0.08);
  padding: 2px 8px;
  border-radius: 2px;
  word-break: break-all;
}

.page-products .p-download__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--p-gray);
  margin: 0;
}

.page-products .p-download__note a {
  color: var(--p-purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(156, 77, 255, 0.3);
}

.page-products .p-download__note a:hover {
  color: var(--p-gold);
  border-bottom-color: var(--p-gold);
}

.page-products .p-download__panel-visual {}

.page-products .p-download__img {
  width: 100%;
  height: auto;
  clip-path: polygon(8% 0, 100% 0, 100% 74%, 92% 100%, 0 100%, 0 26%);
  border: 1px solid rgba(245, 184, 66, 0.2);
  box-shadow: 0 0 30px rgba(245, 184, 66, 0.08);
}

/* ===== 多设备适配 ===== */
.page-products .p-compat {
  padding: 72px 0 96px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(27, 16, 53, 0.7) 0%, transparent 70%),
    var(--p-deep);
}

.page-products .p-compat__copy {
  margin-bottom: 32px;
}

.page-products .p-compat__copy .section-heading__kicker {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--p-purple);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.page-products .p-compat__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  color: var(--p-moon);
  margin: 0 0 14px;
}

.page-products .p-compat__copy p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--p-gray);
  max-width: 760px;
}

.page-products .p-compat__copy a {
  color: var(--p-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 184, 66, 0.3);
  transition: border-color 0.3s var(--p-ease);
}

.page-products .p-compat__copy a:hover {
  border-bottom-color: var(--p-gold);
}

.page-products .p-compat__visual {
  margin-top: 24px;
}

.page-products .p-compat__img {
  width: 100%;
  height: auto;
  clip-path: polygon(6% 0, 100% 0, 100% 74%, 94% 100%, 0 100%, 0 26%);
  border: 1px solid rgba(156, 77, 255, 0.16);
  box-shadow: 0 0 40px rgba(156, 77, 255, 0.06);
}

/* ===== 桌面端 ===== */
@media (min-width: 900px) {
  .page-products .container {
    padding-inline: 32px;
  }

  .page-products .breadcrumb {
    padding-inline: 32px;
  }

  .page-products .p-hero {
    padding: 72px 0 96px;
  }

  .page-products .p-hero__inner {
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    align-items: center;
  }

  .page-products .p-hero__version-num {
    font-size: clamp(96px, 12vw, 148px);
  }

  .page-products .p-version-section,
  .page-products .p-features,
  .page-products .p-changelog,
  .page-products .p-download,
  .page-products .p-compat {
    padding: 96px 0;
  }

  .page-products .p-ver-panel__grid {
    grid-template-columns: 5fr 7fr;
  }

  .page-products .p-features__layout {
    grid-template-columns: 4fr 7fr;
    gap: 64px;
  }

  .page-products .p-features__img {
    max-width: 480px;
  }

  .page-products .p-changelog__layout {
    grid-template-columns: 6fr 5fr;
    gap: 64px;
    align-items: start;
  }

  .page-products .p-download__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .page-products .p-download__step {
    padding-left: 72px;
  }

  .page-products .p-download__panel {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    padding: 40px 48px;
  }

  .page-products .p-compat {
    position: relative;
  }

  .page-products .p-compat__visual {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .page-products .p-hero__actions .btn {
    width: 100%;
  }

  .page-products .p-hero__facts {
    gap: 20px;
  }

  .page-products .p-ver-panel {
    padding: 16px;
  }

  .page-products .p-ver-table > div {
    grid-template-columns: 90px 1fr;
    gap: 8px;
  }

  .page-products .p-download__panel {
    padding: 24px 16px;
  }
}
