.page-products {
  --phone-max: 350px;
}

/* ========== 首屏 Hero ========== */
.page-products .products-hero {
  position: relative;
  padding: 2rem 0 4.5rem;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy) 48%, var(--color-dark) 100%);
  color: var(--color-paper);
  overflow: hidden;
}

.page-products .products-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -6rem;
  width: 17rem;
  height: 100%;
  background: linear-gradient(160deg, rgba(123, 97, 255, 0.75), rgba(45, 108, 223, 0.55));
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.28;
  pointer-events: none;
}

.page-products .products-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.35rem;
  background: linear-gradient(90deg, var(--color-neon), var(--color-blue));
  z-index: 2;
}

.page-products .products-hero .breadcrumb {
  position: relative;
  z-index: 1;
  margin: 0 0 2.5rem;
}

.page-products .products-hero .breadcrumb a,
.page-products .products-hero .breadcrumb__current {
  color: rgba(245, 240, 230, 0.8);
}

.page-products .products-hero .breadcrumb__sep {
  color: rgba(245, 240, 230, 0.45);
}

.page-products .products-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.page-products .products-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-neon);
  border: 1px solid rgba(57, 255, 20, 0.4);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.page-products .products-hero__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-neon);
  box-shadow: 0 0 0.65rem rgba(57, 255, 20, 0.55);
}

.page-products .products-hero h1 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-size: 2.7rem;
  margin: 0 0 1.2rem;
}

.page-products .products-hero__lead {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(245, 240, 230, 0.75);
  max-width: 38em;
  margin: 0 0 1.8rem;
}

.page-products .products-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-products .products-hero__actions .btn--ghost {
  color: var(--color-paper);
  border-color: rgba(245, 240, 230, 0.55);
}

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

.page-products .phone-frame {
  position: relative;
  width: min(80%, var(--phone-max));
  padding: 0.8rem;
  border-radius: 2.4rem;
  background: linear-gradient(145deg, var(--color-dark), var(--color-navy));
  box-shadow:
    0 1.5rem 3.5rem rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-2deg);
}

.page-products .phone-frame::before {
  content: "";
  display: block;
  width: 38%;
  height: 0.8rem;
  margin: 0 auto 0.7rem;
  background: rgba(245, 240, 230, 0.16);
  border-radius: 999px;
}

.page-products .phone-frame__screen {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  background: var(--color-navy);
}

.page-products .phone-frame__screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 0.72;
  object-fit: cover;
}

.page-products .phone-frame__detail {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0.4rem 0;
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: rgba(255, 209, 102, 0.75);
}

/* ========== 核心功能 ========== */
.page-products .features-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-products .features-scroll::-webkit-scrollbar {
  height: 0.4rem;
}

.page-products .features-scroll::-webkit-scrollbar-thumb {
  background: var(--color-orange);
  border-radius: 999px;
}

.page-products .feature-card {
  flex: 0 0 84%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.4rem;
  border-radius: 1rem 1rem 1rem 0.35rem;
  background: var(--color-paper);
  border-top: 5px solid var(--color-neon);
  box-shadow: 0 0.4rem 1rem rgba(26, 26, 26, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-products .feature-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 1rem 2rem rgba(26, 26, 26, 0.14);
}

.page-products .feature-card--data {
  border-top-color: var(--color-blue);
}

.page-products .feature-card--venue {
  border-top-color: var(--color-purple);
}

.page-products .feature-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.page-products .feature-card__num {
  font-family: var(--font-data);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(26, 26, 26, 0.12);
}

.page-products .feature-card__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 0;
}

.page-products .feature-card__desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-muted);
  margin: 0;
}

.page-products .feature-card .data-tape {
  margin-top: auto;
}

.page-products .feature-card .media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== 下载方式 ========== */
.page-products .products-download {
  background: linear-gradient(150deg, var(--color-dark) 0%, var(--color-navy) 100%);
  color: var(--color-paper);
}

.page-products .products-download .section-heading__title {
  color: var(--color-paper);
}

