.page-products {
  --feature-grid-gap: 24px;
  background-color: var(--c-bg);
  color: var(--c-ink);
  overflow-x: hidden;
}

.page-products img {
  max-width: 100%;
  height: auto;
}

.page-products-section {
  padding: 56px 0;
}

.page-products-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-subtle);
  max-width: 640px;
}

.page-products h2 {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--c-primary);
  font-weight: 900;
}

.page-products h3 {
  font-size: 18px;
  line-height: 1.4;
  color: var(--c-primary);
}

.page-products a {
  color: inherit;
}

/* ===== Hero ===== */
.page-products-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 36px) 0 24px;
  background: linear-gradient(132deg, var(--c-primary-deep) 0%, var(--c-primary) 58%, var(--c-primary-light) 100%);
  color: #fff;
}

.page-products-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -10%;
  width: 72%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, var(--c-primary-light) 0%, transparent 82%);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-products-hero::after {
  content: "";
  position: absolute;
  right: 14%;
  top: 68%;
  width: 96px;
  height: 4px;
  background: var(--c-accent);
  transform: rotate(-18deg);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.55);
  pointer-events: none;
}

.page-products-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 32px;
}

.page-products-hero-copy h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 14px 0 16px;
  color: #fff;
  font-weight: 900;
}

.page-products-hero-desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin: 0;
}

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

.page-products-hero-side {
  position: relative;
  z-index: 2;
}

.page-products-hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-l);
  padding: 24px;
  box-shadow: var(--shadow-m);
  backdrop-filter: blur(4px);
  max-width: 400px;
}

.page-products-hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--c-warm);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-s);
}

.page-products-hero-version {
  font-family: var(--font-mono);
  font-size: 40px;
  line-height: 1.15;
  color: var(--c-accent);
  margin: 14px 0 10px;
  font-weight: 700;
}

.page-products-hero-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-products-hero-card li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.page-products-hero-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.page-products-hero-ticker {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 48px;
  overflow: hidden;
  white-space: nowrap;
}

.page-products-ticker-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

/* ===== Download ===== */
.page-products-download {
  background: #fff;
}

.page-products-download-grid {
  display: grid;
  gap: var(--feature-grid-gap);
  align-items: center;
}

.page-products-download-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.page-products-download-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--c-line);
  font-size: 15px;
  line-height: 1.6;
}

.page-products-download-list li:last-child {
  border-bottom: 1px solid var(--c-line);
}

.page-products-download-list span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  flex-shrink: 0;
}

.page-products-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.page-products-download-visual {
  display: flex;
  justify-content: center;
}

.page-products-app-figure {
  margin: 0;
  padding: 0;
}

.page-products-app-img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: calc(var(--radius-l) + 6px);
  box-shadow: var(--shadow-m);
  object-fit: cover;
  margin: 0 auto;
}

.page-products-download-visual figcaption {
  margin: 12px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
}

/* ===== Fee ===== */
.page-products-fee {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}

.page-products-fee-visual {
  margin: 28px 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-s);
  max-height: 320px;
}

.page-products-fee-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-products-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  background: #fff;
  border: 1px solid var(--c-line);
}

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

.page-products-table th {
  background: var(--c-primary);
  color: #fff;
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.page-products-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--c-line);
  line-height: 1.6;
}

.page-products-table tbody tr:last-child td {
  border-bottom: none;
}

.page-products-table tbody tr:nth-child(even) {
  background: var(--c-green-tint);
}

.page-products-table tbody tr:hover {
  background: var(--c-orange-tint);
}

.page-products-table td:first-child {
  color: var(--c-primary);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--c-accent);
}

/* ===== Ranking ===== */
.page-products-ranking {
  background: var(--c-primary);
  color: #fff;
}

.page-products-ranking-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-products-ranking h2,
.page-products-changelog h2 {
  color: #fff;
}

.page-products-ranking .page-products-lead,
.page-products-changelog .page-products-lead {
  color: rgba(255, 255, 255, 0.82);
}

.page-products-ranking p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.page-products-ranking-copy p + p {
  margin-top: 16px;
}

.page-products-ranking-panel {
  display: grid;
  gap: 18px;
}

.page-products-ranking-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.page-products-ranking-row span {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 13px;
}

