.page-products{
  --p-shadow: 8px 8px 0 rgba(11, 31, 58, 0.10);
  --p-shadow-sm: 5px 5px 0 rgba(11, 31, 58, 0.10);
  --p-soft: rgba(245, 242, 233, 0.72);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-cn);
  overflow-x: clip;
}

.page-products [id]{
  scroll-margin-top: calc(var(--cmd-h) + 16px);
}

.page-products .num{
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 首屏 ---------- */
.page-products .p-hero{
  position: relative;
  background: var(--ink-blue);
  color: var(--paper);
  padding: 28px 0 52px;
  overflow: hidden;
}

.page-products .p-hero::before{
  content: "";
  position: absolute;
  top: -32%;
  right: -18%;
  width: min(780px, 92vw);
  height: 168%;
  background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 52%, var(--ink-blue-2) 100%);
  transform: rotate(9deg);
  opacity: 0.24;
  pointer-events: none;
}

.page-products .p-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(245, 242, 233, 0.055) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(245, 242, 233, 0.04) 0 1px, transparent 1px 48px);
  pointer-events: none;
}

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

.page-products .p-crumbs{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(245, 242, 233, 0.6);
  margin-bottom: 22px;
}

.page-products .p-crumbs a{
  color: rgba(245, 242, 233, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}

.page-products .p-crumbs a:hover,
.page-products .p-crumbs a:focus-visible{
  color: var(--fluoro);
  border-bottom-color: var(--fluoro);
}

.page-products .p-crumbs__sep{
  color: rgba(245, 242, 233, 0.4);
}

.page-products .p-hero__kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px 12px 5px 8px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--fluoro);
  border: 1px solid rgba(232, 255, 58, 0.36);
  background: rgba(232, 255, 58, 0.07);
}

.page-products .p-hero__dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(217, 79, 43, 0.22);
}

.page-products .p-hero__title{
  margin: 0 0 18px;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.025em;
  max-width: 15em;
}

.page-products .p-hero__lede{
  margin: 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--p-soft);
}

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

.page-products .p-hero__facts{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 242, 233, 0.18);
}

.page-products .p-hero__facts dt{
  margin: 0 0 5px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(245, 242, 233, 0.55);
}

