.page-products {
  --support-blue: #00D4FF;
  --support-green: #39FF88;
  --support-red: #FF3B5C;
  --support-paper: #F5E6C8;
  background: var(--bg);
  color: var(--muted);
}

.page-products .p-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 22px;
  padding-bottom: 4px;
  font-size: 13px;
  color: var(--muted);
}

.page-products .p-breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.page-products .p-breadcrumb a:hover {
  color: var(--green);
}

.page-products .p-breadcrumb__current {
  color: var(--paper);
  font-weight: 600;
}

.page-products .p-section-head {
  margin-bottom: 32px;
}

.page-products .p-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.15;
  margin: 10px 0 8px;
  color: #fff;
}

.page-products .p-section-head .section-lead {
  max-width: 64ch;
  line-height: 1.7;
  margin: 0;
  color: var(--muted);
}

/* ========== Hero ========== */
.page-products .p-hero {
  position: relative;
  padding: 36px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 12% 24%, rgba(0, 212, 255, 0.16) 0%, transparent 34%),
    radial-gradient(ellipse at 88% 84%, rgba(57, 255, 136, 0.10) 0%, transparent 30%),
    linear-gradient(160deg, #121A2B 0%, #0A0E17 100%);
}

.page-products .p-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(0, 212, 255, 0.14) 0%, transparent 36%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 56%);
}

.page-products .p-hero__speedline {
  position: absolute;
  top: 18%;
  right: -80px;
  width: 420px;
  height: 360px;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 59, 92, 0.10) 40%, rgba(0, 212, 255, 0.16) 80%, transparent 100%);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  pointer-events: none;
}

.page-products .p-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
}

.page-products .p-hero__copy {
  max-width: 660px;
}

.page-products .p-hero .eyebrow {
  color: var(--green);
}

.page-products .p-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 3.1rem);
  line-height: 1.12;
  color: #fff;
  margin: 12px 0 20px;
  letter-spacing: -0.01em;
}

.page-products .p-hero__lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

.page-products .p-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-products .p-btn-download.btn--primary {
  background: var(--green);
  color: #08221a;
  border-color: transparent;
  animation: p-page-pulse-cta 2.6s var(--ease) infinite;
}

@keyframes p-page-pulse-cta {
  0%, 100% {
    box-shadow: 0 0 8px rgba(57, 255, 136, 0.4), 0 0 0 0 rgba(57, 255, 136, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(57, 255, 136, 0.6), 0 0 0 7px rgba(57, 255, 136, 0);
  }
}

.page-products .p-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.page-products .p-hero__meta li {
  position: relative;
  padding-left: 14px;
}

.page-products .p-hero__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.page-products .p-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 330px;
}

.page-products .p-hero__glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.26) 0%, transparent 68%);
  pointer-events: none;
}

.page-products .p-hero__beam {
  position: absolute;
  bottom: 4%;
  left: -30px;
  width: 140%;
  height: 64px;
  background: linear-gradient(95deg, transparent 0%, rgba(57, 255, 136, 0.12) 40%, rgba(0, 212, 255, 0.08) 80%, transparent 100%);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
  pointer-events: none;
}

.page-products .p-device {
  position: relative;
  z-index: 2;
  width: min(320px, 82vw);
  padding: 9px;
  background: var(--border);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 44px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 42px rgba(0, 212, 255, 0.10);
}

.page-products .p-device__screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-field);
}

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

.page-products .p-device__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 16px;
  border-radius: 99px;
  background: rgba(10, 14, 23, 0.92);
  z-index: 3;
}

.page-products .p-device__notch::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

/* ========== 安装路由 ========== */
.page-products .p-install {
  padding: 64px 0;
}

.page-products .p-install__layout {
  display: grid;
  gap: 36px;
}

.page-products .p-install__routes {
  display: grid;
  gap: 20px;
}

.page-products .p-route {
  position: relative;
  padding: 28px 24px 26px;
  background: var(--bg-field);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.page-products .p-route--android {
  border-left-color: var(--green);
}

.page-products .p-route h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 14px;
  color: #fff;
}

.page-products .p-steps {
  list-style: none;
  counter-reset: p-step;
  padding: 0;
  margin: 0 0 22px;
}

.page-products .p-steps li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  line-height: 1.55;
  counter-increment: p-step;
  font-size: 14px;
  color: var(--muted);
}

.page-products .p-steps li:last-child {
  margin-bottom: 0;
}

