.page-products {
  --prod-gap: clamp(56px, 7.5vw, 100px);
  --prod-pad: clamp(20px, 3.2vw, 42px);
  padding-block: clamp(22px, 3.5vw, 44px) clamp(60px, 8vw, 104px);
}

/* ---------- 页头 ---------- */
.page-products .prod-head {
  padding-bottom: 6px;
}

.page-products .prod-head__note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

/* ---------- 锚点胶囊条 ---------- */
.page-products .prod-anchors {
  position: sticky;
  top: var(--topbar-h);
  z-index: 6;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 26px 0 var(--prod-gap);
  padding: 12px 2px 16px;
  background: linear-gradient(180deg, var(--ink-950) 0%, var(--ink-950) 76%, transparent 100%);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.page-products .prod-anchors .chip {
  flex: 0 0 auto;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .page-products .prod-anchors {
    top: 0;
    padding-top: 16px;
  }
}

/* ---------- 战术面板 ---------- */
.page-products .prod-panel {
  --accent: var(--green);
  --accent-rgb: 61, 255, 136;
  position: relative;
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  margin-bottom: var(--prod-gap);
  padding: var(--prod-pad);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--ink-900);
  overflow: hidden;
  scroll-margin-top: calc(var(--topbar-h) + 88px);
  transition: border-color 200ms ease;
}

.page-products .prod-panel--blue {
  --accent: var(--blue);
  --accent-rgb: 77, 163, 255;
}

.page-products .prod-panel--gold {
  --accent: var(--gold);
  --accent-rgb: 245, 197, 66;
}

.page-products .prod-panel--red {
  --accent: var(--red);
  --accent-rgb: 255, 59, 78;
}

.page-products .prod-panel--mist {
  --accent: var(--mist);
  --accent-rgb: 154, 167, 176;
}

.page-products .prod-panel::before {
  content: "";
  position: absolute;
  top: -110px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.15), transparent 72%);
  pointer-events: none;
}

.page-products .prod-panel::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 92px;
  height: 92px;
  background: linear-gradient(225deg, rgba(var(--accent-rgb), 0.12), transparent 70%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
}

.page-products .prod-panel:target {
  border-color: rgba(var(--accent-rgb), 0.55);
}

@media (min-width: 900px) {
  .page-products .prod-panel {
    padding: clamp(32px, 3.6vw, 52px);
  }
}

/* ---------- 面板头 ---------- */
.page-products .prod-panel__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.page-products .prod-panel__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 84px;
  height: 2px;
  background: var(--accent);
  transform: skewX(calc(var(--cut) * -3));
  transform-origin: left center;
}

.page-products .prod-panel__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---------- 交错双栏 ---------- */
.page-products .prod-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

@media (min-width: 900px) {
  .page-products .prod-split {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .page-products .prod-split--flip {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  }
}

/* ---------- 正文 ---------- */
.page-products .prod-copy {
  display: grid;
  gap: 16px;
}

.page-products .prod-copy p {
  margin: 0;
  max-width: 62ch;
  color: var(--mist);
  font-size: 1rem;
  line-height: 1.75;
}

.page-products .prod-copy a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 255, 136, 0.4);
}

.page-products .prod-copy a:hover,
.page-products .prod-copy a:focus-visible {
  border-bottom-color: var(--green);
}

.page-products .prod-sub {
  margin: 4px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .prod-callout {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-left-width: 3px;
  border-radius: var(--r-md);
  background: var(--ink-800);
  color: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.page-products .prod-foot {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.page-products .prod-foot a {
  color: var(--green);
  text-decoration: none;
}

.page-products .prod-foot a:hover,
.page-products .prod-foot a:focus-visible {
  text-decoration: underline;
}

/* ---------- 要点列表 ---------- */
.page-products .prod-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .prod-list li {
  position: relative;
  padding-left: 24px;
  color: var(--mist);
  font-size: 0.9375rem;
  line-height: 1.72;
}

.page-products .prod-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.page-products .prod-list strong {
  color: var(--paper);
  font-weight: 600;
}

/* ---------- 指标条 ---------- */
.page-products .prod-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--line);
  overflow: hidden;
}

.page-products .prod-metrics > div {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  background: var(--ink-800);
}

.page-products .prod-metrics__k {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.page-products .prod-metrics__v {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-align: left;
}

/* ---------- 对照表 ---------- */
.page-products .prod-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-800);
  -webkit-overflow-scrolling: touch;
}

.page-products .prod-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.page-products .prod-table caption {
  caption-side: top;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
}

.page-products .prod-table th,
.page-products .prod-table td {
  padding: 15px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.page-products .prod-table thead th {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mist);
  background: var(--ink-900);
}

