.page-products {
  --pr-line: rgba(11, 30, 58, 0.12);
  --pr-soft: rgba(11, 30, 58, 0.06);
  background: var(--paper);
  color: var(--ink);
}

.page-products *,
.page-products *::before,
.page-products *::after {
  box-sizing: border-box;
}

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

/* ---------- 首屏 ---------- */
.page-products .pr-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 0;
}

.page-products .pr-hero::before {
  content: "";
  position: absolute;
  top: -34%;
  right: -22%;
  width: 92%;
  height: 176%;
  background: linear-gradient(160deg, rgba(0, 201, 167, 0.32), rgba(0, 201, 167, 0) 62%);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-products .pr-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--teal) 52%, var(--yellow));
}

.page-products .pr-hero-inner,
.page-products .pr-hero-media-wrap {
  position: relative;
  z-index: 1;
}

.page-products .pr-hero .breadcrumbs,
.page-products .pr-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.72);
}

.page-products .pr-hero .eyebrow {
  margin-top: 18px;
  color: var(--teal);
}

.page-products .pr-hero h1 {
  margin: 10px 0 0;
  max-width: 20ch;
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-products .pr-lead {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

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

.page-products .pr-facts {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.page-products .pr-facts li {
  background: var(--navy);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-products .pr-fact-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

.page-products .pr-fact-label {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
}

.page-products .pr-hero-media-wrap {
  margin-top: 34px;
}

.page-products .pr-hero-media {
  margin: 0;
  overflow: hidden;
  background: var(--navy-deep);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 93% 100%, 0 100%);
  box-shadow: var(--shadow-panel);
}

.page-products .pr-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

/* ---------- 目录 + 正文骨架 ---------- */
.page-products .pr-shell {
  padding-top: 44px;
  padding-bottom: 52px;
}

.page-products .pr-index-title {
  display: none;
}

.page-products .pr-index ul {
  display: flex;
  gap: 6px;
  margin: 0 0 26px;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-products .pr-index a {
  display: block;
  white-space: nowrap;
  padding: 7px 12px;
  border: 1px solid var(--pr-line);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-products .pr-section {
  padding-bottom: 44px;
}

.page-products .pr-section + .pr-section {
  padding-top: 36px;
  border-top: 1px solid var(--pr-line);
}

.page-products .pr-section:last-child {
  padding-bottom: 0;
}

.page-products .pr-section .section-head {
  margin-bottom: 22px;
}

/* ---------- 资料类型筛选 ---------- */
.page-products .pr-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-products .filter-btn {
  appearance: none;
  border: 1px solid rgba(11, 30, 58, 0.18);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 8px 16px;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-products .filter-btn:hover {
  border-color: var(--violet);
  color: var(--violet);
}

.page-products .filter-btn[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

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

.page-products .pr-file {
  position: relative;
  background: var(--white);
  border: 1px solid var(--pr-line);
  border-top: 3px solid var(--teal);
  padding: 20px 20px 16px;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 91% 100%, 0 100%);
  box-shadow: var(--shadow-panel);
  transition: transform 0.25s var(--ease);
}

.page-products .pr-file:hover {
  transform: translateY(-4px);
}

.page-products .pr-file[data-filter-item="snapshot"] {
  border-top-color: var(--yellow);
}

.page-products .pr-file[data-filter-item="tactics"] {
  border-top-color: var(--violet);
}

.page-products .pr-file-title {
  margin: 10px 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
}

.page-products .pr-file-note {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--slate);
}

.page-products .pr-file-size {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--slate);
}

/* ---------- 按比赛日 ---------- */
.page-products .pr-daystrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  margin-bottom: 18px;
  scrollbar-width: thin;
}

.page-products .pr-day {
  flex: 0 0 auto;
  padding: 8px 15px;
  background: var(--white);
  border: 1px solid var(--pr-line);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--navy);
}

.page-products .pr-day--now {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.page-products .pr-findings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.page-products .pr-finding {
  background: var(--navy-deep);
  border-left: 3px solid var(--orange);
  padding: 18px 18px 20px;
}

.page-products .pr-finding h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.page-products .pr-finding p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

.page-products .pr-media {
  margin: 0;
  overflow: hidden;
  background: var(--navy-deep);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 94% 100%, 0 100%);
}

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

.page-products .pr-note {
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--teal);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--slate);
}

.page-products .pr-note a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 排名 ---------- */
.page-products .pr-rank {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-products .pr-rank-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9375rem;
}

.page-products .pr-rank-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.page-products .pr-rank-table th,
.page-products .pr-rank-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--pr-line);
}

