.page-products {
  --pp-phone-w: min(300px, 72vw);
  --pp-phone-ratio: 9 / 19;
  --pp-hero-grid: rgba(244, 239, 230, 0.05);
  --pp-timeline-accent: rgba(198, 255, 0, 0.7);
}

/* ========== 面包屑 ========== */
.page-products .breadcrumb {
  padding: 18px 0 0;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ========== 首屏：分屏布局 ========== */
.page-products .pp-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 0;
  background-color: var(--c-primary);
  background-image:
    linear-gradient(var(--pp-hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pp-hero-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--c-bg);
  padding: 56px var(--gutter) 80px;
  overflow: hidden;
}

.page-products .pp-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  background: var(--c-secondary);
  transform: skewX(-6deg);
  transform-origin: top right;
}

.page-products .pp-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -6%;
  width: 42%;
  height: 72px;
  background: var(--c-secondary);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  opacity: 0.9;
}

/* === 手机样机 === */
.page-products .pp-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  position: relative;
  z-index: 2;
  order: 2;
}

.page-products .pp-phone {
  width: var(--pp-phone-w);
  aspect-ratio: var(--pp-phone-ratio);
  background: var(--c-primary);
  border: 2px solid rgba(244, 239, 230, 0.18);
  border-radius: 34px;
  padding: 10px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(244, 239, 230, 0.05);
  position: relative;
}

.page-products .pp-phone__speaker {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(244, 239, 230, 0.2);
  border-radius: 2px;
  z-index: 5;
}

.page-products .pp-phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  position: relative;
  background: var(--c-dark-surface);
}

.page-products .pp-phone__screen::-webkit-scrollbar {
  display: none;
}

.page-products .pp-phone__slide {
  height: 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  margin: 0;
}

.page-products .pp-phone__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.page-products .pp-phone__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(11, 27, 43, 0.88));
  color: var(--c-bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-products .pp-phone__home {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: rgba(244, 239, 230, 0.2);
  border-radius: 2px;
}

.page-products .pp-hero__verstamp {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.page-products .pp-hero__ver-num {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--c-accent);
  color: var(--c-accent);
  font-weight: 700;
}

.page-products .pp-hero__ver-tag {
  color: rgba(244, 239, 230, 0.6);
}

/* === 首屏右侧文案 === */
.page-products .pp-hero__copy {
  position: relative;
  z-index: 2;
  order: 1;
}

.page-products .pp-hero__index {
  color: var(--c-accent);
}

.page-products .pp-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 16px 0 4px;
  color: var(--c-bg);
}

.page-products .pp-hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--c-secondary);
  margin: 0 0 24px;
}

.page-products .pp-hero__desc {
  max-width: 46ch;
  color: rgba(244, 239, 230, 0.78);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0 0 32px;
}

.page-products .pp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.page-products .pp-hero__cta {
  min-width: 132px;
  justify-content: center;
}

.page-products .pp-hero__cta--ghost {
  border-color: rgba(244, 239, 230, 0.35);
  color: var(--c-bg);
}

.page-products .pp-hero__cta--ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.page-products .pp-hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
  padding-top: 24px;
}

.page-products .pp-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-products .pp-hero__stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-accent);
}

.page-products .pp-hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(244, 239, 230, 0.55);
  text-transform: uppercase;
}

/* ========== 功能亮点 ========== */
.page-products .pp-features {
  background: var(--c-bg);
  padding: 88px var(--gutter) 96px;
  position: relative;
}

.page-products .pp-features .split {
  max-width: var(--content-max);
  margin: 0 auto;
}

.page-products .pp-features .split-aside {
  margin-bottom: 40px;
}

.page-products .pp-features .section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin: 10px 0 12px;
  color: var(--c-primary);
}

.page-products .pp-features .section-note {
  color: var(--c-muted);
  font-size: 0.85rem;
  max-width: 30ch;
}

.page-products .pp-features__list {
  display: flex;
  flex-direction: column;
}

.page-products .pp-feature {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-areas:
    "num content"
    "num more";
  gap: 4px 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
  position: relative;
  transition: background 0.4s var(--ease-out);
}

.page-products .pp-feature:first-child {
  border-top: 1px solid var(--c-line);
}

