.page-products {
  background: var(--bg-paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-products .container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-products section[id],
.page-products .year-group,
.page-products .category-card {
  scroll-margin-top: 72px;
}

/* ==================== Hero 区 ==================== */

.page-products .products-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 28px 0 44px;
  overflow: hidden;
}

.page-products .products-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.page-products .products-hero::after {
  content: "VER // 2018—2025";
  position: absolute;
  right: 20px;
  bottom: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.page-products .breadcrumb {
  margin-bottom: 22px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-products .breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-products .breadcrumb a:hover {
  color: var(--teal);
}

.page-products .hero-copy h1 {
  font-family: var(--font-headings);
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 8px 0 16px;
  max-width: 720px;
}

.page-products .hero-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0;
}

.page-products .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
  max-width: 440px;
}

.page-products .stat-item {
  background: rgba(214, 228, 240, 0.12);
  border: 1px solid rgba(214, 228, 240, 0.18);
  border-radius: 10px;
  padding: 14px 12px;
}

.page-products .stat-num {
  display: block;
  font-family: var(--font-headings);
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--orange);
}

.page-products .stat-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}

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

.page-products .products-hero .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-products .products-hero .btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.page-products .products-hero .coordinate-label {
  color: rgba(255, 255, 255, 0.55);
}

/* ==================== 区块标题 ==================== */

.page-products .section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0 24px;
}

.page-products .section-index {
  font-family: var(--font-headings);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 6px;
  padding: 4px 10px;
  white-space: nowrap;
}

.page-products .section-heading h2 {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.page-products .section-line {
  flex: 1;
  height: 1px;
  background: var(--gray-line);
  min-width: 32px;
}

/* ==================== 01 当前推荐版本 ==================== */

.page-products .recommend-layout {
  display: grid;
  gap: 28px;
}

.page-products .phone-shot {
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
  background: var(--light-blue);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow-hover);
}

.page-products .phone-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.page-products .recommend-content {
  display: grid;
  gap: 20px;
  align-content: start;
}

.page-products .recommend-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(184, 178, 166, 0.4);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-products .recommend-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-hover);
}

.page-products .recommend-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  background: var(--teal);
  border-radius: 0 4px 4px 0;
}

.page-products .recommend-card.beta-card::before {
  background: var(--orange);
}

.page-products .version-tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.page-products .recommend-card h3 {
  font-family: var(--font-headings);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
}

.page-products .recommend-card p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #444;
  margin: 0 0 18px;
}

.page-products .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .text-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px dashed var(--teal);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-products .text-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ==================== 02 版本日志 ==================== */

.page-products .timeline-strip {
  background: var(--white);
  border: 1px solid rgba(184, 178, 166, 0.4);
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}

.page-products .timeline-strip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.page-products .log-layout {
  display: grid;
  gap: 24px;
}

.page-products .log-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-products .filter-panel {
  background: var(--white);
  border: 1px solid rgba(184, 178, 166, 0.4);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.page-products .filter-panel h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--gray-line);
}

.page-products .year-filter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.page-products .year-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--light-blue);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-products .year-btn:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.page-products .category-filter {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.page-products .category-filter a {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--ink);
  background: rgba(214, 228, 240, 0.35);
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-products .category-filter a:hover {
  border-left-color: var(--teal);
  background: var(--light-blue);
}

.page-products .sidebar-note {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #555;
  background: rgba(230, 126, 34, 0.08);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
}

.page-products .log-list {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.page-products .log-list-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dashed var(--gray-line);
  padding-bottom: 8px;
}

.page-products .log-list-count {
  font-size: 0.8125rem;
  color: #666;
}

.page-products .year-group {
  border-top: 2px solid var(--navy);
  padding-top: 14px;
  transition: border-color 0.2s ease;
}

.page-products .year-group:target {
  border-top-color: var(--orange);
}

.page-products .year-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.page-products .year-num {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.page-products .year-divider {
  flex: 0 0 48px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--gray-line) 0,
    var(--gray-line) 6px,
    transparent 6px,
    transparent 10px
  );
}

.page-products .year-count {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #666;
}

