.page-products {
  --hero-overlay-gold: rgba(232, 200, 122, 0.08);
  --step-connector: rgba(201, 168, 76, 0.35);
  --card-gap: 12px;
}

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

.page-products .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-block: 20px 4px;
  font-size: 14px;
  color: var(--color-muted);
  background: var(--color-body-bg);
}

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

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

.page-products .breadcrumb__sep {
  opacity: 0.5;
}

.page-products .section-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold-500);
}

.page-products .section-dark .section-eyebrow {
  color: var(--color-gold-300);
}

.page-products .section-heading h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--color-ink);
}

.page-products .section-heading > p:last-child {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 640px;
}

/* ===== Hero / 版本快速入口 ===== */
.page-products .version-hero {
  position: relative;
  background: var(--color-space-900);
  color: var(--color-white);
  overflow: hidden;
  padding: 44px 0 64px;
}

.page-products .version-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--hero-overlay-gold) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.page-products .version-hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(232, 200, 122, 0.16), transparent 70%);
  pointer-events: none;
}

.page-products .version-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.page-products .version-hero__copy {
  flex: 0 1 50%;
}

.page-products .version-hero__copy h1 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1px;
  background: linear-gradient(120deg, var(--color-white) 20%, var(--color-gold-300) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-products .version-hero__lead {
  margin: 0 0 28px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.page-products .version-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(19, 46, 84, 0.6);
  border: 1px solid rgba(232, 200, 122, 0.18);
  border-radius: var(--radius-md);
}

.page-products .version-meta__label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.page-products .version-meta__value {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-gold-300);
}

.page-products .version-meta .version-num {
  font-size: 20px;
}

.page-products .version-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.page-products .btn:active {
  transform: translateY(1px);
}

.page-products .btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(255, 122, 61, 0.35);
}

.page-products .btn-primary:hover {
  background: #ff905d;
  box-shadow: 0 10px 30px rgba(255, 122, 61, 0.45);
}

.page-products .btn-outline {
  border: 1px solid var(--color-gold-500);
  color: var(--color-gold-300);
  background: transparent;
}

.page-products .btn-outline:hover {
  background: rgba(232, 200, 122, 0.1);
}

.page-products .version-hero__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.page-products .version-hero__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-capsule);
}

/* ===== 适配清单 ===== */
.page-products .compat-section {
  background: var(--color-body-bg);
  padding: 56px 0;
}

.page-products .compat-heading {
  margin-bottom: 28px;
}

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

.page-products .compat-filter__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-products .compat-filter__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-products .compat-filter__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid #d5dfeb;
  background: var(--color-white);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

.page-products .compat-filter__label:hover {
  border-color: var(--color-gold-500);
  color: var(--color-ink);
}

.page-products .compat-filter__list {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.page-products .compat-card {
  display: none;
  grid-template-columns: 1.2fr 1fr 1.4fr auto;
  align-items: center;
  gap: 12px;
  min-width: 680px;
  padding: 16px 18px;
  background: var(--color-white);
  border: 1px solid #e3eaf2;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-products .compat-card:hover {
  border-color: var(--color-space-500);
  transform: translateY(-2px);
}

.page-products .compat-card__name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
}

.page-products .compat-card__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-muted);
}

.page-products .compat-card__action {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
}

.page-products .compat-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-ink);
}

.page-products .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.page-products .status-dot--ready {
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(35, 181, 126, 0.18);
}

.page-products .status-dot--manual {
  background: var(--color-gold-500);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.page-products .compat-filter__input:checked + .compat-filter__labels + .compat-filter__list .compat-card {
  display: grid;
}

/* 筛选状态 */
.page-products #f-all:checked ~ .compat-filter__labels .compat-filter__label[for="f-all"],
.page-products #f-huawei:checked ~ .compat-filter__labels .compat-filter__label[for="f-huawei"],
.page-products #f-xiaomi:checked ~ .compat-filter__labels .compat-filter__label[for="f-xiaomi"],
.page-products #f-oppo:checked ~ .compat-filter__labels .compat-filter__label[for="f-oppo"],
.page-products #f-vivo:checked ~ .compat-filter__labels .compat-filter__label[for="f-vivo"],
.page-products #f-honor:checked ~ .compat-filter__labels .compat-filter__label[for="f-honor"],
.page-products #f-samsung:checked ~ .compat-filter__labels .compat-filter__label[for="f-samsung"] {
  background: var(--color-space-900);
  border-color: var(--color-space-900);
  color: var(--color-gold-300);
}

