.page-products {
  --prod-index-w: 208px;
}

.page-products .prod-crumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--pad) 0;
}

/* ---------- 首屏 ---------- */
.page-products .prod-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad) 0;
}

.page-products .prod-hero__frame {
  position: relative;
  border: 1px solid var(--rail);
  border-radius: var(--r-xl);
  padding: 26px 20px 30px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 84% 10%, rgba(111, 227, 210, 0.12), transparent 58%),
    radial-gradient(90% 70% at 8% 96%, rgba(255, 122, 61, 0.10), transparent 62%),
    linear-gradient(158deg, var(--night-2) 0%, var(--night) 72%);
}

.page-products .prod-hero__frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(23, 50, 71, 0.95);
  border-radius: calc(var(--r-xl) - 8px);
  pointer-events: none;
}

.page-products .prod-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-products .prod-hero__title {
  margin: 10px 0 16px;
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 5vw, 3.05rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--warm);
}

.page-products .prod-hero__lede {
  margin: 0 0 24px;
  max-width: 46ch;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--stone);
}

.page-products .prod-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .prod-hero__visual {
  margin: 0;
  border: 1px solid var(--rail);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--night-2);
}

.page-products .prod-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 900px) {
  .page-products .prod-hero__frame {
    padding: 40px 40px 44px;
  }

  .page-products .prod-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
  }
}

/* ---------- 主体骨架 ---------- */
.page-products .prod-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad) 72px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.page-products .prod-content {
  min-width: 0;
}

/* ---------- 目录 ---------- */
.page-products .prod-index {
  margin: 0 0 4px;
}

.page-products .prod-index__label {
  display: none;
}

.page-products .prod-index__list {
  list-style: none;
  margin: 0;
  padding: 4px 0 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-products .prod-index__list::-webkit-scrollbar {
  display: none;
}

.page-products .prod-index__link {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--rail);
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--stone);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-products .prod-index__link:hover,
.page-products .prod-index__link:focus-visible {
  color: var(--warm);
  border-color: var(--cyan);
}

.page-products .prod-index__link.is-active {
  color: var(--night);
  background: var(--cyan);
  border-color: var(--cyan);
}

@media (min-width: 1024px) {
  .page-products .prod-shell {
    grid-template-columns: var(--prod-index-w) minmax(0, 1fr);
    gap: 48px;
    padding-top: 44px;
  }

  .page-products .prod-index {
    position: sticky;
    top: 96px;
    align-self: start;
    margin: 0;
  }

  .page-products .prod-index__label {
    display: block;
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--stone);
  }

  .page-products .prod-index__list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding: 0;
  }

  .page-products .prod-index__link {
    display: block;
    padding: 9px 0 9px 14px;
    border: 0;
    border-left: 2px solid var(--rail);
    border-radius: 0;
    font-size: 0.875rem;
  }

  .page-products .prod-index__link.is-active {
    background: none;
    color: var(--cyan);
    border-left-color: var(--cyan);
  }
}

/* ---------- 章节 ---------- */
.page-products .prod-sec {
  padding-top: 32px;
  scroll-margin-top: 88px;
}

.page-products .prod-sec + .prod-sec {
  margin-top: 40px;
  padding-top: 44px;
  border-top: 1px solid var(--rail);
}

@media (min-width: 768px) {
  .page-products .prod-sec {
    padding-top: 44px;
    scroll-margin-top: 104px;
  }

  .page-products .prod-sec + .prod-sec {
    margin-top: 56px;
    padding-top: 56px;
  }
}

.page-products .prod-sec__lede {
  margin: 12px 0 0;
  max-width: 64ch;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--stone);
}

/* ---------- 两步路径 ---------- */
.page-products .prod-bento {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-products .prod-bento__main,
.page-products .prod-bento__side {
  min-width: 0;
}

.page-products .path-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-products .path-step {
  position: relative;
  padding: 18px 18px 20px;
  border: 1px solid var(--rail);
  border-radius: var(--r-l);
  background: var(--night-2);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-products .path-step:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.page-products .path-step__num {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-num);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);
}

.page-products .path-step__title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--warm);
}

.page-products .path-step p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--stone);
}

@media (min-width: 560px) {
  .page-products .path-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .page-products .prod-bento {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
  }
}

/* ---------- 图片 ---------- */
.page-products .prod-figure {
  margin: 18px 0 0;
  border: 1px solid var(--rail);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--night-2);
}

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

.page-products .prod-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--rail);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--stone);
}

/* ---------- 折叠细节 ---------- */
.page-products .feat-acc {
  margin: 0 0 12px;
  padding: 0 16px;
  border: 1px solid var(--rail);
  border-radius: var(--r-m);
  background: var(--night-2);
}

.page-products .feat-acc:last-child {
  margin-bottom: 0;
}

.page-products .feat-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--warm);
  cursor: pointer;
  list-style: none;
}

.page-products .feat-acc summary::-webkit-details-marker {
  display: none;
}

.page-products .feat-acc summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--orange);
}

.page-products .feat-acc[open] summary::after {
  content: "−";
}

.page-products .feat-acc p {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--stone);
}

