/* ===== 功能中心 / page-products ===== */
.page-products {
  --pp-soft: rgba(237, 244, 246, .68);
  --pp-panel: rgba(16, 33, 47, .74);
  --pp-gap: clamp(18px, 3vw, 34px);
  position: relative;
  padding-bottom: clamp(48px, 8vw, 104px);
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-products .feat-hero {
  position: relative;
  padding: calc(var(--bar-h, 76px) + clamp(28px, 6vw, 72px)) 0 clamp(28px, 5vw, 52px);
  overflow: hidden;
}

.page-products .feat-hero::after {
  content: "";
  position: absolute;
  top: -22%;
  right: -16%;
  width: min(740px, 88vw);
  aspect-ratio: 1 / 1;
  background-image:
    radial-gradient(58% 58% at 34% 34%, rgba(79, 182, 200, .32), rgba(79, 182, 200, 0) 72%),
    conic-gradient(from 202deg at 50% 50%, rgba(46, 124, 140, .46), rgba(15, 42, 56, 0) 58%);
  border-radius: 46% 54% 58% 42% / 52% 46% 54% 48%;
  pointer-events: none;
  z-index: 0;
}

.page-products .feat-hero::before {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -30%;
  width: min(520px, 70vw);
  aspect-ratio: 3 / 2;
  background-image: linear-gradient(150deg, rgba(28, 75, 87, .5), rgba(10, 21, 34, 0) 70%);
  border-radius: 40% 60% 52% 48% / 58% 42% 58% 42%;
  pointer-events: none;
  z-index: 0;
}

.page-products .feat-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(26px, 4vw, 50px);
}

.page-products .feat-hero h1 {
  font-family: var(--font-narrow);
  font-weight: 300;
  font-size: clamp(34px, 7.2vw, 78px);
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 12px 0 18px;
  transform: rotate(-.8deg);
  transform-origin: left top;
  word-break: break-word;
}

.page-products .feat-hero__intro {
  max-width: 58ch;
  color: var(--pp-soft);
  line-height: 1.8;
  margin: 0 0 26px;
}

.page-products .feat-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .feat-hero__aside {
  background-image: linear-gradient(158deg, rgba(46, 124, 140, .26), rgba(15, 42, 56, .62));
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(20px, 3vw, 30px);
}

.page-products .flow {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .flow__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.65;
}

.page-products .flow__n {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--neon);
  letter-spacing: .06em;
}

.page-products .flow__t {
  color: var(--mist);
}

/* ---------- 面板跳转条 ---------- */
.page-products .tool-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0 clamp(22px, 3vw, 34px);
  -webkit-overflow-scrolling: touch;
}

.page-products .tool-nav::-webkit-scrollbar {
  display: none;
}

.page-products .tool-nav__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--pp-panel);
  color: var(--mist);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}

.page-products .tool-nav__item:hover,
.page-products .tool-nav__item:focus-visible {
  border-color: var(--neon);
  color: var(--neon);
}

.page-products .tool-nav__n {
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--aqua);
  letter-spacing: .08em;
}

/* ---------- 面板通用 ---------- */
.page-products .tool-panel {
  position: relative;
  border-top: 1px solid var(--line-soft);
  padding: clamp(34px, 6vw, 72px) 0;
  scroll-margin-top: calc(var(--bar-h, 76px) + 16px);
}

.page-products .tool-panel:target {
  box-shadow: inset 3px 0 0 var(--neon);
}

.page-products .tool-panel__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(12px, 2vw, 22px);
  align-items: end;
  margin-bottom: clamp(22px, 3.5vw, 42px);
}

.page-products .tool-panel__num {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: clamp(38px, 8vw, 92px);
  line-height: .82;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(79, 182, 200, .55);
}

.page-products .tool-panel__headtext h2 {
  font-family: var(--font-narrow);
  font-weight: 400;
  font-size: clamp(24px, 3.6vw, 42px);
  line-height: 1.16;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}

.page-products .tool-panel__kicker {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--aqua);
  margin: 0;
}

.page-products .tool-panel__body {
  display: grid;
  gap: var(--pp-gap);
}

.page-products .tool-panel__copy > p {
  color: var(--pp-soft);
  line-height: 1.8;
  margin: 0 0 1.2em;
}

.page-products .tool-panel__copy > p:last-child {
  margin-bottom: 0;
}

.page-products .tool-panel__note {
  border-left: 2px solid var(--neon);
  padding-left: 14px;
  color: var(--mist);
  margin-top: 20px;
}

.page-products .sub-h {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  margin: 26px 0 12px;
  color: var(--mist);
}

.page-products .tool-panel__media {
  margin: 0;
}

.page-products .tool-panel__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-l);
  border: 1px solid var(--line-soft);
  display: block;
}

/* ---------- 视图卡 ---------- */
.page-products .view-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .view-card {
  padding: 16px 18px;
  background: var(--pp-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.page-products .view-card:hover {
  transform: translateY(-2px);
  border-color: var(--aqua);
}

.page-products .view-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--neon);
}

