.page-products {
  --products-accent: var(--ms-red);
  --products-night: var(--ms-midnight);
  --products-gold: var(--ms-gold);
  --products-light: var(--ms-gray);
  background: var(--ms-white);
}

/* 页面页头 */
.page-products .products-pagehead {
  background: var(--ms-midnight);
  color: var(--ms-white);
  padding: 24px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-products .products-pagehead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--ms-red) 0%, var(--ms-red) 62%, var(--ms-gold) 100%);
  z-index: 2;
}

.page-products .products-pagehead::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -40px;
  width: 60%;
  height: 160px;
  background: linear-gradient(135deg, transparent 42%, rgba(212, 0, 0, 0.28) 42%, rgba(212, 0, 0, 0.28) 68%, transparent 68%);
  transform: rotate(-4deg);
  pointer-events: none;
}

.page-products .products-head-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-products .products-head-copy {
  max-width: 640px;
}

.page-products .products-head-copy .badge {
  margin-bottom: 16px;
}

.page-products .products-head-copy h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.page-products .products-head-sub {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--ms-gold);
  margin: 0 0 16px;
  letter-spacing: 0.06em;
}

.page-products .products-head-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 24px;
}

.page-products .products-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-products .btn-download {
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-red);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.page-products .btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 0, 0, 0.45);
}

.page-products .btn-download-alt {
  border-radius: var(--radius-pill);
}

/* 手机模型 */
.page-products .products-phone-wrap {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  padding: 16px 0 24px;
}

.page-products .phone-device {
  display: block;
  margin: 0 auto;
  width: 240px;
  max-width: 100%;
  background: var(--ms-dark);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.08);
  position: relative;
}

.page-products .phone-speaker {
  width: 56px;
  height: 5px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  margin: 4px auto 10px;
}

.page-products .phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: var(--ms-midnight);
  aspect-ratio: 3 / 4;
}

.page-products .phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.page-products .phone-float-badge {
  position: absolute;
  right: -6px;
  top: 36px;
  background: var(--ms-red);
  color: var(--ms-white);
  border-radius: var(--radius-pill);
  padding: 8px 18px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--ms-midnight);
  box-shadow: var(--shadow-float);
  animation: products-pulse 2.4s ease-in-out infinite;
}

@keyframes products-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.page-products .float-badge-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.1;
}

.page-products .float-badge-text {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.08em;
}

/* 下载面板 */
.page-products .download-panel {
  margin-top: 28px;
  background: var(--ms-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-float);
  position: relative;
  z-index: 2;
}

.page-products .download-panel[hidden] {
  display: none;
}

.page-products .download-panel-inner {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-products .download-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.page-products .download-qr svg {
  width: 132px;
  height: 132px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.page-products .download-qr span {
  font-size: 0.875rem;
  color: var(--ms-text);
  font-weight: 500;
}

.page-products .download-options {
  display: grid;
  gap: 12px;
}

.page-products .download-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ms-light);
  background: var(--ms-gray);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.page-products .download-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ms-midnight);
  color: var(--ms-gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

.page-products .download-option strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--ms-text);
}

.page-products .download-option span:last-child {
  display: block;
  font-size: 0.8125rem;
  color: var(--ms-muted);
}

/* 功能特性 */
.page-products .products-features {
  background: var(--ms-white);
  padding: 56px 0;
}

.page-products .section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--ms-red);
  margin-bottom: 8px;
  font-weight: 500;
}

.page-products .section-eyebrow-light {
  color: var(--ms-gold);
}

.page-products .products-features .section-head,
.page-products .products-requirements .section-head,
.page-products .products-changelog .section-head {
  margin-bottom: 36px;
}

.page-products .products-features .section-title,
.page-products .products-requirements .section-title,
.page-products .products-changelog .section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0 0 8px;
}

