.page-products {
  --pr-line: rgba(232, 237, 244, 0.12);
  --pr-line-soft: rgba(232, 237, 244, 0.06);
  --pr-panel: #101F33;
  --pr-text: rgba(232, 237, 244, 0.82);
}

/* ---------- 面包屑落位 ---------- */
.page-products .breadcrumb {
  margin-top: calc(var(--header-h) + 20px);
  margin-bottom: 4px;
}

/* ---------- 首屏 ---------- */
.page-products .pr-hero {
  position: relative;
  padding: 20px 0 40px;
  overflow: hidden;
}

.page-products .pr-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -12%;
  right: -12%;
  height: 560px;
  background:
    radial-gradient(58% 100% at 20% 0%, rgba(43, 231, 210, 0.16), transparent 70%),
    radial-gradient(46% 88% at 86% 8%, rgba(255, 122, 47, 0.12), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.page-products .pr-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
}

.page-products .pr-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 7.4vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 10px 0 18px;
}

.page-products .pr-hero__accent {
  color: var(--cyan);
  display: block;
}

.page-products .pr-hero__lede {
  margin: 0;
  max-width: 56ch;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--pr-text);
}

.page-products .pr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-products .pr-hero__aside {
  border-top: 1px solid var(--pr-line);
  padding-top: 18px;
}

.page-products .pr-hero__aside .aside-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 功能索引条 ---------- */
.page-products .pr-index {
  padding: 20px 0 8px;
}

.page-products .pr-index__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--pr-line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-products .pr-index__item {
  background: var(--pr-panel);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-products .pr-index__num {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.02em;
}

.page-products .pr-index__item:nth-child(2) .pr-index__num {
  color: var(--orange);
}

.page-products .pr-index__label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mist);
}

/* ---------- 通用章节 ---------- */
.page-products .pr-section {
  padding: 54px 0;
}

.page-products .pr-section__head {
  max-width: 46rem;
  margin-bottom: 30px;
}

.page-products .pr-section__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 5vw, 2.4rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 10px 0 14px;
}

.page-products .pr-section__note {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--pr-text);
}

.page-products .pr-figure {
  margin: 0;
}

.page-products .pr-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--pr-line-soft);
  object-fit: cover;
}

.page-products .pr-figure figcaption {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 3px solid rgba(43, 231, 210, 0.55);
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
}

.page-products .pr-figure--wide {
  margin-bottom: 34px;
}

/* ---------- 频道筛选 ---------- */
.page-products .pr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.page-products .pr-filter {
  appearance: none;
  border: 1px solid var(--pr-line);
  background: transparent;
  color: var(--mist);
  font: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-products .pr-filter:hover,
.page-products .pr-filter:focus-visible {
  color: var(--white);
  border-color: rgba(43, 231, 210, 0.5);
}

.page-products .pr-filter.is-active {
  background: rgba(43, 231, 210, 0.14);
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-products .pr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pr-card {
  position: relative;
  background: var(--pr-panel);
  border: 1px solid var(--pr-line-soft);
  border-radius: var(--radius-md);
  padding: 22px 20px 20px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-products .pr-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  width: 3px;
  height: 0;
  border-radius: 0 3px 3px 0;
  background: var(--cyan);
  transition: height 0.3s var(--ease);
}

.page-products .pr-card:hover,
.page-products .pr-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(43, 231, 210, 0.32);
}

.page-products .pr-card:hover::before,
.page-products .pr-card:focus-within::before {
  height: 72%;
}

.page-products .pr-card__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mist);
  margin-bottom: 10px;
}

.page-products .pr-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  margin: 0 0 8px;
}

.page-products .pr-card__desc {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--pr-text);
}

.page-products .pr-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- 关注列表 ---------- */
.page-products .pr-follow__grid {
  display: grid;
  gap: 30px;
}

