/* ===== 海博体育应用中心专属样式 ===== */
.page-products {
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(57, 255, 20, 0.08), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(255, 107, 0, 0.05), transparent 55%),
    var(--bg-deep);
}

.page-products::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(30, 58, 95, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.16) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(85% 60% at 70% 0%, black, transparent 72%);
  mask-image: radial-gradient(85% 60% at 70% 0%, black, transparent 72%);
}

.page-products > * {
  position: relative;
  z-index: 1;
}

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

/* ---------- Hero ---------- */
.page-products .ps-hero {
  padding: 1.5rem 0 3.25rem;
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.page-products .ps-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-products .ps-kicker-line {
  width: 34px;
  height: 3px;
  background: var(--accent);
  transform: skewX(-20deg);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.page-products .ps-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  line-height: 1.06;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.page-products .ps-hero-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  max-width: 34rem;
  margin: 0 0 0.75rem;
}

.page-products .ps-hero-note {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-aux);
  max-width: 34rem;
  border-left: 3px solid var(--accent-orange);
  padding-left: 0.75rem;
  margin: 0 0 1.25rem;
}

.page-products .ps-hero-stats {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.page-products .ps-hero-stats li {
  display: flex;
  flex-direction: column;
  background: rgba(19, 28, 46, 0.72);
  border: 1px solid var(--line-glow);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s;
}

.page-products .ps-hero-stats li:hover {
  border-color: rgba(57, 255, 20, 0.35);
}

.page-products .ps-hero-stats strong {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--accent);
}

.page-products .ps-hero-stats span {
  font-size: 0.75rem;
  color: var(--text-aux);
  margin-top: 2px;
}

.page-products .ps-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- 手机模型 ---------- */
.page-products .ps-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.page-products .ps-phone-flip {
  width: 280px;
  height: 570px;
  perspective: 1200px;
  cursor: pointer;
}

.page-products .ps-phone-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-products .ps-phone-flip:hover .ps-phone-flip-inner,
.page-products .ps-phone-flip:focus-within .ps-phone-flip-inner {
  transform: rotateY(180deg);
}

.page-products .ps-phone {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: linear-gradient(145deg, #17233A, #0B1220);
  border: 1px solid rgba(57, 255, 20, 0.22);
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 0 44px rgba(57, 255, 20, 0.12), inset 0 0 18px rgba(0, 0, 0, 0.5);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.page-products .ps-phone-front {
  z-index: 2;
}

.page-products .ps-phone-back {
  position: absolute;
  inset: 0;
  z-index: 3;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 24px;
  text-align: center;
  border-color: rgba(255, 107, 0, 0.38);
  background: rgba(11, 18, 32, 0.96);
}

.page-products .ps-phone-back .ps-qr-code {
  width: 168px;
  height: 168px;
}

.page-products .ps-phone-speaker {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 6px;
  border-radius: 3px;
  background: rgba(230, 237, 245, 0.45);
  z-index: 4;
}

.page-products .ps-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #0B1220;
}

.page-products .ps-phone-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-products .ps-screen-top {
  position: absolute;
  top: 26px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.page-products .ps-screen-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(11, 18, 32, 0.72);
  border: 1px solid rgba(57, 255, 20, 0.35);
  border-radius: 4px;
  padding: 3px 8px;
}

.page-products .ps-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: psPulse 1.2s ease-in-out infinite;
}

@keyframes psPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.page-products .ps-screen-ts {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-orange);
  background: rgba(11, 18, 32, 0.72);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
}

.page-products .ps-screen-score {
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--data-white);
  text-shadow: 0 0 18px rgba(57, 255, 20, 0.35);
}

.page-products .ps-screen-score em {
  font-style: normal;
  font-size: 1.7rem;
  color: var(--accent);
  margin: 0 2px;
}

.page-products .ps-screen-bar {
  position: absolute;
  top: 132px;
  left: 24px;
  right: 24px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  z-index: 2;
}

.page-products .ps-screen-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-orange));
}

.page-products .ps-screen-wave {
  position: absolute;
  bottom: 62px;
  left: 16px;
  right: 16px;
  height: 42px;
  z-index: 2;
}

.page-products .ps-screen-wave path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 4;
  animation: psDash 1.5s linear infinite;
}

@keyframes psDash {
  to { stroke-dashoffset: -20; }
}

.page-products .ps-refresh {
  position: absolute;
  bottom: 16px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 2;
  background: rgba(11, 18, 32, 0.78);
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 6px;
  padding: 6px 10px;
}

.page-products .ps-refresh-label {
  font-size: 0.72rem;
  color: var(--text-main);
}

.page-products .ps-refresh-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.page-products .ps-back-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-main);
}

.page-products .ps-back-name {
  font-size: 0.85rem;
  color: var(--text-aux);
}

.page-products .ps-back-tip {
  font-size: 0.72rem;
  color: var(--accent-orange);
  letter-spacing: 0.08em;
}

.page-products .ps-phone-caption {
  font-size: 0.8rem;
  color: var(--text-aux);
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 260px;
  line-height: 1.5;
}

/* ---------- 功能总览 ---------- */
.page-products .ps-features {
  padding: 3rem 0;
}

.page-products .ps-features-intro {
  color: var(--text-aux);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 44rem;
  margin: 0.5rem 0 0;
}

.page-products .ps-func-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.page-products .ps-func-main,
.page-products .ps-func-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-products .ps-func-main:hover,
.page-products .ps-func-card:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 20, 0.4);
  box-shadow: 0 10px 36px rgba(57, 255, 20, 0.08);
}

