.page-products {
  --pp-gap: clamp(20px, 4vw, 48px);
}

/* ---------- 面包屑 ---------- */
.page-products .crumbs {
  padding-top: clamp(14px, 2.4vw, 22px);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-products .crumbs a {
  color: var(--mist);
  text-decoration: none;
  transition: color 150ms ease;
}

.page-products .crumbs a:hover,
.page-products .crumbs a:focus-visible {
  color: var(--cyan);
}

.page-products .crumbs [aria-current="page"] {
  color: var(--warm-dim);
}

/* ---------- 首屏 ---------- */
.page-products .pr-hero {
  position: relative;
  padding: clamp(24px, 5vw, 64px) 0 clamp(40px, 7vw, 92px);
  background:
    radial-gradient(120% 100% at 8% 0%, rgba(23, 229, 200, 0.17), transparent 55%),
    radial-gradient(90% 90% at 100% 8%, rgba(255, 122, 43, 0.15), transparent 52%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
}

.page-products .pr-hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 8.2vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--warm);
  max-width: 17em;
  margin: 14px 0 0;
}

.page-products .pr-hero__lede {
  max-width: 58ch;
  margin: clamp(18px, 2.6vw, 26px) 0 0;
  color: var(--warm-dim);
}

.page-products .pr-hero__actions {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(24px, 3.4vw, 34px) 0 0;
  padding: 0;
}

.page-products .pr-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
  margin: clamp(30px, 4.6vw, 52px) 0 0;
  padding: 0;
}

.page-products .pr-hero__stat {
  border-top: 1px solid var(--edge);
  padding-top: 14px;
}

.page-products .pr-hero__stat dt {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--mist);
}

.page-products .pr-hero__stat dd {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 4.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1;
  color: var(--cyan);
}

.page-products dd.pr-hero__stat--hot {
  color: var(--orange);
}

/* ---------- 三步路径 ---------- */
.page-products .pr-steps {
  list-style: none;
  margin: clamp(26px, 4.6vw, 46px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.page-products .pr-step {
  position: relative;
  padding: 22px 0 24px;
  border-top: 1px solid var(--edge);
}

.page-products .pr-step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-products .pr-step__num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  font-weight: 300;
  line-height: 1;
  color: var(--cyan);
  margin-bottom: 12px;
}

.page-products .pr-step__title {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--warm);
  margin: 0 0 10px;
}

.page-products .pr-step__body {
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--warm-dim);
}

.page-products .pr-step__out {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--orange);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .pr-path__figure {
  margin: clamp(30px, 5vw, 56px) 0 0;
}

/* ---------- 通用图像块 ---------- */
.page-products .figure {
  margin: 0;
}

.page-products .figure__media {
  border: 1px solid var(--edge);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--pitch);
}

.page-products .figure__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .figure__caption {
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--mist);
}

/* ---------- 标签页通用（页面内） ---------- */
.page-products .tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 28px);
}

.page-products .tabs__tab {
  appearance: none;
  border: 1px solid var(--edge);
  background: var(--glass);
  color: var(--warm-dim);
  border-radius: 999px;
  padding: 9px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.page-products .tabs__tab:hover {
  border-color: var(--cyan);
  color: var(--warm);
}

.page-products .tabs__tab[aria-selected="true"] {
  border-color: var(--cyan);
  background: rgba(23, 229, 200, 0.09);
  color: var(--cyan);
}

.page-products .tabs__panel {
  margin-top: 20px;
  padding: clamp(18px, 2.6vw, 26px);
  background: var(--pitch);
  border: 1px solid var(--edge);
  border-radius: var(--r);
}

.page-products .tabs__panel h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--warm);
  margin: 0 0 10px;
}

.page-products .tabs__panel p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--warm-dim);
}

/* ---------- 筛选 ---------- */
.page-products .pr-filter__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

.page-products .pr-filter__note {
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--amber);
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 刷新节奏 ---------- */
.page-products .pr-refresh__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
  margin-top: clamp(24px, 3.6vw, 40px);
}

