.page-products {
  --pp-max: 1200px;
  --pp-pad: 20px;
  font-family: var(--font-body);
  color: var(--brand);
  line-height: 1.7;
  background: var(--ivory);
}

.page-products .pp-wrap {
  max-width: var(--pp-max);
  margin-inline: auto;
  padding-inline: var(--pp-pad);
}

/* ===== 下载入口 Hero ===== */
.page-products .download-hero {
  background: var(--brand);
  color: var(--ivory);
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}

.page-products .download-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
  z-index: 1;
}

.page-products .download-hero::after {
  content: "尊";
  position: absolute;
  right: -30px;
  bottom: -50px;
  font-family: var(--font-display);
  font-size: 16rem;
  color: rgba(201, 168, 124, 0.05);
  line-height: 1;
  pointer-events: none;
}

/* 面包屑 */
.page-products .pp-breadcrumb {
  padding-block: 14px;
  border-bottom: 1px solid rgba(201, 168, 124, 0.2);
  font-size: 0.875rem;
  color: rgba(245, 240, 230, 0.7);
  position: relative;
  z-index: 1;
}

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

.page-products .pp-breadcrumb a:hover {
  color: #e8cfae;
  text-decoration: underline;
}

.page-products .pp-breadcrumb-sep {
  margin-inline: 10px;
  color: rgba(245, 240, 230, 0.4);
}

/* Hero 头部 */
.page-products .download-hero-head {
  padding-top: 48px;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.page-products .download-hero-kicker {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-products .download-hero-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 700;
}

.page-products .download-hero-lead {
  font-size: 1.0625rem;
  color: rgba(245, 240, 230, 0.82);
  max-width: 640px;
  margin-bottom: 40px;
}

/* Hero 主图 */
.page-products .download-hero-figure {
  margin: 0 0 40px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.page-products .download-hero-figure img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border: 1px solid rgba(201, 168, 124, 0.4);
  box-shadow: var(--shadow-gold);
}

/* 下载网格 */
.page-products .download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  position: relative;
  z-index: 1;
}

/* 下载卡片 */
.page-products .download-card {
  background: rgba(245, 240, 230, 0.06);
  border: 1px solid rgba(201, 168, 124, 0.35);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-products .download-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.page-products .download-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.page-products .download-card-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.page-products .download-version-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 4px 12px;
  background: var(--gold);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 999px;
}

.page-products .download-version-date {
  font-size: 0.875rem;
  color: rgba(201, 168, 124, 0.85);
  margin-bottom: 16px;
}

.page-products .download-card-desc {
  font-size: 0.9375rem;
  color: rgba(245, 240, 230, 0.85);
  margin-bottom: 20px;
}

.page-products .download-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
}

.page-products .download-feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  color: rgba(245, 240, 230, 0.75);
}

.page-products .download-feature-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.75rem;
  color: var(--gold);
}

/* 下载按钮 */
.page-products .btn-download-new,
.page-products .btn-download-old {
  display: inline-block;
  text-align: center;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.page-products .btn-download-new {
  background: var(--gold);
  color: var(--brand);
  box-shadow: var(--shadow-gold);
}

.page-products .btn-download-old {
  background: transparent;
  color: var(--gold);
}

.page-products .btn-download-new:hover,
.page-products .btn-download-old:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 124, 0.25), var(--shadow-gold);
}

.page-products .btn-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.3s var(--ease);
}

.page-products .btn-download-new:hover .btn-arrow,
.page-products .btn-download-old:hover .btn-arrow {
  transform: translateX(4px);
}

.page-products .download-btn-note {
  font-size: 0.8125rem;
  color: rgba(245, 240, 230, 0.5);
  text-align: center;
  margin-top: 12px;
}

/* 登录对照栏 */
.page-products .download-compare-panel {
  background: rgba(139, 58, 42, 0.18);
  border: 2px solid var(--red);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-products .download-compare-panel h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.page-products .compare-panel-lead {
  font-size: 0.9375rem;
  color: rgba(245, 240, 230, 0.8);
  margin-bottom: 24px;
  max-width: 260px;
}

/* 历史模式开关 */
.page-products .history-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(245, 240, 230, 0.08);
  border: 1px solid rgba(201, 168, 124, 0.3);
  cursor: default;
  user-select: none;
}

.page-products .history-mode-label {
  font-size: 0.875rem;
  color: var(--ivory);
  font-weight: 600;
}

.page-products .history-mode-track {
  position: relative;
  width: 44px;
  height: 22px;
  background: rgba(245, 240, 230, 0.2);
  border-radius: 22px;
  display: inline-block;
}

.page-products .history-mode-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.page-products .compare-panel-figure {
  margin: 24px 0 0;
}

.page-products .compare-panel-figure img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* ===== 版本对比 ===== */
.page-products .version-compare {
  background: var(--cream);
  padding-block: 64px;
}

.page-products .section-head {
  max-width: 700px;
  margin-bottom: 40px;
}