.page-products .products-download .section-heading__desc {
  color: rgba(245, 240, 230, 0.7);
}

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

.page-products .download-illustration {
  display: flex;
  justify-content: center;
}

.page-products .download-illustration img {
  width: 9.5rem;
  height: 9.5rem;
  padding: 1rem;
  object-fit: contain;
  border-radius: 1.75rem;
  background: var(--color-paper);
  box-shadow:
    0 0 0 0.5rem rgba(123, 97, 255, 0.14),
    0 0 0 1rem rgba(123, 97, 255, 0.07),
    0 1rem 2.5rem rgba(0, 0, 0, 0.3);
}

.page-products .download-options {
  display: grid;
  gap: 1rem;
}

.page-products .download-option {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(245, 240, 230, 0.12);
  border-left: 5px solid var(--color-blue);
  border-radius: 0.9rem;
  background: rgba(245, 240, 230, 0.05);
  transition: transform 0.2s ease, background 0.2s ease;
}

.page-products .download-option--android {
  border-left-color: var(--color-neon);
}

.page-products .download-option:hover {
  transform: translateX(0.35rem);
  background: rgba(245, 240, 230, 0.1);
}

.page-products .download-option__label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
}

.page-products .download-option__label::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-blue);
}

.page-products .download-option--android .download-option__label::before {
  background: var(--color-neon);
}

.page-products .download-option p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.7);
  margin: 0;
}

.page-products .products-download__note {
  margin-top: 2.2rem;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(245, 240, 230, 0.72);
}

.page-products .products-download__note a {
  color: var(--color-amber);
}

/* ========== 版本更新 ========== */
.page-products .products-versions__grid {
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

.page-products .version-timeline {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.page-products .version-timeline__item {
  border-radius: 0.85rem;
  background: var(--color-panel);
  overflow: hidden;
}

.page-products .version-timeline__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.02rem;
}

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

.page-products .version-timeline__item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-orange);
}

.page-products .version-timeline__item[open] summary {
  background: var(--color-ink);
  color: var(--color-paper);
}

.page-products .version-timeline__item[open] summary::after {
  content: "–";
  color: var(--color-neon);
}

.page-products .version-timeline__tag {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(57, 255, 20, 0.5);
  border-radius: 999px;
  color: var(--color-neon);
}

.page-products .version-timeline__item ul {
  margin: 0;
  padding: 0.9rem 1.2rem 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.page-products .version-timeline__item li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.page-products .products-versions__frame {
  aspect-ratio: 3 / 2;
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-panel), var(--color-paper));
  box-shadow: 0 1rem 2.5rem rgba(26, 26, 26, 0.12);
}

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

/* ========== 使用环境 ========== */
.page-products .env-card {
  padding: 1.4rem 1.5rem;
  background: var(--color-paper);
  border-radius: 0.9rem;
  border-left: 5px solid var(--color-blue);
  box-shadow: 0 0.5rem 1.25rem rgba(26, 26, 26, 0.06);
}

.page-products .env-card--android {
  border-left-color: var(--color-neon);
}

.page-products .env-card h3 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.page-products .env-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.page-products .env-card li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.page-products .env-card li::before {
  content: "//";
  position: absolute;
  left: 0;
  color: var(--color-orange);
  font-family: var(--font-data);
  font-size: 0.75rem;
}

.page-products .products-env .stat-grid {
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.page-products .products-env__note {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* ========== 响应式 ========== */
@media (min-width: 640px) {
  .page-products .feature-card {
    flex-basis: 46%;
  }

  .page-products .download-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2.5rem;
  }
}

@media (min-width: 960px) {
  .page-products .products-hero {
    padding: 3.5rem 0 6rem;
  }

  .page-products .products-hero h1 {
    font-size: 4.2rem;
    letter-spacing: -0.03em;
  }

  .page-products .products-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

  .page-products .features-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    scroll-snap-type: none;
    padding: 0.5rem 0 1rem;
  }

  .page-products .feature-card {
    flex: none;
  }

  .page-products .products-versions__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}
