/* ===== APP下载 页面专属样式 ===== */
.page-products {
  --phone-radius: 32px;
  --phone-w: 236px;
  --section-gap: clamp(72px, 12vw, 130px);
  background-color: var(--color-primary);
  color: var(--color-text);
  overflow-x: hidden;
}

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

/* 面包屑 */
.page-products .breadcrumb {
  padding-top: 28px;
  padding-bottom: 6px;
}

.page-products .breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}

.page-products .breadcrumb li + li::before {
  content: "//";
  margin: 0 10px;
  color: var(--color-accent-alt);
}

.page-products .breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

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

.page-products .breadcrumb [aria-current="page"] {
  color: var(--color-text);
}

/* ===== Hero 区 ===== */
.page-products .hero-zone {
  position: relative;
  padding: 36px 0 var(--section-gap);
  overflow: hidden;
}

.page-products .hero-zone::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 179, 0.18), transparent 70%);
  pointer-events: none;
}

.page-products .hero-zone::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 77, 255, 0.14), transparent 70%);
  pointer-events: none;
}

.page-products .hero-zone__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.page-products .hero-zone__copy {
  max-width: 580px;
  text-align: center;
}

.page-products .hero-zone__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 255, 179, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(0, 255, 179, 0.08);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-products .hero-zone__title {
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(2rem, 9vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transform: skewX(-4deg);
}

.page-products .hero-zone__title::after {
  content: "";
  display: block;
  width: 54px;
  height: 6px;
  margin: 16px auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-alt));
  transform: skewX(-8deg);
}

.page-products .hero-zone__subtitle {
  margin: 0 0 16px;
  font-family: var(--font-headline);
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.page-products .hero-zone__lead {
  margin: 0 auto 30px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  max-width: 540px;
}

.page-products .hero-zone__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.page-products .hero-zone__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .hero-zone__stat {
  text-align: center;
}

.page-products .hero-zone__stat dt {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.page-products .hero-zone__stat dd {
  margin: 6px 0 0;
  font-family: var(--font-headline);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--color-text);
}

/* Hero 可视化与数据流 */
.page-products .hero-zone__visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.page-products .hero-zone__dataflow {
  position: absolute;
  right: 6%;
  top: -40px;
  width: 120px;
  height: 560px;
  pointer-events: none;
  opacity: 0.8;
}

/* CSS 手机模型 */
.page-products .hero-phone {
  width: var(--phone-w);
  padding: 9px;
  background: #0B1E3F;
  border-radius: calc(var(--phone-radius) + 10px);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 255, 179, 0.2),
    inset 0 0 0 1px rgba(230, 240, 255, 0.06);
}

.page-products .hero-phone__frame {
  background: linear-gradient(170deg, #061536 0%, #0A1E3D 40%, #12254B 100%);
  border-radius: var(--phone-radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.page-products .hero-phone__frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 16px;
  background: #0B1E3F;
  border-radius: 0 0 12px 12px;
  z-index: 5;
}

.page-products .hero-phone__status {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.08em;
}

.page-products .hero-phone__app-title {
  margin: 12px 4px 0;
  font-family: var(--font-headline);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.page-products .hero-phone__sub {
  margin: 4px 4px 14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--color-accent);
}

.page-products .hero-phone__match {
  background: linear-gradient(135deg, rgba(0, 255, 179, 0.1), rgba(180, 77, 255, 0.08));
  border: 1px solid rgba(0, 255, 179, 0.25);
  border-radius: 14px;
  padding: 14px;
}

.page-products .hero-phone__league {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--color-accent-alt);
}

.page-products .hero-phone__teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-headline);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.page-products .hero-phone__score {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-accent);
}

.page-products .hero-phone__spark {
  margin-top: 8px;
  width: 100%;
  height: 40px;
}

.page-products .hero-phone__list {
  margin-top: 10px;
}

.page-products .hero-phone__mini {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(230, 240, 255, 0.12);
  padding: 7px 2px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--color-text-secondary);
}

.page-products .hero-phone__tabbar {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.page-products .hero-phone__tab {
  flex: 1;
  text-align: center;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
  padding: 7px 0;
  border-radius: 999px;
  border: 1px solid transparent;
}

.page-products .hero-phone__tab.is-active {
  color: var(--color-accent);
  border-color: rgba(0, 255, 179, 0.5);
  background: rgba(0, 255, 179, 0.08);
}

/* ===== 功能亮点 ===== */
.page-products .features-zone {
  position: relative;
  padding: 0 0 var(--section-gap);
}

.page-products .features-zone::before {
  content: "";
  position: absolute;
  top: 60px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(180, 77, 255, 0.14), transparent 60%);
  transform: rotate(18deg);
  pointer-events: none;
}

.page-products .section-head {
  max-width: 700px;
  margin-bottom: 48px;
}