/* ---------- 轮次时间轴 ---------- */
.page-products .prod-timeline-wrap {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.page-products .prod-timeline-wrap .prod-figure {
  margin: 0;
}

.page-products .prod-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  position: relative;
  display: grid;
  gap: 16px;
}

.page-products .prod-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--rail) 72%);
}

.page-products .prod-timeline__item {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--rail);
  border-radius: var(--r-m);
  background: var(--night-2);
  transition: border-color 0.2s var(--ease);
}

.page-products .prod-timeline__item:hover {
  border-color: var(--cyan);
}

.page-products .prod-timeline__item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--cyan);
  box-sizing: border-box;
}

.page-products .prod-timeline__item h3 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cyan);
}

.page-products .prod-timeline__item p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--stone);
}

@media (min-width: 860px) {
  .page-products .prod-timeline-wrap {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: 32px;
  }
}

/* ---------- 战报卡片字段 ---------- */
.page-products .field-grid {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-products .field-card {
  padding: 16px;
  border: 1px solid var(--rail);
  border-radius: var(--r-m);
  background: var(--night-2);
  transition: border-color 0.2s var(--ease);
}

.page-products .field-card:hover {
  border-color: var(--clay);
}

.page-products .field-card__k {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--sand);
  color: var(--night);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.page-products .field-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--stone);
}

@media (min-width: 560px) {
  .page-products .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ---------- 新手 ---------- */
.page-products .starter-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-products .starter-card {
  padding: 18px;
  border: 1px solid var(--rail);
  border-radius: var(--r-l);
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
}

.page-products .starter-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--warm);
}

.page-products .starter-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--stone);
}

.page-products .starter-grid .prod-figure {
  margin: 4px 0 0;
}

@media (min-width: 768px) {
  .page-products .starter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .page-products .starter-grid .prod-figure {
    grid-column: 1 / -1;
    margin-top: 6px;
  }
}

/* ---------- 通勤 ---------- */
.page-products .commute-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-products .commute-grid .prod-figure {
  margin: 0;
}

.page-products .commute-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .commute-list li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--rail);
  border-radius: var(--r-m);
  background: var(--night-2);
  font-size: 0.875rem;
  line-height: 1.68;
  color: var(--stone);
}

.page-products .commute-list li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--orange);
  transform: skewX(-18deg);
}

@media (min-width: 860px) {
  .page-products .commute-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
  }
}

/* ---------- 入口矩阵 ---------- */
.page-products .matrix-grid {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-products .matrix-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--rail);
  border-radius: var(--r-m);
  background: var(--night-2);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-products .matrix-grid a.matrix-card:hover,
.page-products .matrix-grid a.matrix-card:focus-visible {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.page-products .matrix-card__name {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--warm);
}

.page-products .matrix-card__desc {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.68;
  color: var(--stone);
}

.page-products .matrix-card__tag {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

@media (min-width: 640px) {
  .page-products .matrix-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* ---------- 版本节点 ---------- */
.page-products .version-track {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .version-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 14px;
  border-left: 2px solid var(--clay);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  background: linear-gradient(90deg, var(--night-2) 0%, rgba(15, 36, 54, 0) 88%);
}

.page-products .version-item__year {
  font-family: var(--font-num);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);
}

.page-products .version-item p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--stone);
}

/* ---------- 对照表 ---------- */
.page-products .cmp-wrap {
  margin-top: 26px;
  border: 1px solid var(--rail);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--night-2);
}

.page-products .cmp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-products .cmp-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.page-products .cmp-table caption {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rail);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--stone);
}

.page-products .cmp-table th {
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
  background: var(--rail);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--warm);
}

.page-products .cmp-table td {
  padding: 14px 16px;
  vertical-align: top;
  line-height: 1.6;
  color: var(--stone);
  border-top: 1px solid var(--rail);
}

.page-products .cmp-table td:first-child {
  white-space: nowrap;
  font-weight: 700;
  color: var(--warm);
}

.page-products .cmp-table tbody tr:nth-child(even) td {
  background: rgba(23, 50, 71, 0.42);
}

.page-products .cmp-table tbody tr:hover td {
  background: rgba(111, 227, 210, 0.10);
  color: var(--warm);
}

/* ---------- 收尾 ---------- */
.page-products .prod-cta {
  margin-top: 24px;
  padding: 22px 20px;
  border: 1px solid var(--rail);
  border-radius: var(--r-l);
  background:
    linear-gradient(140deg, rgba(255, 122, 61, 0.14), rgba(111, 227, 210, 0.10) 60%, transparent 100%),
    var(--night-2);
}

.page-products .prod-cta p {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--warm);
}

.page-products .prod-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 768px) {
  .page-products .prod-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
  }

  .page-products .prod-cta p {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .path-step,
  .page-products .prod-timeline__item,
  .page-products .field-card,
  .page-products .matrix-card,
  .page-products .prod-index__link {
    transition: none;
  }

  .page-products .path-step:hover,
  .page-products .matrix-grid a.matrix-card:hover,
  .page-products .matrix-grid a.matrix-card:focus-visible {
    transform: none;
  }
}
