.page-products {
  --pp-line: #2b4664;
  --pp-panel: #17293f;
  --pp-deep: #101f31;
  --pp-shell: #142438;

  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
}

/* ---------- 首屏 ---------- */
.page-products .feat-hero {
  position: relative;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(43, 70, 100, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 70, 100, 0.3) 1px, transparent 1px),
    radial-gradient(105% 85% at 88% 6%, rgba(140, 29, 34, 0.52) 0%, rgba(13, 26, 43, 0) 62%);
  background-size: 54px 54px, 54px 54px, 100% 100%;
  padding: clamp(26px, 4vw, 54px) 0 clamp(66px, 9vw, 122px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%);
}

.page-products .breadcrumb {
  margin: 0 0 clamp(22px, 3vw, 40px);
}

.page-products .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.page-products .breadcrumb-item {
  color: rgba(244, 237, 226, 0.6);
}

.page-products .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 8px;
  color: var(--orange);
}

.page-products .breadcrumb-item a {
  color: rgba(244, 237, 226, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 237, 226, 0.3);
}

.page-products .breadcrumb-item a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.page-products .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 52px);
  align-items: end;
}

.page-products .hero-kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
}

.page-products .hero-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.9vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}

.page-products .hero-title em {
  font-style: normal;
  color: var(--gold);
  background: linear-gradient(transparent 64%, rgba(240, 147, 43, 0.3) 64%);
  padding: 0 0.08em;
}

.page-products .hero-lede {
  margin: 0;
  max-width: 36em;
  font-size: 16.5px;
  line-height: 1.9;
  color: rgba(244, 237, 226, 0.82);
}

.page-products .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-products .feat-hero .btn-ghost {
  color: var(--paper);
  border-color: rgba(244, 237, 226, 0.55);
  background: transparent;
}

.page-products .feat-hero .btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.page-products .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--pp-line);
  border: 2px solid var(--pp-line);
}

.page-products .stat-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  background: var(--pp-panel);
}

.page-products .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

.page-products .stat-num .stat-unit {
  margin-left: 4px;
  font-size: 0.46em;
  font-weight: 500;
  color: rgba(244, 237, 226, 0.75);
}

.page-products .stat-cap {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: var(--gray);
}

/* ---------- 主框架 ---------- */
.page-products .feat-shell {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(56px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.page-products .module-rail {
  background: var(--pp-panel);
  border: 2px solid var(--black);
  border-left: 6px solid var(--orange);
  box-shadow: 6px 6px 0 var(--black);
  padding: 18px 16px;
}

.page-products .rail-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gray);
}

.page-products .rail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .rail-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
  padding: 9px 8px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(244, 237, 226, 0.78);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.page-products .rail-link:hover,
.page-products .rail-link:focus-visible {
  background: rgba(240, 147, 43, 0.14);
  color: #fff;
  border-left-color: var(--orange);
  outline: none;
}

.page-products .rail-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.page-products .module-flow {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3.6vw, 48px);
}

/* ---------- 模块卡片 ---------- */
.page-products .module-card {
  position: relative;
  background: var(--pp-panel);
  border: 2px solid var(--pp-line);
  border-left: 6px solid var(--red);
  box-shadow: 6px 6px 0 var(--black);
  padding: clamp(20px, 3.2vw, 40px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-products .module-card::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 34px;
  height: 34px;
  background: var(--red-deep);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-products .module-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 12px 0 var(--black);
}

.page-products .card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.page-products .card-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  background: var(--orange);
  color: var(--ink);
}

.page-products .card-title {
  flex: 1 1 300px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.32rem, 2.5vw, 1.95rem);
  line-height: 1.3;
  color: #fff;
}

.page-products .card-lede {
  margin: 0 0 24px;
  max-width: 42em;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(244, 237, 226, 0.8);
}

/* ---------- 截图与图示 ---------- */
.page-products .shot {
  margin: 0 0 24px;
  border: 2px solid var(--black);
  background: #0a1522;
}

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

.page-products .shot figcaption {
  padding: 10px 14px;
  border-top: 2px solid var(--black);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.page-products .shot-tall {
  max-width: 640px;
}

/* ---------- 三重视图列表 ---------- */
.page-products .view-list {
  display: grid;
  gap: 2px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  background: var(--pp-line);
  border: 2px solid var(--pp-line);
}

.page-products .view-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 6px 14px;
  padding: 16px 18px;
  background: var(--pp-panel);
}

.page-products .view-idx {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}

.page-products .view-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

.page-products .view-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(244, 237, 226, 0.74);
}

/* ---------- 球队库尾部 ---------- */
.page-products .club-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.page-products .callout {
  margin: 0;
  padding: 15px 18px;
  border-left: 4px solid var(--teal);
  background: rgba(52, 179, 160, 0.1);
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(244, 237, 226, 0.86);
}

.page-products .callout-teal {
  margin-top: 20px;
}

.page-products .ring-panel {
  text-align: center;
}

.page-products .ring-map {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  margin: 0 auto;
}

.page-products .ring-cap {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gray);
}

/* ---------- 能力清单 ---------- */
.page-products .feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .feature-list li {
  padding: 13px 16px;
  border-left: 3px solid var(--orange);
  background: var(--pp-deep);
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(244, 237, 226, 0.78);
}

.page-products .feature-list strong {
  color: #fff;
  font-weight: 700;
}

/* ---------- 同步状态 ---------- */
.page-products .sync-legend {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 237, 226, 0.78);
}

.page-products .sync-legend li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: baseline;
  padding: 10px 14px;
  background: var(--pp-deep);
}

