.page-products {
  --products-gold-deep: #B8860B;
  --products-red-deep: #9A0E0E;
  --products-radius-xl: 2rem;
  --products-radius-lg: 1.25rem;
  --products-radius-md: 0.9rem;
  --products-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.4);
}

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

.page-products section[id] {
  scroll-margin-top: 5rem;
}

.page-products .download-hero,
.page-products .download-section,
.page-products .install-guide,
.page-products .sys-requirements,
.page-products .update-highlights,
.page-products .faq-section,
.page-products .page-help-links {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.page-products .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 首屏 hero ===== */
.page-products .download-hero {
  position: relative;
  overflow: hidden;
}

.page-products .download-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 194, 66, 0.16), transparent 42%),
    linear-gradient(rgba(245, 194, 66, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 194, 66, 0.05) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  pointer-events: none;
}

.page-products .download-hero::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -6rem;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgba(245, 194, 66, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(245, 194, 66, 0.06), 0 0 0 4rem rgba(245, 194, 66, 0.04);
  z-index: 0;
  pointer-events: none;
}

.page-products .download-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page-products .download-hero .display-title {
  margin: 0.25rem 0 0.5rem;
}

.page-products .download-hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--color-gold);
  margin: 0 0 1rem;
}

.page-products .download-hero__lead {
  color: rgba(248, 249, 250, 0.82);
  line-height: 1.8;
  font-size: 1.02rem;
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.page-products .download-hero__media img {
  display: block;
  width: 100%;
  border-radius: var(--products-radius-xl);
  border: 1px solid rgba(245, 194, 66, 0.5);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.5);
}

/* ===== 下载版本选择 ===== */
.page-products .download-section__main {
  min-width: 0;
}

.page-products .platform-switch {
  margin-top: 1.75rem;
}

.page-products .platform-switch__body {
  min-width: 0;
}

.page-products .platform-switch__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-products .platform-switch__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 14, 39, 0.14);
  background: var(--color-porcelain);
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  user-select: none;
}

.page-products .platform-switch__tab:hover {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 0.25rem rgba(245, 194, 66, 0.16);
}

.page-products .platform-switch__tabs label[for="plat-win"] {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ink);
}

.page-products .platform-switch:has(input:checked) .platform-switch__tabs label {
  background: var(--color-porcelain);
  border-color: rgba(10, 14, 39, 0.14);
  color: var(--color-ink);
}

