.page-products {
  --pd-accent: var(--lime-400);
  --pd-gutter-x: clamp(18px, 3.4vw, 34px);
  --pd-panel: var(--ink-900);
  --pd-hairline: var(--ink-700);
  --pd-orange-ink: #A6400F;
  padding-bottom: clamp(40px, 8vw, 96px);
}

.page-products [id] {
  scroll-margin-top: 96px;
}

.page-products a:focus-visible,
.page-products summary:focus-visible {
  outline: 2px solid var(--lime-400);
  outline-offset: 2px;
}

.page-products .breadcrumbs {
  padding-top: clamp(18px, 3vw, 30px);
  font-size: 13px;
}

/* ---------- 首屏 ---------- */
.pd-hero {
  padding: clamp(16px, 3vw, 32px) 0 clamp(38px, 7vw, 84px);
}

.pd-hero__grid {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
}

.pd-hero__kicker {
  color: var(--lime-400);
  letter-spacing: 0.16em;
  margin: 0;
}

.pd-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 6.4vw, 54px);
  line-height: 1.16;
  letter-spacing: 0.01em;
  margin: 14px 0 0;
  color: var(--text-100);
}

.pd-hero__lede {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.8;
  color: var(--mist-300);
}

.pd-hero__points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pd-hero__points li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-100);
}

.pd-hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 13px;
  height: 2px;
  background: var(--lime-400);
}

.pd-hero__actions {
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-hero__plate {
  margin: 0;
  border: 1px solid var(--pd-hairline);
  box-shadow: 6px 6px 0 rgba(23, 64, 52, 0.6);
}

.pd-hero__plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- 章节头 ---------- */
.pd-head {
  margin-bottom: clamp(22px, 3.4vw, 34px);
}

.pd-head__num {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--pd-hairline);
  color: var(--lime-400);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.pd-head__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.28;
  margin: 14px 0 0;
  color: var(--text-100);
}

.pd-head__note {
  margin: 12px 0 0;
  max-width: 40em;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--mist-300);
}

.pd-head__note a {
  color: var(--lime-400);
  text-decoration: none;
  border-bottom: 1px dashed var(--lime-400);
}

/* ---------- 对照表 ---------- */
.pd-tablewrap {
  border: 1px solid var(--pd-hairline);
  background: var(--pd-panel);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pd-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.pd-table th,
.pd-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  line-height: 1.68;
  border-bottom: 1px solid var(--pd-hairline);
}

.pd-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ink-800);
  border-bottom: 1px solid var(--lime-400);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--lime-400);
}

.pd-table tbody th {
  font-family: var(--font-sans);
  font-weight: 600;
  white-space: nowrap;
}

.pd-table__name {
  color: var(--text-100);
}

.pd-table tbody tr:nth-child(even) {
  background: rgba(198, 255, 74, 0.045);
}

.pd-table td {
  color: var(--mist-300);
}

.pd-table td a {
  color: var(--lime-400);
  text-decoration: none;
  border-bottom: 1px dashed var(--lime-400);
  white-space: nowrap;
}

.pd-table__hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--mist-300);
}

/* ---------- 画板 ---------- */
.pd-board-section {
  margin-top: clamp(28px, 5vw, 54px);
}

.pd-board {
  border: 1px solid var(--pd-hairline);
  background: var(--pd-panel);
  box-shadow: 6px 6px 0 rgba(23, 64, 52, 0.55);
  overflow: hidden;
  --pd-accent: var(--lime-400);
}

.pd-board--orange {
  --pd-accent: var(--orange-500);
}

.pd-board__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: clamp(18px, 3vw, 28px) var(--pd-gutter-x);
  border-left: 6px solid var(--pd-accent);
  background: linear-gradient(180deg, rgba(198, 255, 74, 0.06), rgba(198, 255, 74, 0) 72%);
}

.pd-board--orange .pd-board__summary {
  background: linear-gradient(180deg, rgba(255, 122, 51, 0.08), rgba(255, 122, 51, 0) 72%);
}

.pd-board__summary::-webkit-details-marker {
  display: none;
}

.pd-board__summary::after {
  content: "＋";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--pd-accent);
}

.pd-board[open] .pd-board__summary::after {
  content: "－";
}

.pd-board__tag {
  grid-column: 1;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--pd-accent);
}

.pd-board__title {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(20px, 3.2vw, 28px);
  line-height: 1.32;
  color: var(--text-100);
}

.pd-board__body {
  display: grid;
  gap: clamp(22px, 3.4vw, 34px);
  padding: clamp(18px, 3vw, 30px) var(--pd-gutter-x) clamp(24px, 4vw, 38px);
  border-top: 1px solid var(--pd-hairline);
}

.pd-board__text p {
  margin: 0 0 14px;
  max-width: 36em;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--mist-300);
}

.pd-board__text p:last-child {
  margin-bottom: 0;
}

.pd-board__text strong {
  color: var(--text-100);
  font-weight: 600;
}