.page-products .p-steps li::before {
  content: counter(p-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.14);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-products .p-route--android .p-steps li::before {
  background: rgba(57, 255, 136, 0.14);
  color: var(--green);
}

.page-products .p-btn-route {
  color: var(--blue);
}

.page-products .p-install__apple {
  display: flex;
  flex-direction: column;
  background: var(--bg-field);
  border: 1px solid var(--border);
}

.page-products .p-install__apple img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.page-products .p-install__apple-note {
  padding: 18px 20px 22px;
}

.page-products .p-install__apple-note h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--paper);
}

.page-products .p-install__apple-note p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ========== V3 亮点 ========== */
.page-products .p-v3 {
  position: relative;
  padding: 72px 0;
  background: var(--bg-field);
  overflow: hidden;
}

.page-products .p-v3__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-products .p-v3__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
}

.page-products .p-v3::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 14, 23, 0.92) 0%, rgba(18, 26, 43, 0.78) 100%);
  pointer-events: none;
}

.page-products .p-v3 .container {
  position: relative;
  z-index: 1;
}

.page-products .p-section-head--overlay h2,
.page-products .p-section-head--overlay .section-lead {
  color: #fff;
}

.page-products .p-section-head--overlay .section-lead {
  color: var(--muted);
}

.page-products .p-v3__grid {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.page-products .p-v3item {
  position: relative;
  padding: 32px 26px 30px;
  background: rgba(10, 14, 23, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.page-products .p-v3item:hover {
  transform: translateY(-4px);
  background: rgba(10, 14, 23, 0.78);
}

.page-products .p-v3item--fast {
  border-top: 3px solid var(--blue);
}

.page-products .p-v3item--clear {
  border-top: 3px solid var(--green);
}

.page-products .p-v3item--short {
  border-top: 3px solid var(--red);
}

.page-products .p-v3item__num {
  display: block;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  margin-bottom: 18px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 212, 255, 0.55);
}

.page-products .p-v3item--clear .p-v3item__num {
  -webkit-text-stroke: 1px rgba(57, 255, 136, 0.55);
}

.page-products .p-v3item--short .p-v3item__num {
  -webkit-text-stroke: 1px rgba(255, 59, 92, 0.55);
}

.page-products .p-v3item h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 10px;
  color: #fff;
}

.page-products .p-v3item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ========== 功能矩阵 ========== */
.page-products .p-matrix {
  padding: 72px 0;
}

.page-products .p-matrix__grid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.page-products .p-feature {
  position: relative;
  padding: 28px 22px 26px;
  background: var(--bg-field);
  border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.page-products .p-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.page-products .p-feature--live {
  border-left: 3px solid var(--red);
}

.page-products .p-feature--live:hover {
  border-color: rgba(255, 59, 92, 0.5);
}

.page-products .p-feature--push {
  border-top: 3px solid var(--green);
}

.page-products .p-feature--push:hover {
  border-color: rgba(57, 255, 136, 0.5);
}

.page-products .p-feature--data {
  border-right: 3px solid var(--blue);
}

.page-products .p-feature--data:hover {
  border-color: rgba(0, 212, 255, 0.5);
}

.page-products .p-feature--tactics {
  border-bottom: 3px solid var(--paper);
}

.page-products .p-feature--tactics:hover {
  border-color: rgba(245, 230, 200, 0.5);
}

.page-products .p-feature--team {
  border-top: 3px solid var(--blue);
}

.page-products .p-feature--team:hover {
  border-color: rgba(0, 212, 255, 0.5);
}

.page-products .p-feature--local {
  border-left: 3px solid var(--green);
}

.page-products .p-feature--local:hover {
  border-color: rgba(57, 255, 136, 0.5);
}

.page-products .p-feature svg {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
}

.page-products .p-feature--live svg {
  color: var(--red);
}

.page-products .p-feature--push svg {
  color: var(--green);
}

.page-products .p-feature--tactics svg {
  color: var(--paper);
}

.page-products .p-feature h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 8px;
  color: #fff;
}

.page-products .p-feature p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ========== 版本日志 ========== */
.page-products .p-log {
  padding: 72px 0;
  background: var(--bg-field);
}

.page-products .p-log__layout {
  display: grid;
  gap: 40px;
  margin-top: 36px;
}

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

.page-products .p-log__timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--green) 60%, var(--red) 100%);
}

.page-products .p-log-item {
  position: relative;
  padding: 0 0 44px 24px;
}

.page-products .p-log-item:last-child {
  padding-bottom: 0;
}

.page-products .p-log-item__dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--blue);
}

.page-products .p-log-item--current .p-log-item__dot {
  border-color: var(--green);
  box-shadow: 0 0 0 5px rgba(57, 255, 136, 0.15);
}