.page-products .p-hero__facts dd{
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .p-hero__fig{
  margin: 0;
  align-self: center;
}

.page-products .p-hero__fig img{
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(245, 242, 233, 0.2);
  box-shadow: 10px 10px 0 rgba(232, 255, 58, 0.13);
  transform: rotate(-1.2deg);
}

.page-products .p-hero__fig figcaption{
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(245, 242, 233, 0.58);
}

/* ---------- 通用区块标题 ---------- */
.page-products .p-head{
  margin: 0 0 4px;
}

.page-products .p-head__num{
  display: inline-block;
  margin: 0 0 16px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--green-deep);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.page-products .p-head__num--light{
  color: var(--fluoro);
  border-color: rgba(232, 255, 58, 0.4);
  background: rgba(232, 255, 58, 0.06);
}

.page-products .p-head__title{
  margin: 0 0 12px;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-products .p-head__title--light{
  color: var(--paper);
}

.page-products .p-head__desc{
  margin: 0;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.78;
  color: var(--slate);
}

.page-products .p-head__desc--light{
  color: rgba(245, 242, 233, 0.74);
}

/* ---------- 五类页面 ---------- */
.page-products .p-core{
  background: var(--paper);
  padding-top: 52px;
  padding-bottom: 56px;
}

.page-products .p-board{
  display: grid;
  gap: 26px;
}

.page-products .p-rail{
  border-left: 2px solid var(--line);
  padding-left: 14px;
}

.page-products .p-rail__title{
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--slate);
}

.page-products .p-rail__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.page-products .p-rail__link{
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.page-products .p-rail__link:hover,
.page-products .p-rail__link:focus-visible{
  color: var(--green-deep);
  border-bottom-color: var(--green);
}

.page-products .p-rail__num{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green-deep);
}

.page-products .p-dash{
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.page-products .p-card{
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 20px 18px 18px;
  box-shadow: var(--p-shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.page-products .p-card:hover{
  transform: translate(-2px, -2px);
  box-shadow: var(--p-shadow);
}

.page-products .p-card__title{
  margin: 14px 0 10px;
  font-size: 17px;
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-products .p-card__text{
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--slate);
}

.page-products .p-card__meta{
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--green-deep);
}

/* ---------- 赛后统计 ---------- */
.page-products .p-stats{
  position: relative;
  background: var(--ink-blue);
  color: var(--paper);
  padding: 52px 0 56px;
  overflow: hidden;
}

.page-products .p-stats::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(53, 216, 158, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.5;
  pointer-events: none;
}

.page-products .p-stats__inner{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
}

.page-products .p-stats__note{
  margin: 22px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(245, 242, 233, 0.62);
}

.page-products .p-stats__fig{
  margin: 0;
}

.page-products .p-stats__fig img{
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(245, 242, 233, 0.22);
  box-shadow: 9px 9px 0 rgba(0, 168, 107, 0.22);
}

.page-products .p-stats__fig figcaption{
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(245, 242, 233, 0.58);
}

.page-products .p-more{
  margin-top: 24px;
  border: 1px solid rgba(245, 242, 233, 0.24);
  background: rgba(245, 242, 233, 0.05);
}

.page-products .p-more > summary{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--fluoro);
}

.page-products .p-more > summary::-webkit-details-marker{
  display: none;
}

.page-products .p-more > summary::after{
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
}

.page-products .p-more[open] > summary::after{
  content: "–";
}

.page-products .p-more__list{
  margin: 0;
  padding: 0 16px 16px;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.76;
  color: rgba(245, 242, 233, 0.78);
}

.page-products .p-more__list strong{
  color: var(--green-light);
  font-weight: 700;
}

.page-products .p-metrics{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1px;
  margin-top: 34px;
  background: rgba(245, 242, 233, 0.18);
  border: 1px solid rgba(245, 242, 233, 0.22);
}

.page-products .p-metric{
  background: var(--ink-blue-2);
  padding: 16px 16px 18px;
}

.page-products .p-metric__name{
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 800;
  color: var(--paper);
}

.page-products .p-metric__text{
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 242, 233, 0.6);
}

/* ---------- 联赛切换 ---------- */
.page-products .p-league{
  background: var(--paper);
  padding-top: 52px;
  padding-bottom: 56px;
}

.page-products .p-tabs{
  margin-top: 28px;
}

.page-products .p-tabs__bar{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-products .p-tabs__btn{
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--slate);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.page-products .p-tabs__btn:hover{
  border-color: var(--green);
  color: var(--green-deep);
}

.page-products .p-tabs__btn:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.page-products .p-tabs__btn[aria-selected="true"],
.page-products .p-tabs__btn.is-active{
  background: var(--fluoro);
  border-color: var(--fluoro);
  color: var(--ink-blue);
}

.page-products .p-tabs__panel{
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: #ffffff;
  padding: 22px 20px;
  box-shadow: var(--p-shadow-sm);
}

.page-products .p-tabs__panel[hidden]{
  display: none;
}

.page-products .p-tabs__panel + .p-tabs__panel{
  margin-top: 14px;
}

.page-products .p-panel__title{
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-products .p-panel__text{
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--slate);
}

.page-products .p-panel__list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-products .p-panel__list li{
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink);
}

.page-products .p-panel__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  background: var(--green);
  transform: rotate(45deg);
}

.page-products .p-league__fig{
  margin: 30px 0 0;
}

.page-products .p-league__fig img{
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.page-products .p-league__fig figcaption{
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 跟队路径 ---------- */
.page-products .p-team{
  background: var(--paper-2);
  padding-top: 52px;
  padding-bottom: 56px;
}

.page-products .p-team__inner{
  display: grid;
  gap: 30px;
}

.page-products .p-path{
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-products .p-path__item{
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 15px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
}

.page-products .p-path__item:not(:last-child)::after{
  content: "↓";
  position: absolute;
  left: 22px;
  bottom: -17px;
  font-size: 13px;
  line-height: 1;
  color: var(--green-deep);
}

.page-products .p-path__num{
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-deep);
  padding-top: 2px;
}

.page-products .p-path__title{
  margin: 0 0 5px;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.45;
}

.page-products .p-path__text{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--slate);
}

.page-products .p-team__fig{
  margin: 0;
}

.page-products .p-team__fig img{
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: var(--p-shadow);
}

.page-products .p-team__fig figcaption{
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 版本变化 ---------- */
.page-products .p-release{
  position: relative;
  background: var(--indigo);
  color: var(--paper);
  padding: 52px 0 56px;
  overflow: hidden;
}

.page-products .p-release__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
}

.page-products .p-release .wrap{
  position: relative;
  z-index: 1;
}

.page-products .p-rel{
  list-style: none;
  margin: 32px 0 0;
  padding: 0 0 0 22px;
  border-left: 1px dashed rgba(245, 242, 233, 0.32);
  display: grid;
}

.page-products .p-rel__item{
  position: relative;
  padding: 0 0 26px;
}

.page-products .p-rel__item::before{
  content: "";
  position: absolute;
  left: -28px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--fluoro);
  box-shadow: 0 0 0 4px rgba(232, 255, 58, 0.16);
}