.page-products .pr-rank-table thead th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
}

.page-products .pr-rank-table tbody th {
  font-weight: 700;
  color: var(--navy);
}

.page-products .pr-rank-table td:nth-child(2),
.page-products .pr-rank-table td:nth-child(3),
.page-products .pr-rank-table td:nth-child(4),
.page-products .pr-rank-table thead th:nth-child(2),
.page-products .pr-rank-table thead th:nth-child(3),
.page-products .pr-rank-table thead th:nth-child(4) {
  font-family: var(--font-mono);
  text-align: right;
}

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

.page-products .pr-up {
  color: var(--teal);
  font-weight: 700;
}

.page-products .pr-down {
  color: var(--orange);
  font-weight: 700;
}

.page-products .pr-flat {
  color: var(--slate);
  font-weight: 700;
}

.page-products .pr-rank-note {
  margin: 14px 0 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--slate);
}

/* ---------- 电脑版与网页端 ---------- */
.page-products .pr-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-products .pr-compare-card {
  background: var(--white);
  border: 1px solid var(--pr-line);
  padding: 22px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.page-products .pr-compare-card--client {
  border-top: 4px solid var(--orange);
}

.page-products .pr-compare-card--web {
  border-top: 4px solid var(--teal);
}

.page-products .pr-compare-card h3 {
  margin: 0 0 14px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.page-products .pr-compare-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pr-compare-card li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--slate);
}

.page-products .pr-compare-card li:last-child {
  margin-bottom: 0;
}

.page-products .pr-compare-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  transform: rotate(45deg);
}

.page-products .pr-compare-card--web li::before {
  background: var(--teal);
}

.page-products .pr-compare-media {
  margin-top: 22px;
}

/* ---------- 个人中心 ---------- */
.page-products .pr-history {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.page-products .pr-history-body > p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate);
}

.page-products .pr-details {
  background: var(--white);
  border: 1px solid var(--pr-line);
  border-left: 4px solid var(--teal);
  padding: 14px 18px 16px;
}

.page-products .pr-details summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--navy);
}

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

.page-products .pr-details summary::before {
  content: "＋";
  margin-right: 8px;
  color: var(--orange);
}

.page-products .pr-details[open] summary::before {
  content: "－";
}

.page-products .pr-log {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pr-log li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px dashed var(--pr-line);
  font-size: 0.875rem;
  color: var(--slate);
}

.page-products .pr-log-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--orange);
  min-width: 62px;
}

/* ---------- 用法组合 ---------- */
.page-products .pr-combos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-products .pr-combo {
  background: var(--white);
  border: 1px solid var(--pr-line);
  padding: 24px 20px 22px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-products .pr-combo-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-products .pr-combo h3 {
  margin: 10px 0 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}

.page-products .pr-combo p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--slate);
}

/* ---------- 收束色带 ---------- */
.page-products .pr-cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 52px;
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
}

.page-products .pr-cta-band::before {
  content: "";
  position: absolute;
  inset: auto -12% -60% 38%;
  height: 220%;
  background: radial-gradient(circle at 60% 60%, rgba(0, 201, 167, 0.3), transparent 62%);
  pointer-events: none;
}

.page-products .pr-cta-inner {
  position: relative;
  z-index: 1;
}

.page-products .pr-cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4.4vw, 2.25rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--white);
}

.page-products .pr-cta-band p {
  margin: 0 0 24px;
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

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

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

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

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

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

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

@media (min-width: 860px) {
  .page-products .pr-rank {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: 26px;
  }

  .page-products .pr-history {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 28px;
  }
}

@media (min-width: 900px) {
  .page-products .pr-shell {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .page-products .pr-index {
    position: sticky;
    top: calc(var(--header-h) + 22px);
  }

  .page-products .pr-index-title {
    display: block;
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--slate);
  }

  .page-products .pr-index ul {
    flex-direction: column;
    gap: 2px;
    overflow: visible;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .page-products .pr-index a {
    border: 0;
    border-left: 2px solid var(--pr-line);
    background: transparent;
    padding: 9px 0 9px 14px;
    white-space: normal;
  }

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

  .page-products .pr-hero h1 {
    max-width: 16ch;
  }
}

@media (min-width: 1080px) {
  .page-products .pr-shell {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 72px;
  }

  .page-products .pr-hero-media-wrap {
    margin-top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pr-file,
  .page-products .filter-btn,
  .page-products .pr-index a {
    transition: none;
  }

  .page-products .pr-file:hover {
    transform: none;
  }
}