.page-products .p-log-item__body h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 8px;
  color: #fff;
}

.page-products .p-log-item__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.page-products .p-log-item__body ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.page-products .p-log-item__body li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.page-products .p-log-detail {
  margin-top: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.page-products .p-log-detail summary {
  cursor: pointer;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  list-style: none;
}

.page-products .p-log-detail summary::-webkit-details-marker {
  display: none;
}

.page-products .p-log-detail summary::before {
  content: "＋ ";
  font-weight: 800;
}

.page-products .p-log-detail[open] summary::before {
  content: "－ ";
}

.page-products .p-log-detail__body {
  padding: 0 14px 14px;
}

.page-products .p-log__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ========== 信任 ========== */
.page-products .p-trust {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.page-products .p-trust__inner {
  max-width: 860px;
  padding: 34px 30px;
  background: linear-gradient(115deg, rgba(0, 212, 255, 0.10) 0%, transparent 58%);
  border-left: 3px solid var(--blue);
}

.page-products .p-trust__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  margin: 10px 0 12px;
  color: #fff;
}

.page-products .p-trust__inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 72ch;
}

.page-products .p-trust__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 20px;
}

.page-products .p-trust__links a {
  color: var(--blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.page-products .p-trust__links a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* ========== FAQ ========== */
.page-products .p-faq {
  padding: 72px 0;
}

.page-products .p-faq__list {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.page-products .p-faq-item {
  border: 1px solid var(--border);
  background: var(--bg-field);
}

.page-products .p-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-products .p-faq-item summary::-webkit-details-marker {
  display: none;
}

.page-products .p-faq-item summary::after {
  content: "+";
  font-size: 24px;
  line-height: 1;
  color: var(--green);
  flex-shrink: 0;
}

.page-products .p-faq-item[open] summary::after {
  content: "−";
}

.page-products .p-faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .p-faq__more {
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
}

.page-products .p-faq__more a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.page-products .p-faq__more a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* ========== 社区 ========== */
.page-products .p-community {
  padding: 72px 0 88px;
}

.page-products .p-community__inner {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-products .p-community__copy .eyebrow {
  color: var(--red);
}

.page-products .p-community__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  margin: 10px 0 14px;
  color: #fff;
}

.page-products .p-community__copy p {
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 54ch;
  color: var(--muted);
}

.page-products .p-community__visual {
  position: relative;
  overflow: hidden;
}

.page-products .p-community__visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 23, 0.6) 100%);
  pointer-events: none;
}

.page-products .p-community__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ========== 窄屏适配 ========== */
@media (min-width: 640px) {
  .page-products .p-install__routes {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-products .p-v3item:first-child {
    grid-column: 1 / -1;
  }
}

/* ========== 桌面布局 ========== */
@media (min-width: 960px) {
  .page-products .p-hero {
    padding: 52px 0 88px;
  }

  .page-products .p-hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
  }

  .page-products .p-hero__visual {
    justify-content: flex-end;
  }

  .page-products .p-device {
    width: min(360px, 90%);
    transform: rotate(2.5deg) translateY(-8px);
    transition: transform 0.3s var(--ease);
  }

  .page-products .p-device:hover {
    transform: rotate(0deg) translateY(-12px);
  }

  .page-products .p-install {
    padding: 84px 0;
  }

  .page-products .p-install__layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: stretch;
  }

  .page-products .p-v3 {
    padding: 96px 0;
  }

  .page-products .p-v3__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .page-products .p-v3item:first-child {
    grid-column: auto;
  }

  .page-products .p-matrix {
    padding: 96px 0;
  }

  .page-products .p-matrix__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-rows: minmax(140px, auto);
  }

  .page-products .p-feature--broad {
    grid-column: span 4;
  }

  .page-products .p-feature--push {
    grid-column: span 2;
  }

  .page-products .p-feature--data {
    grid-column: span 2;
  }

  .page-products .p-feature--tactics {
    grid-column: span 2;
  }

  .page-products .p-feature--team {
    grid-column: span 2;
  }

  .page-products .p-feature--local {
    grid-column: span 4;
  }

  .page-products .p-log {
    padding: 96px 0;
  }

  .page-products .p-log__layout {
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: center;
  }

  .page-products .p-log__visual img {
    max-height: 560px;
  }

  .page-products .p-trust {
    padding: 84px 0;
  }

  .page-products .p-faq {
    padding: 96px 0;
  }

  .page-products .p-community {
    padding: 96px 0 112px;
  }

  .page-products .p-community__inner {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}