.pd-board__text a {
  color: var(--lime-400);
  text-decoration: none;
  border-bottom: 1px dashed var(--lime-400);
}

.pd-board__figure {
  margin: 0;
  border: 1px solid var(--pd-hairline);
  background: var(--ink-950);
}

.pd-board__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 看板模块 */
.pd-modules {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--pd-hairline);
  border: 1px solid var(--pd-hairline);
}

.pd-modules li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  background: var(--pd-panel);
  font-size: 14px;
}

.pd-modules__name {
  color: var(--text-100);
}

.pd-modules__val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
  color: var(--lime-400);
}

/* 三级结构 */
.pd-tier {
  list-style: none;
  counter-reset: tier;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.pd-tier > li {
  position: relative;
  padding: 18px 18px 20px 22px;
  background: var(--paper-50);
  border-left: 5px solid var(--lime-600);
  box-shadow: 6px 6px 0 rgba(23, 64, 52, 0.75);
}

.pd-tier > li:nth-child(2) {
  border-left-color: var(--orange-500);
  transform: translateX(6px);
}

.pd-tier > li:nth-child(3) {
  border-left-color: var(--ink-700);
  transform: translateX(12px);
}

.pd-tier__level {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lime-600);
}

.pd-tier > li:nth-child(2) .pd-tier__level {
  color: var(--pd-orange-ink);
}

.pd-tier > li:nth-child(3) .pd-tier__level {
  color: #3c5a4e;
}

.pd-tier__name {
  margin: 6px 0 8px;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.3;
  color: #08211a;
}

.pd-tier__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: #2b453c;
}

/* 登录方式 */
.pd-ways {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pd-ways li {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--pd-hairline);
  border-left: 4px solid var(--lime-400);
  background: var(--ink-950);
}

.pd-ways li:nth-child(2) {
  border-left-color: var(--orange-500);
}

.pd-ways__name {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text-100);
}

.pd-ways__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist-300);
}

/* 流程示意 */
.pd-flow {
  display: block;
  width: 100%;
  height: auto;
  margin: 22px 0;
}

.pd-flow__node {
  fill: var(--ink-800);
  stroke: var(--pd-hairline);
  stroke-width: 1.5;
}

.pd-flow__node--accent {
  stroke: var(--lime-400);
}

.pd-flow__node--warm {
  stroke: var(--orange-500);
}

.pd-flow__line {
  fill: none;
  stroke: var(--lime-400);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

.pd-flow__line--orange {
  stroke: var(--orange-500);
}

.pd-flow text {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--text-100);
}

/* 赛季档案导出 */
.pd-exports {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.pd-export {
  padding: 16px;
  border: 1px solid var(--pd-hairline);
  background: var(--ink-950);
}

.pd-export h3 {
  margin: 10px 0 6px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-100);
}

.pd-export p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist-300);
}

/* 角色起步 */
.pd-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.pd-role {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--pd-hairline);
  background: var(--ink-950);
}

.pd-role__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.4;
  color: var(--text-100);
}

.pd-role p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--mist-300);
}

.pd-role__step {
  padding-top: 10px;
  border-top: 1px dashed var(--pd-hairline);
  color: var(--text-100) !important;
  font-size: 13.5px !important;
}

.pd-role__step b {
  display: inline-block;
  margin-right: 8px;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  color: var(--lime-400);
}

.pd-role__step a {
  color: var(--lime-400);
  text-decoration: none;
  border-bottom: 1px dashed var(--lime-400);
}

.pd-watchlist {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
}

.pd-watchlist li {
  padding: 5px 12px;
  border: 1px solid var(--lime-400);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--lime-400);
}

/* ---------- 页尾 ---------- */
.pd-outro {
  margin-top: clamp(48px, 8vw, 108px);
}

.pd-outro__figure {
  margin: 0;
  border: 1px solid var(--pd-hairline);
}

.pd-outro__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.pd-outro__panel {
  position: relative;
  width: min(100%, 720px);
  margin: -38px auto 0;
  padding: clamp(20px, 3.4vw, 34px);
  background: var(--ink-800);
  border: 1px solid var(--pd-hairline);
  box-shadow: 6px 6px 0 rgba(23, 64, 52, 0.6);
}

.pd-outro__panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.32;
  color: var(--text-100);
}

.pd-outro__panel p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--mist-300);
}

.pd-outro__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

  .pd-roles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .pd-hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
  }

  .pd-board__body {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .pd-tier {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .pd-tier > li:nth-child(2) {
    transform: translateX(0) translateY(10px);
  }

  .pd-tier > li:nth-child(3) {
    transform: translateX(0) translateY(20px);
  }
}

@media (min-width: 1000px) {
  .pd-board-section--shift .pd-board {
    margin-left: clamp(16px, 5vw, 64px);
  }

  .pd-board-section--shift .pd-board__body {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .pd-outro__figure img {
    aspect-ratio: 8 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products * {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