.page-products .section-head__index {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.page-products .section-head h2 {
  margin: 0 0 14px;
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-products .section-head__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.page-products .features-list {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.page-products .feature-item {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.page-products .feature-item__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.page-products .feature-item__num {
  position: absolute;
  top: 0;
  right: 6%;
  font-family: var(--font-headline);
  font-size: 4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 255, 179, 0.35);
  transform: skewX(-8deg);
  pointer-events: none;
}

.page-products .feature-item__body {
  max-width: 520px;
}

.page-products .feature-item__tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(180, 77, 255, 0.16);
  border: 1px solid rgba(180, 77, 255, 0.4);
  color: #D8B4FF;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.page-products .feature-item h3 {
  margin: 0 0 12px;
  font-family: var(--font-headline);
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  line-height: 1.2;
}

.page-products .feature-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.page-products .feature-item__link {
  display: inline-block;
  margin-top: 16px;
  color: var(--color-accent);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 255, 179, 0.5);
  padding-bottom: 2px;
}

.page-products .feature-item__link:hover {
  border-bottom-color: var(--color-accent);
}

/* 功能手机模型 */
.page-products .feature-phone {
  width: min(var(--phone-w), 70vw);
  padding: 8px;
  background: #0B1E3F;
  border-radius: calc(var(--phone-radius) + 8px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(180, 77, 255, 0.18);
  position: relative;
}

.page-products .feature-phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 12px;
  background: #0B1E3F;
  border-radius: 999px;
  z-index: 2;
}

.page-products .feature-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--phone-radius) - 2px);
}

/* ===== 下载方式 ===== */
.page-products .download-zone {
  position: relative;
  padding: var(--section-gap) 0;
}

.page-products .download-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 255, 179, 0.07) 0%, rgba(10, 30, 61, 0) 45%, rgba(180, 77, 255, 0.06) 100%);
  clip-path: polygon(0 14%, 100% 0, 100% 86%, 0 100%);
  pointer-events: none;
}

.page-products .download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  background: var(--color-primary-alt);
  border: 1px solid rgba(0, 255, 179, 0.2);
  border-radius: 28px;
  padding: 40px 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-products .download-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 179, 0.12), transparent 70%);
  pointer-events: none;
}

.page-products .download-card__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.page-products .download-card__qr img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(230, 240, 255, 0.16);
  background: var(--color-cream);
  transition: transform 0.3s;
}

.page-products .download-card__qr:hover img {
  transform: scale(1.04);
}

.page-products .download-card__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.page-products .download-card__link {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-accent);
  opacity: 0.3;
  transition: opacity 0.3s;
}

.page-products .download-card__link a {
  color: var(--color-accent);
  text-decoration: none;
}

.page-products .download-card__qr:hover .download-card__link,
.page-products .download-card__qr:focus-within .download-card__link {
  opacity: 1;
}

.page-products .download-card__info h2 {
  margin: 0 0 12px;
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.15;
  text-transform: uppercase;
}

.page-products .download-card__lead {
  margin: 0 0 24px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.page-products .platform-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-products .platform-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(230, 240, 255, 0.1);
  border-radius: 16px;
  background: rgba(10, 30, 61, 0.6);
  padding: 14px 16px;
}

.page-products .platform-list__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.page-products .platform-list__badge--ios {
  color: var(--color-text);
  background: rgba(230, 240, 255, 0.12);
  border: 1px solid rgba(230, 240, 255, 0.22);
}

.page-products .platform-list__badge--android {
  color: #B44DFF;
  background: rgba(180, 77, 255, 0.14);
  border: 1px solid rgba(180, 77, 255, 0.4);
}

.page-products .platform-list__meta strong {
  display: block;
  font-size: 0.92rem;
}

.page-products .platform-list__meta p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

.page-products .download-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== 版本记录 ===== */
.page-products .version-zone {
  padding: var(--section-gap) 0 80px;
}

.page-products .version-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 44px;
}

.page-products .version-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
}

.page-products .version-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-alt));
  border-radius: 2px;
}

.page-products .version-item__mark {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-accent);
  background: rgba(0, 255, 179, 0.12);
  border: 1px solid rgba(0, 255, 179, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
}

.page-products .version-item__card {
  border: 1px solid rgba(230, 240, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
  background: var(--color-primary-alt);
}

.page-products .version-item__card h3 {
  margin: 0 0 8px;
  font-family: var(--font-headline);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.page-products .version-item__card p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.page-products .version-map {
  border: 1px solid rgba(180, 77, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

/* ===== 桌面端增强 ===== */
@media (min-width: 900px) {
  .page-products .hero-zone__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
  }

  .page-products .hero-zone__copy {
    text-align: left;
    max-width: none;
  }

  .page-products .hero-zone__title::after {
    margin-left: 0;
  }

  .page-products .hero-zone__lead {
    margin-left: 0;
  }

  .page-products .hero-zone__actions {
    justify-content: flex-start;
  }

  .page-products .hero-zone__stats {
    justify-content: flex-start;
  }

  .page-products .hero-zone__visual {
    justify-content: flex-end;
    padding-right: 40px;
  }

  .page-products .hero-phone {
    width: 280px;
  }

  .page-products .feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
  }

  .page-products .feature-item--reverse .feature-item__visual {
    order: 2;
  }

  .page-products .feature-item__visual {
    justify-content: center;
  }

  .page-products .download-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    padding: 48px;
    align-items: center;
  }

  .page-products .download-card__qr {
    border-right: 1px solid rgba(230, 240, 255, 0.12);
    padding-right: 36px;
  }

  .page-products .download-card__qr img {
    width: 200px;
    height: 200px;
  }

  .page-products .version-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-products .version-item {
    padding-left: 0;
    padding-top: 20px;
  }

  .page-products .version-item::before {
    left: 8px;
    top: 0;
    bottom: auto;
    width: 120%;
    height: 2px;
    transform-origin: left;
  }
}

/* ===== 窄屏收紧 ===== */
@media (max-width: 380px) {
  .page-products {
    --phone-w: 200px;
  }

  .page-products .hero-zone__dataflow {
    opacity: 0.5;
  }

  .page-products .download-card {
    padding: 32px 18px;
  }
}