.page-products .pp-feature:hover {
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.06));
}

.page-products .pp-feature__num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--c-secondary);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.page-products .pp-feature__content {
  grid-area: content;
}

.page-products .pp-feature__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--c-primary);
  margin: 0 0 8px;
}

.page-products .pp-feature__desc {
  color: var(--c-muted);
  font-size: 0.88rem;
  line-height: 1.75;
  margin: 0;
  max-width: 58ch;
}

.page-products .pp-feature__more {
  grid-area: more;
  justify-self: start;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.page-products .pp-feature__more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--c-secondary);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.page-products .pp-feature:hover .pp-feature__more::after {
  transform: scaleX(1);
}

.page-products .pp-feature__more span {
  color: var(--c-secondary);
}

/* ========== 章节过渡 ========== */
.page-products .pp-break {
  position: relative;
  height: 72px;
  background: var(--c-dark-surface);
  overflow: hidden;
}

.page-products .pp-break::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: var(--c-bg);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.page-products .pp-break__line {
  position: absolute;
  top: 50%;
  left: 18%;
  width: 45%;
  height: 1px;
  background: var(--c-accent);
  transform: skewX(-12deg);
}

.page-products .pp-break__square {
  position: absolute;
  top: 50%;
  right: 24%;
  width: 9px;
  height: 9px;
  background: var(--c-secondary);
  transform: translateY(-50%) rotate(45deg);
}

/* ========== 版本更新日志 ========== */
.page-products .pp-changelog {
  background: var(--c-dark-surface);
  color: var(--c-bg);
  padding: 96px var(--gutter) 110px;
  position: relative;
  overflow: hidden;
}

.page-products .pp-changelog::before {
  content: "";
  position: absolute;
  top: 120px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: rgba(255, 107, 53, 0.08);
  clip-path: polygon(30% 0, 100% 20%, 85% 100%, 0 80%);
}

.page-products .pp-changelog__head {
  max-width: var(--content-max);
  margin: 0 auto 64px;
  position: relative;
  z-index: 1;
}

.page-products .pp-changelog__index {
  color: var(--c-accent);
}

.page-products .pp-changelog__title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin: 10px 0 12px;
  color: var(--c-bg);
}

.page-products .pp-changelog__note {
  color: rgba(244, 239, 230, 0.6);
  font-size: 0.86rem;
  max-width: 48ch;
}

.page-products .pp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.page-products .pp-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--c-accent) 0%, var(--c-secondary) 30%, rgba(244, 239, 230, 0.12) 75%);
}

.page-products .pp-timeline__item {
  position: relative;
  padding: 0 0 38px 46px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 0;
}

.page-products .pp-timeline__item:last-child {
  padding-bottom: 0;
}

.page-products .pp-timeline__dot {
  position: absolute;
  left: -6px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--c-dark-surface);
  border: 3px solid var(--c-accent);
  transform: rotate(45deg);
}

.page-products .pp-timeline__item--current .pp-timeline__dot {
  background: var(--c-accent);
  box-shadow: 0 0 0 6px rgba(198, 255, 0, 0.16);
}

.page-products .pp-timeline__ver {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-accent);
  text-transform: uppercase;
  line-height: 1.4;
}

.page-products .pp-timeline__item--current .pp-timeline__ver {
  color: var(--c-accent);
}

.page-products .pp-timeline__body {
  background: rgba(11, 27, 43, 0.4);
  border-left: 2px solid rgba(255, 107, 53, 0.5);
  padding: 14px 18px 16px 20px;
  border-radius: 0;
}

.page-products .pp-timeline__item--current .pp-timeline__body {
  border-left-color: var(--c-accent);
  background: rgba(11, 27, 43, 0.65);
}

.page-products .pp-timeline__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--c-bg);
  margin: 0 0 6px;
}

.page-products .pp-timeline__desc {
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(244, 239, 230, 0.6);
  margin: 0;
  max-width: 60ch;
}

/* ========== 下载入口 ========== */
.page-products .pp-download {
  background: var(--c-secondary);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.page-products .pp-download::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--c-accent);
}

