/* ===== APP下载页专属样式 ===== */
.page-products {
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
}

.page-products a:focus-visible,
.page-products button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.page-products .breadcrumb {
  padding-top: 20px;
}

/* ---------- 下载英雄区 ---------- */
.page-products .download-hero {
  padding: 40px 0 56px;
  overflow: hidden;
  position: relative;
}

.page-products .download-hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-products .download-hero .section-label {
  margin-bottom: 18px;
  color: var(--red);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.page-products .download-hero h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  line-height: 1.16;
  margin: 0 0 16px;
  max-width: 15em;
}

.page-products .download-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 34em;
  opacity: .82;
}

.page-products .version-panel {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 10px 14px;
  border-left: 4px solid var(--red);
  background: var(--glass-strong);
  border-radius: 0 12px 12px 0;
}

.page-products .version-panel__code {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
}

.page-products .version-panel__meta {
  font-weight: 700;
  font-size: 1rem;
}

.page-products .version-panel__note {
  width: 100%;
  color: var(--mid-gray);
  font-size: .875rem;
}

.page-products .hero-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.page-products .hero-taglist .tag {
  display: inline-block;
  background: var(--glass-strong);
  border: 1px solid rgba(43, 38, 32, .12);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.page-products .download-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}

.page-products .btn--hero-download {
  font-size: 1.0625rem;
  padding: 14px 24px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(228, 87, 46, .30);
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}

.page-products .btn--hero-download:hover,
.page-products .btn--hero-download:focus-visible {
  background: var(--amber);
  box-shadow: 0 10px 24px rgba(242, 169, 0, .35);
  transform: translateY(-2px);
  outline: none;
}

.page-products .btn--hero-download:active {
  transform: translateY(1px) scale(.98);
  box-shadow: none;
}

.page-products .qr-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  width: fit-content;
  padding: 8px 10px 8px 8px;
  background: #fff;
  border: 1px solid rgba(43, 38, 32, .12);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.page-products .qr-chip img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
}

.page-products .qr-chip figcaption {
  font-size: .8125rem;
  color: var(--mid-gray);
  font-weight: 600;
}

.page-products .download-note {
  font-size: .8125rem;
  color: var(--mid-gray);
  line-height: 1.6;
  max-width: 36em;
}

.page-products .page-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(43, 38, 32, .1);
}

.page-products .page-anchors__link {
  font-size: .8125rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--glass-strong);
  border: 1px solid rgba(43, 38, 32, .1);
  color: var(--ink);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

.page-products .page-anchors__link:hover,
.page-products .page-anchors__link:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---------- 手机模型 ---------- */
.page-products .download-hero__visual {
  position: relative;
}

.page-products .download-hero__visual::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 169, 0, .18) 0%, rgba(242, 169, 0, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.page-products .phone-stage {
  position: relative;
  width: min(290px, 84vw);
  margin-inline: auto;
  perspective: 1200px;
  padding: 30px 0 40px;
}

.page-products .phone-model {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 2;
  background: var(--ink);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 60px -15px rgba(43, 38, 32, .45), 0 0 0 1px rgba(43, 38, 32, .25);
  transform-style: preserve-3d;
  animation: phone-tilt 7s ease-in-out infinite;
  z-index: 2;
  transition: animation-play-state .3s;
}

.page-products .phone-model:hover {
  animation-play-state: paused;
}

.page-products .phone-model__notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  border-radius: 999px;
  background: var(--ink);
  z-index: 2;
}

.page-products .phone-model__screen {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

@keyframes phone-tilt {
  0%,
  100% {
    transform: rotateY(-9deg) rotateX(4deg) rotateZ(2deg) translateY(0);
  }
  50% {
    transform: rotateY(-5deg) rotateX(7deg) rotateZ(0deg) translateY(-10px);
  }
}

.page-products .callout {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 3;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.page-products .callout__label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
}

.page-products .callout__num {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

.page-products .callout__meta {
  font-size: .6875rem;
  color: var(--mid-gray);
}

.page-products .callout--top {
  top: 4%;
  right: -6px;
}

.page-products .callout--right {
  top: 40%;
  right: -2px;
}

.page-products .callout--bottom {
  bottom: 6%;
  left: -6px;
}

/* ---------- 下载理由 / 支柱区 ---------- */
.page-products .section-pillars {
  background: var(--light-gray);
  padding: 56px 0;
}

.page-products .section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.page-products .section-head .section-label,
.page-products .section-head--light .section-label {
  margin-bottom: 10px;
  color: var(--red);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.page-products .section-head h2,
.page-products .section-head--light h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  line-height: 1.2;
  margin: 0 0 10px;
}

.page-products .section-head .section-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mid-gray);
  margin: 0;
}

