.page-products {
  --fx-line: 1px solid var(--grid);
  --fx-soft: #2C4A43;
  --fx-accent-dark: #B5471E;
  --fx-gap: clamp(20px, 3.4vw, 48px);

  background: var(--ink);
  color: var(--paper);
}

/* ---------- 首屏 ---------- */
.page-products .fx-hero {
  position: relative;
  overflow: hidden;
  border-bottom: var(--fx-line);
  padding-bottom: clamp(36px, 6vw, 84px);
}

.page-products .fx-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-products .fx-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  opacity: 0.4;
  filter: saturate(0.72) contrast(1.06);
}

.page-products .fx-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 43, 38, 0.55) 0%, rgba(11, 43, 38, 0.92) 72%, var(--ink) 100%),
    linear-gradient(90deg, var(--ink) 0%, rgba(11, 43, 38, 0.6) 58%, rgba(11, 43, 38, 0.12) 100%);
}

.page-products .fx-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(22px, 4vw, 44px);
}

.page-products .fx-hero-inner .breadcrumb {
  margin-bottom: clamp(28px, 5vw, 56px);
}

.page-products .fx-hero-eyebrow {
  color: var(--cyan);
  margin-bottom: 14px;
}

.page-products .fx-hero .display {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.5rem, 9vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--white);
}

.page-products .fx-lede {
  margin: clamp(16px, 2.6vw, 28px) 0 0;
  max-width: 48ch;
  color: var(--sand);
  line-height: 1.75;
}

/* ---------- 功能索引 ---------- */
.page-products .fx-index-section {
  padding-block: clamp(40px, 6vw, 84px);
}

.page-products .fx-index-head {
  max-width: 62ch;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.page-products .fx-index-head .eyebrow {
  color: var(--mist);
  margin-bottom: 10px;
}

.page-products .fx-index-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-products .fx-index-sub {
  margin: 0;
  color: var(--mist);
  line-height: 1.75;
  font-size: 0.98rem;
}

.page-products .fx-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--fx-line);
  counter-reset: idx;
}

.page-products .fx-index > li {
  counter-increment: idx;
  border-bottom: var(--fx-line);
}

.page-products .fx-index-link {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  grid-template-areas:
    "num name"
    "num desc";
  align-items: center;
  gap: 4px 14px;
  padding: clamp(16px, 2.4vw, 24px) clamp(4px, 1.2vw, 14px);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.25s var(--ease);
}

.page-products .fx-index-link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.page-products .fx-index-num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--grid);
  transition: color 0.25s var(--ease);
}

.page-products .fx-index-num::before {
  content: counter(idx, decimal-leading-zero);
}

.page-products .fx-index-name {
  grid-area: name;
  font-size: clamp(1.02rem, 2vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color 0.25s var(--ease);
}

.page-products .fx-index-desc {
  grid-area: desc;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--mist);
}

.page-products .fx-index-arrow {
  display: none;
}

@media (min-width: 820px) {
  .page-products .fx-index-link {
    grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1.15fr) 2rem;
    grid-template-areas: "num name desc arrow";
    align-items: baseline;
    gap: 24px;
  }

  .page-products .fx-index-arrow {
    grid-area: arrow;
    display: block;
    justify-self: end;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--mist);
    transition: transform 0.25s var(--ease), color 0.25s var(--ease);
  }

  .page-products .fx-index-link:hover {
    background: var(--ink-2);
  }

  .page-products .fx-index-link:hover .fx-index-num,
  .page-products .fx-index-link:focus-visible .fx-index-num {
    color: var(--orange);
  }

  .page-products .fx-index-link:hover .fx-index-name {
    color: var(--orange);
  }

  .page-products .fx-index-link:hover .fx-index-arrow {
    transform: translateX(5px);
    color: var(--orange);
  }
}

/* ---------- 功能区块骨架 ---------- */
.page-products .fx-feature {
  border-top: var(--fx-line);
  padding-block: clamp(40px, 6vw, 88px);
}

.page-products .fx-feature-grid {
  display: grid;
  gap: var(--fx-gap);
  align-items: start;
}

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

  .page-products .fx-feature--flip .fx-feature-body {
    order: 2;
  }

  .page-products .fx-feature--flip .fx-feature-visual {
    order: 1;
  }
}

/* ---------- 功能卡内部 ---------- */
.page-products .fx-feature-body {
  border: var(--fx-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2) 0%, rgba(18, 61, 53, 0.5) 100%);
  box-shadow: 0 1px 0 rgba(247, 251, 248, 0.04), 0 22px 46px -34px rgba(0, 0, 0, 0.95);
  padding: clamp(20px, 3vw, 36px);
}

.page-products .fx-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: var(--mist);
}

.page-products .fx-num {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgba(255, 106, 42, 0.5);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.page-products .fx-feature-title {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-products .fx-feature-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--sand);
}