/* 筛选显示/隐藏逻辑 */
.page-products #f-all:checked ~ .compat-filter__list .compat-card {
  display: grid;
}

.page-products #f-huawei:checked ~ .compat-filter__list .compat-card:not([data-brand="huawei"]),
.page-products #f-xiaomi:checked ~ .compat-filter__list .compat-card:not([data-brand="xiaomi"]),
.page-products #f-oppo:checked ~ .compat-filter__list .compat-card:not([data-brand="oppo"]),
.page-products #f-vivo:checked ~ .compat-filter__list .compat-card:not([data-brand="vivo"]),
.page-products #f-honor:checked ~ .compat-filter__list .compat-card:not([data-brand="honor"]),
.page-products #f-samsung:checked ~ .compat-filter__list .compat-card:not([data-brand="samsung"]) {
  display: none;
}

.page-products .compat-section__note {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--color-muted);
  border-left: 3px solid var(--color-gold-500);
  padding-left: 14px;
}

/* ===== 步骤区 ===== */
.page-products .steps-section {
  background: var(--color-space-900);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-products .steps-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(232, 200, 122, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-products .steps-section__inner {
  position: relative;
  z-index: 1;
}

.page-products .steps-heading h2 {
  color: var(--color-white);
}

.page-products .steps-heading > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

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

.page-products .step-item {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 0 0 40px;
}

.page-products .step-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 60px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--step-connector), transparent);
}

.page-products .step-item__num {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-space-700);
  border: 1px solid var(--color-gold-500);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gold-300);
  box-shadow: 0 0 0 6px rgba(232, 200, 122, 0.05);
}

.page-products .step-item__content {
  flex: 1;
  padding-bottom: 8px;
}

.page-products .step-item__content h3 {
  margin: 4px 0 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-white);
}

.page-products .step-item__content p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.page-products .step-item__hint {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(232, 200, 122, 0.08);
  border: 1px solid rgba(232, 200, 122, 0.22);
  border-radius: var(--radius-sm);
  font-size: 13px !important;
  color: var(--color-gold-300) !important;
}

.page-products .step-visual {
  margin-top: 24px;
}

.page-products .step-visual img {
  width: 100%;
  max-width: 960px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-capsule);
}

/* ===== 版本更新日志 ===== */
.page-products .changelog-section {
  padding: 60px 0;
  background: var(--color-white);
}

.page-products .changelog-layout {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 36px;
}

.page-products .timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.page-products .timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-gold-500), var(--color-space-500));
}

.page-products .timeline__item {
  position: relative;
  padding-left: 36px;
}

.page-products .timeline__marker {
  position: absolute;
  left: 2px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-gold-500);
}

.page-products .timeline__item--current .timeline__marker {
  background: var(--color-gold-300);
  box-shadow: 0 0 0 4px rgba(232, 200, 122, 0.25);
}

.page-products .timeline__version {
  padding: 20px;
  background: var(--color-body-bg);
  border: 1px solid #e3eaf2;
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-products .timeline__version:hover {
  border-color: var(--color-space-500);
  box-shadow: var(--shadow-card);
}

.page-products .timeline__version h3 {
  margin: 8px 0 4px;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--color-ink);
}

.page-products .timeline__desc {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--color-muted);
}

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

.page-products .timeline__points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-ink);
}

.page-products .timeline__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-gold-500);
  border-radius: 50%;
}

.page-products .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  background: #eef1f6;
  color: var(--color-muted);
}

.page-products .tag--latest {
  background: rgba(35, 181, 126, 0.12);
  color: var(--color-success);
}

.page-products .changelog-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-products .changelog-aside img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.page-products .changelog-aside__note {
  padding: 24px;
  background: var(--color-space-900);
  border-radius: var(--radius-md);
  color: var(--color-white);
}