.page-products .view-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--pp-soft);
}

/* ---------- 伤停清单 ---------- */
.page-products .avail-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  overflow: hidden;
}

.page-products .avail-row {
  display: grid;
  grid-template-columns: 12px 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 21, 34, .42);
}

.page-products .avail-row:last-child {
  border-bottom: 0;
}

.page-products .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.page-products .dot--out { background: var(--alert); box-shadow: 0 0 10px rgba(255, 77, 94, .55); }
.page-products .dot--heat { background: var(--heat); box-shadow: 0 0 10px rgba(255, 106, 43, .5); }
.page-products .dot--ok { background: var(--neon); box-shadow: 0 0 10px rgba(200, 255, 77, .4); }

.page-products .avail-pos {
  font-size: 14px;
  font-weight: 600;
  color: var(--mist);
}

.page-products .avail-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--pp-soft);
}

.page-products .stat {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  color: var(--neon);
}

/* ---------- 定义列表 ---------- */
.page-products .spec-list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.page-products .spec-list__row dt {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--aqua);
  margin-bottom: 4px;
}

.page-products .spec-list__row dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--pp-soft);
}

/* ---------- 筛选链 ---------- */
.page-products .filter-chain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .filter-chain__step {
  position: relative;
  padding: 14px 18px 14px 22px;
  border-radius: var(--r-m);
  background-image: linear-gradient(120deg, rgba(28, 75, 87, .38), rgba(10, 21, 34, .3));
  border: 1px solid var(--line-soft);
}

.page-products .filter-chain__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--aqua);
}

.page-products .filter-chain__k {
  display: block;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--neon);
  margin-bottom: 5px;
}

.page-products .filter-chain__step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--pp-soft);
}

/* ---------- 时间轴 ---------- */
.page-products .tl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  position: relative;
}

.page-products .tl::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--aqua), rgba(79, 182, 200, .06));
}

.page-products .tl__item {
  position: relative;
  padding-left: 30px;
}

.page-products .tl__item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--aqua);
}

.page-products .tl__node {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  background: var(--pp-panel);
  overflow: hidden;
}

.page-products .tl__node summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 15px 18px;
  transition: background .15s var(--ease);
}

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

.page-products .tl__node summary:hover {
  background: rgba(79, 182, 200, .07);
}

.page-products .tl__label {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--mist);
}

.page-products .tl__hint {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--slate);
}

.page-products .tl__node[open] summary {
  border-bottom: 1px solid var(--line-soft);
}

.page-products .tl__node p {
  margin: 0;
  padding: 14px 18px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--pp-soft);
}

.page-products .tl__foot {
  margin: 20px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--pp-soft);
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

/* ---------- 主客场面板 ---------- */
.page-products .ha-panel {
  display: grid;
  gap: 16px;
}

.page-products .ha-col {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  padding: 18px 18px 20px;
  background: var(--pp-panel);
}

.page-products .ha-col--home {
  background-image: linear-gradient(150deg, rgba(46, 124, 140, .28), rgba(10, 21, 34, .5));
}

.page-products .ha-col--away {
  background-image: linear-gradient(210deg, rgba(255, 106, 43, .13), rgba(10, 21, 34, .5));
}

.page-products .ha-col__label {
  margin: 0 0 14px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--aqua);
}

.page-products .ha-col--away .ha-col__label {
  color: var(--heat);
}

.page-products .ha-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .ha-bar {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr 52px;
  gap: 10px;
  align-items: center;
}

.page-products .ha-bar__name {
  font-size: 13px;
  color: var(--pp-soft);
}

.page-products .ha-bar__track {
  display: block;
  height: 8px;
  border-radius: var(--pill);
  background: rgba(237, 244, 246, .08);
  overflow: hidden;
}

.page-products .ha-bar__fill {
  display: block;
  height: 100%;
  border-radius: var(--pill);
  background-image: linear-gradient(90deg, var(--grad-from), var(--aqua));
  transition: width .3s var(--ease);
}

.page-products .ha-col--away .ha-bar__fill {
  background-image: linear-gradient(90deg, var(--grad-to), var(--heat));
}

.page-products .ha-bar__val {
  font-size: 14px;
  text-align: right;
}

.page-products .ha-bar__hint {
  position: absolute;
  left: 78px;
  bottom: calc(100% + 4px);
  font-family: var(--font-data);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--mist);
  background: rgba(10, 21, 34, .94);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 3px 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s var(--ease);
  z-index: 2;
}

.page-products .ha-bar:hover .ha-bar__hint,
.page-products .ha-bar:focus-within .ha-bar__hint {
  opacity: 1;
}

