.page-products {
  --products-gutter: clamp(1.25rem, 3vw, 2.5rem);
  --products-sidebar: 230px;
  --products-section-pad: clamp(1.25rem, 3vw, 2.25rem);
  background-color: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ---------- 面包屑 ---------- */
.page-products .products-breadcrumb {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1rem var(--products-gutter) 0;
}
.page-products .products-breadcrumb .breadcrumb {
  font-size: 0.85rem;
  color: var(--stone);
}
.page-products .products-breadcrumb .breadcrumb a {
  color: var(--red);
  text-decoration: none;
}
.page-products .products-breadcrumb .breadcrumb a:hover,
.page-products .products-breadcrumb .breadcrumb a:focus-visible {
  text-decoration: underline;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.page-products .products-breadcrumb .breadcrumb-sep {
  margin: 0 0.4rem;
  color: var(--stone);
}

/* ---------- Hero 首屏 ---------- */
.page-products .products-hero {
  position: relative;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(195, 39, 43, 0.88) 58% 66%, transparent 66% 100%),
    repeating-linear-gradient(135deg, rgba(201, 160, 99, 0.18) 0 1px, transparent 1px 22px),
    var(--ink);
  color: var(--cream);
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
}
.page-products .products-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--products-gutter);
}
.page-products .products-hero-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  border: 1px solid rgba(201, 160, 99, 0.55);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.2rem;
}
.page-products .products-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.18;
  margin: 0 0 1.2rem;
  max-width: 60ch;
}
.page-products .products-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(245, 241, 232, 0.9);
  max-width: 70ch;
  margin: 0 0 1.8rem;
}
.page-products .products-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.page-products .hero-cta,
.page-products .hero-cta-ghost {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.page-products .hero-cta {
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 3px 0 rgba(139, 139, 122, 0.35);
}
.page-products .hero-cta:hover,
.page-products .hero-cta:focus-visible {
  background: #a41d20;
  transform: translateY(-2px);
  box-shadow: 3px 5px 0 rgba(0, 0, 0, 0.25);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.page-products .hero-cta-ghost {
  border: 1px solid var(--gold);
  color: var(--cream);
  background: rgba(43, 43, 43, 0.35);
}
.page-products .hero-cta-ghost:hover,
.page-products .hero-cta-ghost:focus-visible {
  background: rgba(201, 160, 99, 0.16);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- 主体布局：左索引 + 右内容 ---------- */
.page-products .products-layout {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--products-gutter) var(--products-gutter) 4rem;
  display: grid;
  gap: 1.8rem;
}
@media (min-width: 920px) {
  .page-products .products-layout {
    grid-template-columns: var(--products-sidebar) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.2rem);
    align-items: start;
  }
}

/* ---------- 左侧栏目索引 ---------- */
.page-products .products-index {
  background: rgba(245, 241, 232, 0.85);
  border: 1px solid rgba(43, 43, 43, 0.15);
  box-shadow: inset 3px 0 0 var(--gold);
  overflow-x: auto;
  scrollbar-width: thin;
}
.page-products .products-index-inner {
  padding: 0.9rem 1rem 1.1rem;
}
.page-products .products-index .section-label {
  display: none;
}
.page-products .products-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.4rem;
}
.page-products .products-index-list li {
  margin: 0;
  flex: 0 0 auto;
}
.page-products .products-index-list a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  color: var(--dark);
  text-decoration: none;
  border: 1px solid rgba(43, 43, 43, 0.18);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.page-products .products-index-list a .index-num {
  font-size: 0.72rem;
  color: var(--red);
  font-family: var(--font-heading);
}
.page-products .products-index-list a:hover,
.page-products .products-index-list a:focus-visible {
  background: var(--red);
  color: var(--cream);
  border-color: var(--red);
  outline: none;
}
.page-products .products-index-list a:hover .index-num,
.page-products .products-index-list a:focus-visible .index-num {
  color: var(--gold);
}
@media (min-width: 920px) {
  .page-products .products-index {
    position: sticky;
    top: 1rem;
    overflow: visible;
  }
  .page-products .products-index-inner {
    padding: 1.1rem 1.2rem 1.3rem;
  }
  .page-products .products-index .section-label {
    display: inline-block;
    margin-bottom: 0.9rem;
  }
  .page-products .products-index-list {
    display: block;
  }
  .page-products .products-index-list li {
    flex: none;
    margin-bottom: 0.2rem;
  }
  .page-products .products-index-list a {
    border: 0;
    border-bottom: 1px solid rgba(43, 43, 43, 0.12);
    background: transparent;
    white-space: normal;
    padding: 0.55rem 0.4rem;
    font-size: 0.9rem;
  }
  .page-products .products-index-list a:hover,
  .page-products .products-index-list a:focus-visible {
    background: transparent;
    color: var(--red);
  }
  .page-products .products-index-list a:hover {
    padding-left: 0.7rem;
  }
}