.page-products .changelog-aside__note h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 20px;
}

.page-products .changelog-aside__note p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.page-products .changelog-aside__note .btn-outline {
  border-color: var(--color-gold-500);
  color: var(--color-gold-300);
  padding: 10px 20px;
}

/* ===== 常见兼容问题 ===== */
.page-products .faq-section {
  background: var(--color-body-bg);
  padding: 60px 0;
}

.page-products .faq-heading {
  margin-bottom: 28px;
}

.page-products .faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.page-products .faq-panel {
  padding: 20px 22px;
  background: var(--color-white);
  border: 1px solid #e3eaf2;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease;
}

.page-products .faq-panel:hover {
  border-color: var(--color-gold-500);
}

.page-products .faq-panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.4;
  color: var(--color-ink);
}

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

.page-products .faq-footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  background: var(--color-space-900);
  border-radius: var(--radius-lg);
  align-items: flex-start;
}

.page-products .faq-footer img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius-md);
}

.page-products .faq-footer__link {
  color: var(--color-white);
}

.page-products .faq-footer__link h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 20px;
}

.page-products .faq-footer__link p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== 底部下载引导横幅 ===== */
.page-products .guide-section {
  background: linear-gradient(120deg, var(--color-space-700), var(--color-space-900));
  padding: 48px 0;
  color: var(--color-white);
}

.page-products .guide-section__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-products .guide-section h2 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 28px;
}

.page-products .guide-section p {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.page-products .guide-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .guide-section__actions .btn-primary {
  box-shadow: 0 8px 24px rgba(255, 122, 61, 0.3);
}

/* ===== 滚动显现 ===== */
.page-products [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-products [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-products [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== 桌面增强 ===== */
@media (min-width: 768px) {
  .page-products .version-hero {
    padding: 56px 0 80px;
  }

  .page-products .version-hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }

  .page-products .version-hero__copy {
    min-width: 0;
  }

  .page-products .version-hero__copy h1 {
    font-size: 46px;
  }

  .page-products .version-hero__lead {
    font-size: 17px;
  }

  .page-products .version-meta {
    gap: 16px;
    padding: 24px;
  }

  .page-products .compat-section {
    padding: 72px 0;
  }

  .page-products .compat-card {
    min-width: 720px;
    padding: 16px 22px;
  }

  .page-products .steps-section {
    padding: 76px 0;
  }

  .page-products .step-item {
    gap: 28px;
  }

  .page-products .step-item:not(:last-child)::before {
    left: 30px;
  }

  .page-products .step-item__num {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    font-size: 22px;
  }

  .page-products .step-item__content h3 {
    font-size: 22px;
  }

  .page-products .step-item__content p {
    font-size: 16px;
  }

  .page-products .step-visual {
    margin-top: 32px;
    text-align: center;
  }

  .page-products .changelog-section {
    padding: 76px 0;
  }

  .page-products .changelog-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .page-products .timeline {
    flex: 1.2;
  }

  .page-products .changelog-aside {
    flex: 0.8;
    position: sticky;
    top: calc(var(--header-offset) + 24px);
  }

  .page-products .faq-section {
    padding: 72px 0;
  }

  .page-products .faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .page-products .faq-panel {
    padding: 22px 24px;
  }

  .page-products .faq-footer {
    flex-direction: row;
    align-items: center;
    gap: 36px;
    padding: 32px;
  }

  .page-products .faq-footer img {
    flex: 0 1 380px;
    max-width: 380px;
  }

  .page-products .faq-footer__link {
    flex: 1;
  }

  .page-products .guide-section {
    padding: 56px 0;
  }

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

@media (min-width: 1024px) {
  .page-products .version-hero__copy h1 {
    font-size: 52px;
  }

  .page-products .version-hero__lead {
    font-size: 18px;
  }

  .page-products .section-heading h2 {
    font-size: 34px;
  }

  .page-products .compat-filter__labels {
    margin-bottom: 24px;
  }

  .page-products .timeline {
    gap: 32px;
  }
}