.page-products .ha-col--home .ha-bar:nth-child(1) .ha-bar__fill { width: 65%; }
.page-products .ha-col--home .ha-bar:nth-child(2) .ha-bar__fill { width: 62%; }
.page-products .ha-col--home .ha-bar:nth-child(3) .ha-bar__fill { width: 78%; }
.page-products .ha-col--home .ha-bar:nth-child(4) .ha-bar__fill { width: 52%; }
.page-products .ha-col--away .ha-bar:nth-child(1) .ha-bar__fill { width: 50%; }
.page-products .ha-col--away .ha-bar:nth-child(2) .ha-bar__fill { width: 54%; }
.page-products .ha-col--away .ha-bar:nth-child(3) .ha-bar__fill { width: 62%; }
.page-products .ha-col--away .ha-bar:nth-child(4) .ha-bar__fill { width: 71%; }

.page-products .ha-foot {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

/* ---------- 视频分类 ---------- */
.page-products .cat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .cat-card {
  padding: 16px 18px;
  border-radius: var(--r-m);
  border: 1px solid var(--line-soft);
  background-image: linear-gradient(160deg, rgba(28, 75, 87, .34), rgba(10, 21, 34, .46));
  transition: transform .2s var(--ease);
}

.page-products .cat-card:hover {
  transform: translateY(-2px);
}

.page-products .cat-card__when {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink);
  background: var(--neon);
  border-radius: var(--pill);
  padding: 2px 10px;
  margin-bottom: 10px;
}

.page-products .cat-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--mist);
}

.page-products .cat-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--pp-soft);
}

.page-products .video-pair {
  display: grid;
  gap: 18px;
  align-items: start;
}

.page-products .video-pair__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-l);
  border: 1px solid var(--line-soft);
  display: block;
}

.page-products .video-pair__note p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--pp-soft);
}

/* ---------- 使用路径 ---------- */
.page-products .route {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .route__step {
  position: relative;
  padding: 16px 18px;
  border-radius: var(--r-m);
  border: 1px solid var(--line-soft);
  background: rgba(16, 33, 47, .6);
}

.page-products .route__n {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--neon);
}

.page-products .route__step h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 6px 0 6px;
  color: var(--mist);
}

.page-products .route__step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--pp-soft);
}

.page-products .route__step a,
.page-products .end-note a,
.page-products .video-pair__note a.btn {
  color: var(--aqua);
  text-decoration: none;
}

.page-products .video-pair__note a.btn {
  color: var(--mist);
}

.page-products .route__step a:hover,
.page-products .end-note a:hover {
  color: var(--neon);
  text-decoration: underline;
}

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

.page-products .advice-card {
  padding: 20px;
  border-radius: var(--r-l);
  border: 1px solid var(--line-soft);
}

.page-products .advice-card--weekend {
  background-image: linear-gradient(150deg, rgba(46, 124, 140, .34), rgba(10, 21, 34, .5));
}

.page-products .advice-card--peak {
  background-image: linear-gradient(150deg, rgba(255, 106, 43, .16), rgba(10, 21, 34, .5));
  border-color: rgba(255, 106, 43, .3);
}

.page-products .advice-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0 10px;
  color: var(--mist);
}

.page-products .advice-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--pp-soft);
}

/* ---------- 导出与提醒 ---------- */
.page-products .util-grid {
  display: grid;
  gap: 14px;
}

.page-products .util-card {
  padding: 22px;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--pp-panel);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.page-products .util-card:hover {
  transform: translateY(-2px);
  border-color: var(--neon);
}

.page-products .util-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-s);
  color: var(--neon);
  background: rgba(200, 255, 77, .1);
  border: 1px solid rgba(200, 255, 77, .28);
  margin-bottom: 14px;
}

.page-products .util-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--mist);
}

.page-products .util-card p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--pp-soft);
}

.page-products .util-card__meta {
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: var(--slate) !important;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
}

.page-products .end-note {
  margin-top: 6px;
  padding: 20px 22px;
  border-radius: var(--r-l);
  background-image: linear-gradient(120deg, rgba(28, 75, 87, .34), rgba(10, 21, 34, .34));
  border: 1px solid var(--line-soft);
}

.page-products .end-note p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--pp-soft);
}

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .page-products .view-grid,
  .page-products .cat-grid,
  .page-products .advice-grid,
  .page-products .util-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-products .feat-hero__grid {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, .78fr);
    align-items: end;
  }

  .page-products .tool-panel__body {
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    align-items: start;
  }

  .page-products .tool-panel--flip .tool-panel__body {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  }

  .page-products .tool-panel--flip .tool-panel__copy {
    order: 2;
  }

  .page-products .tool-panel--flip .tool-panel__media {
    order: 1;
  }

  .page-products .tool-panel__body--stack {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .page-products .video-pair {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  }

  .page-products .route {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

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

  .page-products .view-grid {
    gap: 14px;
  }

  .page-products .tool-panel__media--side {
    max-width: 420px;
    justify-self: end;
  }
}

@media (max-width: 639px) {
  .page-products .tool-panel__num {
    font-size: 40px;
  }

  .page-products .ha-bar {
    grid-template-columns: 62px 1fr 46px;
    gap: 8px;
  }

  .page-products .ha-bar__hint {
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products *,
  .page-products *::before,
  .page-products *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    transform: none !important;
  }
}
