/* =========================================================
   Perfect Sports 365 — APP下载页
   作用域：.page-products
   ========================================================= */
.page-products {
  --p-phone-width: 286px;
  --p-phone-radius: 34px;
  --p-line-green: rgba(57, 255, 20, 0.32);
  --p-deep-soft: rgba(255, 255, 255, 0.06);
  --p-deep-line: rgba(255, 255, 255, 0.14);
}

/* ---------- Hero 首屏 ---------- */
.page-products .prod-hero {
  position: relative;
  overflow: hidden;
  background: var(--c-deep);
  color: var(--c-white);
  padding: 2.25rem 0 4.75rem;
}

.page-products .prod-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-products .prod-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  max-width: none;
}

.page-products .prod-hero__tint {
  position: absolute;
  inset: 0;
  display: block;
  background:
    linear-gradient(110deg, rgba(15, 27, 46, 0.96) 0%, rgba(15, 27, 46, 0.86) 42%, rgba(15, 27, 46, 0.62) 100%),
    linear-gradient(180deg, rgba(63, 81, 181, 0.26), transparent 44%);
}

.page-products .prod-hero__inner {
  position: relative;
  z-index: 1;
}

.page-products .prod-hero__grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
  margin-top: 2.5rem;
}

.page-products .prod-hero__copy {
  max-width: 640px;
}

.page-products .prod-hero h1 {
  margin: 0.75rem 0 1rem;
  font-size: var(--fs-h1);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.page-products .prod-hero__brand {
  display: block;
  background: linear-gradient(100deg, var(--c-white) 0%, var(--c-green) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-products .prod-hero__lead {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 46em;
}

.page-products .prod-hero__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1.5rem 0 0;
  margin: 0;
}

.page-products .prod-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.page-products .prod-hero__track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 42px;
  pointer-events: none;
  background: repeating-linear-gradient(-55deg, transparent 0 10px, var(--p-line-green) 10px 11px, transparent 11px 34px);
  opacity: 0.4;
}

.page-products .prod-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* ---------- 手机模型 ---------- */
.page-products .phone-mock {
  position: relative;
  width: min(var(--p-phone-width), 78vw);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  padding: 10px;
  background: linear-gradient(160deg, #1d2b48 0%, #0d1830 55%, #223450 100%);
  border-radius: var(--p-phone-radius);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: rotate(2.5deg);
}

.page-products .phone-mock::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 18px;
  background: var(--c-deep);
  border-radius: 12px;
  z-index: 2;
}

.page-products .phone-mock::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  z-index: 2;
}

.page-products .phone-mock__screen {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  max-width: none;
}

.page-products .phone-mock__glare {
  position: absolute;
  inset: 0;
  border-radius: var(--p-phone-radius);
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14), transparent 34%);
  z-index: 1;
}

/* ---------- 核心功能 ---------- */
.page-products .features-panel {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--c-green);
  background: linear-gradient(180deg, var(--c-white) 0%, var(--c-fog) 100%);
}

.page-products .features-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: 40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(closest-side, rgba(255, 106, 0, 0.14), transparent 72%);
  pointer-events: none;
}

.page-products .feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.page-products .feature-card {
  position: relative;
  overflow: hidden;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  padding: 1.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-products .feature-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.26), transparent 70%);
  transform: rotate(45deg);
  pointer-events: none;
}

.page-products .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.page-products .feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--c-green);
  color: var(--c-deep);
  margin-bottom: 1.1rem;
}

.page-products .feature-card__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.page-products .feature-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-products .feature-card__title {
  margin: 0.35rem 0 0.55rem;
  font-size: var(--fs-h3);
  font-weight: 800;
}

.page-products .feature-card__text {
  color: var(--c-text);
  line-height: 1.75;
  font-size: 0.95rem;
}

.page-products .feature-card__meta {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--c-border);
  font-size: 0.9rem;
  color: var(--c-muted);
}

.page-products .feature-card__meta .data-num {
  font-weight: 700;
  color: var(--c-deep);
}

.page-products .features-image {
  position: relative;
  margin: 3rem auto 0;
  max-width: 780px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--c-deep);
  line-height: 0;
}

.page-products .features-image img {
  width: 100%;
  height: auto;
  display: block;
}

.page-products .features-image figcaption {
  padding: 0.65rem 1rem;
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.78);
  background: var(--c-deep);
  line-height: 1.6;
}

