.page-products {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  padding-bottom: 3rem;
}

.page-products .breadcrumb {
  padding: 1.25rem 0 0.25rem;
}

.page-products .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-micro);
  color: var(--muted);
}

.page-products .breadcrumb-list li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--muted-deep);
}

.page-products .breadcrumb-list a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

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

/* ---------- 首屏 ---------- */
.fx-hero {
  display: grid;
  gap: 1.75rem;
  padding: 1.25rem 0 2rem;
}

.fx-hero__copy {
  position: relative;
  isolation: isolate;
}

.fx-hero__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2.5rem -1rem auto -2rem;
  height: 16rem;
  background: radial-gradient(65% 100% at 18% 0%, var(--cyan-soft), transparent 72%);
  pointer-events: none;
}

.fx-hero h1 {
  margin: 0.5rem 0 0.9rem;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.fx-hero .lede {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.fx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hair);
}

.fx-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.fx-meta__num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--lime);
  letter-spacing: -0.01em;
}

.fx-meta__label {
  font-size: var(--fs-micro);
  color: var(--muted);
  letter-spacing: 0.05em;
}

.fx-index {
  padding: 1rem 1.15rem 1.4rem;
  background: linear-gradient(158deg, var(--panel) 0%, var(--panel-deep) 100%);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-sm);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%);
}

.fx-index__title {
  margin: 0 0 0.6rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  color: var(--muted);
}

.fx-index ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-index li + li {
  border-top: 1px solid var(--hair);
}

.fx-index a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  color: var(--paper);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: color 180ms var(--ease), padding-left 180ms var(--ease);
}

.fx-index a:hover {
  color: var(--cyan);
  padding-left: 0.2rem;
}

.fx-index a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.fx-index__no {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--cyan);
}

/* ---------- 堆叠画板 ---------- */
.fx-boards {
  margin-top: 0.5rem;
}

.fx-board {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  padding: 1.75rem 1.1rem 2.6rem;
  background: linear-gradient(168deg, var(--panel) 0%, var(--panel-deep) 100%);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-sm);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.fx-board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-deep) 42%, transparent);
}

.fx-board:hover,
.fx-board:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(34, 211, 238, 0.35);
  z-index: 4;
}

.fx-board__head {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

.fx-board__head .lede {
  margin: 0;
  color: var(--muted);
}

.fx-board h2 {
  margin: 0.35rem 0 0.7rem;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 1.22;
}

.fx-board p {
  max-width: 38rem;
}

.fx-board p a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
  transition: border-color 180ms var(--ease);
}

.fx-board p a:hover {
  border-bottom-color: var(--cyan);
}

.fx-board p a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- 图文分栏 ---------- */
.fx-split {
  display: grid;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.fx-split__text p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.fx-split__text p:last-child {
  margin-bottom: 0;
}

.fx-ticks {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.fx-ticks li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.fx-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.fx-ticks strong {
  color: var(--paper);
  font-weight: 600;
}

.fx-shot {
  margin: 1.5rem 0 0;
}

.fx-shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--hair);
  background: var(--black);
}

.fx-shot figcaption {
  margin-top: 0.55rem;
  font-size: var(--fs-micro);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.fx-shot--banner {
  margin-bottom: 1.5rem;
}

/* ---------- 时间轴 ---------- */
.fx-tl {
  margin-top: 1.9rem;
  border-top: 1px solid var(--hair);
}

.fx-tl__item {
  display: grid;
  grid-template-columns: 0.9rem 1fr;
  gap: 0.9rem;
  padding: 0.85rem 0;
}

.fx-tl__item + .fx-tl__item {
  border-top: 1px dashed var(--hair);
}

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

.fx-tl__dot {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.6rem;
  background: var(--muted-deep);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  transition: background 220ms var(--ease), box-shadow 220ms var(--ease);
}

.page-products .fx-tl__item[data-revealed] .fx-tl__dot {
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-soft);
}

.fx-tl__body p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: none;
}

.fx-tl__body strong {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
}

/* ---------- 对照表 ---------- */
.fx-table-wrap {
  margin: 1.5rem 0 0.9rem;
  overflow-x: auto;
  border: 1px solid var(--hair);
  background: rgba(7, 9, 11, 0.4);
  -webkit-overflow-scrolling: touch;
}

.fx-map {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.fx-map caption {
  caption-side: top;
  text-align: left;
  padding: 0.7rem 1rem;
  color: var(--muted);
  font-size: var(--fs-micro);
  letter-spacing: 0.05em;
}

.fx-map th {
  padding: 0.7rem 1rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--black);
  border-bottom: 1px solid var(--hair-strong);
  white-space: nowrap;
}

.fx-map td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--hair);
  vertical-align: middle;
}

.fx-map tbody tr {
  transition: background 160ms var(--ease);
}

.fx-map tbody tr:hover,
.fx-map tbody tr:focus-within {
  background: rgba(34, 211, 238, 0.09);
}

.fx-map__old {
  color: var(--muted);
}

.fx-map__new {
  color: var(--paper);
  font-weight: 600;
}

.fx-map__arrow {
  width: 3.5rem;
  text-align: center;
  color: var(--cyan);
  font-family: var(--font-mono);
}

/* ---------- 回看席列 ---------- */
.fx-rev {
  position: relative;
  margin-top: 1.4rem;
}

.fx-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.fx-rev__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.fx-rev__tabs label {
  cursor: pointer;
  padding: 0.4rem 1rem;
  font-size: var(--fs-small);
  color: var(--muted);
  background: rgba(244, 246, 248, 0.03);
  border: 1px solid var(--hair-strong);
  clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 10px) 100%, 0 100%);
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.fx-rev__tabs label:hover {
  color: var(--paper);
  border-color: rgba(34, 211, 238, 0.45);
}