.page-products .section-sub {
  color: var(--ms-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.page-products .products-feature-grid {
  display: grid;
  gap: 20px;
}

.page-products .feature-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page-products .feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--ms-red) 0%, var(--ms-red) 65%, var(--ms-gold) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.page-products .feature-card:hover::before {
  opacity: 1;
}

.page-products .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.page-products .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ms-midnight);
  color: var(--ms-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 18px;
}

.page-products .feature-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 0 8px;
  color: var(--ms-text);
}

.page-products .feature-card p {
  font-size: 0.875rem;
  color: var(--ms-muted);
  line-height: 1.65;
  margin: 0;
}

/* 数据仪表盘 */
.page-products .products-dashboard {
  padding: 56px 0;
}

.page-products .products-dashboard-split {
  display: grid;
  gap: 32px;
}

.page-products .products-dashboard-img .media-frame {
  background: linear-gradient(145deg, var(--ms-dark), var(--ms-midnight));
}

.page-products .products-dashboard-copy {
  padding: 0;
}

.page-products .products-dashboard-copy h2,
.page-products .products-tablet-copy h2,
.page-products .products-collection-copy h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ms-white);
  margin: 0 0 14px;
}

.page-products .products-dashboard-copy p,
.page-products .products-collection-copy p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-products .products-checklist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .products-checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
}

.page-products .products-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ms-gold);
  font-family: var(--font-mono);
  font-weight: 700;
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.6875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-products .products-data-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.page-products .products-data-stats .data-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ms-gold);
  margin-right: 4px;
}

/* 平板横屏 */
.page-products .products-tablet {
  padding: 56px 0;
  background: var(--ms-white);
}

.page-products .products-tablet-split {
  display: grid;
  gap: 32px;
}

.page-products .products-tablet-copy h2,
.page-products .products-download-cta .download-cta-card h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ms-text);
  margin: 0 0 14px;
}

.page-products .products-tablet-copy p {
  font-size: 0.9375rem;
  color: var(--ms-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.page-products .products-tablet-copy strong {
  color: var(--ms-text);
}

.page-products .products-tablet-frame {
  background: linear-gradient(155deg, var(--ms-midnight), var(--ms-dark));
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* 系统要求 */
.page-products .products-requirements {
  padding: 56px 0;
}

.page-products .products-req-grid {
  display: grid;
  gap: 20px;
}

.page-products .req-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page-products .req-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.page-products .req-os-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--ms-midnight);
  color: var(--ms-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin: 0 auto 14px;
}

.page-products .req-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--ms-text);
}

.page-products .req-card p {
  font-size: 0.875rem;
  color: var(--ms-muted);
  margin: 0;
}

/* 更新日志时间轴 */
.page-products .products-changelog {
  padding: 56px 0;
  background: var(--ms-white);
}

.page-products .products-timeline {
  position: relative;
  margin: 0 0 28px;
  padding-left: 20px;
}

.page-products .products-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--ms-red), var(--ms-gold));
}

.page-products .timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.page-products .timeline-marker {
  position: absolute;
  left: -23px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ms-red);
  border: 3px solid var(--ms-white);
  box-shadow: 0 0 0 2px var(--ms-red);
}

.page-products .timeline-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.page-products .timeline-card .badge {
  margin-bottom: 10px;
}

.page-products .timeline-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  margin: 0 0 6px;
  color: var(--ms-text);
}

.page-products .timeline-card p {
  font-size: 0.875rem;
  color: var(--ms-muted);
  line-height: 1.65;
  margin: 0;
}

/* 版本归档抽屉 */
.page-products .products-archive-drawer {
  background: var(--ms-gray);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.page-products .expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ms-midnight);
  color: var(--ms-white);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.page-products .expand-btn::before {
  content: "+";
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ms-gold);
  transition: transform var(--transition-fast);
}

.page-products .expand-btn[aria-expanded="true"]::before {
  transform: rotate(45deg);
}

.page-products .expand-btn:hover {
  background: var(--ms-red);
}

