.page-products {
  --pp-gap: clamp(18px, 2.2vw, 30px);
  --pp-pad: clamp(18px, 2.6vw, 28px);
  background: var(--ink);
  color: var(--mist);
  overflow-x: clip;
}

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

.page-products p {
  line-height: 1.78;
}

/* ---------- 首屏框景 ---------- */
.page-products .plans-hero {
  padding: clamp(24px, 4.5vw, 52px) 0 clamp(18px, 3vw, 34px);
}

.page-products .hero-grid {
  display: grid;
  gap: var(--pp-gap);
  margin-top: 22px;
}

.page-products .hero-frame {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4.6vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(43, 240, 181, .13), transparent 58%),
    linear-gradient(180deg, rgba(14, 23, 48, .92), rgba(5, 7, 13, .72));
}

.page-products .hero-frame::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px dashed rgba(42, 53, 80, .85);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.page-products .hero-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: repeating-linear-gradient(90deg, var(--mint) 0 1px, transparent 1px 15px);
  opacity: .38;
}

.page-products .hero-frame > * {
  position: relative;
  z-index: 1;
}

.page-products h1,
.page-products .section-title {
  font-family: var(--font-headline);
  font-weight: 600;
  color: var(--silver);
  letter-spacing: .01em;
}

.page-products h1 {
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.18;
  margin: 12px 0 18px;
}

.page-products .section-title {
  font-size: clamp(25px, 3.5vw, 40px);
  line-height: 1.2;
  margin: 10px 0 14px;
}

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

.page-products .hero-index {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(23, 36, 74, .72), rgba(14, 23, 48, .48));
}

.page-products .hero-index-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--amber);
}

.page-products .hero-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-products .hero-index-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  color: var(--mist);
  font-size: .94rem;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.page-products .hero-index-list a:hover,
.page-products .hero-index-list a:focus-visible {
  background: rgba(43, 240, 181, .1);
  color: var(--silver);
}

.page-products .hero-index-list .mono {
  color: var(--mint-press);
  font-size: .78rem;
}

/* ---------- 方案卡片矩阵 ---------- */
.page-products .plan-matrix .section-head {
  max-width: 64ch;
}

.page-products .plan-cards {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
}

.page-products .plan-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--pp-pad);
  border-radius: var(--radius-lg);
}

.page-products .plan-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  border: 1px solid rgba(43, 240, 181, .3);
  background: rgba(43, 240, 181, .1);
  color: var(--mint);
}

.page-products .plan-icon svg {
  width: 22px;
  height: 22px;
}

.page-products .plan-card-title {
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--silver);
}

.page-products .plan-card-text {
  margin: 0;
  font-size: .91rem;
  line-height: 1.72;
}

.page-products .plan-link {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}

.page-products .plan-link:hover,
.page-products .plan-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 临时入口 ---------- */
.page-products .split {
  display: grid;
  gap: var(--pp-gap);
}

.page-products .split-main > p {
  margin: 0 0 14px;
  font-size: .97rem;
}

.page-products .split-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-products .step-track {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-products .step-track li {
  position: relative;
  padding-left: 62px;
}

.page-products .step-track li::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: -18px;
  width: 1px;
  background: linear-gradient(180deg, var(--line), transparent);
}

.page-products .step-track li:last-child::before {
  display: none;
}

.page-products .step-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--indigo);
  color: var(--mint);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.page-products .step-track h3 {
  margin: 5px 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--silver);
}

.page-products .step-track p {
  margin: 0;
  font-size: .91rem;
  line-height: 1.72;
}

/* ---------- 同屏视图 ---------- */
.page-products .entry-screen {
  background: linear-gradient(180deg, var(--indigo-deep), var(--ink));
}

.page-products .screen-grid {
  display: grid;
  gap: var(--pp-gap);
  margin-top: 26px;
}

.page-products .screen-copy > p {
  margin: 0 0 14px;
  font-size: .96rem;
}

.page-products .fold {
  margin-top: 12px;
  padding: 4px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(5, 7, 13, .5);
  transition: border-color .2s var(--ease);
}

.page-products .fold[open] {
  border-color: rgba(43, 240, 181, .42);
}

.page-products .fold summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--silver);
}

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

.page-products .fold summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--mint);
}

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