.page-products .pr-follow__body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 5vw, 2.4rem);
  line-height: 1.22;
  color: var(--white);
  margin: 10px 0 14px;
}

.page-products .pr-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.page-products .pr-points li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--pr-text);
}

.page-products .pr-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-products .pr-follow__figure {
  align-self: start;
}

/* ---------- 桌面端 ---------- */
.page-products .pr-desktop__shot {
  margin: 0 0 30px;
}

.page-products .pr-desktop__shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-top: 1px solid rgba(43, 231, 210, 0.22);
  border-bottom: 1px solid rgba(43, 231, 210, 0.22);
  object-fit: cover;
}

.page-products .pr-features {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--pr-line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-products .pr-features li {
  background: var(--pr-panel);
  padding: 20px;
}

.page-products .pr-features h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--cyan);
  line-height: 1.4;
}

.page-products .pr-features p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--pr-text);
}

.page-products .pr-keep {
  display: grid;
  gap: 22px;
  align-items: center;
  margin-top: 30px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(43, 231, 210, 0.18);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(43, 231, 210, 0.10), transparent 62%),
    linear-gradient(135deg, rgba(59, 91, 255, 0.10), rgba(16, 31, 51, 0.9));
}

.page-products .pr-keep__body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 10px;
}

.page-products .pr-keep__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--pr-text);
}

/* ---------- 刷新节奏 ---------- */
.page-products .pr-refresh__grid {
  display: grid;
  gap: 30px;
}

.page-products .pr-refresh__grid h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 5vw, 2.4rem);
  line-height: 1.22;
  color: var(--white);
  margin: 10px 0 14px;
}

.page-products .pr-rhythm {
  display: grid;
  gap: 2px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  background: var(--pr-line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-products .pr-rhythm li {
  background: var(--pr-panel);
  padding: 16px 18px;
  display: grid;
  gap: 5px;
}

.page-products .pr-rhythm strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.01em;
}

.page-products .pr-rhythm span {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--pr-text);
}

.page-products .pr-rhythm a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 122, 47, 0.45);
}

.page-products .pr-rhythm a:hover,
.page-products .pr-rhythm a:focus-visible {
  border-bottom-color: var(--orange);
}

.page-products .pr-refresh__figure {
  align-self: start;
}

/* ---------- 版本阶梯 ---------- */
.page-products .pr-ladder {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pr-version {
  background: var(--pr-panel);
  border: 1px solid var(--pr-line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.page-products .pr-version[open] {
  border-color: rgba(43, 231, 210, 0.32);
}

.page-products .pr-version summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.page-products .pr-version summary::-webkit-details-marker {
  display: none;
}

.page-products .pr-version summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -3px;
}

.page-products .pr-version__bar {
  flex: none;
  width: 4px;
  border-radius: 2px;
  background: var(--cyan);
}

.page-products .pr-ladder__item:nth-child(1) .pr-version__bar {
  height: 16px;
  background: rgba(43, 231, 210, 0.45);
}

.page-products .pr-ladder__item:nth-child(2) .pr-version__bar {
  height: 22px;
  background: rgba(43, 231, 210, 0.6);
}

.page-products .pr-ladder__item:nth-child(3) .pr-version__bar {
  height: 28px;
  background: rgba(43, 231, 210, 0.78);
}

.page-products .pr-ladder__item:nth-child(4) .pr-version__bar {
  height: 34px;
  background: var(--cyan);
}

.page-products .pr-ladder__item:nth-child(5) .pr-version__bar {
  height: 42px;
  background: var(--orange);
}

.page-products .pr-version__year {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.page-products .pr-version__name {
  font-size: 15px;
  color: var(--mist);
  margin-left: auto;
  text-align: right;
}

.page-products .pr-version__body {
  padding: 0 18px 18px 36px;
}

.page-products .pr-version__body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--pr-text);
}

/* ---------- 适合谁用 ---------- */
.page-products .pr-who__list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pr-who__card {
  padding: 24px 22px;
  border-radius: var(--radius-md);
  background: var(--pr-panel);
  border: 1px solid var(--pr-line-soft);
  border-top: 3px solid var(--cyan);
}

.page-products .pr-who__list li:nth-child(2) {
  border-top-color: var(--orange);
}

.page-products .pr-who__list li:nth-child(3) {
  border-top-color: var(--indigo);
}

.page-products .pr-who__card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 10px;
  line-height: 1.4;
}