.page-products .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.page-products .filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(43, 38, 32, .18);
  background: transparent;
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.page-products .filter-pill:hover,
.page-products .filter-pill:focus-visible,
.page-products .filter-pill.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.page-products .pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-products .pillar-card {
  position: relative;
  padding: 20px;
  background: var(--cream);
  border-radius: 12px;
  border: 1px solid rgba(43, 38, 32, .08);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  filter: drop-shadow(0 6px 12px rgba(43, 38, 32, .08));
  transition: transform .3s var(--ease), filter .3s var(--ease);
}

.page-products .pillar-card:hover,
.page-products .pillar-card:focus-within {
  transform: translateY(-5px) rotate(.5deg);
  filter: drop-shadow(0 16px 26px rgba(43, 38, 32, .16));
}

.page-products .pillar-card--ink {
  background: var(--deep-blue);
  color: var(--cream);
  border-color: transparent;
}

.page-products .pillar-card--ink p {
  color: rgba(245, 239, 230, .72);
}

.page-products .pillar-card .tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(43, 38, 32, .08);
  color: var(--ink);
}

.page-products .pillar-card--ink .tag {
  background: rgba(245, 239, 230, .14);
  color: var(--cream);
}

.page-products .pillar-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  margin: 14px 0 8px;
  line-height: 1.25;
}

.page-products .pillar-card p {
  margin: 0;
  line-height: 1.6;
  font-size: .9375rem;
  color: var(--mid-gray);
}

.page-products .pillar-card__index {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(43, 38, 32, .12);
}

.page-products .pillar-card--ink .pillar-card__index {
  color: rgba(245, 239, 230, .18);
}

/* ---------- V4核心功能 / 深色图解区 ---------- */
.page-products .section-guide {
  background: var(--deep-blue);
  color: var(--cream);
  padding: 56px 0;
}

.page-products .section-guide .section-label {
  color: var(--amber);
}

.page-products .section-guide .section-head--light .section-desc {
  color: rgba(245, 239, 230, .72);
}

.page-products .guide-grid {
  display: grid;
  gap: 30px;
  align-items: center;
}

.page-products .guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.page-products .guide-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.page-products .guide-step__num {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: var(--amber);
  border: 1px solid rgba(242, 169, 0, .45);
  border-radius: 8px;
  padding: 2px 6px;
  min-width: 42px;
  text-align: center;
  flex-shrink: 0;
}

.page-products .guide-step h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  margin: 0 0 6px;
}

.page-products .guide-step__body p {
  color: rgba(245, 239, 230, .72);
  line-height: 1.6;
  margin: 0;
}

.page-products .guide-grid__visual {
  position: relative;
}

.page-products .guide-figure {
  margin: 0;
  padding: 0;
}

.page-products .guide-figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(245, 239, 230, .18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  display: block;
}

.page-products .guide-figure figcaption {
  text-align: center;
  color: rgba(245, 239, 230, .55);
  font-size: .8125rem;
  margin-top: 10px;
}

.page-products .guide-footnote {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(245, 239, 230, .16);
  color: rgba(245, 239, 230, .55);
  font-size: .875rem;
  line-height: 1.6;
}

/* ---------- 隐患排查区 ---------- */
.page-products .section-troubleshoot {
  padding: 56px 0;
  background: var(--cream);
}

.page-products .troubleshoot-grid {
  display: grid;
  gap: 30px;
  align-items: center;
}

.page-products .troubleshoot-grid .section-label {
  margin-bottom: 10px;
  color: var(--red);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.page-products .troubleshoot-grid h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  margin: 0 0 10px;
}

.page-products .troubleshoot-grid .section-desc {
  color: var(--mid-gray);
  line-height: 1.65;
  margin: 0 0 20px;
}

.page-products .fix-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 14px;
}

