.page-products {
  display: block;
  width: 100%;
  background: var(--navy-deepest);
  color: var(--pearl);
  font-family: var(--font-sans);
  line-height: 1.8;
}

.page-products .content-area {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--spacing);
}

.page-products .breadcrumbs {
  font-size: 0.9rem;
  color: var(--mist);
  margin-bottom: 2rem;
}

.page-products .breadcrumbs a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.page-products .page-section {
  margin-bottom: calc(var(--spacing) * 2);
}

.page-products .section-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-products .section-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--crimson);
  display: inline-block;
  flex-shrink: 0;
}

.page-products h1,
.page-products h2,
.page-products h3 {
  font-family: var(--font-serif);
  color: var(--pearl);
  line-height: 1.2;
}

.page-products h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-products h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.page-products .panel-clip {
  position: relative;
  background: var(--navy-ink);
  box-shadow: inset 0 0 0 1px var(--gold);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.page-products .download-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: calc(var(--spacing) * 1.5);
  overflow: hidden;
}

.page-products .download-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
}

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

.page-products .download-info {
  position: relative;
  z-index: 1;
}

.page-products .download-desc {
  font-size: 1.05rem;
  color: var(--mist);
  max-width: 45ch;
}

.page-products .version-number {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin: 0.5rem 0 1rem;
}

.page-products .download-action {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}

.page-products .system-req {
  font-size: 0.85rem;
  color: var(--mist);
  margin: 0;
}

.page-products .download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--bronze));
  color: var(--navy-deepest);
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.page-products .download-btn svg {
  width: 1.2em;
  height: 1.2em;
}

.page-products .download-btn:active {
  transform: scale(0.98);
}

.page-products .safe-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--mist);
}

.page-products .safe-badge img {
  max-width: 48px;
  height: auto;
}

.page-products .index-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--navy-ink);
  border-radius: 8px;
  font-size: 0.85rem;
}

.page-products .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mist);
  text-decoration: none;
  line-height: 1.6;
}

.page-products .legend-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.page-products a.legend-item {
  color: var(--gold-light);
  transition: color 0.2s ease;
}

.page-products a.legend-item:hover {
  color: var(--gold);
}

/* 平台服务特性 */
.page-products .feature-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.page-products .feature-figure img,
.page-products .install-figure img,
.page-products .changelog-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .feature-content {
  max-width: 60ch;
}

.page-products .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-products .feature-list li {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--navy-ink);
}

.page-products .feature-list li:first-child {
  padding-top: 0;
}

.page-products .feature-list svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 0.3rem;
}

.page-products .feature-list strong {
  display: block;
  color: var(--pearl);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.page-products .feature-list p {
  margin: 0;
  color: var(--mist);
  font-size: 0.95rem;
}

/* 版本更新记录 */
.page-products .changelog-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.page-products .changelog-list {
  margin-bottom: 1rem;
}

.page-products .changelog-item {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-products .changelog-item summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--pearl);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.page-products .changelog-item summary:hover {
  color: var(--gold-light);
}

.page-products .changelog-item p {
  color: var(--mist);
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
}

.page-products .badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-deepest);
  background: var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-sans);
}

.page-products .badge.current {
  background: var(--gold-light);
}

.page-products .text-link {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
}

.page-products .text-link:hover {
  color: var(--gold);
}

/* 安装指引 */
.page-products .install-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.page-products .install-content {
  max-width: 60ch;
}

.page-products .install-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.page-products .install-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
  color: var(--mist);
}

.page-products .install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--navy-ink);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  text-align: center;
  line-height: 1.8rem;
  font-size: 0.9rem;
}

.page-products .install-note {
  font-size: 0.95rem;
  color: var(--mist);
}

.page-products .install-note a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
}

.page-products .install-note a:hover {
  color: var(--gold);
}

.page-products .changelog-figure img,
.page-products .install-figure img,
.page-products .feature-figure img {
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .page-products * {
    transition: none !important;
  }
}

/* 桌面端布局 */
@media (min-width: 800px) {
  .page-products .content-area {
    padding: calc(var(--spacing) * 2);
  }

  .page-products .download-panel {
    grid-template-columns: 1.2fr 1fr;
    padding: calc(var(--spacing) * 2);
  }

  .page-products .download-action {
    align-items: flex-end;
    text-align: right;
  }

  .page-products .download-action .safe-badge {
    justify-content: flex-end;
  }

  .page-products .feature-layout {
    grid-template-columns: 1fr 1fr;
  }

  .page-products .changelog-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .page-products .install-wrap {
    grid-template-columns: 1fr 1fr;
  }
}