.page-products .platform-switch:has(#plat-win:checked) .platform-switch__tabs label[for="plat-win"],
.page-products .platform-switch:has(#plat-mac:checked) .platform-switch__tabs label[for="plat-mac"],
.page-products .platform-switch:has(#plat-android:checked) .platform-switch__tabs label[for="plat-android"],
.page-products .platform-switch:has(#plat-ios:checked) .platform-switch__tabs label[for="plat-ios"] {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ink);
}

.page-products .platform-panel {
  display: block;
  margin-top: 1.5rem;
}

.page-products .platform-switch__panels {
  min-width: 0;
}

.page-products .platform-switch:has(#plat-win:checked) .platform-panel:not(.platform-panel--windows),
.page-products .platform-switch:has(#plat-mac:checked) .platform-panel:not(.platform-panel--mac),
.page-products .platform-switch:has(#plat-android:checked) .platform-panel:not(.platform-panel--android),
.page-products .platform-switch:has(#plat-ios:checked) .platform-panel:not(.platform-panel--ios) {
  display: none;
}

.page-products .platform-panel__card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--color-porcelain);
  border-radius: var(--products-radius-xl);
  padding: 1.5rem;
  border: 1px solid rgba(245, 194, 66, 0.35);
  box-shadow: var(--products-shadow);
}

.page-products .platform-panel__meta {
  flex: 1 1 auto;
  min-width: 0;
}

.page-products .platform-panel__title {
  margin: 0.65rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--color-ink);
}

.page-products .platform-panel__version {
  display: inline-block;
  font-family: var(--font-numeric);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--products-gold-deep);
  background: var(--color-paper);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin: 0 0 0.8rem;
}

.page-products .platform-panel__desc {
  color: rgba(17, 17, 17, 0.72);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.page-products .platform-panel__list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}

.page-products .platform-panel__list li {
  position: relative;
  padding-left: 1.5rem;
  color: rgba(17, 17, 17, 0.8);
  line-height: 1.7;
  margin-bottom: 0.35rem;
  font-size: 0.94rem;
}

.page-products .platform-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0.2rem rgba(245, 194, 66, 0.2);
}

.page-products .platform-panel__shot {
  flex: 0 0 auto;
}

.page-products .platform-panel__shot img {
  display: block;
  width: 100%;
  border-radius: var(--products-radius-lg);
  object-fit: cover;
}

.page-products .platform-panel__shot--phone img {
  max-width: 16rem;
  max-height: 30rem;
  margin: 0 auto;
}

.page-products .platform-panel__shot--qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.page-products .platform-panel__shot--qr img {
  width: 8rem;
  height: 8rem;
  border-radius: 1rem;
  border: 0.35rem solid var(--color-porcelain);
  box-shadow: 0 0 0 1px rgba(10, 14, 39, 0.08);
}

.page-products .platform-panel__qr-text {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(17, 17, 17, 0.65);
}

.page-products .platform-panel__shot--mac {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 13rem;
}

.page-products .platform-panel__mac-decor {
  width: 100%;
  min-height: 13rem;
  border-radius: var(--products-radius-lg);
  background:
    radial-gradient(circle at 75% 22%, rgba(245, 194, 66, 0.35), transparent 45%),
    linear-gradient(135deg, #0A0E27, #1B2340);
  border: 1px solid rgba(245, 194, 66, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-gold);
  text-align: center;
}

.page-products .platform-panel__mac-decor span {
  font-family: var(--font-numeric);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.page-products .platform-panel__mac-decor p {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: rgba(248, 249, 250, 0.82);
  line-height: 1.5;
}

/* ===== 下载按钮与悬停版本号 ===== */
.page-products .btn--gold {
  background: var(--color-gold);
  color: var(--color-ink);
  border-radius: 999px;
  padding: 0.9rem 1.9rem;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: 0 0.5rem 1.5rem rgba(245, 194, 66, 0.28);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.page-products .btn--gold:hover {
  background: #FFD86B;
  transform: translateY(-2px);
  box-shadow: 0 0.8rem 2rem rgba(245, 194, 66, 0.4);
}

.page-products .platform-panel__btn {
  position: relative;
  display: inline-block;
}

.page-products .platform-panel__btn:hover::after {
  content: "V3.2.0";
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--color-night);
  color: var(--color-gold);
  font-family: var(--font-numeric);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.page-products .platform-panel--android .platform-panel__btn:hover::after,
.page-products .platform-panel--ios .platform-panel__btn:hover::after {
  content: "V3.1.8";
}

/* ===== 安装指引 ===== */
.page-products .install-guide__main {
  min-width: 0;
}

.page-products .install-guide__sub {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: var(--color-red);
  margin: 2.25rem 0 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-products .install-guide__sub::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(211, 47, 47, 0.35), transparent);
}

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

.page-products .install-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.page-products .install-step__num {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--color-night);
  color: var(--color-gold);
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0.3rem rgba(245, 194, 66, 0.16);
}

.page-products .install-step__body {
  flex: 1;
  min-width: 0;
  padding-top: 0.15rem;
}

.page-products .install-step__body strong {
  display: block;
  font-size: 1.02rem;
  color: var(--color-ink);
  margin-bottom: 0.25rem;
}

.page-products .install-step__body p {
  margin: 0;
  color: rgba(17, 17, 17, 0.72);
  line-height: 1.7;
  font-size: 0.95rem;
}

.page-products .install-guide__figure {
  margin: 1.75rem 0 0.5rem;
}

.page-products .install-guide__figure img {
  width: 100%;
  border-radius: var(--products-radius-lg);
  border: 1px solid rgba(245, 194, 66, 0.4);
  box-shadow: var(--products-shadow);
  display: block;
}

.page-products .install-guide__figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: rgba(17, 17, 17, 0.55);
  text-align: center;
}

.page-products .safety-tip {
  margin-top: 2.25rem;
  padding: 1.4rem 1.6rem;
  background: var(--color-porcelain);
  border-left: 0.35rem solid var(--color-gold);
  border-radius: 0 var(--products-radius-lg) var(--products-radius-lg) 0;
}

.page-products .safety-tip__title {
  margin: 0 0 0.6rem;
  font-weight: 700;
  color: var(--color-ink);
}

.page-products .safety-tip ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .safety-tip li {
  position: relative;
  padding-left: 1.4rem;
  color: rgba(17, 17, 17, 0.72);
  line-height: 1.7;
  font-size: 0.93rem;
  margin-bottom: 0.35rem;
}

.page-products .safety-tip li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-teal);
  font-weight: 700;
}

/* ===== 系统要求 ===== */
.page-products .sys-requirements__main {
  min-width: 0;
}

.page-products .sys-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--products-radius-lg);
  overflow: hidden;
  color: var(--color-porcelain);
}

.page-products .sys-table th,
.page-products .sys-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(245, 194, 66, 0.16);
  vertical-align: top;
  line-height: 1.6;
  font-size: 0.94rem;
}

