.page-products {
  --idx-line: rgba(27, 74, 58, 0.16);
  --idx-line-gold: rgba(201, 162, 74, 0.42);
  --idx-gap: clamp(0.9rem, 2vw, 1.35rem);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-products .idx-hero {
  position: relative;
  padding: clamp(6.5rem, 14vw, 9.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  color: var(--paper);
  background-color: var(--ink-deep);
  background-image:
    repeating-linear-gradient(90deg, rgba(201, 162, 74, 0.085) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(0deg, rgba(201, 162, 74, 0.085) 0 1px, transparent 1px 68px);
  overflow: hidden;
}

.page-products .idx-hero::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(201, 162, 74, 0.18), transparent 68%);
  pointer-events: none;
}

.page-products .idx-hero .breadcrumbs {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(1.8rem, 5vw, 3rem);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--on-deep-soft);
}

.page-products .idx-hero .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .idx-hero .breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.55rem;
  color: rgba(201, 162, 74, 0.55);
}

.page-products .idx-hero .breadcrumbs a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.page-products .idx-hero .breadcrumbs a:hover,
.page-products .idx-hero .breadcrumbs a:focus-visible {
  border-bottom-color: var(--gold);
}

.page-products .idx-hero .breadcrumbs [aria-current="page"] {
  color: var(--paper);
}

.page-products .idx-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: end;
}

.page-products .idx-hero h1 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--h1);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper-bright);
}

.page-products .idx-hero .lede {
  margin: 1.1rem 0 0;
  max-width: 30em;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.85;
  color: var(--on-deep);
}

.page-products .idx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.page-products .idx-hero-chips {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .idx-hero-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--idx-line-gold);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  color: var(--gold-soft);
  background: rgba(255, 253, 246, 0.04);
}

.page-products .idx-hero-chip span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-products .idx-hero-chip--red {
  border-color: rgba(184, 58, 46, 0.62);
  color: #F1D2CB;
  background: rgba(184, 58, 46, 0.12);
}

.page-products .idx-hero-chip--red span {
  color: #E08C82;
}

.page-products .idx-hero-chip--slate {
  border-color: rgba(110, 127, 141, 0.62);
  color: #D5DFE6;
  background: rgba(110, 127, 141, 0.12);
}

.page-products .idx-hero-chip--slate span {
  color: #9FB2BF;
}

/* ---------- 主体列 ---------- */
.page-products .idx-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.page-products .idx-rail {
  display: none;
}

.page-products .idx-rail-title {
  margin: 0 0 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}

.page-products .idx-rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}

.page-products .idx-rail-list li {
  counter-increment: rail;
  border-top: 1px solid var(--idx-line);
}

.page-products .idx-rail-list li:last-child {
  border-bottom: 1px solid var(--idx-line);
}

.page-products .idx-rail-list a {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.62rem 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.page-products .idx-rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--bronze);
}

.page-products .idx-rail-list a:hover,
.page-products .idx-rail-list a:focus-visible {
  color: var(--cinnabar);
  padding-left: 0.28rem;
}

.page-products .idx-rail .note-mark {
  margin: 1.2rem 0 0;
  font-size: 0.76rem;
  color: var(--slate);
}

/* ---------- 分块 ---------- */
.page-products .idx-block {
  padding-block: clamp(1.8rem, 4vw, 2.8rem);
  border-top: 1px solid var(--idx-line);
}

.page-products .idx-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-products .idx-head h2 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--h2);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink-deep);
}

.page-products .idx-lede {
  margin: 1rem 0 0;
  max-width: 38em;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(21, 19, 15, 0.82);
}

.page-products .idx-block h3 {
  margin: 0.3rem 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--h3);
  line-height: 1.3;
  color: var(--ink-deep);
}

.page-products .idx-block p {
  line-height: 1.85;
}

.page-products .idx-inline-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
  font-size: 0.86rem;
  color: var(--slate);
}

.page-products .idx-cta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

/* ---------- 图 ---------- */
.page-products .idx-figure {
  position: relative;
  margin: 1.6rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(155deg, #16382C, #0D2A22);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.32);
  aspect-ratio: 16 / 9;
}

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

.page-products .idx-figure--3x2 {
  aspect-ratio: 3 / 2;
  margin-top: 0;
}

.page-products .idx-figure--tablet {
  aspect-ratio: 14 / 9;
}

.page-products .idx-figure--square {
  aspect-ratio: 1 / 1;
  margin-top: 0;
}

/* ---------- 入口卡片 ---------- */
.page-products .idx-cards {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--idx-gap);
  margin-top: 1.6rem;
}

.page-products .entry-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.15rem 1.3rem;
  border: 1px solid var(--idx-line);
  border-radius: var(--radius-md);
  background: var(--paper-bright);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.page-products .entry-card:hover,
.page-products .entry-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--idx-line-gold);
  box-shadow: 0 16px 32px -22px rgba(13, 42, 34, 0.75);
}

.page-products .entry-card__idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--bronze);
}

.page-products .entry-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.14rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-deep);
}

.page-products .entry-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-products .entry-card__text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(21, 19, 15, 0.72);
}