.page-products .ps-func-main {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.page-products .ps-func-copy {
  min-width: 0;
}

.page-products .ps-func-main h3,
.page-products .ps-func-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0.6rem 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-products .ps-func-main h3::before,
.page-products .ps-func-card h3::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: skewX(-20deg);
}

.page-products .ps-func-card h3::before {
  background: var(--accent-orange);
}

.page-products .ps-func-main p,
.page-products .ps-func-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-aux);
}

.page-products .ps-flow-svg {
  height: 60px;
  margin-top: 1rem;
}

.page-products .ps-flow-svg svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.page-products .ps-flow-svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 4 4;
  animation: psDash 1.5s linear infinite;
}

.page-products .ps-flow-svg circle {
  fill: var(--accent-orange);
}

.page-products .ps-funcimg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line-glow);
  margin-top: 1rem;
}

/* ---------- 版本更新 ---------- */
.page-products .ps-changelog {
  padding: 3rem 0;
  background: linear-gradient(180deg, transparent, rgba(255, 107, 0, 0.04) 28%, transparent 88%);
}

.page-products .ps-cl-layout {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.page-products .ps-cl-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.page-products .ps-cl-icon {
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--line-glow);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.1);
}

.page-products .ps-cl-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  width: 100%;
}

.page-products .ps-cl-metric {
  background: rgba(19, 28, 46, 0.8);
  border: 1px solid var(--line-glow);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
}

.page-products .ps-cl-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--accent);
}

.page-products .ps-cl-label {
  font-size: 0.78rem;
  color: var(--text-aux);
}

.page-products .ps-cl-list .acc-item {
  background: rgba(19, 28, 46, 0.6);
  border: 1px solid var(--line-glow);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.page-products .ps-cl-list .acc-item[data-open] {
  border-color: rgba(255, 107, 0, 0.4);
}

.page-products .ps-cl-list .acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: transparent;
  border: 0;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.page-products .ps-cl-list .acc-trigger:hover {
  background: rgba(57, 255, 20, 0.05);
}

.page-products .ps-cl-ver {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(57, 255, 20, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

.page-products .ps-cl-title {
  flex: 1;
  color: var(--text-main);
}

.page-products .ps-cl-arrow {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-orange);
  display: inline-block;
  transition: transform 0.25s;
}

.page-products .ps-cl-list .acc-item[data-open] .ps-cl-arrow {
  transform: rotate(45deg);
}

.page-products .ps-cl-list .acc-panel-inner {
  padding: 0 1.1rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-aux);
}

.page-products .ps-cl-list .acc-panel-inner ul {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.page-products .ps-cl-list .acc-panel-inner li::marker {
  color: var(--accent);
}

/* ---------- 下载与安装 ---------- */
.page-products .ps-download {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, transparent, rgba(57, 255, 20, 0.04) 30%, transparent);
}

.page-products .ps-dl-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.page-products .ps-dl-grid .card {
  padding: 1.5rem;
}

.page-products .ps-dl-grid h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-products .ps-dl-grid h3::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: skewX(-20deg);
  flex: 0 0 auto;
}

.page-products .ps-dl-scan {
  text-align: center;
}

.page-products .ps-dl-scan h3 {
  justify-content: center;
}

.page-products .ps-qr-code {
  width: 128px;
  height: 128px;
  display: block;
  margin: 0 auto;
}

.page-products .ps-scan-note {
  margin: 0.9rem 0 0;
  color: var(--text-aux);
  font-size: 0.88rem;
  line-height: 1.6;
}

.page-products .ps-req-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .ps-req-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(30, 58, 95, 0.55);
  font-size: 0.92rem;
}

.page-products .ps-req-list li:last-child {
  border-bottom: 0;
}

.page-products .ps-req-key {
  color: var(--text-aux);
}

.page-products .ps-req-val {
  font-family: var(--font-mono);
  color: var(--text-main);
  text-align: right;
}

.page-products .ps-steps {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--text-aux);
  font-size: 0.92rem;
  line-height: 1.6;
}

.page-products .ps-steps li::marker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.page-products .ps-dl-help {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.08), transparent 60%), var(--bg-card);
}

.page-products .ps-dl-help p {
  color: var(--text-aux);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 1.1rem;
  max-width: 40rem;
}

.page-products .ps-dl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- SVG 二维码颜色 ---------- */
.page-products .qr-solid { fill: var(--text-main); }
.page-products .qr-hollow-thin { fill: none; stroke: var(--text-main); stroke-width: 3; }
.page-products .qr-green { fill: var(--accent); }
.page-products .qr-green-hollow { fill: none; stroke: var(--accent); stroke-width: 6; }
.page-products .qr-orange { fill: var(--accent-orange); }

/* ---------- 桌面端 ---------- */
@media (min-width: 768px) {
  .page-products .ps-hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-products .ps-func-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .ps-func-main {
    grid-column: 1 / -1;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 1.75rem;
  }

  .page-products .ps-func-main .ps-funcimg {
    margin-top: 0;
  }

  .page-products .ps-dl-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .ps-dl-help {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .page-products .ps-hero {
    grid-template-columns: 1.05fr 0.9fr;
    gap: 3rem;
    padding-top: 2.25rem;
    padding-bottom: 4rem;
  }

  .page-products .ps-func-layout {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .page-products .ps-func-main {
    grid-column: span 2;
  }

  .page-products .ps-cl-layout {
    grid-template-columns: 300px 1fr;
    gap: 3rem;
  }

  .page-products .ps-cl-visual {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .ps-pulse,
  .page-products .ps-screen-wave path,
  .page-products .ps-flow-svg path {
    animation: none;
  }

  .page-products .ps-phone-flip-inner {
    transition: none;
  }
}