.page-products-ranking-row strong {
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ===== Browser ===== */
.page-products-browser {
  background: #fff;
}

.page-products-browser-grid {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 32px;
}

.page-products-browser-visual {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-m);
  max-height: 420px;
}

.page-products-browser-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-products-browser-list ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.page-products-browser-list li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-top: 1px solid var(--c-line);
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-subtle);
}

.page-products-browser-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 10px;
  height: 2px;
  background: var(--c-accent);
}

.page-products-browser-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--c-green-tint);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius-s);
}

.page-products-browser-tagline p {
  margin: 0;
  color: var(--c-primary);
  font-weight: 600;
}

.page-products-tagline-mark {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: var(--c-accent);
  transform: rotate(45deg);
}

/* ===== System ===== */
.page-products-system {
  background: var(--c-bg);
}

.page-products-system-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.page-products-system-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-primary);
  border-radius: var(--radius-m);
  padding: 20px 18px;
  box-shadow: var(--shadow-s);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-products-system-card:hover {
  border-top-color: var(--c-accent);
  box-shadow: var(--shadow-m);
  transform: translateY(-3px);
}

.page-products-system-card h3 {
  margin: 0 0 8px;
  color: var(--c-primary);
  font-size: 18px;
}

.page-products-system-card p {
  margin: 0;
  font-size: 14px;
  color: var(--c-subtle);
  line-height: 1.6;
}

.page-products-system-supports {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
}

.page-products-system-supports img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  border-radius: var(--radius-l);
}

.page-products-system-support-copy h3 {
  margin: 0 0 10px;
}

.page-products-system-support-copy p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-subtle);
}

.page-products-system-support-copy a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products-system-support-copy a:hover {
  color: var(--c-warm);
}

/* ===== Changelog ===== */
.page-products-changelog {
  background: var(--c-primary-deep);
  color: #fff;
}

.page-products-changelog-grid {
  display: grid;
  gap: 36px;
}

.page-products-changelog p {
  color: rgba(255, 255, 255, 0.78);
}

.page-products-changelog-side img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-m);
}

.page-products-timeline {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.page-products-timeline > li {
  position: relative;
  padding: 0 0 24px 28px;
}

.page-products-timeline > li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 3px solid var(--c-primary-deep);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.page-products-version-item {
  color: rgba(255, 255, 255, 0.82);
}

.page-products-version-item summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #fff;
  list-style: none;
  padding: 6px 0;
  user-select: none;
}

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

.page-products-version-item summary::after {
  content: "+";
  float: right;
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-left: 12px;
}

.page-products-version-item[open] summary {
  color: var(--c-accent);
}

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

.page-products-version-item ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.page-products-version-item ul li {
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.7;
}

.page-products-changelog-note {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.04);
}

.page-products-changelog-note h3 {
  margin: 0 0 8px;
  color: var(--c-accent);
  font-size: 16px;
}

.page-products-changelog-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Connect ===== */
.page-products-connect {
  background: #fff;
}

.page-products-connect-grid {
  display: grid;
  gap: 18px;
}

.page-products-connect-item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 24px;
  box-shadow: var(--shadow-s);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-products-connect-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
}

.page-products-connect-item h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  color: var(--c-primary);
}

.page-products-connect-item p:last-child {
  margin: 0;
  color: var(--c-subtle);
  line-height: 1.7;
}

.page-products-connect-item a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products-connect-item a:hover {
  color: var(--c-warm);
}

/* ===== 平板及以上 ===== */
@media (min-width: 480px) {
  .page-products-download-list li {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

@media (min-width: 768px) {
  .page-products-section {
    padding: 80px 0;
  }

  .page-products-hero {
    padding-bottom: 32px;
  }

  .page-products-hero-copy h1 {
    font-size: 44px;
  }

  .page-products-connect-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .page-products-connect-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .page-products-system-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-products-system-supports {
    grid-template-columns: 220px 1fr;
  }
}

@media (min-width: 960px) {
  .page-products-section {
    padding: 104px 0;
  }

  .page-products-hero-grid {
    grid-template-columns: 1fr 320px;
    align-items: center;
    gap: 48px;
  }

  .page-products-download-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .page-products-ranking-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 48px;
  }

  .page-products-browser-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }

  .page-products-changelog-grid {
    grid-template-columns: 1fr 320px;
    align-items: start;
    gap: 48px;
  }

  .page-products-changelog-side {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