.page-products .entry-card--red {
  border-color: rgba(184, 58, 46, 0.4);
  background: linear-gradient(180deg, rgba(184, 58, 46, 0.07), transparent 58%), var(--paper-bright);
}

.page-products .entry-card--slate {
  border-color: rgba(110, 127, 141, 0.4);
  background: linear-gradient(180deg, rgba(110, 127, 141, 0.09), transparent 58%), var(--paper-bright);
}

/* ---------- 左右错位 ---------- */
.page-products .entry-split {
  display: grid;
  gap: clamp(1.3rem, 3vw, 2.2rem);
  align-items: center;
  margin-top: 1.6rem;
}

.page-products .entry-split__body > p {
  margin: 0 0 1rem;
  max-width: 34em;
  font-size: 0.99rem;
  line-height: 1.85;
  color: rgba(21, 19, 15, 0.82);
}

.page-products .entry-split__body > p:last-child {
  margin-bottom: 0;
}

/* ---------- 步骤 ---------- */
.page-products .step-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.page-products .step-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.68rem 0;
  border-top: 1px dashed var(--idx-line);
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(21, 19, 15, 0.85);
}

.page-products .step-num {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

/* ---------- 对照表 ---------- */
.page-products .compare-table {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--paper-bright);
  border: 1px solid var(--idx-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-products .compare-table caption {
  caption-side: top;
  padding: 0 0 0.7rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--bronze);
}

.page-products .compare-table th,
.page-products .compare-table td {
  padding: 0.78rem 0.9rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  border-bottom: 1px solid var(--idx-line);
}

.page-products .compare-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--paper-bright);
  background: var(--ink-mid);
  border-bottom-color: transparent;
}

.page-products .compare-table tbody th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink-mid);
  white-space: nowrap;
  background: rgba(232, 216, 168, 0.22);
}

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

/* ---------- 平板三栏 ---------- */
.page-products .tablet-grid {
  display: grid;
  gap: var(--idx-gap);
  margin-top: 1.8rem;
}

.page-products .tablet-col {
  padding: 1.15rem 1.15rem 1.3rem;
  border: 1px solid rgba(110, 127, 141, 0.34);
  border-top: 3px solid var(--slate);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(110, 127, 141, 0.1), transparent 62%), var(--paper-bright);
}

.page-products .tablet-col__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--slate);
}

.page-products .tablet-col p {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.8;
  color: rgba(21, 19, 15, 0.78);
}

/* ---------- 折叠说明 ---------- */
.page-products .fold-list {
  margin-top: 1.6rem;
  border-top: 1px solid var(--idx-line);
}

.page-products .ver-fold {
  border-bottom: 1px solid var(--idx-line);
}

.page-products .ver-fold summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0.2rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-deep);
  list-style: none;
  transition: color 0.2s var(--ease);
}

.page-products .ver-fold summary::-webkit-details-marker {
  display: none;
}

.page-products .ver-fold summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--idx-line-gold);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--gold);
}

.page-products .ver-fold[open] summary::before {
  content: "–";
}

.page-products .ver-fold summary:hover,
.page-products .ver-fold summary:focus-visible {
  color: var(--cinnabar);
}

.page-products .ver-fold p {
  margin: 0 0 1.1rem 2.15rem;
  max-width: 36em;
  font-size: 0.93rem;
  line-height: 1.85;
  color: rgba(21, 19, 15, 0.78);
}

/* ---------- 版本记录 ---------- */
.page-products .log-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.page-products .log-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.72rem 0;
  border-top: 1px dashed var(--idx-line);
  font-size: 0.93rem;
  line-height: 1.78;
  color: rgba(21, 19, 15, 0.82);
}

.page-products .log-tag {
  flex: 0 0 auto;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.page-products .pick-list {
  padding: 1.05rem 1.15rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--idx-line);
  background: var(--paper-bright);
}

.page-products .pick-list__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink-mid);
}

.page-products .pick-list ul {
  margin: 0;
  padding-left: 1.05rem;
  list-style: none;
}

.page-products .pick-list li {
  position: relative;
  padding: 0.34rem 0 0.34rem 0.9rem;
  font-size: 0.92rem;
  line-height: 1.78;
  color: rgba(21, 19, 15, 0.82);
}

.page-products .pick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.92rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-products .tablet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .page-products .entry-split--flip .idx-figure {
    order: 2;
  }
}

@media (min-width: 880px) {
  .page-products .idx-hero-inner {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.88fr);
  }
}

@media (min-width: 920px) {
  .page-products .idx-body {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  .page-products .idx-rail {
    display: block;
    position: sticky;
    top: 6.5rem;
    align-self: start;
    padding-left: 1.1rem;
    border-left: 1px solid var(--idx-line);
  }
}

@media (min-width: 1080px) {
  .page-products .idx-block {
    padding-block: clamp(2.2rem, 4vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .entry-card,
  .page-products .idx-rail-list a,
  .page-products .ver-fold summary,
  .page-products .idx-hero .breadcrumbs a {
    transition: none;
  }
}
</main>