.page-products .fold p {
  margin: 0 0 16px;
  font-size: .91rem;
  line-height: 1.76;
}

/* ---------- 下载新版 ---------- */
.page-products .download-grid {
  display: grid;
  gap: var(--pp-gap);
  margin-top: 26px;
}

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

.page-products .group-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(23, 36, 74, .42);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.page-products .group-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 240, 181, .45);
}

.page-products .group-list .mono {
  padding-top: 3px;
  color: var(--amber);
  font-size: .8rem;
}

.page-products .group-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: .97rem;
  color: var(--silver);
}

.page-products .group-list p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.7;
}

/* ---------- 收藏整理 ---------- */
.page-products .entry-fav {
  background: linear-gradient(180deg, var(--ink), var(--indigo-deep) 60%, var(--ink));
}

.page-products .fav-grid {
  display: grid;
  gap: var(--pp-gap);
}

.page-products .fav-copy > p {
  margin: 0 0 12px;
  font-size: .96rem;
}

.page-products .fav-meter {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin: 16px 0 6px;
  padding: 14px 24px;
  border: 1px solid rgba(43, 240, 181, .35);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(43, 240, 181, .13), rgba(23, 36, 74, .22));
}

.page-products .fav-meter .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 8vw, 72px);
  line-height: .9;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}

.page-products .fav-meter-label {
  font-size: .9rem;
  color: var(--mist);
}

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

.page-products .fav-rules li {
  position: relative;
  padding-left: 20px;
  font-size: .92rem;
  line-height: 1.72;
}

.page-products .fav-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-press);
}

/* ---------- 对照表 ---------- */
.page-products .scenario .section-head {
  max-width: 60ch;
}

.page-products .table-scroll {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(14, 23, 48, .55);
  -webkit-overflow-scrolling: touch;
}

.page-products .plan-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.page-products .plan-table-caption {
  padding: 14px 18px 0;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--mist);
}

.page-products .plan-table th,
.page-products .plan-table td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}

.page-products .plan-table thead th {
  font-family: var(--font-mono);
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--amber);
  background: rgba(5, 7, 13, .62);
  white-space: nowrap;
}

.page-products .plan-table tbody th {
  font-weight: 700;
  color: var(--silver);
}

.page-products .plan-table tbody tr {
  transition: background .18s var(--ease);
}

.page-products .plan-table tbody tr:hover td,
.page-products .plan-table tbody tr:hover th {
  background: rgba(43, 240, 181, .07);
}

.page-products .plan-table tbody tr:hover th {
  box-shadow: inset 3px 0 0 var(--mint);
}

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

.page-products .plan-table .mono {
  color: var(--mint);
  white-space: nowrap;
}

/* ---------- 手机端 ---------- */
.page-products .mobile-panel {
  display: grid;
  gap: var(--pp-gap);
}

.page-products .mobile-copy > p {
  margin: 0 0 12px;
  font-size: .96rem;
}

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

.page-products .mobile-points li {
  display: grid;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.page-products .mobile-points strong {
  font-size: .95rem;
  color: var(--silver);
}

.page-products .mobile-points span {
  font-size: .9rem;
  line-height: 1.72;
}

/* ---------- 收尾 ---------- */
.page-products .cta-bar {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(43, 240, 181, .15), transparent 56%),
    linear-gradient(135deg, rgba(14, 23, 48, .92), rgba(5, 7, 13, .92));
}

.page-products .cta-bar h2 {
  margin: 0 0 12px;
  font-family: var(--font-headline);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--silver);
}

.page-products .cta-bar p {
  max-width: 62ch;
  margin: 0 0 22px;
  font-size: .96rem;
}

.page-products .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 图片容器兜底 ---------- */
.page-products .media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

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

@media (min-width: 900px) {
  .page-products .split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
    align-items: start;
  }

  .page-products .screen-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .page-products .download-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: start;
  }

  .page-products .fav-grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: center;
  }

  .page-products .mobile-panel {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
  }
}

@media (min-width: 1000px) {
  .page-products .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr);
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .page-products .plan-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 519px) {
  .page-products .hero-frame {
    padding: 24px 20px 28px;
  }

  .page-products .hero-frame::before {
    inset: 8px;
  }

  .page-products .plan-table th,
  .page-products .plan-table td {
    padding: 13px 14px;
  }
}