/* ---------- 主内容区 ---------- */
.page-products .products-main {
  background-image:
    linear-gradient(to right, rgba(43, 43, 43, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 43, 43, 0.03) 1px, transparent 1px);
  background-size: 22px 22px;
  min-width: 0;
}
.page-products .products-section {
  position: relative;
  padding: var(--products-section-pad);
  margin-bottom: 2.4rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(43, 43, 43, 0.12);
  border-top: 4px solid var(--red);
  box-shadow: 6px 6px 0 rgba(43, 43, 43, 0.05);
}
.page-products .section-head {
  margin-bottom: 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(201, 160, 99, 0.45);
}
.page-products .section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--dark);
  margin: 0.35rem 0 0;
  line-height: 1.2;
}
.page-products .products-section > p {
  max-width: 78ch;
  margin: 0 0 1.2rem;
}
.page-products img {
  max-width: 100%;
  height: auto;
}

/* ---------- 新旧版本对照 ---------- */
.page-products .compare-phone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 230px));
  gap: 1.2rem;
  justify-content: center;
  margin: 1.6rem 0;
}
.page-products .compare-phone {
  margin: 0;
  padding: 0.6rem 0.6rem 0.9rem;
  background: var(--cream);
  border: 1px solid rgba(139, 139, 122, 0.45);
  box-shadow: 4px 4px 0 rgba(139, 139, 122, 0.28);
}
.page-products .compare-phone.old {
  transform: rotate(-1.1deg);
  border-bottom: 4px solid var(--stone);
}
.page-products .compare-phone.new {
  transform: rotate(1.1deg);
  border-bottom: 4px solid var(--red);
  box-shadow: 5px 5px 0 rgba(195, 39, 43, 0.18);
}
.page-products .compare-phone img {
  display: block;
  width: 100%;
  height: auto;
}
.page-products .phone-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--dark);
}
.page-products .compare-phone figcaption,
.page-products .caption {
  font-size: 0.8rem;
  color: var(--stone);
}
.page-products .compare-phone figcaption {
  padding-top: 0.5rem;
}
.page-products .compare-table-card {
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid rgba(43, 43, 43, 0.2);
  background: #fffdf8;
}
.page-products .compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}
.page-products .compare-table caption {
  caption-side: top;
  text-align: left;
  padding: 0.7rem 0.9rem 0.5rem;
}
.page-products .compare-table th,
.page-products .compare-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(43, 43, 43, 0.12);
  text-align: left;
  vertical-align: top;
}
.page-products .compare-table thead th {
  background: var(--dark);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.88rem;
}
.page-products .compare-table tbody tr:last-child th,
.page-products .compare-table tbody tr:last-child td {
  border-bottom: 0;
}
.page-products .compare-table tbody tr:nth-child(even) {
  background: rgba(201, 160, 99, 0.1);
}
.page-products .compare-table td:first-child {
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}
.page-products .compare-table td:not(:first-child) {
  color: var(--dark);
}
.page-products .compare-diagram {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.4rem 0 0.3rem;
  border: 1px solid rgba(201, 160, 99, 0.6);
}