.page-products .sync-legend strong {
  color: #fff;
  font-weight: 700;
}

.page-products .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-1px);
}

.page-products .dot-ok {
  background: var(--teal);
}

.page-products .dot-run {
  background: var(--orange);
}

.page-products .dot-wait {
  background: var(--gray);
}

/* ---------- 折叠面板 ---------- */
.page-products .fold {
  margin-top: 20px;
  border: 2px solid var(--pp-line);
  background: var(--pp-deep);
}

.page-products .fold > summary {
  position: relative;
  padding: 14px 46px 14px 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gold);
  cursor: pointer;
  list-style: none;
}

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

.page-products .fold > summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--orange);
}

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

.page-products .fold-body {
  padding: 16px 16px 18px;
  border-top: 1px solid var(--pp-line);
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(244, 237, 226, 0.78);
}

.page-products .fold-body p {
  margin: 0 0 12px;
}

.page-products .fold-body p:last-child {
  margin-bottom: 0;
}

.page-products .fold-body a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 200, 87, 0.5);
}

.page-products .fold-body a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ---------- 帮助文档分类 ---------- */
.page-products .doc-cats {
  display: grid;
  gap: 2px;
  margin: 0;
  background: var(--pp-line);
  border: 2px solid var(--pp-line);
}

.page-products .doc-cat {
  padding: 14px 16px;
  background: var(--pp-panel);
}

.page-products .doc-cat dt {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--orange);
}

.page-products .doc-cat dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(244, 237, 226, 0.76);
}

/* ---------- 对照表 ---------- */
.page-products .matrix-wrap {
  overflow-x: auto;
  border: 2px solid var(--black);
  -webkit-overflow-scrolling: touch;
}

.page-products .matrix {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.page-products .matrix-cap {
  padding: 12px 14px;
  text-align: left;
  background: #0a1522;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.page-products .matrix th,
.page-products .matrix td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  border-bottom: 1px solid var(--pp-line);
}

.page-products .matrix thead th {
  background: var(--red-deep);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-products .matrix tbody tr {
  background: var(--pp-panel);
  transition: background 0.16s ease;
}

.page-products .matrix tbody tr:nth-child(even) {
  background: var(--pp-shell);
}

.page-products .matrix tbody tr:hover {
  background: rgba(240, 147, 43, 0.14);
}

.page-products .matrix tbody th {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.page-products .matrix tbody td {
  color: rgba(244, 237, 226, 0.78);
}

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

/* ---------- 版本时间线 ---------- */
.page-products .timeline {
  display: grid;
  gap: 2px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  background: var(--pp-line);
  border: 2px solid var(--pp-line);
}

.page-products .tl-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 16px 18px;
  background: var(--pp-panel);
}

.page-products .tl-year {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.page-products .tl-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.45;
  color: #fff;
}

.page-products .tl-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(244, 237, 226, 0.76);
}

.page-products .note-line {
  margin: 0;
  padding: 15px 18px;
  border-left: 4px solid var(--orange);
  background: var(--pp-deep);
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(244, 237, 226, 0.8);
}

.page-products .note-line a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 200, 87, 0.5);
}

.page-products .note-line a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ---------- 起用路径（暖纸卡） ---------- */
.page-products .module-card.is-paper {
  background: var(--paper);
  border-color: var(--black);
  border-left-color: var(--red);
  box-shadow: 6px 6px 0 var(--red-deep);
  color: var(--black);
}

.page-products .module-card.is-paper::after {
  background: var(--red);
}

.page-products .module-card.is-paper:hover {
  box-shadow: 10px 12px 0 var(--red-deep);
}

.page-products .module-card.is-paper .card-idx {
  background: var(--red);
  color: var(--paper);
}

.page-products .module-card.is-paper .card-title {
  color: var(--red-deep);
}

.page-products .module-card.is-paper .card-lede {
  color: #45403a;
}

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

.page-products .start-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  background: #fff;
  border: 2px solid var(--black);
  box-shadow: 4px 4px 0 var(--red-deep);
}

.page-products .start-tag {
  align-self: flex-start;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  background: var(--red);
  color: var(--paper);
}

.page-products .start-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.4;
  color: var(--black);
}

.page-products .start-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #474747;
}

.page-products .start-card a {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 2px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
}

.page-products .start-card a:hover {
  color: var(--red-deep);
  border-bottom-color: var(--red-deep);
}

.page-products .start-foot {
  margin: 22px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: #45403a;
}

.page-products .start-foot a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 29, 34, 0.45);
}

.page-products .start-foot a:hover {
  color: var(--red-deep);
  border-bottom-color: var(--red-deep);
}

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

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

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

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

  .page-products .view-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 18px;
  }

  .page-products .view-idx {
    grid-row: auto;
    font-size: 26px;
  }

  .page-products .club-foot {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 26px;
  }

  .page-products .tl-item {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  .page-products .tl-year {
    font-size: 24px;
  }

  .page-products .start-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .page-products .hero-grid {
    grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr);
    gap: clamp(34px, 5vw, 76px);
  }

  .page-products .feat-shell {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: clamp(30px, 3.6vw, 58px);
  }

  .page-products .module-rail {
    position: sticky;
    top: 20px;
  }

  .page-products .rail-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@media (max-width: 519px) {
  .page-products .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .stat-cell {
    padding: 15px 13px;
  }

  .page-products .card-head {
    gap: 8px 12px;
  }

  .page-products .module-card::after {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .module-card,
  .page-products .rail-link,
  .page-products .matrix tbody tr {
    transition: none;
  }

  .page-products .module-card:hover {
    transform: none;
  }
}