.page-products .pp-download::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -6%;
  width: 48%;
  height: 120px;
  background: rgba(11, 27, 43, 0.1);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.page-products .pp-download__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 96px var(--gutter) 104px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.page-products .pp-download__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-products .pp-download__index {
  color: var(--c-primary);
}

.page-products .pp-download__index .slash {
  color: rgba(11, 27, 43, 0.4);
}

.page-products .pp-download__title {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  color: var(--c-primary);
  margin: 10px 0 12px;
}

.page-products .pp-download__desc {
  color: rgba(11, 27, 43, 0.82);
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0 0 28px;
  max-width: 48ch;
}

.page-products .pp-store {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.page-products .pp-store__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 14px;
  background: var(--c-primary);
  color: var(--c-bg);
  cursor: default;
  transition: background 0.35s var(--ease-out), transform 0.3s var(--ease-out);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.page-products .pp-store__badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(198, 255, 0, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.45s var(--ease-out);
}

.page-products .pp-store__badge:hover {
  transform: translateY(-2px);
  background: var(--c-primary);
}

.page-products .pp-store__badge:hover::after {
  left: 110%;
}

.page-products .pp-store__badge:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.page-products .pp-store__icon {
  flex-shrink: 0;
  color: var(--c-bg);
}

.page-products .pp-store__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.page-products .pp-store__label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-bg);
}

.page-products .pp-store__sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 230, 0.5);
}

.page-products .pp-download__hint {
  font-size: 0.82rem;
  color: rgba(11, 27, 43, 0.75);
  margin: 0;
}

.page-products .pp-download__hint a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--c-primary);
  transition: color 0.3s, text-decoration-color 0.3s;
}

.page-products .pp-download__hint a:hover {
  color: var(--c-success);
  text-decoration-color: var(--c-success);
}

.page-products .pp-download__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(244, 239, 230, 0.92);
  padding: 26px 26px 22px;
  box-shadow: 0 12px 32px rgba(11, 27, 43, 0.18);
  position: relative;
  justify-self: center;
  max-width: 300px;
  width: 100%;
}

.page-products .pp-download__qr::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--c-accent);
  border-right: 3px solid var(--c-accent);
}

.page-products .pp-download__qr-img {
  width: 100%;
  height: auto;
  max-width: 220px;
  display: block;
}

.page-products .pp-download__qr-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0;
  text-align: center;
}

/* ========== 响应式：移动端优先上浮适配 ========== */
@media (min-width: 768px) {
  .page-products .pp-hero__stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .page-products .pp-hero__stat-num {
    font-size: 1.9rem;
  }

  .page-products .pp-feature {
    grid-template-columns: 64px 1fr auto;
    grid-template-areas: "num content more";
    align-items: center;
    gap: 0 28px;
    padding: 34px 8px;
  }

  .page-products .pp-feature__desc {
    max-width: 64ch;
  }

  .page-products .pp-feature__more {
    margin-top: 0;
    white-space: nowrap;
  }

  .page-products .pp-timeline__item {
    grid-template-columns: 120px 1fr;
    gap: 0 32px;
    padding-left: 56px;
  }

  .page-products .pp-timeline__ver {
    padding-top: 14px;
  }

  .page-products .pp-download__inner {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-products .pp-hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 100px;
  }

  .page-products .pp-hero__visual {
    order: 1;
    align-self: center;
    padding-top: 8px;
  }

  .page-products .pp-hero__copy {
    order: 2;
    padding-left: 12px;
  }

  .page-products .pp-hero__title {
    font-size: clamp(3rem, 5.5vw, 5rem);
  }

  .page-products .pp-features .split {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    gap: 0 64px;
  }

  .page-products .pp-features .split-aside {
    position: sticky;
    top: calc(var(--bar-h) + 32px);
    align-self: start;
    margin-bottom: 0;
  }

  .page-products .pp-features__list {
    padding-top: 8px;
  }

  .page-products .pp-changelog__head {
    text-align: left;
  }

  .page-products .pp-timeline__item {
    padding-left: 64px;
  }

  .page-products .pp-download__inner {
    padding-top: 110px;
    padding-bottom: 116px;
  }
}

/* 动效减弱 */
@media (prefers-reduced-motion: reduce) {
  .page-products * {
    animation: none !important;
    transition: none !important;
  }
}