.page-products .fx-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  display: grid;
  gap: 12px;
  border-top: var(--fx-line);
}

.page-products .fx-points li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--paper);
}

.page-products .fx-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 9px;
  height: 1px;
  background: var(--cyan);
}

.page-products .fx-metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 0 8px;
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: var(--fx-line);
}

.page-products .fx-metric-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--orange);
}

.page-products .fx-metric-label {
  display: block;
  margin-top: 7px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* ---------- 视觉区 ---------- */
.page-products .fx-feature-visual,
.page-products .fx-watchlist-visual {
  margin: 0;
}

.page-products .fx-frame {
  border: var(--fx-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

.page-products .fx-feature-visual img,
.page-products .fx-watchlist-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .fx-feature-visual .media-caption,
.page-products .fx-watchlist-visual .media-caption {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--mist);
}

/* 双维度检索示意 */
.page-products .fx-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--grid);
  border: var(--fx-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .fx-dual-col {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
  background: var(--ink-2);
}

.page-products .fx-dual-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-products .fx-dual-pill {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  font-size: 0.84rem;
  color: var(--mist);
  background: rgba(11, 43, 38, 0.5);
}

.page-products .fx-dual-pill.is-active {
  border-color: var(--orange);
  color: var(--ink);
  background: var(--orange);
  font-weight: 700;
}

/* ---------- 主客场对比表 ---------- */
.page-products .fx-compare-scroll {
  margin-top: clamp(24px, 4vw, 44px);
  overflow-x: auto;
  border: var(--fx-line);
  border-radius: var(--radius);
  background: var(--ink-2);
  -webkit-overflow-scrolling: touch;
}

.page-products .fx-compare-scroll:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-products .fx-compare {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.page-products .fx-compare th,
.page-products .fx-compare td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--grid);
}

.page-products .fx-compare thead th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(46, 90, 80, 0.22);
  white-space: nowrap;
}

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

.page-products .fx-compare tbody td {
  color: var(--sand);
  line-height: 1.6;
}

.page-products .fx-compare tbody tr:last-child th,
.page-products .fx-compare tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .fx-compare tbody tr:hover {
  background: rgba(61, 224, 208, 0.06);
}

.page-products .fx-scroll-hint {
  display: block;
  margin: 10px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

@media (min-width: 960px) {
  .page-products .fx-scroll-hint {
    display: none;
  }
}

/* ---------- 关注清单（暖纸区） ---------- */
.page-products .fx-watchlist {
  background: var(--paper);
  color: var(--ink);
  border-top: var(--fx-line);
  border-bottom: var(--fx-line);
  padding-block: clamp(40px, 6vw, 88px);
}

.page-products .fx-watchlist-grid {
  display: grid;
  gap: var(--fx-gap);
  align-items: start;
}

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

.page-products .fx-eyebrow-dark {
  color: var(--fx-accent-dark);
  margin-bottom: 12px;
}

.page-products .fx-watchlist h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-products .fx-watchlist-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--fx-soft);
}

.page-products .fx-points--dark {
  border-top: 1px solid rgba(11, 43, 38, 0.18);
}

.page-products .fx-points--dark li {
  color: var(--fx-soft);
}

.page-products .fx-points--dark li::before {
  background: var(--fx-accent-dark);
}

.page-products .fx-watchlist-visual img {
  border: 1px solid rgba(11, 43, 38, 0.2);
  border-radius: var(--radius);
}

.page-products .fx-watchlist-visual .media-caption {
  color: rgba(11, 43, 38, 0.62);
}

/* 场景卡 */
.page-products .fx-scenes {
  display: grid;
  gap: 16px;
  margin-top: clamp(26px, 4vw, 44px);
}

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

.page-products .fx-scene {
  padding: 20px;
  border: 1px solid rgba(11, 43, 38, 0.18);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  background: rgba(216, 203, 179, 0.4);
}

.page-products .fx-scene h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-products .fx-scene p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--fx-soft);
}

/* ---------- 结尾行动区 ---------- */
.page-products .fx-cta {
  border-top: var(--fx-line);
  padding-block: clamp(44px, 7vw, 96px);
}

.page-products .fx-cta .eyebrow {
  color: var(--cyan);
  margin-bottom: 12px;
}

.page-products .fx-cta-inner {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

@media (min-width: 880px) {
  .page-products .fx-cta-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
  }
}

.page-products .fx-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-products .fx-cta p {
  margin: 0;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--sand);
}

.page-products .fx-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-products .fx-cta-note {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: 0.9rem;
  color: var(--mist);
}

.page-products .fx-cta-note a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .fx-cta-note a:hover {
  color: var(--orange);
}

/* ---------- 进入动效 ---------- */
.page-products [data-reveal] {
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.page-products [data-reveal].is-revealed {
  animation: fx-rise 0.55s var(--ease) both;
}

@keyframes fx-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products *,
  .page-products *::before,
  .page-products *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