.page-products .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  padding-left: 16px;
}

.page-products .section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
}

.page-products .section-head p {
  color: var(--grey);
  font-size: 1rem;
}

.page-products .version-compare-icon-figure {
  margin: 0 0 32px;
  display: flex;
  justify-content: center;
}

.page-products .version-compare-icon-figure img {
  width: 200px;
  max-width: 100%;
  height: auto;
}

/* 对比表格 */
.page-products .version-compare-table-wrap {
  overflow-x: auto;
}

.page-products .version-compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--ivory);
  box-shadow: var(--shadow-md);
}

.page-products .version-compare-table th,
.page-products .version-compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(26, 58, 52, 0.1);
}

.page-products .version-compare-table thead th {
  background: var(--brand);
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-bottom: none;
}

.page-products .version-compare-table tbody th {
  font-weight: 600;
  color: var(--brand);
  width: 140px;
  background: rgba(234, 221, 203, 0.5);
}

.page-products .version-compare-table tbody tr:nth-child(even) td {
  background: rgba(234, 221, 203, 0.25);
}

.page-products .version-compare-table tbody tr:hover th,
.page-products .version-compare-table tbody tr:hover td {
  background: rgba(201, 168, 124, 0.2);
}

.page-products .version-compare-table tbody tr.history-mode-row {
  border-left: 4px solid var(--red);
}

.page-products .version-compare-table tbody tr.history-mode-row th,
.page-products .version-compare-table tbody tr.history-mode-row td {
  background: rgba(139, 58, 42, 0.06);
}

.page-products .version-compare-table tbody tr.history-mode-row:hover th,
.page-products .version-compare-table tbody tr.history-mode-row:hover td {
  background: rgba(139, 58, 42, 0.12);
}

/* ===== 安装指引 ===== */
.page-products .install-guide {
  background: var(--ivory);
  padding-block: 64px;
}

.page-products .install-guide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-products .install-guide-figure {
  margin: 0;
  display: flex;
  justify-content: center;
}

.page-products .install-guide-figure img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border: 1px solid rgba(26, 58, 52, 0.15);
  box-shadow: var(--shadow-sm);
}

.page-products .install-steps {
  counter-reset: install-step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.page-products .install-steps li {
  counter-increment: install-step;
  padding: 20px 24px 20px 60px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  position: relative;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-products .install-steps li:hover {
  background: #e4d3c0;
  transform: translateX(4px);
}

.page-products .install-steps li::before {
  content: counter(install-step);
  position: absolute;
  left: 14px;
  top: 20px;
  width: 30px;
  height: 30px;
  background: var(--brand);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-products .install-steps h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-products .install-steps p {
  font-size: 0.9375rem;
  color: var(--grey);
  margin: 0;
}

/* ===== 常见问题 ===== */
.page-products .download-faq {
  background: var(--cream);
  padding-block: 64px;
}

.page-products .download-faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-products .faq-accordion {
  display: grid;
  gap: 12px;
}

.page-products .faq-item {
  background: var(--ivory);
  border: 1px solid rgba(26, 58, 52, 0.15);
  border-left: 4px solid var(--gold);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-products .faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-left-color: var(--red);
}

.page-products .faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.3s var(--ease);
}

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

.page-products .faq-item summary::-webkit-details-marker {
  display: none;
}

.page-products .faq-item summary::after {
  content: "＋";
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
}

.page-products .faq-item[open] summary::after {
  content: "－";
  color: var(--red);
}

.page-products .faq-answer {
  padding: 0 20px 20px;
  color: var(--grey);
  font-size: 0.9375rem;
}

.page-products .faq-answer p {
  margin: 0;
}

.page-products .download-faq-figure {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-products .download-faq-figure img {
  width: 200px;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(201, 168, 124, 0.3);
  background: var(--ivory);
  padding: 8px;
}

/* FAQ 帮助入口 */
.page-products .faq-help-entry {
  margin-top: 40px;
  padding: 28px;
  background: var(--brand);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.page-products .faq-help-entry p {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(245, 240, 230, 0.85);
}

.page-products .faq-help-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ===== 响应式 ===== */
@media (min-width: 900px) {
  .page-products {
    --pp-pad: 48px;
  }

  .page-products .download-hero::after {
    font-size: 20rem;
    right: -10px;
  }

  .page-products .download-grid {
    grid-template-columns: 1fr 300px 1fr;
    gap: 32px;
    align-items: stretch;
  }

  .page-products .download-hero-head h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
  }

  .page-products .download-hero-figure img {
    max-width: 420px;
  }

  .page-products .install-guide-layout {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .page-products .download-faq-layout {
    grid-template-columns: 1fr 220px;
    gap: 48px;
    align-items: start;
  }

  .page-products .download-faq-figure {
    position: sticky;
    top: 100px;
  }

  .page-products .download-faq-figure img {
    width: 200px;
    height: 200px;
    object-fit: cover;
  }

  .page-products .faq-help-entry {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 32px 40px;
  }
}
