.page-products {
  --fx-rule: 1px solid rgba(43, 82, 99, 0.55);
  --fx-soft: rgba(53, 230, 224, 0.1);
  --fx-ink: rgba(14, 23, 32, 0.72);
  position: relative;
  background-image:
    linear-gradient(rgba(43, 82, 99, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 82, 99, 0.13) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  overflow-x: hidden;
}

.page-products .fx-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4.5vw, 48px) 0 clamp(40px, 7vw, 84px);
}

.page-products .fx-hero::before {
  content: "";
  position: absolute;
  top: -34%;
  right: -30%;
  width: 92%;
  height: 160%;
  background:
    radial-gradient(circle at 64% 34%, rgba(53, 230, 224, 0.16), transparent 58%),
    radial-gradient(circle at 22% 74%, rgba(11, 42, 36, 0.9), transparent 70%);
  transform: skewX(-12deg);
  pointer-events: none;
}

.page-products .fx-hero > .wrap {
  position: relative;
  z-index: 1;
}

.page-products .fx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  margin-top: clamp(18px, 3vw, 30px);
}

.page-products .fx-lead {
  margin: 16px 0 0;
  max-width: 60ch;
  color: var(--mist);
  font-size: clamp(0.95rem, 1.9vw, 1.05rem);
  line-height: 1.85;
}

.page-products h1 {
  margin: 10px 0 0;
  font-size: clamp(1.7rem, 5vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-weight: 900;
  color: var(--ice);
}

.page-products .fx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(20px, 3vw, 28px) 0 clamp(24px, 4vw, 34px);
}

.page-products .fx-entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: var(--fx-rule);
  max-width: 420px;
}

.page-products .fx-entry a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 6px 11px 2px;
  border-bottom: var(--fx-rule);
  color: var(--ice);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.page-products .fx-entry a:hover,
.page-products .fx-entry a:focus-visible {
  color: var(--cyan);
  padding-left: 12px;
}

.page-products .fx-entry .mono {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  opacity: 0.75;
}

.page-products .fx-hero-visual {
  margin: 0;
}

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

.page-products .media-caption {
  margin-top: 10px;
}

/* ---------- 章节骨架 ---------- */

.page-products .fx-sec {
  position: relative;
  padding: clamp(42px, 7vw, 88px) 0;
  border-bottom: var(--fx-rule);
}

.page-products .fx-sec--last {
  border-bottom: 0;
  padding-bottom: clamp(48px, 8vw, 96px);
}

.page-products .fx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: clamp(22px, 3.6vw, 38px);
}

.page-products .fx-num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1;
  color: var(--cyan);
  opacity: 0.45;
  transition: opacity 0.4s var(--ease);
}

.page-products .fx-sec.is-current .fx-num {
  opacity: 1;
}

.page-products .fx-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ice);
}

.page-products .fx-head p {
  flex-basis: 100%;
  margin: 4px 0 0;
  max-width: 64ch;
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 1.85;
}

.page-products .fx-body {
  margin: 0 0 16px;
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 1.9;
}

.page-products .fx-body + .fx-body {
  margin-top: 0;
}

.page-products .fx-side-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
}

/* ---------- 01 赛季区间 ---------- */

.page-products .fx-range-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.page-products .fx-range-side {
  padding: clamp(18px, 3vw, 26px);
  border: var(--fx-rule);
  border-radius: var(--radius-panel);
  background: var(--fx-ink);
}

.page-products .fx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-products .fx-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--blueprint-line);
  background: rgba(7, 28, 47, 0.7);
  color: var(--mist);
  font-size: 0.82rem;
  line-height: 1.4;
  white-space: nowrap;
}

.page-products .fx-pill--on {
  border-color: var(--cyan);
  color: var(--ice);
  background: var(--fx-soft);
  box-shadow: inset 0 0 0 1px rgba(53, 230, 224, 0.32);
}

.page-products .fx-range-mono {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.05em;
  color: var(--cyan);
}

.page-products .fx-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-card);
  border: 1px dashed rgba(255, 107, 74, 0.45);
  background: rgba(255, 107, 74, 0.07);
}

.page-products .fx-note p {
  margin: 0;
  flex: 1 1 220px;
  color: var(--mist);
  font-size: 0.86rem;
  line-height: 1.7;
}

/* ---------- 02 五维对比 ---------- */

.page-products .fx-compare-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 40px);
}

.page-products .fx-dim-list {
  display: grid;
  gap: 12px;
}

.page-products .fx-dim {
  padding: 16px 18px;
  border: var(--fx-rule);
  border-radius: var(--radius-card);
  background: var(--fx-ink);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-products .fx-dim:hover {
  border-color: rgba(53, 230, 224, 0.6);
  transform: translateY(-2px);
}

.page-products .fx-dim-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.page-products .fx-dim-head .mono {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-products .fx-dim-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--ice);
  font-weight: 700;
}

.page-products .fx-dim p {
  margin: 0 0 12px;
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.8;
}

.page-products .fx-bar {
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(43, 82, 99, 0.5);
  overflow: hidden;
}

.page-products .fx-bar span {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--coral));
}

.page-products .fx-dim:nth-child(2) .fx-bar span { width: 78%; }
.page-products .fx-dim:nth-child(3) .fx-bar span { width: 54%; }
.page-products .fx-dim:nth-child(4) .fx-bar span { width: 88%; }
.page-products .fx-dim:nth-child(5) .fx-bar span { width: 70%; }

.page-products .fx-compare-visual {
  margin: 0;
}