.page-products .sys-table thead th {
  background: rgba(245, 194, 66, 0.12);
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-products .sys-table tbody th {
  color: var(--color-gold);
  font-weight: 600;
  white-space: nowrap;
}

.page-products .sys-table tbody tr:last-child th,
.page-products .sys-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .sys-table tbody tr:hover {
  background: rgba(245, 194, 66, 0.05);
}

.page-products .sys-requirements__tip {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: rgba(248, 249, 250, 0.55);
}

/* ===== V3更新亮点 ===== */
.page-products .update-highlights .content-wrap {
  max-width: var(--content-narrow);
}

.page-products .update-highlights .display-title {
  margin-bottom: 1.75rem;
}

.page-products .highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.page-products .highlight-card {
  background: var(--color-night);
  border-radius: var(--products-radius-lg);
  padding: 1.75rem;
  border: 1px solid rgba(245, 194, 66, 0.22);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.page-products .highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.2rem 2.5rem rgba(10, 14, 39, 0.2);
}

.page-products .highlight-card__num {
  font-family: var(--font-numeric);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(245, 194, 66, 0.4);
  border-radius: 999px;
}

.page-products .highlight-card h3 {
  margin: 0 0 0.55rem;
  color: var(--color-porcelain);
  font-size: 1.2rem;
  font-family: var(--font-display);
}

.page-products .highlight-card p {
  margin: 0;
  color: rgba(248, 249, 250, 0.72);
  line-height: 1.7;
  font-size: 0.93rem;
}

.page-products .update-highlights__footer {
  margin: 2rem 0 0;
  color: rgba(17, 17, 17, 0.62);
  font-size: 0.93rem;
}

.page-products .update-highlights__footer a {
  color: var(--color-teal);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.page-products .update-highlights__footer a:hover {
  border-bottom-color: var(--color-teal);
}

/* ===== 常见安装问题 ===== */
.page-products .faq-section__main {
  min-width: 0;
}

.page-products .faq-list {
  margin-top: 1.5rem;
}

.page-products .faq-item {
  background: var(--color-porcelain);
  border: 1px solid rgba(10, 14, 39, 0.08);
  border-radius: var(--products-radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.page-products .faq-item:hover {
  box-shadow: 0 0.6rem 1.4rem rgba(10, 14, 39, 0.08);
}

.page-products .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--color-ink);
  font-size: 0.98rem;
  user-select: none;
}

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

.page-products .faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 194, 66, 0.22);
  color: var(--color-red);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.3s, background 0.3s;
}

.page-products .faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  background: var(--color-gold);
  color: var(--color-ink);
}

.page-products .faq-item p {
  margin: 0;
  padding: 0 1.35rem 1.2rem;
  color: rgba(17, 17, 17, 0.72);
  line-height: 1.75;
  font-size: 0.94rem;
}

.page-products .faq-section__footer {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  color: rgba(17, 17, 17, 0.62);
}

.page-products .faq-section__footer a {
  color: var(--color-teal);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.page-products .faq-section__footer a:hover {
  border-bottom-color: var(--color-teal);
}

/* ===== 帮助链接 ===== */
.page-products .page-help-links .content-wrap {
  max-width: var(--content-narrow);
}

.page-products .page-help-links .display-title {
  margin-bottom: 1.75rem;
}

.page-products .page-help-links__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-products .page-help-links__card {
  display: block;
  background: linear-gradient(135deg, rgba(245, 194, 66, 0.1), rgba(245, 194, 66, 0.02));
  border: 1px solid rgba(245, 194, 66, 0.35);
  border-radius: var(--products-radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.page-products .page-help-links__card:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  background: linear-gradient(135deg, rgba(245, 194, 66, 0.2), rgba(245, 194, 66, 0.04));
}

.page-products .page-help-links__tag {
  display: inline-block;
  font-weight: 700;
  color: var(--color-gold);
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.page-products .page-help-links__card p {
  margin: 0;
  color: rgba(248, 249, 250, 0.72);
  line-height: 1.7;
  font-size: 0.93rem;
}

/* ===== 响应式增强 ===== */
@media (min-width: 768px) {
  .page-products .platform-switch__tabs {
    gap: 0.65rem;
  }

  .page-products .platform-panel__card {
    flex-direction: row;
    align-items: center;
    padding: 1.9rem;
  }

  .page-products .platform-panel__shot {
    flex: 0 0 45%;
  }

  .page-products .platform-panel__shot--phone img {
    max-width: 14rem;
    max-height: 26rem;
  }

  .page-products .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .page-help-links__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-products .download-hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .page-products .download-hero__copy {
    flex: 1.1;
  }

  .page-products .download-hero__media {
    flex: 1;
  }

  .page-products .download-hero__lead {
    margin-bottom: 2rem;
  }

  .page-products .platform-switch__body {
    display: grid;
    grid-template-columns: 13rem 1fr;
    gap: 1.75rem;
    align-items: start;
  }

  .page-products .platform-switch__tabs {
    flex-direction: column;
    gap: 0.4rem;
    background: rgba(10, 14, 39, 0.05);
    border-radius: var(--products-radius-lg);
    padding: 0.75rem;
  }

  .page-products .platform-switch__tab {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 1.25rem;
  }

  .page-products .platform-panel {
    margin-top: 0;
    min-width: 0;
  }

  .page-products .platform-panel__card {
    flex-direction: row;
    padding: 2.1rem;
    gap: 2rem;
  }

  .page-products .platform-panel__meta {
    flex: 1.05;
  }

  .page-products .platform-panel__shot {
    flex: 0 0 46%;
  }

  .page-products .platform-panel__shot--qr {
    min-height: 14rem;
  }

  .page-products .highlight-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