.page-products .pr-refresh__text p {
  margin: 0 0 18px;
  max-width: 62ch;
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--warm-dim);
}

.page-products .pr-pulse {
  display: block;
  width: 100%;
  height: clamp(62px, 10vw, 92px);
  margin: 4px 0 12px;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, rgba(23, 229, 200, 0.07), rgba(255, 122, 43, 0.07));
}

.page-products .pr-pulse polyline {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linejoin: round;
}

.page-products .pr-pulse .pr-pulse__alt {
  stroke: var(--orange);
  stroke-dasharray: 7 7;
}

.page-products .pr-pulse__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-products .pr-pulse__label .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--cyan);
}

/* ---------- 导出 ---------- */
.page-products .pr-export__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

.page-products .pr-sheets {
  list-style: none;
  margin: clamp(22px, 3vw, 30px) 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .pr-sheets li {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1fr);
  gap: 4px 14px;
  align-items: baseline;
  padding: 14px 16px;
  background: var(--glass);
  border-left: 2px solid var(--cyan);
  border-radius: var(--r-sm);
}

.page-products .pr-sheets__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--warm);
}

.page-products .pr-sheets__desc {
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .pr-export__note {
  margin: 20px 0 0;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-products .pr-export__note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 229, 200, 0.4);
}

.page-products .pr-export__note a:hover {
  border-bottom-color: var(--cyan);
}

/* ---------- 赛季归档 ---------- */
.page-products .pr-archive {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  margin: clamp(26px, 4vw, 42px) 0 0;
}

.page-products .pr-archive__end {
  flex: none;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist);
  white-space: nowrap;
}

.page-products .pr-archive__ticks {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 18px;
}

.page-products .pr-archive__ticks::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 1px;
  background: var(--edge);
}

.page-products .pr-archive__ticks i {
  position: relative;
  display: block;
  width: 2px;
  height: 16px;
  background: var(--mist);
}

.page-products .pr-archive__ticks i:last-child {
  height: 18px;
  background: var(--cyan);
}

.page-products .pr-archive__body {
  margin: clamp(22px, 3.4vw, 34px) 0 0;
  max-width: 66ch;
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--warm-dim);
}

/* ---------- 深色夜场 ---------- */
.page-products .pr-nights__figure {
  margin: clamp(26px, 4vw, 42px) 0 0;
}

.page-products .pr-nights__notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  margin-top: clamp(24px, 3.6vw, 40px);
}

.page-products .pr-nights__note {
  border-top: 1px solid var(--edge);
  padding-top: 16px;
}

.page-products .pr-nights__note h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--warm);
  margin: 0 0 8px;
}

.page-products .pr-nights__note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--warm-dim);
}

/* ---------- 收尾 ---------- */
.page-products .pr-next {
  margin-top: clamp(48px, 8vw, 100px);
  border-top: 1px solid var(--edge);
  background: linear-gradient(135deg, var(--pitch) 0%, var(--ink) 62%, var(--carbon) 100%);
}

.page-products .pr-next__inner {
  padding-top: clamp(34px, 6vw, 76px);
  padding-bottom: clamp(34px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 40px);
}

.page-products .pr-next h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
  line-height: 1.14;
  color: var(--warm);
  margin: 0 0 14px;
}

.page-products .pr-next p {
  margin: 0;
  max-width: 46ch;
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--warm-dim);
}

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

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  .page-products .pr-nights__notes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-products .pr-steps {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.92fr) minmax(0, 1fr);
    column-gap: clamp(24px, 3.6vw, 60px);
  }

  .page-products .pr-step {
    padding-top: 26px;
  }

  .page-products .pr-next__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page-products .pr-filter__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr);
  }

  .page-products .pr-filter__figure {
    margin-top: clamp(30px, 5vw, 72px);
  }

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

  .page-products .pr-export__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.08fr);
  }

  .page-products .pr-export__figure {
    margin-top: clamp(20px, 3vw, 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .tabs__tab,
  .page-products .crumbs a {
    transition: none;
  }
}