.page-products .prod-table thead th:nth-child(2) {
  color: var(--blue);
}

.page-products .prod-table thead th:nth-child(3) {
  color: var(--gold);
}

.page-products .prod-table tbody th {
  color: var(--paper);
  font-weight: 600;
  white-space: nowrap;
}

.page-products .prod-table tbody td {
  color: var(--mist);
  line-height: 1.65;
}

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

@media (hover: hover) {
  .page-products .prod-table tbody tr:hover {
    background: rgba(61, 255, 136, 0.045);
  }
}

/* ---------- 图形区 ---------- */
.page-products .prod-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-800);
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

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

.page-products .prod-figure figcaption {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--faint);
}

.page-products .prod-figure--phone {
  max-width: 280px;
  margin-inline: auto;
}

.page-products .prod-figure--phone img {
  aspect-ratio: 1080 / 1920;
  object-fit: cover;
}

.page-products .prod-figure--chart img {
  aspect-ratio: 1200 / 675;
}

.page-products .prod-figure--card img {
  aspect-ratio: 1000 / 750;
}

.page-products .prod-figure--wide img {
  aspect-ratio: 1200 / 600;
}

@media (hover: hover) {
  .page-products .prod-figure:hover {
    border-color: rgba(var(--accent-rgb), 0.55);
    transform: translateY(-2px);
  }
}

@media (min-width: 900px) {
  .page-products .prod-figure--phone {
    margin-inline: 0;
    max-width: 300px;
  }
}

/* ---------- 版本演进 ---------- */
.page-products .prod-versions {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .prod-ver details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-800);
  transition: border-color 180ms ease;
}

.page-products .prod-ver details[open] {
  border-color: rgba(var(--accent-rgb), 0.55);
}

.page-products .prod-ver details[open] summary {
  border-bottom: 1px solid var(--line);
}

.page-products .prod-ver__sum {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.page-products .prod-ver__sum::-webkit-details-marker {
  display: none;
}

.page-products .prod-ver__mark {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  flex: 0 0 auto;
}

.page-products .prod-ver__mark::before,
.page-products .prod-ver__mark::after {
  content: "";
  position: absolute;
  background: var(--mist);
  transition: transform 180ms ease, opacity 180ms ease;
}

.page-products .prod-ver__mark::before {
  left: 5px;
  right: 5px;
  top: 10px;
  height: 1.5px;
}

.page-products .prod-ver__mark::after {
  top: 5px;
  bottom: 5px;
  left: 10px;
  width: 1.5px;
}

.page-products .prod-ver details[open] .prod-ver__mark::after {
  transform: scaleY(0);
  opacity: 0;
}

.page-products .prod-ver details[open] .prod-ver__mark {
  border-color: rgba(var(--accent-rgb), 0.6);
}

.page-products .prod-ver__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.page-products .prod-ver__tag {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.page-products .prod-ver__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--paper);
}

.page-products .prod-ver__hint {
  display: none;
  font-size: 0.8125rem;
  color: var(--faint);
  text-align: right;
}

.page-products .prod-ver__body {
  padding: 16px 18px 20px;
}

.page-products .prod-ver__body p {
  margin: 0;
  max-width: 66ch;
  color: var(--mist);
  font-size: 0.9375rem;
  line-height: 1.75;
}

@media (min-width: 700px) {
  .page-products .prod-ver__sum {
    grid-template-columns: auto 1fr auto;
    padding: 17px 22px;
  }

  .page-products .prod-ver__hint {
    display: block;
  }

  .page-products .prod-ver__body {
    padding: 18px 22px 22px;
  }
}

/* ---------- 收束区 ---------- */
.page-products .prod-close {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(560px 260px at 88% 110%, rgba(61, 255, 136, 0.14), transparent 70%),
    var(--ink-900);
}

.page-products .prod-close__text {
  display: grid;
  gap: 14px;
}

.page-products .prod-close__text p {
  margin: 0;
  max-width: 64ch;
  color: var(--mist);
  font-size: 1rem;
  line-height: 1.75;
}

.page-products .prod-close__text a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 255, 136, 0.4);
}

.page-products .prod-close__text a:hover,
.page-products .prod-close__text a:focus-visible {
  border-bottom-color: var(--green);
}

.page-products .prod-close .btn {
  justify-self: start;
  text-decoration: none;
}

@media (min-width: 820px) {
  .page-products .prod-close {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;
  }
}

/* ---------- 焦点反馈 ---------- */
.page-products a:focus-visible,
.page-products summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-products .prod-figure,
  .page-products .prod-ver details,
  .page-products .prod-ver__mark::before,
  .page-products .prod-ver__mark::after,
  .page-products .prod-panel {
    transition: none;
  }
}
</main>
