/* ===================== 功能与方案页 ===================== */
.page-products {
  --prod-index-w: 236px;
  --prod-index-top: 5.5rem;
  color: var(--c-white);
  background: var(--c-ink);
}

/* ---------- 首屏 ---------- */
.page-products .prod-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.6rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(90% 70% at 84% 0%, rgba(255, 106, 26, 0.22), transparent 62%),
    radial-gradient(60% 55% at 0% 100%, rgba(31, 178, 90, 0.13), transparent 70%),
    linear-gradient(180deg, #0A1020 0%, #0C1424 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 30px));
}

.page-products .prod-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.15) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.15) 100%);
}

.page-products .breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: clamp(1rem, 3vw, 1.8rem);
  font-size: 0.78rem;
  color: var(--c-muted);
}

.page-products .breadcrumb a.crumb {
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease);
}

.page-products .breadcrumb a.crumb:hover,
.page-products .breadcrumb a.crumb:focus-visible {
  color: var(--c-orange);
}

.page-products .crumb[aria-current="page"] {
  color: rgba(255, 255, 255, 0.85);
}

.page-products .prod-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: end;
}

.page-products .prod-hero-title {
  margin: 0.7rem 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.3rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.page-products .prod-hero-title .hl {
  display: block;
  color: var(--c-orange);
}

.page-products .prod-hero-lead {
  margin: 1.1rem 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.page-products .prod-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.page-products .prod-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
  margin: 1.9rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--c-line);
}

.page-products .prod-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.page-products .prod-stats .stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1;
  color: var(--c-white);
}

.page-products .prod-stats .stat-value--accent {
  color: var(--c-orange);
}

.page-products .prod-stats .stat-label {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--c-muted);
}

/* ---------- 首屏图 ---------- */
.page-products .prod-media {
  margin: 0;
  min-width: 0;
}

.page-products .prod-media .media-frame {
  position: relative;
  overflow: hidden;
  background: var(--c-panel);
}

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

.page-products .prod-media .media-caption {
  margin-top: 0.6rem;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--c-muted);
}

.page-products .prod-hero-media .media-frame {
  aspect-ratio: 16 / 10;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

/* ---------- 分屏骨架 ---------- */
.page-products .prod-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

/* ---------- 左侧工具索引 ---------- */
.page-products .prod-index {
  position: relative;
  padding: 1.1rem 1rem 1.2rem;
  background: linear-gradient(180deg, rgba(18, 27, 46, 0.96), rgba(10, 16, 32, 0.96));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-products .prod-index .selector-label {
  display: block;
  margin: 0 0 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.page-products .prod-index-list {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0 0 0.35rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-products .prod-index-item {
  flex: 0 0 auto;
}

.page-products .prod-index-link {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.86rem;
  color: var(--c-muted);
  text-decoration: none;
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition:
    color var(--dur-2) var(--ease),
    background var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease);
}

.page-products .prod-index-link:hover,
.page-products .prod-index-link:focus-visible {
  color: var(--c-white);
  background: rgba(255, 106, 26, 0.1);
  border-left-color: var(--c-orange);
}

.page-products .prod-index-num {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--c-orange);
}

/* ---------- 正文区 ---------- */
.page-products .prod-body {
  min-width: 0;
}

.page-products .prod-section {
  padding: clamp(1.8rem, 5vw, 3.2rem) 0;
  border-top: 1px solid var(--c-line);
  scroll-margin-top: var(--prod-index-top);
}

.page-products .prod-body > .prod-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-products .prod-step {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--c-orange);
}

.page-products .prod-h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.55rem, 3.6vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-products .prod-p {
  margin: 0 0 1rem;
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.page-products .prod-p:last-child {
  margin-bottom: 0;
}

.page-products .prod-p--spaced {
  margin-top: 1.4rem;
}

.page-products .prod-hint {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--c-muted);
}

/* ---------- 筛选标签与轨道 ---------- */
.page-products .prod-filters {
  margin: 1.2rem 0 0.9rem;
}

.page-products .prod-rail {
  margin: 0 0 1rem;
}

.page-products .prod-rail-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 赛程条目 ---------- */
.page-products .prod-fixtures {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-line);
}

.page-products .fixture {
  border-bottom: 1px solid var(--c-line);
  transition: background var(--dur-2) var(--ease);
}

.page-products .fixture:hover,
.page-products .fixture:focus {
  background: rgba(255, 106, 26, 0.06);
  outline: none;
}

.page-products .fixture:focus-visible {
  box-shadow: inset 0 0 0 2px var(--c-orange);
}

.page-products .fixture-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  padding: 0.95rem 0.8rem;
}

.page-products .fixture-meta {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}

.page-products .fixture-home {
  text-align: right;
  font-size: 0.95rem;
  font-weight: 700;
}

.page-products .fixture-away {
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
}

.page-products .fixture-score {
  min-width: 6ch;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  color: var(--c-orange);
}

.page-products .fixture-colon {
  padding: 0 0.12em;
  color: var(--c-muted);
}

.page-products .fixture-state {
  grid-column: 1 / -1;
  justify-self: start;
}