.page-products .log-entry {
  background: var(--white);
  border: 1px solid rgba(184, 178, 166, 0.4);
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-products .log-entry:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-hover);
}

.page-products .log-entry summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

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

.page-products .log-entry summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  transition: transform 0.2s ease;
}

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

.page-products .entry-version {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.page-products .entry-meta {
  font-size: 0.8125rem;
  color: #777;
}

.page-products .entry-summary {
  flex: 1;
  min-width: 200px;
  font-size: 0.875rem;
  color: #555;
}

.page-products .entry-detail {
  border-top: 1px dashed var(--gray-line);
  margin: 0 18px;
  padding: 14px 0 18px;
}

.page-products .entry-detail ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.page-products .entry-detail li {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 4px;
}

.page-products .entry-foot {
  font-size: 0.8125rem;
  color: #777;
  margin: 0;
}

.page-products .version-compare {
  margin-top: 4px;
  background: var(--light-blue);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-card);
}

.page-products .version-compare img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ==================== 03 版本分类说明 ==================== */

.page-products .categories-section {
  background: rgba(214, 228, 240, 0.45);
  padding: 4px 0 36px;
  margin-top: 40px;
  border-top: 1px solid rgba(184, 178, 166, 0.4);
  border-bottom: 1px solid rgba(184, 178, 166, 0.4);
}

.page-products .category-layout {
  display: grid;
  gap: 24px;
}

.page-products .category-visual {
  background: var(--white);
  border: 1px solid rgba(184, 178, 166, 0.4);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-card);
}

.page-products .category-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

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

.page-products .category-card {
  background: var(--white);
  border: 1px solid rgba(184, 178, 166, 0.4);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-products .category-card:hover {
  box-shadow: var(--shadow-hover);
}

.page-products .category-card.category-beta {
  border-left-color: var(--orange);
}

.page-products .category-card.category-history {
  border-left-color: var(--navy);
}

.page-products .category-card.category-hmt {
  border-left-color: var(--dark-navy);
}

.page-products .category-card h3 {
  font-family: var(--font-headings);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.page-products .category-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #555;
  margin: 0 0 12px;
}

.page-products .category-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--navy);
  background: var(--light-blue);
  border-radius: 20px;
  padding: 4px 12px;
}

/* ==================== 04 下载方式 ==================== */

.page-products .download-section {
  position: relative;
  background: var(--navy);
  color: var(--white);
  margin-top: 40px;
  padding: 4px 0 44px;
  overflow: hidden;
}

.page-products .download-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.page-products .download-section .section-heading h2 {
  color: var(--white);
}

.page-products .download-section .section-index {
  color: var(--orange);
  border-color: var(--orange);
}

.page-products .download-section .section-line {
  background: rgba(255, 255, 255, 0.3);
}

.page-products .download-section .coordinate-label {
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 16px;
}

.page-products .download-layout {
  display: grid;
  gap: 24px;
}

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

.page-products .step-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.page-products .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-headings);
  font-size: 0.875rem;
  font-weight: 700;
}

.page-products .step-list h3 {
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 2px 0 4px;
}

.page-products .step-list p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.page-products .step-list a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .step-list a:hover {
  color: var(--orange);
}

.page-products .download-note {
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(214, 228, 240, 0.1);
  padding: 16px 18px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.page-products .download-note a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .download-note a:hover {
  color: var(--orange);
}

.page-products .download-image {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 10px;
}

.page-products .download-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ==================== 回顶按钮 ==================== */

.page-products .back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.125rem;
  text-decoration: none;
  box-shadow: var(--shadow-hover);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.page-products .back-to-top:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: var(--orange);
}

/* ==================== 平板与桌面断点 ==================== */

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

  .page-products .hero-copy h1 {
    font-size: 2.5rem;
  }

  .page-products .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
  }

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

@media (min-width: 992px) {
  .page-products .recommend-layout {
    grid-template-columns: 360px 1fr;
    gap: 48px;
    align-items: start;
  }

  .page-products .log-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

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

  .page-products .category-layout {
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .page-products .download-layout {
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 48px;
    align-items: center;
  }
}