.fx-pane {
  display: none;
}

.fx-pane .note {
  margin: 0 0 1rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

#fx-dim-match:checked ~ .fx-rev__tabs label[for="fx-dim-match"],
#fx-dim-team:checked ~ .fx-rev__tabs label[for="fx-dim-team"],
#fx-dim-season:checked ~ .fx-rev__tabs label[for="fx-dim-season"] {
  color: var(--paper);
  background: var(--cyan-soft);
  border-color: var(--cyan);
}

#fx-dim-match:focus-visible ~ .fx-rev__tabs label[for="fx-dim-match"],
#fx-dim-team:focus-visible ~ .fx-rev__tabs label[for="fx-dim-team"],
#fx-dim-season:focus-visible ~ .fx-rev__tabs label[for="fx-dim-season"] {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

#fx-dim-match:checked ~ .fx-rev__panes .fx-pane--match,
#fx-dim-team:checked ~ .fx-rev__panes .fx-pane--team,
#fx-dim-season:checked ~ .fx-rev__panes .fx-pane--season {
  display: block;
}

.fx-bars {
  display: grid;
  gap: 0.85rem;
}

.fx-bar {
  display: grid;
  grid-template-columns: minmax(5rem, auto) 1fr auto;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-small);
}

.fx-bar__label {
  color: var(--muted);
  white-space: nowrap;
}

.fx-bar__track {
  display: block;
  height: 0.55rem;
  background: rgba(244, 246, 248, 0.07);
  overflow: hidden;
}

.fx-bar__fill {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.fx-bar--away .fx-bar__fill {
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
}

.fx-bar__val {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--paper);
}

.fx-bar--home .fx-bar__val {
  color: var(--lime);
}

/* ---------- 收藏开关 ---------- */
.fx-save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.4rem 0 0.9rem;
}

.fx-save__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.fx-save {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.05rem;
  cursor: pointer;
  font-size: var(--fs-small);
  color: var(--muted);
  background: rgba(244, 246, 248, 0.03);
  border: 1px solid var(--hair-strong);
  clip-path: polygon(0 0, 100% 0, 100% 72%, calc(100% - 10px) 100%, 0 100%);
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.fx-save:hover {
  color: var(--paper);
  border-color: rgba(34, 211, 238, 0.45);
}

.fx-save__mark {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--muted-deep);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: background 180ms var(--ease);
}

.fx-save__on {
  display: none;
}

#fx-save:checked ~ .fx-save {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(232, 255, 58, 0.08);
}

#fx-save:checked ~ .fx-save .fx-save__mark {
  background: var(--lime);
}

#fx-save:checked ~ .fx-save .fx-save__on {
  display: inline;
}

#fx-save:checked ~ .fx-save .fx-save__off {
  display: none;
}

#fx-save:focus-visible ~ .fx-save {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.fx-save-row .note {
  flex: 1 1 12rem;
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- 图表模板 ---------- */
.fx-tpl {
  display: grid;
  gap: 0.9rem;
  margin: 0.5rem 0 1.4rem;
}

.fx-tpl__item {
  position: relative;
  padding: 1rem 1rem 1.1rem 1.1rem;
  background: rgba(244, 246, 248, 0.025);
  border-left: 2px solid var(--red-deep);
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

.fx-tpl__item:hover,
.fx-tpl__item:focus-within {
  border-left-color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
}

.fx-tpl__no {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.fx-tpl__item h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: var(--fs-h3);
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--paper);
  line-height: 1.3;
}

.fx-tpl__item p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: none;
}

/* ---------- 下一步 ---------- */
.fx-next {
  margin-top: 2.5rem;
  padding: 1.6rem 1.1rem 1.8rem;
  background: linear-gradient(150deg, var(--black) 0%, var(--panel-deep) 100%);
  border: 1px solid var(--hair);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%);
}

.fx-next h2 {
  margin: 0 0 1.2rem;
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  line-height: 1.25;
}

.fx-next__grid {
  display: grid;
  gap: 0.85rem;
}

.fx-next__card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--muted);
  font-size: var(--fs-small);
  background: rgba(244, 246, 248, 0.03);
  border: 1px solid var(--hair);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.fx-next__card strong {
  color: var(--paper);
  font-size: 1rem;
  font-weight: 700;
}

.fx-next__card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.06);
}

.fx-next__card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.fx-next__no {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--cyan);
  letter-spacing: 0.1em;
}

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

  .fx-next__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .page-products {
    padding-bottom: 4.5rem;
  }

  .fx-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 3rem;
    padding: 1.5rem 0 2.75rem;
  }

  .fx-split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 2.25rem;
    align-items: start;
  }

  .fx-split--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fx-shot {
    margin-top: 0;
  }

  .fx-tpl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .fx-board {
    margin-top: -1.1rem;
    padding: 2.4rem 2.5rem 3.1rem;
  }

  .fx-boards > .fx-board:first-child {
    margin-top: 0.5rem;
  }

  .fx-board__head {
    margin-bottom: 2rem;
  }

  .fx-board--narrow {
    width: calc(100% - 5rem);
  }

  .fx-board--right {
    margin-left: auto;
  }
}

@media (min-width: 1180px) {
  .fx-tpl {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .fx-tpl__item {
    padding: 1rem 0.85rem 1.1rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-board,
  .fx-index a,
  .fx-next__card,
  .fx-save,
  .fx-tl__dot,
  .fx-tpl__item {
    transition: none;
  }

  .fx-board:hover,
  .fx-board:focus-within,
  .fx-next__card:hover {
    transform: none;
  }
}

.page-products {
  --w: 1rem;
}