.page-products .fx-compare-tip {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-card);
  background: linear-gradient(140deg, rgba(11, 42, 36, 0.85), rgba(7, 28, 47, 0.6));
  border: var(--fx-rule);
}

.page-products .fx-compare-tip p:last-child {
  margin: 0;
  color: var(--mist);
  font-size: 0.86rem;
  line-height: 1.8;
}

/* ---------- 03 回看工作台 ---------- */

.page-products .fx-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-products .fx-review-visual {
  margin: 0;
}

.page-products .fx-review-copy .btn {
  margin-top: 8px;
}

.page-products .fx-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-products .fx-card {
  padding: 18px;
  border: var(--fx-rule);
  border-radius: var(--radius-card);
  background: var(--fx-ink);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-products .fx-card:hover {
  border-color: rgba(53, 230, 224, 0.6);
  transform: translateY(-2px);
}

.page-products .fx-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.page-products .fx-card-idx {
  font-size: 0.75rem;
  color: var(--mist);
  opacity: 0.7;
}

.page-products .fx-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ice);
  font-weight: 700;
}

.page-products .fx-card p {
  margin: 0;
  color: var(--mist);
  font-size: 0.86rem;
  line-height: 1.8;
}

/* ---------- 04 收藏 ---------- */

.page-products .fx-save-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 44px);
  align-items: center;
}

.page-products .fx-save-visual {
  margin: 0;
}

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

.page-products .fx-save-list li {
  padding: 16px 18px;
  border-radius: var(--radius-card);
  border: var(--fx-rule);
  background: var(--fx-ink);
}

.page-products .fx-save-list .mono {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(231, 214, 189, 0.35);
  color: var(--sand);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.page-products .fx-save-list h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: var(--ice);
  font-weight: 700;
}

.page-products .fx-save-list p {
  margin: 0;
  color: var(--mist);
  font-size: 0.86rem;
  line-height: 1.8;
}

.page-products .fx-save-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  color: var(--mist);
  font-size: 0.82rem;
}

.page-products .fx-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--state-green);
  box-shadow: 0 0 0 4px rgba(91, 228, 155, 0.16);
}

/* ---------- 05 安卓帮助文档 ---------- */

.page-products .fx-help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 40px);
  align-items: start;
}

.page-products .fx-topics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.page-products .fx-topic {
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background: rgba(14, 23, 32, 0.66);
  border-left: 2px solid var(--cyan);
}

.page-products .fx-topic .mono {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  opacity: 0.8;
}

.page-products .fx-topic h3 {
  margin: 4px 0 6px;
  font-size: 0.95rem;
  color: var(--ice);
  font-weight: 700;
}

.page-products .fx-topic p {
  margin: 0;
  color: var(--mist);
  font-size: 0.84rem;
  line-height: 1.75;
}

.page-products .fx-help-note {
  margin: 16px 0 18px;
  color: var(--mist);
  font-size: 0.85rem;
  line-height: 1.8;
}

.page-products .fx-help-visual {
  margin: 0;
}

/* ---------- 06 技能树路径 ---------- */

.page-products .fx-steps {
  list-style: none;
  margin: 0 0 clamp(28px, 4.5vw, 48px);
  padding: 0 0 0 30px;
  position: relative;
}

.page-products .fx-steps::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(53, 230, 224, 0.12));
}

.page-products .fx-step {
  position: relative;
  padding: 0 0 clamp(20px, 3.2vw, 30px);
}

.page-products .fx-step:last-child {
  padding-bottom: 0;
}

.page-products .fx-step::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--deep);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(53, 230, 224, 0.08);
}

.page-products .fx-step .mono {
  display: block;
  margin-bottom: 5px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-products .fx-step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--ice);
  font-weight: 700;
  line-height: 1.5;
}

.page-products .fx-step p {
  margin: 0;
  max-width: 62ch;
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.85;
}

.page-products .fx-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius-panel);
  border: 1px solid rgba(255, 107, 74, 0.4);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 107, 74, 0.2), transparent 55%),
    linear-gradient(135deg, rgba(11, 42, 36, 0.9), rgba(7, 28, 47, 0.95));
}

.page-products .fx-cta-copy .serif-label {
  margin: 0 0 8px;
  color: var(--sand);
}

.page-products .fx-cta-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  line-height: 1.35;
  color: var(--ice);
}

.page-products .fx-cta-copy p:last-child {
  margin: 0;
  max-width: 60ch;
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.85;
}

.page-products .fx-cta .btn {
  justify-self: start;
}

/* ---------- 响应式 ---------- */

@media (min-width: 620px) {
  .page-products .fx-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .fx-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-products .fx-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
  }

  .page-products .fx-range-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }

  .page-products .fx-compare-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    align-items: start;
  }

  .page-products .fx-compare-visual {
    margin-top: 26px;
  }

  .page-products .fx-review-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .page-products .fx-save-layout {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  }

  .page-products .fx-save-visual {
    margin-bottom: 42px;
  }

  .page-products .fx-help-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }

  .page-products .fx-help-visual {
    margin-top: 34px;
  }

  .page-products .fx-cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 1000px) {
  .page-products .fx-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .fx-card:nth-child(2n) {
    transform: translateY(18px);
  }

  .page-products .fx-card:nth-child(2n):hover {
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .fx-entry a,
  .page-products .fx-dim,
  .page-products .fx-card,
  .page-products .fx-num {
    transition: none;
  }

  .page-products .fx-card:nth-child(2n) {
    transform: none;
  }
}