.page-products .pr-who__card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--pr-text);
}

/* ---------- 步骤条 ---------- */
.page-products .pr-flow {
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pr-flow__item {
  position: relative;
  padding-left: 56px;
  min-height: 46px;
}

.page-products .pr-flow__item::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: -26px;
  width: 2px;
  background: linear-gradient(180deg, rgba(43, 231, 210, 0.55), rgba(43, 231, 210, 0.06));
}

.page-products .pr-flow__item:last-child::after {
  display: none;
}

.page-products .pr-flow__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  background: var(--ink-900);
}

.page-products .pr-flow__item.is-current .pr-flow__num {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 122, 47, 0.12);
}

.page-products .pr-flow__item h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin: 8px 0 8px;
  line-height: 1.4;
}

.page-products .pr-flow__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--pr-text);
}

/* ---------- 结尾行动区 ---------- */
.page-products .pr-cta {
  padding: 44px 0 72px;
}

.page-products .pr-cta__inner {
  display: grid;
  gap: 24px;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(43, 231, 210, 0.18);
  background:
    radial-gradient(110% 150% at 0% 0%, rgba(43, 231, 210, 0.13), transparent 60%),
    linear-gradient(180deg, var(--pr-panel), var(--ink-900));
}

.page-products .pr-cta__text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 4.6vw, 2rem);
  line-height: 1.24;
  color: var(--white);
  margin: 0 0 12px;
}

.page-products .pr-cta__text p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--pr-text);
  max-width: 52ch;
}

.page-products .pr-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-products .pr-index__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .page-products .pr-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .page-products .pr-hero {
    padding: 28px 0 56px;
  }

  .page-products .pr-hero__inner {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 40px;
    align-items: start;
  }

  .page-products .pr-hero__aside {
    border-top: none;
    border-left: 1px solid var(--pr-line);
    padding-top: 0;
    padding-left: 20px;
    margin-top: 12px;
  }

  .page-products .pr-follow__grid,
  .page-products .pr-refresh__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 40px;
    align-items: start;
  }

  .page-products .pr-keep {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    padding: 28px;
  }

  .page-products .pr-who__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .pr-cta__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 36px 32px;
  }

  .page-products .pr-cta__links {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 1024px) {
  .page-products .pr-section {
    padding: 68px 0;
  }

  .page-products .pr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .pr-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 32px;
  }

  .page-products .pr-flow__item::after {
    left: 54px;
    top: 21px;
    bottom: auto;
    width: calc(100% - 14px);
    height: 2px;
    background: linear-gradient(90deg, rgba(43, 231, 210, 0.5), rgba(43, 231, 210, 0.06));
  }

  .page-products .pr-flow__item:last-child::after {
    display: block;
  }

  .page-products .pr-flow__item:nth-child(2n)::after {
    display: none;
  }
}

@media (min-width: 1200px) {
  .page-products .pr-ladder {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
  }

  .page-products .pr-version summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 128px;
  }

  .page-products .pr-version__year {
    font-size: 18px;
  }

  .page-products .pr-version__name {
    margin-left: 0;
    text-align: left;
    font-size: 14px;
  }

  .page-products .pr-version__body {
    padding: 0 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pr-card,
  .page-products .pr-filter,
  .page-products .pr-card::before,
  .page-products .pr-version {
    transition: none;
  }

  .page-products .pr-card:hover,
  .page-products .pr-card:focus-within {
    transform: none;
  }
}
