.page-products {
  --p-gap: clamp(18px, 3.4vw, 32px);
  background: var(--ink);
  color: var(--white);
}

.page-products .p-crumb {
  padding: clamp(14px, 2.4vw, 22px) 0 0;
}

/* ---------- 首屏 ---------- */
.page-products .p-hero {
  position: relative;
  padding: clamp(20px, 3.6vw, 38px) 0 clamp(30px, 5vw, 56px);
  overflow: hidden;
}

.page-products .p-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 88% 6%, rgba(56, 242, 208, 0.16), transparent 58%),
    radial-gradient(90% 70% at -8% 100%, rgba(23, 54, 42, 0.9), transparent 72%);
  pointer-events: none;
}

.page-products .p-hero > .shell {
  position: relative;
  z-index: 1;
}

.page-products .p-hero__grid {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
}

.page-products .p-hero__title {
  margin: 0.24em 0 0.36em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 6.2vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-products .p-hero__lede {
  max-width: 34em;
  margin: 0;
  color: var(--fog);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
}

.page-products .p-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(18px, 3vw, 26px);
}

.page-products .p-shot {
  display: block;
  position: relative;
  overflow: hidden;
}

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

.page-products .p-shot--hero {
  clip-path: polygon(0 0, 100% 0, 100% 84%, 84% 100%, 0 100%);
  border: 1px solid var(--line);
}

.page-products .p-hero__media {
  position: relative;
}

.page-products .p-hero__media .p-shot--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(205deg, rgba(7, 19, 15, 0) 42%, rgba(7, 19, 15, 0.78));
  pointer-events: none;
}

/* 荧光青数据带 */
.page-products .p-databand {
  position: relative;
  z-index: 1;
  margin-top: clamp(26px, 5vw, 52px);
  padding: clamp(18px, 3vw, 26px) 0;
  background: var(--cyan);
  color: var(--ink);
  clip-path: polygon(0 14px, 100% 0, 100% calc(100% - 14px), 0 100%);
}

.page-products .p-databand__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
}

.page-products .p-databand__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-products .p-databand__num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1;
}

.page-products .p-databand__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(7, 19, 15, 0.74);
}

/* ---------- 区块标题 ---------- */
.page-products .p-head {
  max-width: 60ch;
  margin-bottom: clamp(20px, 3.4vw, 30px);
}

.page-products .p-head__lede {
  margin: 10px 0 0;
  color: var(--fog);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---------- 工具切换 ---------- */
.page-products .p-tools {
  position: relative;
  background: var(--ink-2);
}

.page-products .segmented__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.page-products .segmented__btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  color: var(--fog);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  clip-path: var(--cut);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.page-products .segmented__btn:hover,
.page-products .segmented__btn:focus-visible {
  border-color: var(--line-strong);
  color: var(--white);
}

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

.page-products .segmented__panel[hidden],
.page-products .segmented__panel[aria-hidden="true"] {
  display: none;
}

.page-products .p-panel {
  position: relative;
  overflow: hidden;
  margin-top: clamp(18px, 3vw, 26px);
  padding: clamp(18px, 3.2vw, 32px);
  background: var(--ink);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}

.page-products .p-panel__bg {
  position: absolute;
  top: -8%;
  right: -12%;
  width: 72%;
  height: auto;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
}

.page-products .p-panel__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(16px, 2.6vw, 26px);
}

.page-products .p-panel__title {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  letter-spacing: -0.01em;
}

.page-products .p-panel__text {
  margin: 0;
  max-width: 40em;
  color: var(--fog);
  font-size: 15px;
  line-height: 1.6;
}

.page-products .p-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--mist);
}

/* 两步路径 */
.page-products .p-path {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}

.page-products .p-path li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--white);
  background: var(--glass);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}

.page-products .p-path__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

/* 排名表 */
.page-products .p-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(12, 33, 26, 0.72);
  -webkit-overflow-scrolling: touch;
}

.page-products .p-rank-table {
  width: 100%;
  min-width: 430px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.page-products .p-rank-table th {
  padding: 9px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-products .p-rank-table td {
  padding: 11px 12px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--white);
  border-bottom: 1px solid rgba(56, 242, 208, 0.1);
  white-space: nowrap;
}

.page-products .p-rank-table tbody tr:nth-child(even) {
  background: rgba(56, 242, 208, 0.04);
}

.page-products .p-rank-table tbody tr:hover {
  background: var(--glass);
}

.page-products .p-rank-table tbody tr:hover td:first-child {
  color: var(--cyan);
}

/* 玻璃信息卡 */
.page-products .p-filter {
  align-self: start;
  padding: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}

.page-products .p-filter__title {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  font-weight: 700;
}

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

.page-products .p-filter__hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fog);
}

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