.page-products .features-panel__foot {
  position: relative;
  max-width: 780px;
  margin: 1.25rem auto 0;
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ---------- 版本说明 / 手风琴 ---------- */
.page-products .version-panel {
  position: relative;
  overflow: hidden;
  background: var(--c-deep);
  color: var(--c-white);
  padding: var(--space-section) 0;
}

.page-products .version-panel::before {
  content: "";
  position: absolute;
  top: 80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(closest-side, rgba(63, 81, 181, 0.42), transparent 70%);
  pointer-events: none;
}

.page-products .version-panel__inner {
  position: relative;
  z-index: 1;
}

.page-products .version-panel .section-title {
  color: var(--c-white);
}

.page-products .version-panel .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

.page-products .acc-list {
  max-width: 900px;
  margin-inline: auto;
}

.page-products .acc {
  background: var(--p-deep-soft);
  border: 1px solid var(--p-deep-line);
  border-left: 5px solid var(--c-green);
  border-radius: 0 var(--radius-l) var(--radius-l) 0;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}

.page-products .acc[open] {
  background: rgba(255, 255, 255, 0.09);
}

.page-products .acc__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  flex-wrap: wrap;
}

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

.page-products .acc__head:focus-visible {
  outline: 2px solid var(--c-green);
  outline-offset: -2px;
}

.page-products .acc__num {
  font-family: var(--font-mono);
  color: var(--c-green);
  font-size: 0.82rem;
}

.page-products .acc__team {
  flex: 1 1 auto;
}

.page-products .acc__badge {
  flex: 0 0 auto;
}

.page-products .acc__chev {
  position: relative;
  margin-left: auto;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.page-products .acc__chev::before,
.page-products .acc__chev::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.page-products .acc__chev::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.28s ease;
}

.page-products .acc[open] .acc__chev::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.page-products .acc__body {
  padding: 0 1.25rem 1.4rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  border-top: 1px solid var(--p-deep-line);
  margin-top: 0.2rem;
}

.page-products .acc__grid {
  display: grid;
  gap: 1.25rem;
  padding-top: 1.25rem;
}

.page-products .acc__block-title {
  color: var(--c-green);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.page-products .acc__block-text {
  font-size: 0.95rem;
}

.page-products .acc__img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--p-deep-line);
  margin-top: 0.25rem;
}

.page-products .version-panel__more {
  margin-top: 2rem;
  text-align: center;
}

/* ---------- 下载方式 ---------- */
.page-products .download-panel {
  position: relative;
  padding: var(--space-section) 0;
  background: linear-gradient(135deg, var(--c-fog) 0%, var(--c-white) 52%, var(--c-fog) 100%);
}

.page-products .download-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 64px;
  width: 160px;
  height: 160px;
  background: radial-gradient(closest-side, rgba(255, 106, 0, 0.2), transparent);
  pointer-events: none;
}

.page-products .download-panel__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.page-products .download-panel__copy {
  position: relative;
}

.page-products .download-panel__lead {
  margin: 1rem 0 1.5rem;
  line-height: 1.8;
}

.page-products .download-panel__note {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--c-border);
}

.page-products .download-panel__note li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--c-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-products .download-panel__note .data-num {
  font-weight: 700;
  color: var(--c-deep);
  font-size: 0.9rem;
}

.page-products .download-panel__hint {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-top: 1rem;
  line-height: 1.7;
}

.page-products .download-panel__qr {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-l);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-float);
}

.page-products .download-panel__qr img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.page-products .download-panel__qrtext {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--c-deep);
  line-height: 1.6;
}

/* ---------- 尾部导航 ---------- */
.page-products .tail-panel {
  position: relative;
  overflow: hidden;
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
  background: var(--c-indigo);
  color: var(--c-white);
  border-radius: 0 var(--radius-l) var(--radius-l) 0;
}

.page-products .tail-panel::before {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 220px;
  height: 160px;
  background: repeating-linear-gradient(-55deg, transparent 0 8px, rgba(57, 255, 20, 0.28) 8px 9px, transparent 9px 26px);
  opacity: 0.4;
  pointer-events: none;
}

.page-products .tail-panel__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.page-products .tail-panel__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.page-products .tail-panel__text {
  color: rgba(255, 255, 255, 0.8);
  max-width: 42em;
  line-height: 1.7;
}

.page-products .tail-panel .btn {
  align-self: flex-start;
}

/* ---------- 平板及以上 ---------- */
@media (min-width: 760px) {
  .page-products .prod-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 2rem;
  }

  .page-products .phone-mock {
    margin-inline-end: 0;
  }

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

  .page-products .acc__grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-products .acc__img {
    grid-column: 1 / -1;
  }

  .page-products .download-panel__inner {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 4rem;
  }

  .page-products .tail-panel__inner {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .page-products .tail-panel .btn {
    margin-left: auto;
    align-self: center;
    flex: 0 0 auto;
  }
}

/* ---------- 桌面端 ---------- */
@media (min-width: 1080px) {
  .page-products .prod-hero {
    padding-top: calc(var(--header-h) + 2.5rem);
  }

  .page-products .prod-hero__grid {
    gap: 3rem;
  }

  .page-products .prod-hero__copy {
    padding-right: 1rem;
  }

  .page-products .acc {
    margin-bottom: 1.25rem;
  }

  .page-products .download-panel__inner {
    gap: 5rem;
  }
}