.page-products .expand-panel[hidden] {
  display: none;
}

.page-products .archive-panel-grid {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
}

.page-products .archive-panel-grid img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.page-products .archive-panel-copy h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 0 8px;
  color: var(--ms-text);
}

.page-products .archive-panel-copy p {
  font-size: 0.875rem;
  color: var(--ms-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.page-products .archive-panel-copy a {
  color: var(--ms-red);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 收藏对照表 */
.page-products .products-collection {
  padding: 56px 0;
}

.page-products .products-collection-split {
  display: grid;
  gap: 32px;
}

.page-products .products-collection-img .media-frame {
  background: linear-gradient(145deg, var(--ms-dark), var(--ms-midnight));
}

.page-products .products-collection-copy .btn {
  margin-top: 8px;
}

/* 下载CTA */
.page-products .products-download-cta {
  padding: 40px 0 64px;
  background: var(--ms-gray);
}

.page-products .download-cta-card {
  background: var(--ms-midnight);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-products .download-cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--ms-red), var(--ms-gold));
  border-radius: 4px 4px 0 0;
}

.page-products .download-cta-card h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: var(--ms-white);
}

.page-products .download-cta-card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin: 0 0 20px;
}

.page-products .btn-lg {
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-size: 1rem;
}

.page-products .cta-download-hint {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
}

.page-products .cta-download-hint p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8125rem;
}

/* 桌面端媒体查询 */
@media (min-width: 900px) {
  .page-products .products-pagehead {
    padding: 32px 0 72px;
  }

  .page-products .products-head-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
  }

  .page-products .products-head-copy h1 {
    font-size: 2.75rem;
  }

  .page-products .products-head-sub {
    font-size: 1.375rem;
  }

  .page-products .products-phone-wrap {
    max-width: 360px;
  }

  .page-products .download-panel-inner {
    grid-template-columns: auto 1fr;
    gap: 40px;
  }

  .page-products .download-qr {
    padding-right: 24px;
    border-right: 1px solid var(--ms-gray);
  }

  .page-products .products-features {
    padding: 80px 0;
  }

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

  .page-products .products-dashboard,
  .page-products .products-collection {
    padding: 80px 0;
  }

  .page-products .products-dashboard-split {
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
  }

  .page-products .products-tablet {
    padding: 80px 0;
  }

  .page-products .products-tablet-split {
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: center;
  }

  .page-products .products-requirements {
    padding: 80px 0;
  }

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

  .page-products .products-changelog {
    padding: 80px 0;
  }

  .page-products .products-timeline {
    padding-left: 32px;
  }

  .page-products .timeline-marker {
    left: -35px;
    width: 14px;
    height: 14px;
  }

  .page-products .archive-panel-grid {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 32px;
  }

  .page-products .products-download-cta {
    padding: 64px 0 80px;
  }

  .page-products .download-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 40px 48px;
  }

  .page-products .download-cta-copy {
    max-width: 560px;
  }

  .page-products .download-cta-copy p {
    margin-bottom: 0;
  }

  .page-products .download-cta-action .btn-lg {
    min-width: 200px;
    text-align: center;
  }
}

@media (min-width: 1200px) {
  .page-products .products-head-copy {
    padding-left: 16px;
  }

  .page-products .products-head-copy h1 {
    font-size: 3.25rem;
  }

  .page-products .products-feature-grid {
    gap: 24px;
  }

  .page-products .products-dashboard-copy h2,
  .page-products .products-tablet-copy h2,
  .page-products .products-collection-copy h2 {
    font-size: 1.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .phone-float-badge,
  .page-products .btn-download,
  .page-products .feature-card,
  .page-products .req-card {
    animation: none;
    transition: none;
  }

  .page-products .feature-card:hover,
  .page-products .req-card:hover,
  .page-products .btn-download:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }
}

.page-products {
  --ms-light: transparent;
}