/* 本地战绩 */
.page-products .p-city-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .p-city {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  background: var(--ink-2);
  border-left: 3px solid var(--cyan);
}

.page-products .p-city__name {
  font-weight: 700;
  font-size: 15px;
  min-width: 3em;
}

.page-products .p-city__form {
  display: flex;
  gap: 4px;
}

.page-products .p-form-dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.page-products .p-form-dot--w {
  background: var(--cyan);
  color: var(--ink);
}

.page-products .p-form-dot--d {
  background: transparent;
  color: var(--fog);
  border: 1px solid var(--line-strong);
}

.page-products .p-form-dot--l {
  background: transparent;
  color: var(--orange);
  border: 1px solid rgba(255, 122, 47, 0.55);
}

.page-products .p-city__score {
  margin-left: auto;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.page-products .p-city__score span {
  color: var(--mist);
  margin: 0 1px;
}

/* 导出 */
.page-products .p-panel__grid--split {
  align-items: start;
}

.page-products .p-shot--tall {
  clip-path: var(--cut);
  border: 1px solid var(--line);
}

.page-products .p-shot--tall img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}

.page-products .p-export {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
}

.page-products .p-step {
  padding: 16px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}

.page-products .p-step__num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-products .p-step h4 {
  margin: 6px 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
}

.page-products .p-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fog);
}

.page-products .p-arrow {
  color: var(--orange);
  font-size: 1.4rem;
  line-height: 1;
  text-align: center;
  transform: rotate(90deg);
}

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

.page-products .p-format li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fog);
}

/* ---------- 战术条 ---------- */
.page-products .p-tactical {
  padding: clamp(36px, 6vw, 72px) 0;
}

.page-products .p-tactical__strip {
  margin-top: clamp(18px, 3vw, 28px);
}

.page-products .p-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px var(--gutter) 18px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-products .tactical-item {
  position: relative;
  flex: 0 0 clamp(158px, 27vw, 240px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 118px;
  padding: 16px;
  text-decoration: none;
  color: var(--white);
  background: var(--ink-2);
  border: 1px solid var(--line);
  clip-path: var(--cut);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.page-products .tactical-item:hover,
.page-products .tactical-item:focus-visible {
  background: var(--glass);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.page-products .tactical-item__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-products .tactical-item__label {
  margin-top: auto;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ---------- 轮次公告 ---------- */
.page-products .p-rounds {
  background: var(--ink-2);
}

.page-products .p-rounds__grid {
  display: grid;
  gap: clamp(20px, 3.4vw, 40px);
}

.page-products .p-rounds__text {
  margin: 12px 0 20px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fog);
}

.page-products .p-rounds__text a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

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

.page-products .p-notice {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-products .p-notice__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(56, 242, 208, 0.12);
}

.page-products .p-notice__round {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-products .p-notice__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--white);
}

.page-products .p-notice__time {
  grid-column: 2;
  font-size: 12px;
  color: var(--mist);
}

/* ---------- 场景 ---------- */
.page-products .p-scenes {
  padding-bottom: clamp(44px, 7vw, 84px);
}

.page-products .p-scene-grid {
  display: grid;
  gap: 14px;
}

.page-products .p-scene {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}

.page-products .p-scene__title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
}

.page-products .p-scene__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fog);
}

.page-products .p-scene__media {
  display: block;
  margin: -20px -20px 4px;
  overflow: hidden;
}

.page-products .p-scene__media img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  opacity: 0.9;
}

/* ---------- 收尾 ---------- */
.page-products .p-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 84px) 0;
  background: var(--turf);
}

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

.page-products .p-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 58ch;
}

.page-products .p-cta__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.6vw, 2.7rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.page-products .p-cta__inner > p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fog);
}

.page-products .p-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-products .p-notice__row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
  }

  .page-products .p-notice__time {
    grid-column: auto;
    white-space: nowrap;
  }

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

@media (min-width: 700px) {
  .page-products .p-databand__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .p-arrow {
    transform: rotate(0deg);
  }

  .page-products .p-export {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 860px) {
  .page-products .p-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

@media (min-width: 900px) {
  .page-products .p-panel__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.7fr);
  }

  .page-products .p-panel__grid--split {
    grid-template-columns: minmax(200px, 0.52fr) minmax(0, 1.48fr);
    align-items: center;
  }

  .page-products .p-rounds__grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  .page-products .p-shot--tall img {
    max-height: 380px;
  }
}

@media (min-width: 1020px) {
  .page-products .p-scene-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .segmented__btn,
  .page-products .tactical-item {
    transition: none;
  }

  .page-products .tactical-item:hover,
  .page-products .tactical-item:focus-visible {
    transform: none;
  }
}