.page-products .p-rel__tag{
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--wine);
  transform: rotate(-2deg);
}

.page-products .p-rel__title{
  margin: 0 0 7px;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--paper);
}

.page-products .p-rel__text{
  margin: 0;
  max-width: 42em;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(245, 242, 233, 0.74);
}

.page-products .p-perf{
  margin-top: 12px;
  padding: 22px 20px;
  background: rgba(11, 31, 58, 0.42);
  border: 1px solid rgba(245, 242, 233, 0.2);
}

.page-products .p-perf__title{
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(245, 242, 233, 0.62);
}

.page-products .p-perf__row{
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 56px;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.page-products .p-perf__key{
  font-size: 12.5px;
  color: rgba(245, 242, 233, 0.72);
}

.page-products .p-perf__track{
  display: block;
  height: 8px;
  background: rgba(245, 242, 233, 0.14);
}

.page-products .p-perf__fill{
  display: block;
  height: 100%;
}

.page-products .p-perf__fill--old{
  background: rgba(245, 242, 233, 0.42);
}

.page-products .p-perf__fill--now{
  background: var(--fluoro);
}

.page-products .p-perf__val{
  font-size: 13px;
  text-align: right;
  color: var(--paper);
}

.page-products .p-perf__note{
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 242, 233, 0.6);
}

/* ---------- 三步上手 ---------- */
.page-products .p-steps{
  background: var(--paper);
  padding-top: 52px;
  padding-bottom: 56px;
}

.page-products .p-stepbar{
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-products .p-stepbar__item{
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink-blue);
  padding: 20px 18px;
  box-shadow: var(--p-shadow-sm);
}

.page-products .p-stepbar__num{
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  background: var(--ink-blue);
  color: var(--fluoro);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.page-products .p-stepbar__title{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.page-products .p-stepbar__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--slate);
}

.page-products .p-steps__link{
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

.page-products .p-steps__link a{
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 使用环境 ---------- */
.page-products .p-compat-wrap{
  background: var(--paper-2);
  padding-top: 52px;
  padding-bottom: 56px;
}

.page-products .p-compat{
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.page-products .p-compat__item{
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  padding: 20px 18px;
}

.page-products .p-compat__title{
  margin: 0 0 9px;
  font-size: 15.5px;
  font-weight: 800;
}

.page-products .p-compat__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

.page-products .p-next{
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page-products .p-next__text{
  margin: 0 0 18px;
  max-width: 44em;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--slate);
}

.page-products .p-next__text a{
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .p-next__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

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

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

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

@media (min-width: 900px){
  .page-products .p-hero{
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .page-products .p-hero__inner{
    grid-template-columns: 1.04fr 0.96fr;
    gap: 44px;
    align-items: center;
  }

  .page-products .p-stats__inner{
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
  }

  .page-products .p-team__inner{
    grid-template-columns: 1fr 0.92fr;
    gap: 40px;
    align-items: center;
  }

  .page-products .p-stepbar{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

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

@media (min-width: 1025px){
  .page-products .p-board{
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .page-products .p-rail{
    position: sticky;
    top: calc(var(--cmd-h) + 20px);
    align-self: start;
  }

  .page-products .p-rail__list{
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }

  .page-products .p-dash{
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
  }

  .page-products .p-card--a{ grid-column: span 5; }
  .page-products .p-card--b{ grid-column: span 7; margin-top: 14px; }
  .page-products .p-card--c{ grid-column: span 4; }
  .page-products .p-card--d{ grid-column: span 4; margin-top: 14px; }
  .page-products .p-card--e{ grid-column: span 4; }

  .page-products .p-rel{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 44px;
  }
}

@media (prefers-reduced-motion: reduce){
  .page-products .p-card,
  .page-products .p-hero__fig img{
    transition: none;
    transform: none;
  }

  .page-products .p-card:hover{
    transform: none;
  }
}
</main>