/* ---------- 版本下载时间轴 ---------- */
.page-products .timeline-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}
@media (min-width: 600px) {
  .page-products .timeline-intro {
    flex-direction: row;
    align-items: center;
  }
}
.page-products .timeline-icon {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(201, 160, 99, 0.15);
}
.page-products .timeline-intro > div {
  flex: 1 1 auto;
}
.page-products .timeline-intro p {
  margin: 0 0 0.4rem;
}
.page-products .timeline-intro .timeline-note {
  font-size: 0.85rem;
  color: var(--stone);
  border-left: 3px solid var(--clay);
  padding-left: 0.8rem;
  margin-bottom: 0;
}
.page-products .timeline-list {
  display: grid;
  gap: 1.1rem;
  margin: 0 0 1rem;
}
.page-products .timeline-item {
  position: relative;
  margin: 0;
  padding: 1.3rem 1.3rem 1.3rem 2.2rem;
  background: var(--cream);
  border: 1px solid rgba(43, 43, 43, 0.16);
  border-left: 4px solid var(--red);
}
.page-products .timeline-item::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 1.7rem;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--gold);
  border: 3px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(195, 39, 43, 0.5);
}
.page-products .timeline-year {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--cream);
  background: var(--clay);
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.5rem;
}
.page-products .timeline-item h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}
.page-products .timeline-item p:first-of-type {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  color: rgba(43, 43, 43, 0.78);
  max-width: 68ch;
}
.page-products .timeline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.page-products .download-btn {
  display: inline-block;
  background: linear-gradient(160deg, var(--moss) 0%, #42523a 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(43, 43, 43, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.page-products .download-btn:hover,
.page-products .download-btn:focus-visible {
  background: #4a5b3e;
  transform: translateY(-2px);
  box-shadow: 2px 4px 0 rgba(43, 43, 43, 0.25);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.page-products .btn-meta {
  font-size: 0.78rem;
  color: var(--stone);
  transition: background-color 0.15s ease, color 0.15s ease, padding 0.15s ease;
}
.page-products .download-btn:hover + .btn-meta,
.page-products .download-btn:focus-visible + .btn-meta {
  background: var(--ink);
  color: var(--cream);
  padding: 0.15rem 0.5rem;
}
.page-products .timeline-tip {
  margin: 1.2rem 0 0;
  padding: 0.7rem 1rem;
  background: rgba(182, 106, 80, 0.12);
  border-left: 3px solid var(--clay);
  font-size: 0.85rem;
  color: rgba(43, 43, 43, 0.8);
}

/* ---------- 使用指南索引 ---------- */
.page-products .guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.page-products .guide-card {
  display: block;
  color: var(--dark);
  text-decoration: none;
  background: var(--cream);
  border: 1px solid rgba(43, 43, 43, 0.16);
  padding: 1.1rem 1.2rem 1.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.page-products .guide-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.page-products .guide-card:hover,
.page-products .guide-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(195, 39, 43, 0.3);
  box-shadow: 4px 5px 0 rgba(195, 39, 43, 0.14);
  outline: none;
}
.page-products .guide-card:hover::after,
.page-products .guide-card:focus-visible::after {
  transform: scaleX(1);
}
.page-products .guide-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--cream);
  background: var(--moss);
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.7rem;
}
.page-products .guide-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0 0 0.35rem;
}
.page-products .guide-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--stone);
  line-height: 1.5;
}

/* ---------- 会员服务 ---------- */
.page-products .member-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.3rem 0;
  border: 1px solid var(--gold);
  box-shadow: 4px 4px 0 rgba(195, 39, 43, 0.12);
}
.page-products .member-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}
.page-products .member-card {
  background: var(--cream);
  padding: 1.2rem 1.2rem 1.3rem;
  border: 1px solid rgba(43, 43, 43, 0.14);
  border-top: 3px solid var(--red);
  box-shadow: 3px 3px 0 rgba(139, 139, 122, 0.16);
}
.page-products .member-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
}
.page-products .member-card p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(43, 43, 43, 0.75);
}
.page-products .member-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.3rem;
  padding: 1rem 1.2rem;
  background: rgba(92, 111, 79, 0.1);
  border-left: 4px solid var(--moss);
}
.page-products .member-note p {
  flex: 1 1 30ch;
  margin: 0;
  font-size: 0.88rem;
}
.page-products .member-cta {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: var(--font-body);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.page-products .member-cta:hover,
.page-products .member-cta:focus-visible {
  background: var(--red);
  color: var(--cream);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