.page-products .fixture-detail {
  max-height: 0;
  margin: 0;
  padding: 0 0.8rem;
  overflow: hidden;
  opacity: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--c-muted);
  transition:
    max-height var(--dur-3) var(--ease),
    opacity var(--dur-3) var(--ease),
    padding-bottom var(--dur-3) var(--ease);
}

.page-products .fixture:hover .fixture-detail,
.page-products .fixture:focus .fixture-detail,
.page-products .fixture:focus-within .fixture-detail {
  max-height: 10rem;
  padding-bottom: 0.95rem;
  opacity: 1;
}

/* ---------- 阵容变动 ---------- */
.page-products .prod-split {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  margin-top: 1.4rem;
}

.page-products .prod-split-body {
  min-width: 0;
}

.page-products .prod-media--board .media-frame {
  aspect-ratio: 1 / 1;
}

.page-products .prod-media--referee {
  width: min(100%, 340px);
  margin: 1.4rem 0 0 auto;
}

.page-products .prod-media--referee .media-frame {
  aspect-ratio: 3 / 4;
}

.page-products .prod-media--net .media-frame,
.page-products .prod-media--clock .media-frame {
  aspect-ratio: 16 / 9;
}

.page-products .prod-moves {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.page-products .prod-move {
  padding: 1rem 1rem 1.1rem;
  background: var(--c-panel);
  border-left: 3px solid var(--c-orange);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.page-products .prod-move--loan {
  border-left-color: var(--c-green);
}

.page-products .prod-move--injury {
  border-left-color: var(--c-yellow);
}

.page-products .prod-move--suspend {
  border-left-color: var(--c-red);
}

.page-products .prod-move h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
}

.page-products .prod-move p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 回看分档 ---------- */
.page-products .prod-ladder {
  display: grid;
  gap: 0.4rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.page-products .prod-ladder li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--c-line);
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

.page-products .ladder-key {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--c-green);
}

/* ---------- 赛季选择器 ---------- */
.page-products .prod-season-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.page-products .prod-season {
  padding: 0.38rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-muted);
  border: 1px solid var(--c-line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.page-products .prod-season.is-current {
  color: var(--c-ink);
  background: var(--c-yellow);
  border-color: var(--c-yellow);
}

/* ---------- 使用场景 ---------- */
.page-products .prod-audience {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.page-products .prod-aud {
  padding: 1.1rem 1rem 1.2rem;
  background: linear-gradient(180deg, rgba(18, 27, 46, 0.92), rgba(10, 16, 32, 0.92));
  border-top: 2px solid var(--c-orange);
}

.page-products .prod-aud--community {
  border-top-color: var(--c-green);
}

.page-products .prod-aud--creator {
  border-top-color: var(--c-yellow);
}

.page-products .prod-aud-num {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--c-muted);
}

.page-products .prod-aud h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
}

.page-products .prod-aud p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.74);
}

/* ---------- 时间线 ---------- */
.page-products .prod-timeline {
  position: relative;
  margin: 1.5rem 0 0;
  padding: 0 0 0 1.5rem;
  list-style: none;
}

.page-products .prod-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.6rem;
  bottom: 1.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--c-orange), rgba(38, 50, 74, 1));
}

.page-products .prod-tl-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.page-products .prod-tl-item:last-child {
  padding-bottom: 0;
}

.page-products .prod-tl-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--c-ink);
  border: 2px solid var(--c-orange);
}

.page-products .prod-tl-year {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-yellow);
}

.page-products .prod-tl-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
}

.page-products .prod-tl-text {
  margin: 0;
  max-width: 56ch;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 收尾 ---------- */
.page-products .prod-cta {
  margin-top: clamp(1.8rem, 5vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(85% 130% at 100% 0%, rgba(255, 106, 26, 0.24), transparent 62%),
    var(--c-panel);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.page-products .prod-cta-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.page-products .prod-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

/* ---------- 中等屏 ---------- */
@media (min-width: 640px) {
  .page-products .prod-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .page-products .prod-ladder li {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: baseline;
  }
}

@media (min-width: 720px) {
  .page-products .fixture-main {
    grid-template-columns: 15ch minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .page-products .fixture-meta {
    grid-column: auto;
  }

  .page-products .fixture-state {
    grid-column: auto;
    justify-self: end;
  }
}

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

@media (min-width: 860px) {
  .page-products .prod-split {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    align-items: start;
  }
}

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

  .page-products .prod-hero-media .media-frame {
    aspect-ratio: 3 / 4;
  }
}

/* ---------- 桌面分屏：索引常驻 ---------- */
@media (min-width: 1024px) {
  .page-products .prod-shell {
    grid-template-columns: var(--prod-index-w) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .prod-index {
    position: sticky;
    top: var(--prod-index-top);
  }

  .page-products .prod-index-list {
    flex-direction: column;
    gap: 0.15rem;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .page-products .prod-index-item {
    flex: 1 1 auto;
  }
}

/* ---------- 窄屏：详情常显，避免触屏无悬停 ---------- */
@media (max-width: 719px) {
  .page-products .fixture-detail {
    max-height: none;
    padding-bottom: 0.95rem;
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .page-products .prod-hero {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 18px));
  }

  .page-products .prod-index {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-products .fixture-detail,
  .page-products .fixture,
  .page-products .prod-index-link {
    transition: none;
  }
}