.page-products .fix-list__item {
  display: flex;
  gap: 14px;
}

.page-products .fix-list__mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .875rem;
  flex-shrink: 0;
}

.page-products .fix-list__item h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin: 0 0 4px;
}

.page-products .fix-list__item p {
  margin: 0;
  color: var(--mid-gray);
  line-height: 1.55;
  font-size: .9375rem;
}

.page-products .troubleshoot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.page-products .btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--red);
  border-radius: 8px;
  color: var(--red);
  background: transparent;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.page-products .btn--ghost:hover,
.page-products .btn--ghost:focus-visible {
  background: var(--red);
  color: #fff;
}

.page-products .troubleshoot-cta__link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 87, 46, .3);
  transition: border-color .2s;
}

.page-products .troubleshoot-cta__link:hover,
.page-products .troubleshoot-cta__link:focus-visible {
  border-color: var(--red);
}

.page-products .troubleshoot-grid__media {
  text-align: center;
}

.page-products .troubleshoot-grid__media img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: inline-block;
}

/* ---------- 对比表 ---------- */
.page-products .section-compare {
  background: var(--light-gray);
  padding: 56px 0;
}

.page-products .compare-panel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(43, 38, 32, .12);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.page-products .compare-panel__bg {
  display: none;
}

.page-products .compare-panel__table {
  overflow-x: auto;
  padding: 12px;
}

.page-products .compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .875rem;
}

.page-products .compare-table th,
.page-products .compare-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(43, 38, 32, .08);
}

.page-products .compare-table thead th {
  font-size: .8125rem;
  letter-spacing: .04em;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
}

.page-products .compare-table thead th:first-child {
  border-radius: 10px 0 0 0;
}

.page-products .compare-table thead th:last-child {
  border-radius: 0 10px 0 0;
}

.page-products .compare-table tbody th {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.page-products .compare-table tbody td {
  color: var(--mid-gray);
}

.page-products .compare-table tbody td strong {
  color: var(--red);
}

.page-products .compare-table tbody tr {
  transition: background .2s;
}

.page-products .compare-table tbody tr:hover {
  background: var(--light-gray);
}

.page-products .compare-note {
  font-size: .8125rem;
  color: var(--mid-gray);
  margin-top: 18px;
  line-height: 1.6;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-products .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .page-products .troubleshoot-grid__media img {
    max-width: 340px;
  }
}

@media (min-width: 992px) {
  .page-products .download-hero {
    padding: 64px 0 80px;
  }

  .page-products .download-hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
  }

  .page-products .download-hero__content {
    padding-right: 20px;
  }

  .page-products .phone-stage {
    width: min(340px, 38vw);
  }

  .page-products .callout {
    padding: 10px 14px;
    border-radius: 12px;
  }

  .page-products .callout--top {
    top: 14%;
    left: -18%;
    right: auto;
  }

  .page-products .callout--right {
    right: -20%;
    left: auto;
    top: 40%;
  }

  .page-products .callout--bottom {
    bottom: 18%;
    left: -10%;
    right: auto;
  }

  .page-products .callout__num {
    font-size: 1.375rem;
  }

  .page-products .section-pillars,
  .page-products .section-guide,
  .page-products .section-troubleshoot,
  .page-products .section-compare {
    padding: 72px 0;
  }

  .page-products .pillar-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .page-products .pillar-card {
    padding: 24px;
  }

  .page-products .guide-grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
  }

  .page-products .guide-grid__visual {
    order: 2;
  }

  .page-products .troubleshoot-grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
  }

  .page-products .troubleshoot-grid__media {
    order: -1;
  }

  .page-products .troubleshoot-grid__media img {
    max-width: 400px;
  }

  .page-products .compare-panel__bg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 100%;
    object-fit: cover;
    opacity: .5;
    pointer-events: none;
  }

  .page-products .compare-panel__table {
    padding-left: 200px;
  }
}

@media (min-width: 1200px) {
  .page-products .download-hero__grid {
    gap: 64px;
  }

  .page-products .guide-grid {
    grid-template-columns: 6fr 6fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .phone-model {
    animation: none;
  }

  .page-products .pillar-card {
    transition: none;
  }

  .page-products .btn--hero-download {
    transition: none;
  }
}
